RTEMS 4.10.2Annotated Report
Tue Dec 13 18:28:14 2011
0010fc78 <IMFS_Set_handlers>:
#define MAXSYMLINK 5
int IMFS_Set_handlers(
rtems_filesystem_location_info_t *loc
)
{
10fc78: 55 push %ebp
10fc79: 89 e5 mov %esp,%ebp
10fc7b: 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;
10fc7e: 8b 50 10 mov 0x10(%eax),%edx
10fc81: 8b 4a 34 mov 0x34(%edx),%ecx
switch( node->type ) {
10fc84: 8b 10 mov (%eax),%edx
10fc86: 83 7a 4c 07 cmpl $0x7,0x4c(%edx)
10fc8a: 77 12 ja 10fc9e <IMFS_Set_handlers+0x26><== NEVER TAKEN
10fc8c: 8b 52 4c mov 0x4c(%edx),%edx
10fc8f: ff 24 95 74 1c 12 00 jmp *0x121c74(,%edx,4)
10fc96: 66 90 xchg %ax,%ax
case IMFS_DIRECTORY:
loc->handlers = fs_info->directory_handlers;
10fc98: 8b 51 0c mov 0xc(%ecx),%edx
10fc9b: 89 50 08 mov %edx,0x8(%eax)
loc->handlers = &IMFS_fifo_handlers;
break;
}
return 0;
}
10fc9e: 31 c0 xor %eax,%eax
10fca0: c9 leave
10fca1: c3 ret
10fca2: 66 90 xchg %ax,%ax
break;
case IMFS_LINEAR_FILE:
loc->handlers = fs_info->memfile_handlers;
break;
case IMFS_MEMORY_FILE:
loc->handlers = fs_info->memfile_handlers;
10fca4: 8b 51 08 mov 0x8(%ecx),%edx
10fca7: 89 50 08 mov %edx,0x8(%eax)
loc->handlers = &IMFS_fifo_handlers;
break;
}
return 0;
}
10fcaa: 31 c0 xor %eax,%eax
10fcac: c9 leave
10fcad: c3 ret
10fcae: 66 90 xchg %ax,%ax
case IMFS_DEVICE:
loc->handlers = &IMFS_device_handlers;
break;
case IMFS_SYM_LINK:
case IMFS_HARD_LINK:
loc->handlers = &IMFS_link_handlers;
10fcb0: c7 40 08 40 1e 12 00 movl $0x121e40,0x8(%eax)
loc->handlers = &IMFS_fifo_handlers;
break;
}
return 0;
}
10fcb7: 31 c0 xor %eax,%eax
10fcb9: c9 leave
10fcba: c3 ret
10fcbb: 90 nop
break;
case IMFS_MEMORY_FILE:
loc->handlers = fs_info->memfile_handlers;
break;
case IMFS_FIFO:
loc->handlers = &IMFS_fifo_handlers;
10fcbc: c7 40 08 00 1d 12 00 movl $0x121d00,0x8(%eax)
break;
}
return 0;
}
10fcc3: 31 c0 xor %eax,%eax
10fcc5: c9 leave
10fcc6: c3 ret
10fcc7: 90 nop
switch( node->type ) {
case IMFS_DIRECTORY:
loc->handlers = fs_info->directory_handlers;
break;
case IMFS_DEVICE:
loc->handlers = &IMFS_device_handlers;
10fcc8: c7 40 08 c0 1d 12 00 movl $0x121dc0,0x8(%eax)
loc->handlers = &IMFS_fifo_handlers;
break;
}
return 0;
}
10fccf: 31 c0 xor %eax,%eax
10fcd1: c9 leave
10fcd2: c3 ret
0010facc <IMFS_allocate_node>:
IMFS_jnode_t *IMFS_allocate_node(
IMFS_jnode_types_t type,
const char *name,
mode_t mode
)
{
10facc: 55 push %ebp
10facd: 89 e5 mov %esp,%ebp
10facf: 53 push %ebx
10fad0: 83 ec 1c sub $0x1c,%esp
struct timeval tv;
/*
* Allocate an IMFS jnode
*/
node = calloc( 1, sizeof( IMFS_jnode_t ) );
10fad3: 6a 64 push $0x64
10fad5: 6a 01 push $0x1
10fad7: e8 f0 88 ff ff call 1083cc <calloc>
10fadc: 89 c3 mov %eax,%ebx
if ( !node )
10fade: 83 c4 10 add $0x10,%esp
10fae1: 85 c0 test %eax,%eax
10fae3: 74 49 je 10fb2e <IMFS_allocate_node+0x62><== NEVER TAKEN
return NULL;
/*
* Fill in the basic information
*/
node->st_nlink = 1;
10fae5: 66 c7 40 34 01 00 movw $0x1,0x34(%eax)
node->type = type;
10faeb: 8b 45 08 mov 0x8(%ebp),%eax
10faee: 89 43 4c mov %eax,0x4c(%ebx)
strncpy( node->name, name, IMFS_NAME_MAX );
10faf1: 51 push %ecx
10faf2: 6a 20 push $0x20
10faf4: ff 75 0c pushl 0xc(%ebp)
10faf7: 8d 43 0c lea 0xc(%ebx),%eax
10fafa: 50 push %eax
10fafb: e8 8c 4f 00 00 call 114a8c <strncpy>
/*
* Fill in the mode and permission information for the jnode structure.
*/
node->st_mode = mode;
10fb00: 8b 45 10 mov 0x10(%ebp),%eax
10fb03: 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;
10fb06: 66 c7 43 3c 00 00 movw $0x0,0x3c(%ebx)
node->st_gid = 0;
10fb0c: 66 c7 43 3e 00 00 movw $0x0,0x3e(%ebx)
#endif
/*
* Now set all the times.
*/
gettimeofday( &tv, 0 );
10fb12: 58 pop %eax
10fb13: 5a pop %edx
10fb14: 6a 00 push $0x0
10fb16: 8d 45 f0 lea -0x10(%ebp),%eax
10fb19: 50 push %eax
10fb1a: e8 41 8b ff ff call 108660 <gettimeofday>
node->stat_atime = (time_t) tv.tv_sec;
10fb1f: 8b 45 f0 mov -0x10(%ebp),%eax
10fb22: 89 43 40 mov %eax,0x40(%ebx)
node->stat_mtime = (time_t) tv.tv_sec;
10fb25: 89 43 44 mov %eax,0x44(%ebx)
node->stat_ctime = (time_t) tv.tv_sec;
10fb28: 89 43 48 mov %eax,0x48(%ebx)
return node;
10fb2b: 83 c4 10 add $0x10,%esp
}
10fb2e: 89 d8 mov %ebx,%eax
10fb30: 8b 5d fc mov -0x4(%ebp),%ebx
10fb33: c9 leave
10fb34: c3 ret
0010fb6c <IMFS_create_node>:
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
10fb6c: 55 push %ebp
10fb6d: 89 e5 mov %esp,%ebp
10fb6f: 57 push %edi
10fb70: 56 push %esi
10fb71: 53 push %ebx
10fb72: 83 ec 1c sub $0x1c,%esp
10fb75: 8b 5d 08 mov 0x8(%ebp),%ebx
10fb78: 8b 75 0c mov 0xc(%ebp),%esi
10fb7b: 8b 7d 18 mov 0x18(%ebp),%edi
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
10fb7e: 85 db test %ebx,%ebx
10fb80: 75 0a jne 10fb8c <IMFS_create_node+0x20> <== ALWAYS TAKEN
10fb82: 31 c0 xor %eax,%eax
node->st_ino = ++fs_info->ino_count;
rtems_chain_append( &parent->info.directory.Entries, &node->Node );
return node;
}
10fb84: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10fb87: 5b pop %ebx <== NOT EXECUTED
10fb88: 5e pop %esi <== NOT EXECUTED
10fb89: 5f pop %edi <== NOT EXECUTED
10fb8a: c9 leave <== NOT EXECUTED
10fb8b: c3 ret <== NOT EXECUTED
return NULL;
/*
* Allocate filesystem node and fill in basic information
*/
node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
10fb8c: 50 push %eax
10fb8d: a1 24 50 12 00 mov 0x125024,%eax
10fb92: 8b 40 2c mov 0x2c(%eax),%eax
10fb95: f7 d0 not %eax
10fb97: 23 45 14 and 0x14(%ebp),%eax
10fb9a: 50 push %eax
10fb9b: ff 75 10 pushl 0x10(%ebp)
10fb9e: 56 push %esi
10fb9f: e8 28 ff ff ff call 10facc <IMFS_allocate_node>
if ( !node )
10fba4: 83 c4 10 add $0x10,%esp
10fba7: 85 c0 test %eax,%eax
10fba9: 74 d9 je 10fb84 <IMFS_create_node+0x18> <== NEVER TAKEN
return NULL;
/*
* Set the type specific information
*/
switch (type) {
10fbab: 83 fe 07 cmp $0x7,%esi
10fbae: 76 18 jbe 10fbc8 <IMFS_create_node+0x5c> <== ALWAYS TAKEN
case IMFS_FIFO:
node->info.fifo.pipe = NULL;
break;
default:
assert(0);
10fbb0: 68 ba 15 12 00 push $0x1215ba <== NOT EXECUTED
10fbb5: 68 60 1c 12 00 push $0x121c60 <== NOT EXECUTED
10fbba: 6a 5c push $0x5c <== NOT EXECUTED
10fbbc: 68 f0 1b 12 00 push $0x121bf0 <== NOT EXECUTED
10fbc1: e8 de 86 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
10fbc6: 66 90 xchg %ax,%ax <== NOT EXECUTED
return NULL;
/*
* Set the type specific information
*/
switch (type) {
10fbc8: ff 24 b5 40 1c 12 00 jmp *0x121c40(,%esi,4)
10fbcf: 90 nop
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;
10fbd0: 8b 17 mov (%edi),%edx
10fbd2: 89 50 50 mov %edx,0x50(%eax)
}
/*
* This node MUST have a parent, so put it in that directory list.
*/
parent = parent_loc->node_access;
10fbd5: 8b 13 mov (%ebx),%edx
fs_info = parent_loc->mt_entry->fs_info;
10fbd7: 8b 4b 10 mov 0x10(%ebx),%ecx
10fbda: 8b 59 34 mov 0x34(%ecx),%ebx
node->Parent = parent;
10fbdd: 89 50 08 mov %edx,0x8(%eax)
node->st_ino = ++fs_info->ino_count;
10fbe0: 8b 4b 04 mov 0x4(%ebx),%ecx
10fbe3: 41 inc %ecx
10fbe4: 89 4b 04 mov %ecx,0x4(%ebx)
10fbe7: 89 48 38 mov %ecx,0x38(%eax)
10fbea: 83 ec 08 sub $0x8,%esp
10fbed: 50 push %eax
10fbee: 83 c2 50 add $0x50,%edx
10fbf1: 52 push %edx
10fbf2: 89 45 e4 mov %eax,-0x1c(%ebp)
10fbf5: e8 8e c9 ff ff call 10c588 <_Chain_Append>
rtems_chain_append( &parent->info.directory.Entries, &node->Node );
return node;
10fbfa: 83 c4 10 add $0x10,%esp
10fbfd: 8b 45 e4 mov -0x1c(%ebp),%eax
}
10fc00: 8d 65 f4 lea -0xc(%ebp),%esp
10fc03: 5b pop %ebx
10fc04: 5e pop %esi
10fc05: 5f pop %edi
10fc06: c9 leave
10fc07: c3 ret
node->info.device.major = info->device.major;
node->info.device.minor = info->device.minor;
break;
case IMFS_LINEAR_FILE:
node->info.linearfile.size = 0;
10fc08: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) <== NOT EXECUTED
10fc0f: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) <== NOT EXECUTED
node->info.linearfile.direct = 0;
10fc16: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) <== NOT EXECUTED
case IMFS_MEMORY_FILE:
node->info.file.size = 0;
10fc1d: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax)
10fc24: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
node->info.file.indirect = 0;
10fc2b: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax)
node->info.file.doubly_indirect = 0;
10fc32: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax)
node->info.file.triply_indirect = 0;
10fc39: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax)
break;
10fc40: eb 93 jmp 10fbd5 <IMFS_create_node+0x69>
10fc42: 66 90 xchg %ax,%ax
case IMFS_FIFO:
node->info.fifo.pipe = NULL;
10fc44: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax)
break;
10fc4b: eb 88 jmp 10fbd5 <IMFS_create_node+0x69>
10fc4d: 8d 76 00 lea 0x0(%esi),%esi
case IMFS_SYM_LINK:
node->info.sym_link.name = info->sym_link.name;
break;
case IMFS_DEVICE:
node->info.device.major = info->device.major;
10fc50: 8b 17 mov (%edi),%edx
10fc52: 89 50 50 mov %edx,0x50(%eax)
node->info.device.minor = info->device.minor;
10fc55: 8b 57 04 mov 0x4(%edi),%edx
10fc58: 89 50 54 mov %edx,0x54(%eax)
break;
10fc5b: e9 75 ff ff ff jmp 10fbd5 <IMFS_create_node+0x69>
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10fc60: 8d 50 54 lea 0x54(%eax),%edx
10fc63: 89 50 50 mov %edx,0x50(%eax)
the_chain->permanent_null = NULL;
10fc66: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
the_chain->last = _Chain_Head(the_chain);
10fc6d: 8d 50 50 lea 0x50(%eax),%edx
10fc70: 89 50 58 mov %edx,0x58(%eax)
10fc73: e9 5d ff ff ff jmp 10fbd5 <IMFS_create_node+0x69>
0010fb38 <IMFS_create_root_node>:
IMFS_jnode_t *IMFS_create_root_node(void)
{
10fb38: 55 push %ebp
10fb39: 89 e5 mov %esp,%ebp
10fb3b: 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) );
10fb3e: 68 ed 41 00 00 push $0x41ed
10fb43: 68 75 18 12 00 push $0x121875
10fb48: 6a 01 push $0x1
10fb4a: e8 7d ff ff ff call 10facc <IMFS_allocate_node>
if ( !node )
10fb4f: 83 c4 10 add $0x10,%esp
10fb52: 85 c0 test %eax,%eax
10fb54: 74 13 je 10fb69 <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);
10fb56: 8d 50 54 lea 0x54(%eax),%edx
10fb59: 89 50 50 mov %edx,0x50(%eax)
the_chain->permanent_null = NULL;
10fb5c: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
the_chain->last = _Chain_Head(the_chain);
10fb63: 8d 50 50 lea 0x50(%eax),%edx
10fb66: 89 50 58 mov %edx,0x58(%eax)
* NOTE: Root node is always a directory.
*/
rtems_chain_initialize_empty(&node->info.directory.Entries);
return node;
}
10fb69: c9 leave
10fb6a: c3 ret
00109d64 <IMFS_dump_directory>:
void IMFS_dump_directory(
IMFS_jnode_t *the_directory,
int level
)
{
109d64: 55 push %ebp
109d65: 89 e5 mov %esp,%ebp
109d67: 57 push %edi
109d68: 56 push %esi
109d69: 53 push %ebx
109d6a: 83 ec 1c sub $0x1c,%esp
109d6d: 8b 45 08 mov 0x8(%ebp),%eax
109d70: 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 );
109d73: 85 c0 test %eax,%eax
109d75: 74 7a je 109df1 <IMFS_dump_directory+0x8d><== NEVER TAKEN
assert( level >= 0 );
109d77: 85 f6 test %esi,%esi
109d79: 0f 88 a4 00 00 00 js 109e23 <IMFS_dump_directory+0xbf><== NEVER TAKEN
assert( the_directory->type == IMFS_DIRECTORY );
109d7f: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
109d83: 0f 85 81 00 00 00 jne 109e0a <IMFS_dump_directory+0xa6><== NEVER TAKEN
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
109d89: 8b 78 50 mov 0x50(%eax),%edi
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
109d8c: 83 c0 54 add $0x54,%eax
109d8f: 89 45 e4 mov %eax,-0x1c(%ebp)
109d92: 39 c7 cmp %eax,%edi
109d94: 74 41 je 109dd7 <IMFS_dump_directory+0x73>
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 );
109d96: 8d 46 01 lea 0x1(%esi),%eax
109d99: 89 45 e0 mov %eax,-0x20(%ebp)
for ( the_node = the_chain->first;
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
109d9c: 31 db xor %ebx,%ebx
109d9e: 66 90 xchg %ax,%ax
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
109da0: a1 e0 be 12 00 mov 0x12bee0,%eax
109da5: ff 70 08 pushl 0x8(%eax)
109da8: 6a 04 push $0x4
109daa: 6a 01 push $0x1
109dac: 68 15 6c 12 00 push $0x126c15
109db1: e8 ba e8 00 00 call 118670 <fwrite>
!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++ )
109db6: 43 inc %ebx
109db7: 83 c4 10 add $0x10,%esp
109dba: 39 de cmp %ebx,%esi
109dbc: 7d e2 jge 109da0 <IMFS_dump_directory+0x3c>
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
109dbe: 83 ec 0c sub $0xc,%esp
109dc1: 57 push %edi
109dc2: e8 f5 fd ff ff call 109bbc <IMFS_print_jnode>
if ( the_jnode->type == IMFS_DIRECTORY )
109dc7: 83 c4 10 add $0x10,%esp
109dca: 83 7f 4c 01 cmpl $0x1,0x4c(%edi)
109dce: 74 10 je 109de0 <IMFS_dump_directory+0x7c>
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 ) {
109dd0: 8b 3f mov (%edi),%edi
assert( the_directory->type == IMFS_DIRECTORY );
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
109dd2: 3b 7d e4 cmp -0x1c(%ebp),%edi
109dd5: 75 c5 jne 109d9c <IMFS_dump_directory+0x38>
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
}
}
109dd7: 8d 65 f4 lea -0xc(%ebp),%esp
109dda: 5b pop %ebx
109ddb: 5e pop %esi
109ddc: 5f pop %edi
109ddd: c9 leave
109dde: c3 ret
109ddf: 90 nop
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 );
109de0: 83 ec 08 sub $0x8,%esp
109de3: ff 75 e0 pushl -0x20(%ebp)
109de6: 57 push %edi
109de7: e8 78 ff ff ff call 109d64 <IMFS_dump_directory>
109dec: 83 c4 10 add $0x10,%esp
109def: eb df jmp 109dd0 <IMFS_dump_directory+0x6c>
rtems_chain_node *the_node;
rtems_chain_control *the_chain;
IMFS_jnode_t *the_jnode;
int i;
assert( the_directory );
109df1: 68 fc 6b 12 00 push $0x126bfc <== NOT EXECUTED
109df6: 68 44 6d 12 00 push $0x126d44 <== NOT EXECUTED
109dfb: 68 84 00 00 00 push $0x84 <== NOT EXECUTED
109e00: 68 38 6c 12 00 push $0x126c38 <== NOT EXECUTED
109e05: e8 92 07 00 00 call 10a59c <__assert_func> <== NOT EXECUTED
assert( level >= 0 );
assert( the_directory->type == IMFS_DIRECTORY );
109e0a: 68 88 6c 12 00 push $0x126c88 <== NOT EXECUTED
109e0f: 68 44 6d 12 00 push $0x126d44 <== NOT EXECUTED
109e14: 68 88 00 00 00 push $0x88 <== NOT EXECUTED
109e19: 68 38 6c 12 00 push $0x126c38 <== NOT EXECUTED
109e1e: e8 79 07 00 00 call 10a59c <__assert_func> <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
int i;
assert( the_directory );
assert( level >= 0 );
109e23: 68 0a 6c 12 00 push $0x126c0a <== NOT EXECUTED
109e28: 68 44 6d 12 00 push $0x126d44 <== NOT EXECUTED
109e2d: 68 86 00 00 00 push $0x86 <== NOT EXECUTED
109e32: 68 38 6c 12 00 push $0x126c38 <== NOT EXECUTED
109e37: e8 60 07 00 00 call 10a59c <__assert_func> <== NOT EXECUTED
0010fe08 <IMFS_eval_path>:
const char *pathname, /* IN */
size_t pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
10fe08: 55 push %ebp
10fe09: 89 e5 mov %esp,%ebp
10fe0b: 57 push %edi
10fe0c: 56 push %esi
10fe0d: 53 push %ebx
10fe0e: 83 ec 4c sub $0x4c,%esp
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 ) ) {
10fe11: f7 45 10 f8 ff ff ff testl $0xfffffff8,0x10(%ebp)
10fe18: 0f 85 0b 03 00 00 jne 110129 <IMFS_eval_path+0x321> <== NEVER TAKEN
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
10fe1e: 8b 45 14 mov 0x14(%ebp),%eax
10fe21: 8b 38 mov (%eax),%edi
10fe23: 31 db xor %ebx,%ebx
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
10fe25: 8d 55 e4 lea -0x1c(%ebp),%edx
10fe28: 52 push %edx
10fe29: 8d 4d c3 lea -0x3d(%ebp),%ecx
10fe2c: 51 push %ecx
10fe2d: ff 75 0c pushl 0xc(%ebp)
10fe30: 8b 45 08 mov 0x8(%ebp),%eax
10fe33: 01 d8 add %ebx,%eax
10fe35: 50 push %eax
10fe36: e8 39 0a 00 00 call 110874 <IMFS_get_token>
10fe3b: 89 c6 mov %eax,%esi
pathnamelen -= len;
10fe3d: 8b 55 e4 mov -0x1c(%ebp),%edx
i += len;
if ( !pathloc->node_access )
10fe40: 8b 4d 14 mov 0x14(%ebp),%ecx
10fe43: 8b 01 mov (%ecx),%eax
10fe45: 83 c4 10 add $0x10,%esp
10fe48: 85 c0 test %eax,%eax
10fe4a: 0f 84 14 02 00 00 je 110064 <IMFS_eval_path+0x25c> <== NEVER TAKEN
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
pathnamelen -= len;
10fe50: 29 55 0c sub %edx,0xc(%ebp)
i += len;
10fe53: 01 d3 add %edx,%ebx
rtems_set_errno_and_return_minus_one( ENOENT );
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
10fe55: 85 f6 test %esi,%esi
10fe57: 75 47 jne 10fea0 <IMFS_eval_path+0x98>
* 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 ) {
10fe59: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
10fe5d: 0f 84 9d 01 00 00 je 110000 <IMFS_eval_path+0x1f8>
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
10fe63: 83 ec 0c sub $0xc,%esp
10fe66: ff 75 14 pushl 0x14(%ebp)
10fe69: e8 0a fe ff ff call 10fc78 <IMFS_Set_handlers>
10fe6e: 89 c6 mov %eax,%esi
10fe70: 59 pop %ecx
10fe71: 5b pop %ebx
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
10fe72: ff 75 10 pushl 0x10(%ebp)
10fe75: ff 75 14 pushl 0x14(%ebp)
10fe78: e8 57 fe ff ff call 10fcd4 <IMFS_evaluate_permission>
10fe7d: 83 c4 10 add $0x10,%esp
10fe80: 85 c0 test %eax,%eax
10fe82: 0f 85 d4 00 00 00 jne 10ff5c <IMFS_eval_path+0x154>
rtems_set_errno_and_return_minus_one( EACCES );
10fe88: e8 b3 3f 00 00 call 113e40 <__errno>
10fe8d: c7 00 0d 00 00 00 movl $0xd,(%eax)
10fe93: be ff ff ff ff mov $0xffffffff,%esi
10fe98: e9 bf 00 00 00 jmp 10ff5c <IMFS_eval_path+0x154>
10fe9d: 8d 76 00 lea 0x0(%esi),%esi
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
10fea0: 83 7f 4c 01 cmpl $0x1,0x4c(%edi)
10fea4: 0f 84 be 00 00 00 je 10ff68 <IMFS_eval_path+0x160>
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
10feaa: 89 c7 mov %eax,%edi
switch( type ) {
10feac: 83 fe 03 cmp $0x3,%esi
10feaf: 74 1b je 10fecc <IMFS_eval_path+0xc4>
10feb1: 83 fe 04 cmp $0x4,%esi
10feb4: 0f 84 92 00 00 00 je 10ff4c <IMFS_eval_path+0x144>
10feba: 83 fe 02 cmp $0x2,%esi
10febd: 74 59 je 10ff18 <IMFS_eval_path+0x110>
/*
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
10febf: 83 fe 04 cmp $0x4,%esi
10fec2: 0f 85 5d ff ff ff jne 10fe25 <IMFS_eval_path+0x1d> <== ALWAYS TAKEN
10fec8: eb 8f jmp 10fe59 <IMFS_eval_path+0x51> <== NOT EXECUTED
10feca: 66 90 xchg %ax,%ax <== NOT EXECUTED
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
10fecc: 8b 40 4c mov 0x4c(%eax),%eax
10fecf: 83 f8 03 cmp $0x3,%eax
10fed2: 0f 84 68 01 00 00 je 110040 <IMFS_eval_path+0x238>
node = pathloc->node_access;
if ( !node )
rtems_set_errno_and_return_minus_one( ENOTDIR );
} else if ( node->type == IMFS_SYM_LINK ) {
10fed8: 83 f8 04 cmp $0x4,%eax
10fedb: 0f 84 ef 01 00 00 je 1100d0 <IMFS_eval_path+0x2c8>
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
10fee1: 48 dec %eax
10fee2: 0f 85 d3 01 00 00 jne 1100bb <IMFS_eval_path+0x2b3>
/*
* Find the token name in the current node.
*/
node = IMFS_find_match_in_dir( node, token );
10fee8: 83 ec 08 sub $0x8,%esp
10feeb: 8d 45 c3 lea -0x3d(%ebp),%eax
10feee: 50 push %eax
10feef: 57 push %edi
10fef0: e8 ef 08 00 00 call 1107e4 <IMFS_find_match_in_dir>
10fef5: 89 c7 mov %eax,%edi
if ( !node )
10fef7: 83 c4 10 add $0x10,%esp
10fefa: 85 c0 test %eax,%eax
10fefc: 0f 84 62 01 00 00 je 110064 <IMFS_eval_path+0x25c>
* 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 )) {
10ff02: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
10ff06: 0f 84 80 00 00 00 je 10ff8c <IMFS_eval_path+0x184>
/*
* Set the node access to the point we have found.
*/
pathloc->node_access = node;
10ff0c: 8b 4d 14 mov 0x14(%ebp),%ecx
10ff0f: 89 39 mov %edi,(%ecx)
break;
10ff11: e9 0f ff ff ff jmp 10fe25 <IMFS_eval_path+0x1d>
10ff16: 66 90 xchg %ax,%ax
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
10ff18: 8b 15 24 50 12 00 mov 0x125024,%edx
10ff1e: 39 42 18 cmp %eax,0x18(%edx)
10ff21: 0f 84 fe fe ff ff je 10fe25 <IMFS_eval_path+0x1d>
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access) {
10ff27: 8b 4d 14 mov 0x14(%ebp),%ecx
10ff2a: 8b 51 10 mov 0x10(%ecx),%edx
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
10ff2d: 39 42 1c cmp %eax,0x1c(%edx)
10ff30: 0f 84 bf 01 00 00 je 1100f5 <IMFS_eval_path+0x2ed>
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
pathnamelen+len,
flags,pathloc);
}
} else {
if ( !node->Parent )
10ff36: 8b 78 08 mov 0x8(%eax),%edi
10ff39: 85 ff test %edi,%edi
10ff3b: 0f 84 23 01 00 00 je 110064 <IMFS_eval_path+0x25c>
rtems_set_errno_and_return_minus_one( ENOENT );
node = node->Parent;
}
pathloc->node_access = node;
10ff41: 8b 45 14 mov 0x14(%ebp),%eax
10ff44: 89 38 mov %edi,(%eax)
break;
10ff46: e9 da fe ff ff jmp 10fe25 <IMFS_eval_path+0x1d>
10ff4b: 90 nop
case IMFS_NO_MORE_PATH:
case IMFS_CURRENT_DIR:
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
10ff4c: e8 ef 3e 00 00 call 113e40 <__errno>
10ff51: c7 00 5b 00 00 00 movl $0x5b,(%eax)
10ff57: be ff ff ff ff mov $0xffffffff,%esi
if ( !IMFS_evaluate_permission( pathloc, flags ) )
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
10ff5c: 89 f0 mov %esi,%eax
10ff5e: 8d 65 f4 lea -0xc(%ebp),%esp
10ff61: 5b pop %ebx
10ff62: 5e pop %esi
10ff63: 5f pop %edi
10ff64: c9 leave
10ff65: c3 ret
10ff66: 66 90 xchg %ax,%ax
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
10ff68: 83 ec 08 sub $0x8,%esp
10ff6b: 6a 01 push $0x1
10ff6d: ff 75 14 pushl 0x14(%ebp)
10ff70: e8 5f fd ff ff call 10fcd4 <IMFS_evaluate_permission>
10ff75: 83 c4 10 add $0x10,%esp
10ff78: 85 c0 test %eax,%eax
10ff7a: 0f 84 08 ff ff ff je 10fe88 <IMFS_eval_path+0x80>
10ff80: 8b 55 14 mov 0x14(%ebp),%edx
10ff83: 8b 02 mov (%edx),%eax
10ff85: e9 20 ff ff ff jmp 10feaa <IMFS_eval_path+0xa2>
10ff8a: 66 90 xchg %ax,%ax
* 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 )) {
10ff8c: 8b 70 5c mov 0x5c(%eax),%esi
10ff8f: 85 f6 test %esi,%esi
10ff91: 0f 84 75 ff ff ff je 10ff0c <IMFS_eval_path+0x104>
10ff97: 8b 75 08 mov 0x8(%ebp),%esi
10ff9a: 01 de add %ebx,%esi
10ff9c: 89 45 b0 mov %eax,-0x50(%ebp)
10ff9f: 8b 7d 0c mov 0xc(%ebp),%edi
10ffa2: eb 15 jmp 10ffb9 <IMFS_eval_path+0x1b1>
const char *path, /* IN */
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
10ffa4: 8a 06 mov (%esi),%al
10ffa6: 84 c0 test %al,%al
10ffa8: 0f 84 ce 00 00 00 je 11007c <IMFS_eval_path+0x274>
10ffae: 46 inc %esi
10ffaf: 85 ff test %edi,%edi
10ffb1: 0f 84 f9 00 00 00 je 1100b0 <IMFS_eval_path+0x2a8> <== NEVER TAKEN
++(*index);
10ffb7: 43 inc %ebx
--(*len);
10ffb8: 4f dec %edi
10ffb9: 89 75 b4 mov %esi,-0x4c(%ebp)
const char *path, /* IN */
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
10ffbc: 83 ec 0c sub $0xc,%esp
10ffbf: 0f be 06 movsbl (%esi),%eax
10ffc2: 50 push %eax
10ffc3: e8 e4 94 ff ff call 1094ac <rtems_filesystem_is_separator>
10ffc8: 83 c4 10 add $0x10,%esp
10ffcb: 85 c0 test %eax,%eax
10ffcd: 75 d5 jne 10ffa4 <IMFS_eval_path+0x19c>
10ffcf: 89 7d 0c mov %edi,0xc(%ebp)
10ffd2: 8b 7d b0 mov -0x50(%ebp),%edi
10ffd5: 8b 55 b4 mov -0x4c(%ebp),%edx
10ffd8: 8a 02 mov (%edx),%al
* 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] != '.')) {
10ffda: 3c 2e cmp $0x2e,%al
10ffdc: 0f 85 a0 00 00 00 jne 110082 <IMFS_eval_path+0x27a>
10ffe2: 8b 4d 08 mov 0x8(%ebp),%ecx
10ffe5: 80 7c 19 01 2e cmpb $0x2e,0x1(%ecx,%ebx,1)
10ffea: 0f 85 92 00 00 00 jne 110082 <IMFS_eval_path+0x27a>
*pathloc = node->info.directory.mt_fs->mt_fs_root;
return (*pathloc->ops->evalpath_h)( &pathname[i],
pathnamelen,
flags, pathloc );
}
i += 2;
10fff0: 83 c3 02 add $0x2,%ebx
pathnamelen -= 2;
10fff3: 83 6d 0c 02 subl $0x2,0xc(%ebp)
node = node->Parent;
10fff7: 8b 7f 08 mov 0x8(%edi),%edi
10fffa: e9 0d ff ff ff jmp 10ff0c <IMFS_eval_path+0x104>
10ffff: 90 nop
*
* NOTE: The behavior of stat() on a mount point appears to be questionable.
*/
if ( node->type == IMFS_DIRECTORY ) {
if ( node->info.directory.mt_fs != NULL ) {
110000: 8b 70 5c mov 0x5c(%eax),%esi
110003: 85 f6 test %esi,%esi
110005: 0f 84 58 fe ff ff je 10fe63 <IMFS_eval_path+0x5b> <== ALWAYS TAKEN
*pathloc = node->info.directory.mt_fs->mt_fs_root;
11000b: 83 c6 1c add $0x1c,%esi <== NOT EXECUTED
11000e: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
110013: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
110016: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
110018: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
11001b: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
11001e: 8b 41 0c mov 0xc(%ecx),%eax <== NOT EXECUTED
110021: 51 push %ecx <== NOT EXECUTED
110022: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
110025: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
110028: 01 d1 add %edx,%ecx <== NOT EXECUTED
11002a: 51 push %ecx <== NOT EXECUTED
11002b: 29 d3 sub %edx,%ebx <== NOT EXECUTED
11002d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
110030: 01 da add %ebx,%edx <== NOT EXECUTED
110032: 52 push %edx <== NOT EXECUTED
110033: ff 10 call *(%eax) <== NOT EXECUTED
110035: 89 c6 mov %eax,%esi <== NOT EXECUTED
110037: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11003a: e9 1d ff ff ff jmp 10ff5c <IMFS_eval_path+0x154> <== NOT EXECUTED
11003f: 90 nop <== NOT EXECUTED
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
IMFS_evaluate_hard_link( pathloc, 0 );
110040: 83 ec 08 sub $0x8,%esp
110043: 6a 00 push $0x0
110045: ff 75 14 pushl 0x14(%ebp)
110048: e8 c3 fc ff ff call 10fd10 <IMFS_evaluate_hard_link>
node = pathloc->node_access;
11004d: 8b 55 14 mov 0x14(%ebp),%edx
110050: 8b 3a mov (%edx),%edi
if ( !node )
110052: 83 c4 10 add $0x10,%esp
110055: 85 ff test %edi,%edi
110057: 74 62 je 1100bb <IMFS_eval_path+0x2b3> <== NEVER TAKEN
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_sym_link( pathloc, 0 );
node = pathloc->node_access;
110059: 8b 47 4c mov 0x4c(%edi),%eax
11005c: e9 80 fe ff ff jmp 10fee1 <IMFS_eval_path+0xd9>
110061: 8d 76 00 lea 0x0(%esi),%esi
*/
node = IMFS_find_match_in_dir( node, token );
if ( !node )
rtems_set_errno_and_return_minus_one( ENOENT );
110064: e8 d7 3d 00 00 call 113e40 <__errno>
110069: c7 00 02 00 00 00 movl $0x2,(%eax)
11006f: be ff ff ff ff mov $0xffffffff,%esi
110074: e9 e3 fe ff ff jmp 10ff5c <IMFS_eval_path+0x154>
110079: 8d 76 00 lea 0x0(%esi),%esi
11007c: 89 7d 0c mov %edi,0xc(%ebp)
11007f: 8b 7d b0 mov -0x50(%ebp),%edi
* path.
*/
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
IMFS_skip_separator( pathname, &pathnamelen, &i);
if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
110082: 8b 77 5c mov 0x5c(%edi),%esi
110085: 83 c6 1c add $0x1c,%esi
110088: b9 05 00 00 00 mov $0x5,%ecx
11008d: 8b 7d 14 mov 0x14(%ebp),%edi
110090: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalpath_h)( &pathname[i],
110092: 8b 55 14 mov 0x14(%ebp),%edx
110095: 8b 42 0c mov 0xc(%edx),%eax
110098: 52 push %edx
110099: ff 75 10 pushl 0x10(%ebp)
11009c: ff 75 0c pushl 0xc(%ebp)
11009f: ff 75 b4 pushl -0x4c(%ebp)
1100a2: ff 10 call *(%eax)
1100a4: 89 c6 mov %eax,%esi
1100a6: 83 c4 10 add $0x10,%esp
1100a9: e9 ae fe ff ff jmp 10ff5c <IMFS_eval_path+0x154>
1100ae: 66 90 xchg %ax,%ax
1100b0: 89 7d 0c mov %edi,0xc(%ebp) <== NOT EXECUTED
1100b3: 8b 7d b0 mov -0x50(%ebp),%edi <== NOT EXECUTED
1100b6: e9 1f ff ff ff jmp 10ffda <IMFS_eval_path+0x1d2> <== NOT EXECUTED
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
1100bb: e8 80 3d 00 00 call 113e40 <__errno>
1100c0: c7 00 14 00 00 00 movl $0x14,(%eax)
1100c6: be ff ff ff ff mov $0xffffffff,%esi
1100cb: e9 8c fe ff ff jmp 10ff5c <IMFS_eval_path+0x154>
if ( !node )
rtems_set_errno_and_return_minus_one( ENOTDIR );
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_sym_link( pathloc, 0 );
1100d0: 83 ec 08 sub $0x8,%esp
1100d3: 6a 00 push $0x0
1100d5: ff 75 14 pushl 0x14(%ebp)
1100d8: e8 8f fc ff ff call 10fd6c <IMFS_evaluate_sym_link>
1100dd: 89 c6 mov %eax,%esi
node = pathloc->node_access;
1100df: 8b 4d 14 mov 0x14(%ebp),%ecx
1100e2: 8b 39 mov (%ecx),%edi
if ( result == -1 )
1100e4: 83 c4 10 add $0x10,%esp
1100e7: 83 f8 ff cmp $0xffffffff,%eax
1100ea: 0f 85 69 ff ff ff jne 110059 <IMFS_eval_path+0x251> <== ALWAYS TAKEN
1100f0: e9 67 fe ff ff jmp 10ff5c <IMFS_eval_path+0x154> <== NOT EXECUTED
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
*pathloc = pathloc->mt_entry->mt_point_node;
1100f5: 8d 72 08 lea 0x8(%edx),%esi
1100f8: b9 05 00 00 00 mov $0x5,%ecx
1100fd: 8b 7d 14 mov 0x14(%ebp),%edi
110100: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
110102: 8b 55 e4 mov -0x1c(%ebp),%edx
110105: 8b 4d 14 mov 0x14(%ebp),%ecx
110108: 8b 41 0c mov 0xc(%ecx),%eax
11010b: 51 push %ecx
11010c: ff 75 10 pushl 0x10(%ebp)
11010f: 8b 4d 0c mov 0xc(%ebp),%ecx
110112: 01 d1 add %edx,%ecx
110114: 51 push %ecx
110115: 29 d3 sub %edx,%ebx
110117: 8b 55 08 mov 0x8(%ebp),%edx
11011a: 01 da add %ebx,%edx
11011c: 52 push %edx
11011d: ff 10 call *(%eax)
11011f: 89 c6 mov %eax,%esi
110121: 83 c4 10 add $0x10,%esp
110124: e9 33 fe ff ff jmp 10ff5c <IMFS_eval_path+0x154>
char token[ IMFS_NAME_MAX + 1 ];
IMFS_jnode_t *node;
int result;
if ( !rtems_libio_is_valid_perms( flags ) ) {
assert( 0 );
110129: 68 ba 15 12 00 push $0x1215ba <== NOT EXECUTED
11012e: 68 94 1c 12 00 push $0x121c94 <== NOT EXECUTED
110133: 68 08 02 00 00 push $0x208 <== NOT EXECUTED
110138: 68 a4 1c 12 00 push $0x121ca4 <== NOT EXECUTED
11013d: e8 62 81 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
001101f0 <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 */
)
{
1101f0: 55 push %ebp
1101f1: 89 e5 mov %esp,%ebp
1101f3: 57 push %edi
1101f4: 56 push %esi
1101f5: 53 push %ebx
1101f6: 83 ec 4c sub $0x4c,%esp
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
1101f9: 8b 45 0c mov 0xc(%ebp),%eax
1101fc: 8b 18 mov (%eax),%ebx
/*
* Get the path length.
*/
pathlen = strlen( path );
1101fe: 31 c0 xor %eax,%eax
110200: b9 ff ff ff ff mov $0xffffffff,%ecx
110205: 8b 7d 08 mov 0x8(%ebp),%edi
110208: f2 ae repnz scas %es:(%edi),%al
11020a: f7 d1 not %ecx
11020c: 8d 71 ff lea -0x1(%ecx),%esi
11020f: 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 );
110216: 8d 55 e4 lea -0x1c(%ebp),%edx
110219: 52 push %edx
11021a: 8d 4d c3 lea -0x3d(%ebp),%ecx
11021d: 51 push %ecx
11021e: 56 push %esi
11021f: 8b 45 08 mov 0x8(%ebp),%eax
110222: 03 45 b4 add -0x4c(%ebp),%eax
110225: 50 push %eax
110226: e8 49 06 00 00 call 110874 <IMFS_get_token>
11022b: 89 c7 mov %eax,%edi
pathlen -= len;
11022d: 8b 55 e4 mov -0x1c(%ebp),%edx
i += len;
if ( !pathloc->node_access )
110230: 8b 4d 0c mov 0xc(%ebp),%ecx
110233: 8b 01 mov (%ecx),%eax
110235: 83 c4 10 add $0x10,%esp
110238: 85 c0 test %eax,%eax
11023a: 0f 84 e8 00 00 00 je 110328 <IMFS_evaluate_for_make+0x138><== NEVER TAKEN
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
110240: 85 ff test %edi,%edi
110242: 75 1c jne 110260 <IMFS_evaluate_for_make+0x70>
pathloc->node_access = node;
}
break;
case IMFS_NO_MORE_PATH:
rtems_set_errno_and_return_minus_one( EEXIST );
110244: e8 f7 3b 00 00 call 113e40 <__errno>
110249: c7 00 11 00 00 00 movl $0x11,(%eax)
11024f: bb ff ff ff ff mov $0xffffffff,%ebx
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
110254: 89 d8 mov %ebx,%eax
110256: 8d 65 f4 lea -0xc(%ebp),%esp
110259: 5b pop %ebx
11025a: 5e pop %esi
11025b: 5f pop %edi
11025c: c9 leave
11025d: c3 ret
11025e: 66 90 xchg %ax,%ax
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
110260: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
110264: 0f 84 d6 00 00 00 je 110340 <IMFS_evaluate_for_make+0x150>
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
pathlen -= len;
11026a: 29 d6 sub %edx,%esi
i += len;
11026c: 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;
11026f: 89 c3 mov %eax,%ebx
switch( type ) {
110271: 83 ff 02 cmp $0x2,%edi
110274: 0f 84 86 00 00 00 je 110300 <IMFS_evaluate_for_make+0x110>
11027a: 76 24 jbe 1102a0 <IMFS_evaluate_for_make+0xb0>
11027c: 83 ff 03 cmp $0x3,%edi
11027f: 74 2b je 1102ac <IMFS_evaluate_for_make+0xbc>
110281: 83 ff 04 cmp $0x4,%edi
110284: 75 90 jne 110216 <IMFS_evaluate_for_make+0x26><== NEVER TAKEN
case IMFS_NO_MORE_PATH:
rtems_set_errno_and_return_minus_one( EEXIST );
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
110286: e8 b5 3b 00 00 call 113e40 <__errno>
11028b: c7 00 5b 00 00 00 movl $0x5b,(%eax)
110291: bb ff ff ff ff mov $0xffffffff,%ebx
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
110296: 89 d8 mov %ebx,%eax
110298: 8d 65 f4 lea -0xc(%ebp),%esp
11029b: 5b pop %ebx
11029c: 5e pop %esi
11029d: 5f pop %edi
11029e: c9 leave
11029f: c3 ret
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
switch( type ) {
1102a0: 85 ff test %edi,%edi
1102a2: 74 a0 je 110244 <IMFS_evaluate_for_make+0x54><== NEVER TAKEN
1102a4: e9 6d ff ff ff jmp 110216 <IMFS_evaluate_for_make+0x26>
1102a9: 8d 76 00 lea 0x0(%esi),%esi
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
1102ac: 8b 40 4c mov 0x4c(%eax),%eax
1102af: 83 f8 03 cmp $0x3,%eax
1102b2: 0f 84 fd 01 00 00 je 1104b5 <IMFS_evaluate_for_make+0x2c5>
result = IMFS_evaluate_link( pathloc, 0 );
if ( result == -1 )
return -1;
} else if ( node->type == IMFS_SYM_LINK ) {
1102b8: 83 f8 04 cmp $0x4,%eax
1102bb: 0f 84 13 02 00 00 je 1104d4 <IMFS_evaluate_for_make+0x2e4>
if ( result == -1 )
return -1;
}
node = pathloc->node_access;
if ( !node )
1102c1: 85 db test %ebx,%ebx
1102c3: 0f 84 d7 01 00 00 je 1104a0 <IMFS_evaluate_for_make+0x2b0><== NEVER TAKEN
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
1102c9: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
1102cd: 0f 85 cd 01 00 00 jne 1104a0 <IMFS_evaluate_for_make+0x2b0>
/*
* Find the token name in the present location.
*/
node = IMFS_find_match_in_dir( node, token );
1102d3: 83 ec 08 sub $0x8,%esp
1102d6: 8d 4d c3 lea -0x3d(%ebp),%ecx
1102d9: 51 push %ecx
1102da: 53 push %ebx
1102db: e8 04 05 00 00 call 1107e4 <IMFS_find_match_in_dir>
1102e0: 89 c3 mov %eax,%ebx
/*
* If there is no node we have found the name of the node we
* wish to create.
*/
if ( ! node )
1102e2: 83 c4 10 add $0x10,%esp
1102e5: 85 c0 test %eax,%eax
1102e7: 0f 84 eb 00 00 00 je 1103d8 <IMFS_evaluate_for_make+0x1e8>
done = true;
else {
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
1102ed: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
1102f1: 74 75 je 110368 <IMFS_evaluate_for_make+0x178>
i += 2;
pathlen -= 2;
node = node->Parent;
}
pathloc->node_access = node;
1102f3: 8b 4d 0c mov 0xc(%ebp),%ecx
1102f6: 89 19 mov %ebx,(%ecx)
1102f8: e9 19 ff ff ff jmp 110216 <IMFS_evaluate_for_make+0x26>
1102fd: 8d 76 00 lea 0x0(%esi),%esi
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
110300: 8b 15 24 50 12 00 mov 0x125024,%edx
110306: 39 42 18 cmp %eax,0x18(%edx)
110309: 0f 84 07 ff ff ff je 110216 <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){
11030f: 8b 4d 0c mov 0xc(%ebp),%ecx
110312: 8b 51 10 mov 0x10(%ecx),%edx
110315: 39 42 1c cmp %eax,0x1c(%edx)
110318: 0f 84 d5 01 00 00 je 1104f3 <IMFS_evaluate_for_make+0x303>
} else {
*pathloc = pathloc->mt_entry->mt_point_node;
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
}
} else {
if ( !node->Parent )
11031e: 8b 58 08 mov 0x8(%eax),%ebx
110321: 85 db test %ebx,%ebx
110323: 75 ce jne 1102f3 <IMFS_evaluate_for_make+0x103>
110325: 8d 76 00 lea 0x0(%esi),%esi
* Verify there is not any invalid stuff at the end of the name.
*/
for( ; path[i] != '\0'; i++) {
if ( !IMFS_is_separator( path[ i ] ) )
rtems_set_errno_and_return_minus_one( ENOENT );
110328: e8 13 3b 00 00 call 113e40 <__errno>
11032d: c7 00 02 00 00 00 movl $0x2,(%eax)
110333: bb ff ff ff ff mov $0xffffffff,%ebx
110338: e9 17 ff ff ff jmp 110254 <IMFS_evaluate_for_make+0x64>
11033d: 8d 76 00 lea 0x0(%esi),%esi
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
110340: 83 ec 08 sub $0x8,%esp
110343: 6a 01 push $0x1
110345: ff 75 0c pushl 0xc(%ebp)
110348: 89 55 a8 mov %edx,-0x58(%ebp)
11034b: e8 84 f9 ff ff call 10fcd4 <IMFS_evaluate_permission>
110350: 83 c4 10 add $0x10,%esp
110353: 85 c0 test %eax,%eax
110355: 8b 55 a8 mov -0x58(%ebp),%edx
110358: 0f 84 2d 01 00 00 je 11048b <IMFS_evaluate_for_make+0x29b>
11035e: 8b 4d 0c mov 0xc(%ebp),%ecx
110361: 8b 01 mov (%ecx),%eax
110363: e9 02 ff ff ff jmp 11026a <IMFS_evaluate_for_make+0x7a>
*/
if ( ! node )
done = true;
else {
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
110368: 8b 40 5c mov 0x5c(%eax),%eax
11036b: 85 c0 test %eax,%eax
11036d: 74 84 je 1102f3 <IMFS_evaluate_for_make+0x103>
11036f: 8b 7d 08 mov 0x8(%ebp),%edi
110372: 03 7d b4 add -0x4c(%ebp),%edi
110375: 89 5d ac mov %ebx,-0x54(%ebp)
110378: 8b 5d b4 mov -0x4c(%ebp),%ebx
11037b: eb 18 jmp 110395 <IMFS_evaluate_for_make+0x1a5>
11037d: 8d 76 00 lea 0x0(%esi),%esi
const char *path, /* IN */
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
110380: 8a 07 mov (%edi),%al
110382: 84 c0 test %al,%al
110384: 0f 84 92 00 00 00 je 11041c <IMFS_evaluate_for_make+0x22c><== NEVER TAKEN
11038a: 47 inc %edi
11038b: 85 f6 test %esi,%esi
11038d: 0f 84 b9 00 00 00 je 11044c <IMFS_evaluate_for_make+0x25c><== NEVER TAKEN
++(*index);
110393: 43 inc %ebx
--(*len);
110394: 4e dec %esi
110395: 89 7d b0 mov %edi,-0x50(%ebp)
const char *path, /* IN */
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
110398: 83 ec 0c sub $0xc,%esp
11039b: 0f be 07 movsbl (%edi),%eax
11039e: 50 push %eax
11039f: e8 08 91 ff ff call 1094ac <rtems_filesystem_is_separator>
1103a4: 83 c4 10 add $0x10,%esp
1103a7: 85 c0 test %eax,%eax
1103a9: 75 d5 jne 110380 <IMFS_evaluate_for_make+0x190>
1103ab: 89 5d b4 mov %ebx,-0x4c(%ebp)
1103ae: 8b 5d ac mov -0x54(%ebp),%ebx
1103b1: 8b 55 b0 mov -0x50(%ebp),%edx
1103b4: 8a 02 mov (%edx),%al
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] != '.')) {
1103b6: 3c 2e cmp $0x2e,%al
1103b8: 75 65 jne 11041f <IMFS_evaluate_for_make+0x22f>
1103ba: 8b 45 08 mov 0x8(%ebp),%eax
1103bd: 8b 4d b4 mov -0x4c(%ebp),%ecx
1103c0: 80 7c 08 01 2e cmpb $0x2e,0x1(%eax,%ecx,1)
1103c5: 75 58 jne 11041f <IMFS_evaluate_for_make+0x22f><== NEVER TAKEN
*pathloc = node->info.directory.mt_fs->mt_fs_root;
return (*pathloc->ops->evalformake_h)( &path[i],
pathloc,
name );
}
i += 2;
1103c7: 83 45 b4 02 addl $0x2,-0x4c(%ebp)
pathlen -= 2;
1103cb: 83 ee 02 sub $0x2,%esi
node = node->Parent;
1103ce: 8b 5b 08 mov 0x8(%ebx),%ebx
1103d1: e9 1d ff ff ff jmp 1102f3 <IMFS_evaluate_for_make+0x103>
1103d6: 66 90 xchg %ax,%ax
case IMFS_CURRENT_DIR:
break;
}
}
*name = &path[ i - len ];
1103d8: 8b 45 b4 mov -0x4c(%ebp),%eax
1103db: 2b 45 e4 sub -0x1c(%ebp),%eax
1103de: 03 45 08 add 0x8(%ebp),%eax
1103e1: 8b 55 10 mov 0x10(%ebp),%edx
1103e4: 89 02 mov %eax,(%edx)
/*
* 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++) {
1103e6: 8b 55 08 mov 0x8(%ebp),%edx
1103e9: 8b 4d b4 mov -0x4c(%ebp),%ecx
1103ec: 8a 04 0a mov (%edx,%ecx,1),%al
1103ef: 84 c0 test %al,%al
1103f1: 74 65 je 110458 <IMFS_evaluate_for_make+0x268>
1103f3: 89 d3 mov %edx,%ebx
1103f5: 01 cb add %ecx,%ebx
1103f7: eb 0b jmp 110404 <IMFS_evaluate_for_make+0x214>
1103f9: 8d 76 00 lea 0x0(%esi),%esi
1103fc: 8a 43 01 mov 0x1(%ebx),%al
1103ff: 43 inc %ebx
110400: 84 c0 test %al,%al
110402: 74 54 je 110458 <IMFS_evaluate_for_make+0x268>
if ( !IMFS_is_separator( path[ i ] ) )
110404: 83 ec 0c sub $0xc,%esp
110407: 0f be c0 movsbl %al,%eax
11040a: 50 push %eax
11040b: e8 9c 90 ff ff call 1094ac <rtems_filesystem_is_separator>
110410: 83 c4 10 add $0x10,%esp
110413: 85 c0 test %eax,%eax
110415: 75 e5 jne 1103fc <IMFS_evaluate_for_make+0x20c>
110417: e9 0c ff ff ff jmp 110328 <IMFS_evaluate_for_make+0x138>
11041c: 8b 5d ac mov -0x54(%ebp),%ebx <== NOT EXECUTED
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] != '.')) {
*pathloc = node->info.directory.mt_fs->mt_fs_root;
11041f: 8b 73 5c mov 0x5c(%ebx),%esi
110422: 83 c6 1c add $0x1c,%esi
110425: b9 05 00 00 00 mov $0x5,%ecx
11042a: 8b 7d 0c mov 0xc(%ebp),%edi
11042d: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalformake_h)( &path[i],
11042f: 57 push %edi
110430: 8b 55 0c mov 0xc(%ebp),%edx
110433: 8b 42 0c mov 0xc(%edx),%eax
110436: ff 75 10 pushl 0x10(%ebp)
110439: 52 push %edx
11043a: ff 75 b0 pushl -0x50(%ebp)
11043d: ff 50 04 call *0x4(%eax)
110440: 89 c3 mov %eax,%ebx
110442: 83 c4 10 add $0x10,%esp
110445: e9 0a fe ff ff jmp 110254 <IMFS_evaluate_for_make+0x64>
11044a: 66 90 xchg %ax,%ax
11044c: 89 5d b4 mov %ebx,-0x4c(%ebp) <== NOT EXECUTED
11044f: 8b 5d ac mov -0x54(%ebp),%ebx <== NOT EXECUTED
110452: e9 5f ff ff ff jmp 1103b6 <IMFS_evaluate_for_make+0x1c6><== NOT EXECUTED
110457: 90 nop <== NOT EXECUTED
/*
* Verify we can execute and write to this directory.
*/
result = IMFS_Set_handlers( pathloc );
110458: 83 ec 0c sub $0xc,%esp
11045b: ff 75 0c pushl 0xc(%ebp)
11045e: e8 15 f8 ff ff call 10fc78 <IMFS_Set_handlers>
110463: 89 c3 mov %eax,%ebx
/*
* The returned node must be a directory
*/
node = pathloc->node_access;
110465: 8b 4d 0c mov 0xc(%ebp),%ecx
110468: 8b 01 mov (%ecx),%eax
11046a: 83 c4 10 add $0x10,%esp
11046d: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
110471: 75 2d jne 1104a0 <IMFS_evaluate_for_make+0x2b0><== NEVER TAKEN
/*
* We must have Write and execute permission on the returned node.
*/
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )
110473: 83 ec 08 sub $0x8,%esp
110476: 6a 03 push $0x3
110478: ff 75 0c pushl 0xc(%ebp)
11047b: e8 54 f8 ff ff call 10fcd4 <IMFS_evaluate_permission>
110480: 83 c4 10 add $0x10,%esp
110483: 85 c0 test %eax,%eax
110485: 0f 85 c9 fd ff ff jne 110254 <IMFS_evaluate_for_make+0x64>
rtems_set_errno_and_return_minus_one( EACCES );
11048b: e8 b0 39 00 00 call 113e40 <__errno>
110490: c7 00 0d 00 00 00 movl $0xd,(%eax)
110496: bb ff ff ff ff mov $0xffffffff,%ebx
11049b: e9 b4 fd ff ff jmp 110254 <IMFS_evaluate_for_make+0x64>
/*
* The returned node must be a directory
*/
node = pathloc->node_access;
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
1104a0: e8 9b 39 00 00 call 113e40 <__errno>
1104a5: c7 00 14 00 00 00 movl $0x14,(%eax)
1104ab: bb ff ff ff ff mov $0xffffffff,%ebx
1104b0: e9 9f fd ff ff jmp 110254 <IMFS_evaluate_for_make+0x64>
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
result = IMFS_evaluate_link( pathloc, 0 );
1104b5: 83 ec 08 sub $0x8,%esp
1104b8: 6a 00 push $0x0
1104ba: ff 75 0c pushl 0xc(%ebp)
1104bd: e8 82 fc ff ff call 110144 <IMFS_evaluate_link>
if ( result == -1 )
1104c2: 83 c4 10 add $0x10,%esp
1104c5: 83 f8 ff cmp $0xffffffff,%eax
1104c8: 74 58 je 110522 <IMFS_evaluate_for_make+0x332><== NEVER TAKEN
1104ca: 8b 45 0c mov 0xc(%ebp),%eax
1104cd: 8b 18 mov (%eax),%ebx
1104cf: e9 ed fd ff ff jmp 1102c1 <IMFS_evaluate_for_make+0xd1>
return -1;
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_link( pathloc, 0 );
1104d4: 83 ec 08 sub $0x8,%esp
1104d7: 6a 00 push $0x0
1104d9: ff 75 0c pushl 0xc(%ebp)
1104dc: e8 63 fc ff ff call 110144 <IMFS_evaluate_link>
if ( result == -1 )
1104e1: 83 c4 10 add $0x10,%esp
1104e4: 83 f8 ff cmp $0xffffffff,%eax
1104e7: 74 39 je 110522 <IMFS_evaluate_for_make+0x332><== NEVER TAKEN
1104e9: 8b 55 0c mov 0xc(%ebp),%edx
1104ec: 8b 1a mov (%edx),%ebx
1104ee: e9 ce fd ff ff jmp 1102c1 <IMFS_evaluate_for_make+0xd1>
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break;
} else {
*pathloc = pathloc->mt_entry->mt_point_node;
1104f3: 8d 72 08 lea 0x8(%edx),%esi
1104f6: b9 05 00 00 00 mov $0x5,%ecx
1104fb: 8b 7d 0c mov 0xc(%ebp),%edi
1104fe: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
110500: 52 push %edx
110501: 8b 55 0c mov 0xc(%ebp),%edx
110504: 8b 42 0c mov 0xc(%edx),%eax
110507: ff 75 10 pushl 0x10(%ebp)
11050a: 52 push %edx
11050b: 8b 55 b4 mov -0x4c(%ebp),%edx
11050e: 2b 55 e4 sub -0x1c(%ebp),%edx
110511: 03 55 08 add 0x8(%ebp),%edx
110514: 52 push %edx
110515: ff 50 04 call *0x4(%eax)
110518: 89 c3 mov %eax,%ebx
11051a: 83 c4 10 add $0x10,%esp
11051d: e9 32 fd ff ff jmp 110254 <IMFS_evaluate_for_make+0x64>
110522: 89 c3 mov %eax,%ebx <== NOT EXECUTED
110524: e9 2b fd ff ff jmp 110254 <IMFS_evaluate_for_make+0x64><== NOT EXECUTED
0010fd10 <IMFS_evaluate_hard_link>:
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
10fd10: 55 push %ebp
10fd11: 89 e5 mov %esp,%ebp
10fd13: 53 push %ebx
10fd14: 83 ec 04 sub $0x4,%esp
10fd17: 8b 5d 08 mov 0x8(%ebp),%ebx
IMFS_jnode_t *jnode = node->node_access;
10fd1a: 8b 03 mov (%ebx),%eax
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_HARD_LINK )
10fd1c: 83 78 4c 03 cmpl $0x3,0x4c(%eax)
10fd20: 75 3c jne 10fd5e <IMFS_evaluate_hard_link+0x4e><== NEVER TAKEN
/*
* Set the hard link value and the handlers.
*/
node->node_access = jnode->info.hard_link.link_node;
10fd22: 8b 40 50 mov 0x50(%eax),%eax
10fd25: 89 03 mov %eax,(%ebx)
IMFS_Set_handlers( node );
10fd27: 83 ec 0c sub $0xc,%esp
10fd2a: 53 push %ebx
10fd2b: e8 48 ff ff ff call 10fc78 <IMFS_Set_handlers>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
10fd30: 58 pop %eax
10fd31: 5a pop %edx
10fd32: ff 75 0c pushl 0xc(%ebp)
10fd35: 53 push %ebx
10fd36: e8 99 ff ff ff call 10fcd4 <IMFS_evaluate_permission>
10fd3b: 83 c4 10 add $0x10,%esp
10fd3e: 85 c0 test %eax,%eax
10fd40: 74 0a je 10fd4c <IMFS_evaluate_hard_link+0x3c><== NEVER TAKEN
10fd42: 31 c0 xor %eax,%eax
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
10fd44: 8b 5d fc mov -0x4(%ebp),%ebx
10fd47: c9 leave
10fd48: c3 ret
10fd49: 8d 76 00 lea 0x0(%esi),%esi
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
rtems_set_errno_and_return_minus_one( EACCES );
10fd4c: e8 ef 40 00 00 call 113e40 <__errno> <== NOT EXECUTED
10fd51: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED
10fd57: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
10fd5c: eb e6 jmp 10fd44 <IMFS_evaluate_hard_link+0x34><== NOT EXECUTED
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_HARD_LINK )
rtems_fatal_error_occurred (0xABCD0000);
10fd5e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fd61: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED
10fd66: e8 89 c5 ff ff call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
00110144 <IMFS_evaluate_link>:
int IMFS_evaluate_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
110144: 55 push %ebp
110145: 89 e5 mov %esp,%ebp
110147: 57 push %edi
110148: 56 push %esi
110149: 53 push %ebx
11014a: 83 ec 0c sub $0xc,%esp
11014d: 8b 75 08 mov 0x8(%ebp),%esi
110150: 8b 7d 0c mov 0xc(%ebp),%edi
110153: 8b 15 24 50 12 00 mov 0x125024,%edx
110159: eb 0e jmp 110169 <IMFS_evaluate_link+0x25>
11015b: 90 nop
*/
if ( jnode->type == IMFS_HARD_LINK )
result = IMFS_evaluate_hard_link( node, flags );
else if (jnode->type == IMFS_SYM_LINK )
11015c: 83 f8 04 cmp $0x4,%eax
11015f: 74 53 je 1101b4 <IMFS_evaluate_link+0x70>
result = IMFS_evaluate_sym_link( node, flags );
} while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) ||
( jnode->type == IMFS_HARD_LINK ) ) );
110161: 83 e8 03 sub $0x3,%eax
110164: 83 f8 01 cmp $0x1,%eax
110167: 77 3a ja 1101a3 <IMFS_evaluate_link+0x5f><== ALWAYS TAKEN
{
IMFS_jnode_t *jnode;
int result = 0;
do {
jnode = node->node_access;
110169: 8b 1e mov (%esi),%ebx
/*
* Increment and check the link counter.
*/
rtems_filesystem_link_counts ++;
11016b: 8b 42 30 mov 0x30(%edx),%eax
11016e: 40 inc %eax
11016f: 66 89 42 30 mov %ax,0x30(%edx)
if ( rtems_filesystem_link_counts > MAXSYMLINK ) {
110173: 66 83 f8 05 cmp $0x5,%ax
110177: 77 57 ja 1101d0 <IMFS_evaluate_link+0x8c>
/*
* Follow the Link node.
*/
if ( jnode->type == IMFS_HARD_LINK )
110179: 8b 43 4c mov 0x4c(%ebx),%eax
11017c: 83 f8 03 cmp $0x3,%eax
11017f: 75 db jne 11015c <IMFS_evaluate_link+0x18>
result = IMFS_evaluate_hard_link( node, flags );
110181: 83 ec 08 sub $0x8,%esp
110184: 57 push %edi
110185: 56 push %esi
110186: e8 85 fb ff ff call 10fd10 <IMFS_evaluate_hard_link>
11018b: 83 c4 10 add $0x10,%esp
else if (jnode->type == IMFS_SYM_LINK )
result = IMFS_evaluate_sym_link( node, flags );
} while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) ||
( jnode->type == IMFS_HARD_LINK ) ) );
11018e: 85 c0 test %eax,%eax
110190: 75 33 jne 1101c5 <IMFS_evaluate_link+0x81><== NEVER TAKEN
110192: 8b 43 4c mov 0x4c(%ebx),%eax
110195: 8b 15 24 50 12 00 mov 0x125024,%edx
11019b: 83 e8 03 sub $0x3,%eax
11019e: 83 f8 01 cmp $0x1,%eax
1101a1: 76 c6 jbe 110169 <IMFS_evaluate_link+0x25><== ALWAYS TAKEN
1101a3: 31 c0 xor %eax,%eax
/*
* Clear link counter.
*/
rtems_filesystem_link_counts = 0;
1101a5: 66 c7 42 30 00 00 movw $0x0,0x30(%edx)
return result;
}
1101ab: 8d 65 f4 lea -0xc(%ebp),%esp
1101ae: 5b pop %ebx
1101af: 5e pop %esi
1101b0: 5f pop %edi
1101b1: c9 leave
1101b2: c3 ret
1101b3: 90 nop
if ( jnode->type == IMFS_HARD_LINK )
result = IMFS_evaluate_hard_link( node, flags );
else if (jnode->type == IMFS_SYM_LINK )
result = IMFS_evaluate_sym_link( node, flags );
1101b4: 83 ec 08 sub $0x8,%esp
1101b7: 57 push %edi
1101b8: 56 push %esi
1101b9: e8 ae fb ff ff call 10fd6c <IMFS_evaluate_sym_link>
1101be: 83 c4 10 add $0x10,%esp
} while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) ||
( jnode->type == IMFS_HARD_LINK ) ) );
1101c1: 85 c0 test %eax,%eax
1101c3: 74 cd je 110192 <IMFS_evaluate_link+0x4e>
1101c5: 8b 15 24 50 12 00 mov 0x125024,%edx
1101cb: eb d8 jmp 1101a5 <IMFS_evaluate_link+0x61>
1101cd: 8d 76 00 lea 0x0(%esi),%esi
* Increment and check the link counter.
*/
rtems_filesystem_link_counts ++;
if ( rtems_filesystem_link_counts > MAXSYMLINK ) {
rtems_filesystem_link_counts = 0;
1101d0: 66 c7 42 30 00 00 movw $0x0,0x30(%edx)
rtems_set_errno_and_return_minus_one( ELOOP );
1101d6: e8 65 3c 00 00 call 113e40 <__errno>
1101db: c7 00 5c 00 00 00 movl $0x5c,(%eax)
1101e1: b8 ff ff ff ff mov $0xffffffff,%eax
*/
rtems_filesystem_link_counts = 0;
return result;
}
1101e6: 8d 65 f4 lea -0xc(%ebp),%esp
1101e9: 5b pop %ebx
1101ea: 5e pop %esi
1101eb: 5f pop %edi
1101ec: c9 leave
1101ed: c3 ret
0010fcd4 <IMFS_evaluate_permission>:
int IMFS_evaluate_permission(
rtems_filesystem_location_info_t *node,
int flags
)
{
10fcd4: 55 push %ebp
10fcd5: 89 e5 mov %esp,%ebp
10fcd7: 83 ec 08 sub $0x8,%esp
10fcda: 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 ) )
10fcdd: a9 f8 ff ff ff test $0xfffffff8,%eax
10fce2: 75 18 jne 10fcfc <IMFS_evaluate_permission+0x28><== NEVER TAKEN
/*
* If all of the flags are set we have permission
* to do this.
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
10fce4: c1 e0 06 shl $0x6,%eax
10fce7: 8b 55 08 mov 0x8(%ebp),%edx
10fcea: 8b 12 mov (%edx),%edx
10fcec: 8b 52 30 mov 0x30(%edx),%edx
10fcef: 21 c2 and %eax,%edx
10fcf1: 39 d0 cmp %edx,%eax
10fcf3: 0f 94 c0 sete %al
10fcf6: 0f b6 c0 movzbl %al,%eax
return 1;
return 0;
}
10fcf9: c9 leave
10fcfa: c3 ret
10fcfb: 90 nop
gid_t st_gid;
IMFS_jnode_t *jnode;
int flags_to_test;
if ( !rtems_libio_is_valid_perms( flags ) )
rtems_set_errno_and_return_minus_one( EPERM );
10fcfc: e8 3f 41 00 00 call 113e40 <__errno> <== NOT EXECUTED
10fd01: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED
10fd07: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
return 1;
return 0;
}
10fd0c: c9 leave <== NOT EXECUTED
10fd0d: c3 ret <== NOT EXECUTED
0010fd6c <IMFS_evaluate_sym_link>:
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
10fd6c: 55 push %ebp
10fd6d: 89 e5 mov %esp,%ebp
10fd6f: 57 push %edi
10fd70: 56 push %esi
10fd71: 53 push %ebx
10fd72: 83 ec 1c sub $0x1c,%esp
10fd75: 8b 5d 08 mov 0x8(%ebp),%ebx
10fd78: 8b 75 0c mov 0xc(%ebp),%esi
IMFS_jnode_t *jnode = node->node_access;
10fd7b: 8b 3b mov (%ebx),%edi
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
10fd7d: 83 7f 4c 04 cmpl $0x4,0x4c(%edi)
10fd81: 75 78 jne 10fdfb <IMFS_evaluate_sym_link+0x8f><== NEVER TAKEN
rtems_fatal_error_occurred (0xABCD0000);
if ( !jnode->Parent )
10fd83: 8b 47 08 mov 0x8(%edi),%eax
10fd86: 85 c0 test %eax,%eax
10fd88: 74 64 je 10fdee <IMFS_evaluate_sym_link+0x82><== NEVER TAKEN
/*
* Move the node_access to either the symbolic links parent or
* root depending on the symbolic links path.
*/
node->node_access = jnode->Parent;
10fd8a: 89 03 mov %eax,(%ebx)
rtems_filesystem_get_sym_start_loc(
10fd8c: 52 push %edx
10fd8d: 53 push %ebx
10fd8e: 8d 45 e4 lea -0x1c(%ebp),%eax
10fd91: 50 push %eax
10fd92: ff 77 50 pushl 0x50(%edi)
10fd95: e8 26 13 00 00 call 1110c0 <rtems_filesystem_get_sym_start_loc>
/*
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
10fd9a: 8b 57 50 mov 0x50(%edi),%edx
10fd9d: 03 55 e4 add -0x1c(%ebp),%edx
10fda0: 31 c0 xor %eax,%eax
10fda2: b9 ff ff ff ff mov $0xffffffff,%ecx
10fda7: 89 d7 mov %edx,%edi
10fda9: f2 ae repnz scas %es:(%edi),%al
10fdab: f7 d1 not %ecx
10fdad: 49 dec %ecx
10fdae: 53 push %ebx
10fdaf: 56 push %esi
10fdb0: 51 push %ecx
10fdb1: 52 push %edx
10fdb2: e8 51 00 00 00 call 10fe08 <IMFS_eval_path>
10fdb7: 89 c7 mov %eax,%edi
strlen( &jnode->info.sym_link.name[i] ),
flags,
node
);
IMFS_Set_handlers( node );
10fdb9: 83 c4 14 add $0x14,%esp
10fdbc: 53 push %ebx
10fdbd: e8 b6 fe ff ff call 10fc78 <IMFS_Set_handlers>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
10fdc2: 59 pop %ecx
10fdc3: 58 pop %eax
10fdc4: 56 push %esi
10fdc5: 53 push %ebx
10fdc6: e8 09 ff ff ff call 10fcd4 <IMFS_evaluate_permission>
10fdcb: 83 c4 10 add $0x10,%esp
10fdce: 85 c0 test %eax,%eax
10fdd0: 74 0a je 10fddc <IMFS_evaluate_sym_link+0x70><== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EACCES );
return result;
}
10fdd2: 89 f8 mov %edi,%eax
10fdd4: 8d 65 f4 lea -0xc(%ebp),%esp
10fdd7: 5b pop %ebx
10fdd8: 5e pop %esi
10fdd9: 5f pop %edi
10fdda: c9 leave
10fddb: c3 ret
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
rtems_set_errno_and_return_minus_one( EACCES );
10fddc: e8 5f 40 00 00 call 113e40 <__errno> <== NOT EXECUTED
10fde1: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED
10fde7: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
10fdec: eb e4 jmp 10fdd2 <IMFS_evaluate_sym_link+0x66><== NOT EXECUTED
if ( jnode->type != IMFS_SYM_LINK )
rtems_fatal_error_occurred (0xABCD0000);
if ( !jnode->Parent )
rtems_fatal_error_occurred( 0xBAD00000 );
10fdee: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fdf1: 68 00 00 d0 ba push $0xbad00000 <== NOT EXECUTED
10fdf6: e8 f9 c4 ff ff call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
rtems_fatal_error_occurred (0xABCD0000);
10fdfb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fdfe: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED
10fe03: e8 ec c4 ff ff call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
001106a0 <IMFS_fifo_close>:
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
1106a0: 55 push %ebp <== NOT EXECUTED
1106a1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1106a3: 57 push %edi <== NOT EXECUTED
1106a4: 56 push %esi <== NOT EXECUTED
1106a5: 53 push %ebx <== NOT EXECUTED
1106a6: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
1106a9: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
1106ac: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
int err = pipe_release(&JNODE2PIPE(jnode), iop);
1106af: 53 push %ebx <== NOT EXECUTED
1106b0: 8d 47 50 lea 0x50(%edi),%eax <== NOT EXECUTED
1106b3: 50 push %eax <== NOT EXECUTED
1106b4: e8 eb ee ff ff call 10f5a4 <pipe_release> <== NOT EXECUTED
1106b9: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (! err) {
1106bb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1106be: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
1106c1: 74 0d je 1106d0 <IMFS_fifo_close+0x30> <== 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)
free(jnode);
}
IMFS_FIFO_RETURN(err);
1106c3: 7c 37 jl 1106fc <IMFS_fifo_close+0x5c> <== NOT EXECUTED
}
1106c5: 89 f0 mov %esi,%eax <== NOT EXECUTED
1106c7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1106ca: 5b pop %ebx <== NOT EXECUTED
1106cb: 5e pop %esi <== NOT EXECUTED
1106cc: 5f pop %edi <== NOT EXECUTED
1106cd: c9 leave <== NOT EXECUTED
1106ce: c3 ret <== NOT EXECUTED
1106cf: 90 nop <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
if (! err) {
iop->flags &= ~LIBIO_FLAGS_OPEN;
1106d0: 81 63 14 ff fe ff ff andl $0xfffffeff,0x14(%ebx) <== 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)
1106d7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1106da: 57 push %edi <== NOT EXECUTED
1106db: e8 64 05 00 00 call 110c44 <rtems_libio_is_file_open><== NOT EXECUTED
1106e0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1106e3: 85 c0 test %eax,%eax <== NOT EXECUTED
1106e5: 75 de jne 1106c5 <IMFS_fifo_close+0x25> <== NOT EXECUTED
1106e7: 66 83 7f 34 00 cmpw $0x0,0x34(%edi) <== NOT EXECUTED
1106ec: 75 d7 jne 1106c5 <IMFS_fifo_close+0x25> <== NOT EXECUTED
free(jnode);
1106ee: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1106f1: 57 push %edi <== NOT EXECUTED
1106f2: e8 ed 7e ff ff call 1085e4 <free> <== NOT EXECUTED
1106f7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1106fa: eb c9 jmp 1106c5 <IMFS_fifo_close+0x25> <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
1106fc: e8 3f 37 00 00 call 113e40 <__errno> <== NOT EXECUTED
110701: f7 de neg %esi <== NOT EXECUTED
110703: 89 30 mov %esi,(%eax) <== NOT EXECUTED
110705: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
11070a: eb b9 jmp 1106c5 <IMFS_fifo_close+0x25> <== NOT EXECUTED
00110570 <IMFS_fifo_ioctl>:
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
110570: 55 push %ebp <== NOT EXECUTED
110571: 89 e5 mov %esp,%ebp <== NOT EXECUTED
110573: 53 push %ebx <== NOT EXECUTED
110574: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
110577: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
11057a: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
11057d: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
int err;
if (command == FIONBIO) {
110580: 81 fa 7e 66 04 80 cmp $0x8004667e,%edx <== NOT EXECUTED
110586: 74 1c je 1105a4 <IMFS_fifo_ioctl+0x34> <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
return 0;
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
110588: 50 push %eax <== NOT EXECUTED
110589: 51 push %ecx <== NOT EXECUTED
11058a: 52 push %edx <== NOT EXECUTED
11058b: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED
11058e: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED
110591: e8 0a ec ff ff call 10f1a0 <pipe_ioctl> <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
110596: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110599: 85 c0 test %eax,%eax <== NOT EXECUTED
11059b: 78 3e js 1105db <IMFS_fifo_ioctl+0x6b> <== NOT EXECUTED
}
11059d: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1105a0: c9 leave <== NOT EXECUTED
1105a1: c3 ret <== NOT EXECUTED
1105a2: 66 90 xchg %ax,%ax <== NOT EXECUTED
)
{
int err;
if (command == FIONBIO) {
if (buffer == NULL)
1105a4: 85 c9 test %ecx,%ecx <== NOT EXECUTED
1105a6: 74 20 je 1105c8 <IMFS_fifo_ioctl+0x58> <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
1105a8: 8b 11 mov (%ecx),%edx <== NOT EXECUTED
1105aa: 85 d2 test %edx,%edx <== NOT EXECUTED
1105ac: 74 0e je 1105bc <IMFS_fifo_ioctl+0x4c> <== NOT EXECUTED
iop->flags |= LIBIO_FLAGS_NO_DELAY;
1105ae: 83 48 14 01 orl $0x1,0x14(%eax) <== NOT EXECUTED
1105b2: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
IMFS_FIFO_RETURN(err);
}
1105b4: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1105b7: c9 leave <== NOT EXECUTED
1105b8: c3 ret <== NOT EXECUTED
1105b9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
iop->flags |= LIBIO_FLAGS_NO_DELAY;
else
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
1105bc: 83 60 14 fe andl $0xfffffffe,0x14(%eax) <== NOT EXECUTED
1105c0: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
IMFS_FIFO_RETURN(err);
}
1105c2: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1105c5: c9 leave <== NOT EXECUTED
1105c6: c3 ret <== NOT EXECUTED
1105c7: 90 nop <== NOT EXECUTED
)
{
int err;
if (command == FIONBIO) {
if (buffer == NULL)
1105c8: bb 0e 00 00 00 mov $0xe,%ebx <== NOT EXECUTED
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
IMFS_FIFO_RETURN(err);
1105cd: e8 6e 38 00 00 call 113e40 <__errno> <== NOT EXECUTED
1105d2: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
1105d4: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1105d9: eb c2 jmp 11059d <IMFS_fifo_ioctl+0x2d> <== NOT EXECUTED
1105db: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1105dd: f7 db neg %ebx <== NOT EXECUTED
1105df: eb ec jmp 1105cd <IMFS_fifo_ioctl+0x5d> <== NOT EXECUTED
0011052c <IMFS_fifo_lseek>:
rtems_off64_t IMFS_fifo_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
11052c: 55 push %ebp <== NOT EXECUTED
11052d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11052f: 53 push %ebx <== NOT EXECUTED
110530: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
110533: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
110536: 50 push %eax <== NOT EXECUTED
110537: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
11053a: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
11053d: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
110540: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED
110543: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED
110546: e8 f5 eb ff ff call 10f140 <pipe_lseek> <== NOT EXECUTED
11054b: 89 c3 mov %eax,%ebx <== NOT EXECUTED
11054d: 99 cltd <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
11054e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
110551: 85 d2 test %edx,%edx <== NOT EXECUTED
110553: 78 05 js 11055a <IMFS_fifo_lseek+0x2e> <== NOT EXECUTED
}
110555: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
110558: c9 leave <== NOT EXECUTED
110559: c3 ret <== NOT EXECUTED
rtems_off64_t offset,
int whence
)
{
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
IMFS_FIFO_RETURN(err);
11055a: e8 e1 38 00 00 call 113e40 <__errno> <== NOT EXECUTED
11055f: f7 db neg %ebx <== NOT EXECUTED
110561: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
110563: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
110568: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
11056d: eb e6 jmp 110555 <IMFS_fifo_lseek+0x29> <== NOT EXECUTED
0011070c <IMFS_fifo_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
11070c: 55 push %ebp
11070d: 89 e5 mov %esp,%ebp
11070f: 53 push %ebx
110710: 83 ec 0c sub $0xc,%esp
110713: 8b 45 08 mov 0x8(%ebp),%eax
IMFS_jnode_t *jnode = iop->file_info;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
110716: 50 push %eax
110717: 8b 40 38 mov 0x38(%eax),%eax
11071a: 83 c0 50 add $0x50,%eax
11071d: 50 push %eax
11071e: e8 95 ef ff ff call 10f6b8 <fifo_open>
110723: 89 c3 mov %eax,%ebx
IMFS_FIFO_RETURN(err);
110725: 83 c4 10 add $0x10,%esp
110728: 85 c0 test %eax,%eax
11072a: 78 07 js 110733 <IMFS_fifo_open+0x27> <== ALWAYS TAKEN
}
11072c: 89 d8 mov %ebx,%eax
11072e: 8b 5d fc mov -0x4(%ebp),%ebx
110731: c9 leave
110732: c3 ret
)
{
IMFS_jnode_t *jnode = iop->file_info;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
IMFS_FIFO_RETURN(err);
110733: e8 08 37 00 00 call 113e40 <__errno>
110738: f7 db neg %ebx
11073a: 89 18 mov %ebx,(%eax)
11073c: bb ff ff ff ff mov $0xffffffff,%ebx
110741: eb e9 jmp 11072c <IMFS_fifo_open+0x20>
00110644 <IMFS_fifo_read>:
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
110644: 55 push %ebp <== NOT EXECUTED
110645: 89 e5 mov %esp,%ebp <== NOT EXECUTED
110647: 56 push %esi <== NOT EXECUTED
110648: 53 push %ebx <== NOT EXECUTED
110649: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
11064c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
11064f: 8b 70 38 mov 0x38(%eax),%esi <== NOT EXECUTED
int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);
110652: 50 push %eax <== NOT EXECUTED
110653: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
110656: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
110659: ff 76 50 pushl 0x50(%esi) <== NOT EXECUTED
11065c: e8 83 ed ff ff call 10f3e4 <pipe_read> <== NOT EXECUTED
110661: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (err > 0)
110663: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110666: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
110669: 7e 21 jle 11068c <IMFS_fifo_read+0x48> <== NOT EXECUTED
IMFS_update_atime(jnode);
11066b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
11066e: 6a 00 push $0x0 <== NOT EXECUTED
110670: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
110673: 50 push %eax <== NOT EXECUTED
110674: e8 e7 7f ff ff call 108660 <gettimeofday> <== NOT EXECUTED
110679: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED
11067c: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED
11067f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
}
110682: 89 d8 mov %ebx,%eax <== NOT EXECUTED
110684: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
110687: 5b pop %ebx <== NOT EXECUTED
110688: 5e pop %esi <== NOT EXECUTED
110689: c9 leave <== NOT EXECUTED
11068a: c3 ret <== NOT EXECUTED
11068b: 90 nop <== NOT EXECUTED
int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);
if (err > 0)
IMFS_update_atime(jnode);
IMFS_FIFO_RETURN(err);
11068c: 74 f4 je 110682 <IMFS_fifo_read+0x3e> <== NOT EXECUTED
11068e: e8 ad 37 00 00 call 113e40 <__errno> <== NOT EXECUTED
110693: f7 db neg %ebx <== NOT EXECUTED
110695: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
110697: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
11069c: eb e4 jmp 110682 <IMFS_fifo_read+0x3e> <== NOT EXECUTED
001105e4 <IMFS_fifo_write>:
ssize_t IMFS_fifo_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
1105e4: 55 push %ebp <== NOT EXECUTED
1105e5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1105e7: 56 push %esi <== NOT EXECUTED
1105e8: 53 push %ebx <== NOT EXECUTED
1105e9: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
1105ec: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
1105ef: 8b 58 38 mov 0x38(%eax),%ebx <== NOT EXECUTED
int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);
1105f2: 50 push %eax <== NOT EXECUTED
1105f3: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1105f6: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1105f9: ff 73 50 pushl 0x50(%ebx) <== NOT EXECUTED
1105fc: e8 ff eb ff ff call 10f200 <pipe_write> <== NOT EXECUTED
110601: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (err > 0) {
110603: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110606: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
110609: 7e 25 jle 110630 <IMFS_fifo_write+0x4c> <== NOT EXECUTED
IMFS_mtime_ctime_update(jnode);
11060b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
11060e: 6a 00 push $0x0 <== NOT EXECUTED
110610: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
110613: 50 push %eax <== NOT EXECUTED
110614: e8 47 80 ff ff call 108660 <gettimeofday> <== NOT EXECUTED
110619: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED
11061c: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
11061f: 89 43 48 mov %eax,0x48(%ebx) <== NOT EXECUTED
110622: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
}
110625: 89 f0 mov %esi,%eax <== NOT EXECUTED
110627: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
11062a: 5b pop %ebx <== NOT EXECUTED
11062b: 5e pop %esi <== NOT EXECUTED
11062c: c9 leave <== NOT EXECUTED
11062d: c3 ret <== NOT EXECUTED
11062e: 66 90 xchg %ax,%ax <== NOT EXECUTED
int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);
if (err > 0) {
IMFS_mtime_ctime_update(jnode);
}
IMFS_FIFO_RETURN(err);
110630: 74 f3 je 110625 <IMFS_fifo_write+0x41> <== NOT EXECUTED
110632: e8 09 38 00 00 call 113e40 <__errno> <== NOT EXECUTED
110637: f7 de neg %esi <== NOT EXECUTED
110639: 89 30 mov %esi,(%eax) <== NOT EXECUTED
11063b: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
110640: eb e3 jmp 110625 <IMFS_fifo_write+0x41> <== NOT EXECUTED
001107e4 <IMFS_find_match_in_dir>:
IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *directory,
char *name
)
{
1107e4: 55 push %ebp
1107e5: 89 e5 mov %esp,%ebp
1107e7: 57 push %edi
1107e8: 56 push %esi
1107e9: 53 push %ebx
1107ea: 83 ec 0c sub $0xc,%esp
1107ed: 8b 45 08 mov 0x8(%ebp),%eax
1107f0: 8b 5d 0c mov 0xc(%ebp),%ebx
/*
* Check for fatal errors. A NULL directory show a problem in the
* the IMFS code.
*/
assert( directory );
1107f3: 85 c0 test %eax,%eax
1107f5: 74 67 je 11085e <IMFS_find_match_in_dir+0x7a><== NEVER TAKEN
if ( !name )
1107f7: 85 db test %ebx,%ebx
1107f9: 74 2d je 110828 <IMFS_find_match_in_dir+0x44><== NEVER TAKEN
/*
* Check for "." and ".."
*/
if ( !strcmp( name, dotname ) )
1107fb: bf 97 1d 12 00 mov $0x121d97,%edi
110800: b9 02 00 00 00 mov $0x2,%ecx
110805: 89 de mov %ebx,%esi
110807: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
110809: 74 13 je 11081e <IMFS_find_match_in_dir+0x3a><== NEVER TAKEN
return directory;
if ( !strcmp( name, dotdotname ) )
11080b: bf 99 1d 12 00 mov $0x121d99,%edi
110810: b9 03 00 00 00 mov $0x3,%ecx
110815: 89 de mov %ebx,%esi
110817: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
110819: 75 19 jne 110834 <IMFS_find_match_in_dir+0x50><== ALWAYS TAKEN
return directory->Parent;
11081b: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
}
11081e: 8d 65 f4 lea -0xc(%ebp),%esp
110821: 5b pop %ebx
110822: 5e pop %esi
110823: 5f pop %edi
110824: c9 leave
110825: c3 ret
110826: 66 90 xchg %ax,%ax
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
110828: 31 c0 xor %eax,%eax
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
}
11082a: 8d 65 f4 lea -0xc(%ebp),%esp
11082d: 5b pop %ebx
11082e: 5e pop %esi
11082f: 5f pop %edi
110830: c9 leave
110831: c3 ret
110832: 66 90 xchg %ax,%ax
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
110834: 8b 70 50 mov 0x50(%eax),%esi
110837: 8d 78 54 lea 0x54(%eax),%edi
11083a: 39 fe cmp %edi,%esi
11083c: 75 08 jne 110846 <IMFS_find_match_in_dir+0x62>
11083e: eb e8 jmp 110828 <IMFS_find_match_in_dir+0x44>
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
110840: 8b 36 mov (%esi),%esi
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
110842: 39 fe cmp %edi,%esi
110844: 74 e2 je 110828 <IMFS_find_match_in_dir+0x44>
!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 ) )
110846: 8d 46 0c lea 0xc(%esi),%eax
110849: 83 ec 08 sub $0x8,%esp
11084c: 50 push %eax
11084d: 53 push %ebx
11084e: e8 b5 40 00 00 call 114908 <strcmp>
110853: 83 c4 10 add $0x10,%esp
110856: 85 c0 test %eax,%eax
110858: 75 e6 jne 110840 <IMFS_find_match_in_dir+0x5c>
11085a: 89 f0 mov %esi,%eax
11085c: eb c0 jmp 11081e <IMFS_find_match_in_dir+0x3a>
/*
* Check for fatal errors. A NULL directory show a problem in the
* the IMFS code.
*/
assert( directory );
11085e: 68 38 1d 12 00 push $0x121d38 <== NOT EXECUTED
110863: 68 9c 1d 12 00 push $0x121d9c <== NOT EXECUTED
110868: 6a 2a push $0x2a <== NOT EXECUTED
11086a: 68 44 1d 12 00 push $0x121d44 <== NOT EXECUTED
11086f: e8 30 7a ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
0011074c <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
)
{
11074c: 55 push %ebp
11074d: 89 e5 mov %esp,%ebp
11074f: 57 push %edi
110750: 56 push %esi
110751: 53 push %ebx
110752: 83 ec 3c sub $0x3c,%esp
110755: 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;
110758: 8b 58 1c mov 0x1c(%eax),%ebx
loc = temp_mt_entry->mt_fs_root;
11075b: 8d 55 d4 lea -0x2c(%ebp),%edx
11075e: 89 55 c4 mov %edx,-0x3c(%ebp)
110761: 8d 70 1c lea 0x1c(%eax),%esi
110764: b9 05 00 00 00 mov $0x5,%ecx
110769: 89 d7 mov %edx,%edi
11076b: 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;
11076d: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
do {
next = jnode->Parent;
110774: 8b 73 08 mov 0x8(%ebx),%esi
loc.node_access = (void *)jnode;
110777: 89 5d d4 mov %ebx,-0x2c(%ebp)
IMFS_Set_handlers( &loc );
11077a: 83 ec 0c sub $0xc,%esp
11077d: 8d 45 d4 lea -0x2c(%ebp),%eax
110780: 50 push %eax
110781: e8 f2 f4 ff ff call 10fc78 <IMFS_Set_handlers>
if ( jnode->type != IMFS_DIRECTORY ) {
110786: 83 c4 10 add $0x10,%esp
110789: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
11078d: 75 2d jne 1107bc <IMFS_fsunmount+0x70>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
11078f: 8d 43 54 lea 0x54(%ebx),%eax
110792: 39 43 50 cmp %eax,0x50(%ebx)
110795: 74 3e je 1107d5 <IMFS_fsunmount+0x89>
result = IMFS_unlink( NULL, &loc );
if (result != 0)
return -1;
jnode = next;
}
if ( jnode != NULL ) {
110797: 85 db test %ebx,%ebx
110799: 74 15 je 1107b0 <IMFS_fsunmount+0x64>
if ( jnode->type == IMFS_DIRECTORY ) {
11079b: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
11079f: 75 d3 jne 110774 <IMFS_fsunmount+0x28> <== NEVER TAKEN
1107a1: 8d 43 54 lea 0x54(%ebx),%eax
1107a4: 39 43 50 cmp %eax,0x50(%ebx)
1107a7: 74 cb je 110774 <IMFS_fsunmount+0x28>
if ( jnode_has_children( jnode ) )
jnode = jnode_get_first_child( jnode );
1107a9: 8b 5b 50 mov 0x50(%ebx),%ebx
}
}
} while (jnode != NULL);
1107ac: 85 db test %ebx,%ebx
1107ae: 75 c4 jne 110774 <IMFS_fsunmount+0x28> <== ALWAYS TAKEN
1107b0: 31 c0 xor %eax,%eax
return 0;
}
1107b2: 8d 65 f4 lea -0xc(%ebp),%esp
1107b5: 5b pop %ebx
1107b6: 5e pop %esi
1107b7: 5f pop %edi
1107b8: c9 leave
1107b9: c3 ret
1107ba: 66 90 xchg %ax,%ax
next = jnode->Parent;
loc.node_access = (void *)jnode;
IMFS_Set_handlers( &loc );
if ( jnode->type != IMFS_DIRECTORY ) {
result = IMFS_unlink( NULL, &loc );
1107bc: 83 ec 08 sub $0x8,%esp
1107bf: 8d 55 d4 lea -0x2c(%ebp),%edx
1107c2: 52 push %edx
if (result != 0)
return -1;
jnode = next;
} else if ( jnode_has_no_children( jnode ) ) {
result = IMFS_unlink( NULL, &loc );
1107c3: 6a 00 push $0x0
1107c5: e8 8a 78 ff ff call 108054 <IMFS_unlink>
if (result != 0)
1107ca: 83 c4 10 add $0x10,%esp
1107cd: 85 c0 test %eax,%eax
1107cf: 75 0d jne 1107de <IMFS_fsunmount+0x92> <== NEVER TAKEN
1107d1: 89 f3 mov %esi,%ebx
1107d3: eb c2 jmp 110797 <IMFS_fsunmount+0x4b>
result = IMFS_unlink( NULL, &loc );
if (result != 0)
return -1;
jnode = next;
} else if ( jnode_has_no_children( jnode ) ) {
result = IMFS_unlink( NULL, &loc );
1107d5: 83 ec 08 sub $0x8,%esp
1107d8: 8d 45 d4 lea -0x2c(%ebp),%eax
1107db: 50 push %eax
1107dc: eb e5 jmp 1107c3 <IMFS_fsunmount+0x77>
if ( jnode->type == IMFS_DIRECTORY ) {
if ( jnode_has_children( jnode ) )
jnode = jnode_get_first_child( jnode );
}
}
} while (jnode != NULL);
1107de: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
1107e1: eb cf jmp 1107b2 <IMFS_fsunmount+0x66> <== NOT EXECUTED
00110874 <IMFS_get_token>:
const char *path,
int pathlen,
char *token,
int *token_len
)
{
110874: 55 push %ebp
110875: 89 e5 mov %esp,%ebp
110877: 57 push %edi
110878: 56 push %esi
110879: 53 push %ebx
11087a: 83 ec 1c sub $0x1c,%esp
11087d: 8b 7d 08 mov 0x8(%ebp),%edi
110880: 8b 5d 10 mov 0x10(%ebp),%ebx
register char c;
/*
* Copy a name into token. (Remember NULL is a token.)
*/
c = path[i];
110883: 8a 17 mov (%edi),%dl
110885: 31 f6 xor %esi,%esi
110887: 89 7d e4 mov %edi,-0x1c(%ebp)
11088a: 89 df mov %ebx,%edi
11088c: 88 d3 mov %dl,%bl
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
11088e: eb 07 jmp 110897 <IMFS_get_token+0x23>
return IMFS_INVALID_TOKEN;
if ( !IMFS_is_valid_name_char(c) )
type = IMFS_INVALID_TOKEN;
c = path [++i];
110890: 46 inc %esi
110891: 8b 45 e4 mov -0x1c(%ebp),%eax
110894: 8a 1c 30 mov (%eax,%esi,1),%bl
/*
* Copy a name into token. (Remember NULL is a token.)
*/
c = path[i];
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
110897: 83 ec 0c sub $0xc,%esp
11089a: 0f be c3 movsbl %bl,%eax
11089d: 50 push %eax
11089e: e8 09 8c ff ff call 1094ac <rtems_filesystem_is_separator>
1108a3: 83 c4 10 add $0x10,%esp
1108a6: 85 c0 test %eax,%eax
1108a8: 75 1a jne 1108c4 <IMFS_get_token+0x50>
1108aa: 3b 75 0c cmp 0xc(%ebp),%esi
1108ad: 7d 15 jge 1108c4 <IMFS_get_token+0x50>
token[i] = c;
1108af: 88 1c 37 mov %bl,(%edi,%esi,1)
if ( i == IMFS_NAME_MAX )
1108b2: 83 fe 20 cmp $0x20,%esi
1108b5: 75 d9 jne 110890 <IMFS_get_token+0x1c>
1108b7: b8 04 00 00 00 mov $0x4,%eax
else if ( strcmp( token, "." ) == 0 )
type = IMFS_CURRENT_DIR;
}
return type;
}
1108bc: 8d 65 f4 lea -0xc(%ebp),%esp
1108bf: 5b pop %ebx
1108c0: 5e pop %esi
1108c1: 5f pop %edi
1108c2: c9 leave
1108c3: c3 ret
1108c4: 88 da mov %bl,%dl
1108c6: 89 fb mov %edi,%ebx
/*
* Copy a seperator into token.
*/
if ( i == 0 ) {
1108c8: 85 f6 test %esi,%esi
1108ca: 75 14 jne 1108e0 <IMFS_get_token+0x6c>
token[i] = c;
1108cc: 88 17 mov %dl,(%edi)
if ( (token[i] != '\0') && pathlen ) {
1108ce: 84 d2 test %dl,%dl
1108d0: 74 07 je 1108d9 <IMFS_get_token+0x65>
1108d2: 8b 45 0c mov 0xc(%ebp),%eax
1108d5: 85 c0 test %eax,%eax
1108d7: 75 63 jne 11093c <IMFS_get_token+0xc8>
type = IMFS_CURRENT_DIR;
} else {
type = IMFS_NO_MORE_PATH;
}
} else if (token[ i-1 ] != '\0') {
token[i] = '\0';
1108d9: 31 c0 xor %eax,%eax
1108db: eb 68 jmp 110945 <IMFS_get_token+0xd1>
1108dd: 8d 76 00 lea 0x0(%esi),%esi
i++;
type = IMFS_CURRENT_DIR;
} else {
type = IMFS_NO_MORE_PATH;
}
} else if (token[ i-1 ] != '\0') {
1108e0: 80 7c 37 ff 00 cmpb $0x0,-0x1(%edi,%esi,1)
1108e5: 74 04 je 1108eb <IMFS_get_token+0x77> <== NEVER TAKEN
token[i] = '\0';
1108e7: c6 04 37 00 movb $0x0,(%edi,%esi,1)
/*
* Set token_len to the number of characters copied.
*/
*token_len = i;
1108eb: 8b 45 14 mov 0x14(%ebp),%eax
1108ee: 89 30 mov %esi,(%eax)
* If we copied something that was not a seperator see if
* it was a special name.
*/
if ( type == IMFS_NAME ) {
if ( strcmp( token, "..") == 0 )
1108f0: bf b3 1d 12 00 mov $0x121db3,%edi
1108f5: b9 03 00 00 00 mov $0x3,%ecx
1108fa: 89 de mov %ebx,%esi
1108fc: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
1108fe: 75 10 jne 110910 <IMFS_get_token+0x9c>
110900: b8 02 00 00 00 mov $0x2,%eax
else if ( strcmp( token, "." ) == 0 )
type = IMFS_CURRENT_DIR;
}
return type;
}
110905: 8d 65 f4 lea -0xc(%ebp),%esp
110908: 5b pop %ebx
110909: 5e pop %esi
11090a: 5f pop %edi
11090b: c9 leave
11090c: c3 ret
11090d: 8d 76 00 lea 0x0(%esi),%esi
*/
if ( type == IMFS_NAME ) {
if ( strcmp( token, "..") == 0 )
type = IMFS_UP_DIR;
else if ( strcmp( token, "." ) == 0 )
110910: bf b4 1d 12 00 mov $0x121db4,%edi
110915: b9 02 00 00 00 mov $0x2,%ecx
11091a: 89 de mov %ebx,%esi
11091c: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
11091e: 0f 97 c0 seta %al
110921: 0f 92 c2 setb %dl
110924: 28 d0 sub %dl,%al
110926: 0f be c0 movsbl %al,%eax
110929: 83 f8 01 cmp $0x1,%eax
11092c: 19 c0 sbb %eax,%eax
11092e: 83 e0 fe and $0xfffffffe,%eax
110931: 83 c0 03 add $0x3,%eax
type = IMFS_CURRENT_DIR;
}
return type;
}
110934: 8d 65 f4 lea -0xc(%ebp),%esp
110937: 5b pop %ebx
110938: 5e pop %esi
110939: 5f pop %edi
11093a: c9 leave
11093b: c3 ret
*/
if ( i == 0 ) {
token[i] = c;
if ( (token[i] != '\0') && pathlen ) {
11093c: b8 01 00 00 00 mov $0x1,%eax
110941: 66 be 01 00 mov $0x1,%si
/*
* Set token_len to the number of characters copied.
*/
*token_len = i;
110945: 8b 55 14 mov 0x14(%ebp),%edx
110948: 89 32 mov %esi,(%edx)
11094a: e9 6d ff ff ff jmp 1108bc <IMFS_get_token+0x48>
00107c7c <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
)
{
107c7c: 55 push %ebp
107c7d: 89 e5 mov %esp,%ebp
107c7f: 57 push %edi
107c80: 56 push %esi
107c81: 53 push %ebx
107c82: 83 ec 0c sub $0xc,%esp
107c85: 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,
107c88: 8b 0d 50 31 12 00 mov 0x123150,%ecx
int bit_mask;
/*
* check, whether requested bytes per block is valid
*/
for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
107c8e: 83 f9 10 cmp $0x10,%ecx
107c91: 74 18 je 107cab <IMFS_initialize_support+0x2f><== NEVER TAKEN
107c93: 31 d2 xor %edx,%edx
107c95: b8 20 00 00 00 mov $0x20,%eax
107c9a: 39 c1 cmp %eax,%ecx
107c9c: 74 0d je 107cab <IMFS_initialize_support+0x2f>
107c9e: d1 e0 shl %eax
107ca0: 42 inc %edx
107ca1: 83 fa 05 cmp $0x5,%edx
107ca4: 75 f4 jne 107c9a <IMFS_initialize_support+0x1e><== ALWAYS TAKEN
107ca6: b9 80 00 00 00 mov $0x80,%ecx <== NOT EXECUTED
if (bit_mask == requested_bytes_per_block) {
is_valid = true;
}
}
*dest_bytes_per_block = ((is_valid)
107cab: 89 0d 98 6e 12 00 mov %ecx,0x126e98
/*
* 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();
107cb1: e8 82 7e 00 00 call 10fb38 <IMFS_create_root_node>
107cb6: 89 43 1c mov %eax,0x1c(%ebx)
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
107cb9: 8b 45 14 mov 0x14(%ebp),%eax
107cbc: 89 43 24 mov %eax,0x24(%ebx)
temp_mt_entry->mt_fs_root.ops = op_table;
107cbf: 8b 45 0c mov 0xc(%ebp),%eax
107cc2: 89 43 28 mov %eax,0x28(%ebx)
temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
107cc5: 8d 7b 38 lea 0x38(%ebx),%edi
107cc8: be c0 1b 12 00 mov $0x121bc0,%esi
107ccd: b9 0c 00 00 00 mov $0xc,%ecx
107cd2: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/*
* Create custom file system data.
*/
fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );
107cd4: 83 ec 08 sub $0x8,%esp
107cd7: 6a 10 push $0x10
107cd9: 6a 01 push $0x1
107cdb: e8 ec 06 00 00 call 1083cc <calloc>
if ( !fs_info ) {
107ce0: 83 c4 10 add $0x10,%esp
107ce3: 85 c0 test %eax,%eax
107ce5: 74 3e je 107d25 <IMFS_initialize_support+0xa9><== NEVER TAKEN
free(temp_mt_entry->mt_fs_root.node_access);
rtems_set_errno_and_return_minus_one(ENOMEM);
}
temp_mt_entry->fs_info = fs_info;
107ce7: 89 43 34 mov %eax,0x34(%ebx)
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
107cea: 8b 15 9c 6e 12 00 mov 0x126e9c,%edx
107cf0: 89 10 mov %edx,(%eax)
107cf2: 42 inc %edx
107cf3: 89 15 9c 6e 12 00 mov %edx,0x126e9c
fs_info->ino_count = 1;
107cf9: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax)
fs_info->memfile_handlers = memfile_handlers;
107d00: 8b 55 10 mov 0x10(%ebp),%edx
107d03: 89 50 08 mov %edx,0x8(%eax)
fs_info->directory_handlers = directory_handlers;
107d06: 8b 55 14 mov 0x14(%ebp),%edx
107d09: 89 50 0c mov %edx,0xc(%eax)
jnode = temp_mt_entry->mt_fs_root.node_access;
jnode->st_ino = fs_info->ino_count;
107d0c: 8b 43 1c mov 0x1c(%ebx),%eax
107d0f: c7 40 38 01 00 00 00 movl $0x1,0x38(%eax)
/* Initialize POSIX FIFO/pipe module */
rtems_pipe_initialize();
107d16: e8 31 74 00 00 call 10f14c <rtems_pipe_initialize>
107d1b: 31 c0 xor %eax,%eax
return 0;
}
107d1d: 8d 65 f4 lea -0xc(%ebp),%esp
107d20: 5b pop %ebx
107d21: 5e pop %esi
107d22: 5f pop %edi
107d23: c9 leave
107d24: c3 ret
/*
* Create custom file system data.
*/
fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );
if ( !fs_info ) {
free(temp_mt_entry->mt_fs_root.node_access);
107d25: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107d28: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
107d2b: e8 b4 08 00 00 call 1085e4 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
107d30: e8 0b c1 00 00 call 113e40 <__errno> <== NOT EXECUTED
107d35: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
107d3b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
107d40: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
107d43: eb d8 jmp 107d1d <IMFS_initialize_support+0xa1><== NOT EXECUTED
00107d48 <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 */
)
{
107d48: 55 push %ebp
107d49: 89 e5 mov %esp,%ebp
107d4b: 57 push %edi
107d4c: 53 push %ebx
107d4d: 83 ec 50 sub $0x50,%esp
107d50: 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;
107d53: 8b 45 08 mov 0x8(%ebp),%eax
107d56: 8b 00 mov (%eax),%eax
107d58: 89 45 d8 mov %eax,-0x28(%ebp)
if ( info.hard_link.link_node->st_nlink >= LINK_MAX )
107d5b: 66 83 78 34 07 cmpw $0x7,0x34(%eax)
107d60: 77 66 ja 107dc8 <IMFS_link+0x80>
rtems_set_errno_and_return_minus_one( EMLINK );
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( token, strlen( token ), new_name, &i );
107d62: 31 c0 xor %eax,%eax
107d64: b9 ff ff ff ff mov $0xffffffff,%ecx
107d69: 89 d7 mov %edx,%edi
107d6b: f2 ae repnz scas %es:(%edi),%al
107d6d: f7 d1 not %ecx
107d6f: 49 dec %ecx
107d70: 8d 45 f4 lea -0xc(%ebp),%eax
107d73: 50 push %eax
107d74: 8d 5d b7 lea -0x49(%ebp),%ebx
107d77: 53 push %ebx
107d78: 51 push %ecx
107d79: 52 push %edx
107d7a: e8 f5 8a 00 00 call 110874 <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(
107d7f: 8d 45 d8 lea -0x28(%ebp),%eax
107d82: 89 04 24 mov %eax,(%esp)
107d85: 68 ff a1 00 00 push $0xa1ff
107d8a: 53 push %ebx
107d8b: 6a 03 push $0x3
107d8d: ff 75 0c pushl 0xc(%ebp)
107d90: e8 d7 7d 00 00 call 10fb6c <IMFS_create_node>
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if ( !new_node )
107d95: 83 c4 20 add $0x20,%esp
107d98: 85 c0 test %eax,%eax
107d9a: 74 3e je 107dda <IMFS_link+0x92> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOMEM );
/*
* Increment the link count of the node being pointed to.
*/
info.hard_link.link_node->st_nlink++;
107d9c: 8b 45 d8 mov -0x28(%ebp),%eax
107d9f: 66 ff 40 34 incw 0x34(%eax)
IMFS_update_ctime( info.hard_link.link_node );
107da3: 83 ec 08 sub $0x8,%esp
107da6: 6a 00 push $0x0
107da8: 8d 45 ec lea -0x14(%ebp),%eax
107dab: 50 push %eax
107dac: e8 af 08 00 00 call 108660 <gettimeofday>
107db1: 8b 55 ec mov -0x14(%ebp),%edx
107db4: 8b 45 d8 mov -0x28(%ebp),%eax
107db7: 89 50 48 mov %edx,0x48(%eax)
107dba: 31 c0 xor %eax,%eax
return 0;
107dbc: 83 c4 10 add $0x10,%esp
}
107dbf: 8d 65 f8 lea -0x8(%ebp),%esp
107dc2: 5b pop %ebx
107dc3: 5f pop %edi
107dc4: c9 leave
107dc5: c3 ret
107dc6: 66 90 xchg %ax,%ax
/*
* Verify this node can be linked to.
*/
info.hard_link.link_node = to_loc->node_access;
if ( info.hard_link.link_node->st_nlink >= LINK_MAX )
rtems_set_errno_and_return_minus_one( EMLINK );
107dc8: e8 73 c0 00 00 call 113e40 <__errno>
107dcd: c7 00 1f 00 00 00 movl $0x1f,(%eax)
107dd3: b8 ff ff ff ff mov $0xffffffff,%eax
107dd8: eb e5 jmp 107dbf <IMFS_link+0x77>
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if ( !new_node )
rtems_set_errno_and_return_minus_one( ENOMEM );
107dda: e8 61 c0 00 00 call 113e40 <__errno> <== NOT EXECUTED
107ddf: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
107de5: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
107dea: eb d3 jmp 107dbf <IMFS_link+0x77> <== NOT EXECUTED
00112664 <IMFS_memfile_addblock>:
MEMFILE_STATIC int IMFS_memfile_addblock(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
112664: 55 push %ebp
112665: 89 e5 mov %esp,%ebp
112667: 53 push %ebx
112668: 83 ec 04 sub $0x4,%esp
11266b: 8b 45 08 mov 0x8(%ebp),%eax
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
11266e: 85 c0 test %eax,%eax
112670: 74 50 je 1126c2 <IMFS_memfile_addblock+0x5e><== NEVER TAKEN
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
112672: 83 78 4c 05 cmpl $0x5,0x4c(%eax)
112676: 75 31 jne 1126a9 <IMFS_memfile_addblock+0x45><== NEVER TAKEN
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 );
112678: 52 push %edx
112679: 6a 01 push $0x1
11267b: ff 75 0c pushl 0xc(%ebp)
11267e: 50 push %eax
11267f: e8 b8 fa ff ff call 11213c <IMFS_memfile_get_block_pointer>
112684: 89 c3 mov %eax,%ebx
if ( *block_entry_ptr )
112686: 83 c4 10 add $0x10,%esp
112689: 8b 00 mov (%eax),%eax
11268b: 85 c0 test %eax,%eax
11268d: 74 09 je 112698 <IMFS_memfile_addblock+0x34>
#endif
memory = memfile_alloc_block();
if ( !memory )
return 1;
*block_entry_ptr = memory;
11268f: 31 c0 xor %eax,%eax
return 0;
}
112691: 8b 5d fc mov -0x4(%ebp),%ebx
112694: c9 leave
112695: c3 ret
112696: 66 90 xchg %ax,%ax
#if 0
fprintf(stdout, "%d %p", block, block_entry_ptr );
fflush(stdout);
#endif
memory = memfile_alloc_block();
112698: e8 7b fa ff ff call 112118 <memfile_alloc_block>
if ( !memory )
11269d: 85 c0 test %eax,%eax
11269f: 74 04 je 1126a5 <IMFS_memfile_addblock+0x41><== NEVER TAKEN
return 1;
*block_entry_ptr = memory;
1126a1: 89 03 mov %eax,(%ebx)
1126a3: eb ea jmp 11268f <IMFS_memfile_addblock+0x2b>
fprintf(stdout, "%d %p", block, block_entry_ptr );
fflush(stdout);
#endif
memory = memfile_alloc_block();
if ( !memory )
1126a5: b0 01 mov $0x1,%al <== NOT EXECUTED
1126a7: eb e8 jmp 112691 <IMFS_memfile_addblock+0x2d><== NOT EXECUTED
assert( the_jnode );
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
1126a9: 68 fc 1f 12 00 push $0x121ffc <== NOT EXECUTED
1126ae: 68 fb 20 12 00 push $0x1220fb <== NOT EXECUTED
1126b3: 68 6d 01 00 00 push $0x16d <== NOT EXECUTED
1126b8: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
1126bd: e8 e2 5b ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
)
{
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
1126c2: 68 80 1f 12 00 push $0x121f80 <== NOT EXECUTED
1126c7: 68 fb 20 12 00 push $0x1220fb <== NOT EXECUTED
1126cc: 68 69 01 00 00 push $0x169 <== NOT EXECUTED
1126d1: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
1126d6: e8 c9 5b ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
001126dc <IMFS_memfile_extend>:
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
1126dc: 55 push %ebp
1126dd: 89 e5 mov %esp,%ebp
1126df: 57 push %edi
1126e0: 56 push %esi
1126e1: 53 push %ebx
1126e2: 83 ec 2c sub $0x2c,%esp
1126e5: 8b 5d 08 mov 0x8(%ebp),%ebx
1126e8: 8b 45 0c mov 0xc(%ebp),%eax
1126eb: 8b 55 10 mov 0x10(%ebp),%edx
1126ee: 89 45 d8 mov %eax,-0x28(%ebp)
1126f1: 89 55 dc mov %edx,-0x24(%ebp)
/*
* Perform internal consistency checks
*/
assert( the_jnode );
1126f4: 85 db test %ebx,%ebx
1126f6: 0f 84 29 01 00 00 je 112825 <IMFS_memfile_extend+0x149><== NEVER TAKEN
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
1126fc: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx)
112700: 0f 85 06 01 00 00 jne 11280c <IMFS_memfile_extend+0x130><== NEVER TAKEN
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
112706: a1 98 6e 12 00 mov 0x126e98,%eax
11270b: 89 c1 mov %eax,%ecx
11270d: c1 e9 02 shr $0x2,%ecx
112710: 8d 51 01 lea 0x1(%ecx),%edx
112713: 0f af d1 imul %ecx,%edx
112716: 42 inc %edx
112717: 0f af d1 imul %ecx,%edx
11271a: 4a dec %edx
11271b: 0f af d0 imul %eax,%edx
11271e: 31 c9 xor %ecx,%ecx
112720: 3b 4d dc cmp -0x24(%ebp),%ecx
112723: 7f 1c jg 112741 <IMFS_memfile_extend+0x65><== NEVER TAKEN
112725: 7d 15 jge 11273c <IMFS_memfile_extend+0x60><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
112727: e8 14 17 00 00 call 113e40 <__errno> <== NOT EXECUTED
11272c: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
112732: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
112737: e9 9e 00 00 00 jmp 1127da <IMFS_memfile_extend+0xfe><== NOT EXECUTED
assert( the_jnode->type == IMFS_MEMORY_FILE );
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
11273c: 3b 55 d8 cmp -0x28(%ebp),%edx
11273f: 76 e6 jbe 112727 <IMFS_memfile_extend+0x4b><== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
if ( new_length <= the_jnode->info.file.size )
112741: 8b 53 50 mov 0x50(%ebx),%edx
112744: 8b 4b 54 mov 0x54(%ebx),%ecx
112747: 89 55 e0 mov %edx,-0x20(%ebp)
11274a: 89 4d e4 mov %ecx,-0x1c(%ebp)
11274d: 39 4d dc cmp %ecx,-0x24(%ebp)
112750: 0f 8e 8e 00 00 00 jle 1127e4 <IMFS_memfile_extend+0x108><== ALWAYS TAKEN
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
112756: 89 45 d0 mov %eax,-0x30(%ebp)
112759: 89 c1 mov %eax,%ecx
11275b: c1 f9 1f sar $0x1f,%ecx
11275e: 89 4d d4 mov %ecx,-0x2c(%ebp)
112761: ff 75 d4 pushl -0x2c(%ebp)
112764: ff 75 d0 pushl -0x30(%ebp)
112767: ff 75 dc pushl -0x24(%ebp)
11276a: ff 75 d8 pushl -0x28(%ebp)
11276d: e8 0a c7 00 00 call 11ee7c <__divdi3>
112772: 83 c4 10 add $0x10,%esp
112775: 89 c6 mov %eax,%esi
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
112777: ff 75 d4 pushl -0x2c(%ebp)
11277a: ff 75 d0 pushl -0x30(%ebp)
11277d: ff 75 e4 pushl -0x1c(%ebp)
112780: ff 75 e0 pushl -0x20(%ebp)
112783: e8 f4 c6 00 00 call 11ee7c <__divdi3>
112788: 83 c4 10 add $0x10,%esp
11278b: 89 45 e0 mov %eax,-0x20(%ebp)
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
11278e: 39 c6 cmp %eax,%esi
112790: 72 6a jb 1127fc <IMFS_memfile_extend+0x120><== NEVER TAKEN
112792: 89 c7 mov %eax,%edi
112794: eb 07 jmp 11279d <IMFS_memfile_extend+0xc1>
112796: 66 90 xchg %ax,%ax
112798: 47 inc %edi
112799: 39 fe cmp %edi,%esi
11279b: 72 5f jb 1127fc <IMFS_memfile_extend+0x120>
if ( IMFS_memfile_addblock( the_jnode, block ) ) {
11279d: 83 ec 08 sub $0x8,%esp
1127a0: 57 push %edi
1127a1: 53 push %ebx
1127a2: e8 bd fe ff ff call 112664 <IMFS_memfile_addblock>
1127a7: 83 c4 10 add $0x10,%esp
1127aa: 85 c0 test %eax,%eax
1127ac: 74 ea je 112798 <IMFS_memfile_extend+0xbc><== ALWAYS TAKEN
for ( ; block>=old_blocks ; block-- ) {
1127ae: 39 7d e0 cmp %edi,-0x20(%ebp) <== NOT EXECUTED
1127b1: 77 17 ja 1127ca <IMFS_memfile_extend+0xee><== NOT EXECUTED
1127b3: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED
1127b6: 66 90 xchg %ax,%ax <== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
1127b8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1127bb: 57 push %edi <== NOT EXECUTED
1127bc: 53 push %ebx <== NOT EXECUTED
1127bd: e8 d6 fb ff ff call 112398 <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-- ) {
1127c2: 4f dec %edi <== NOT EXECUTED
1127c3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1127c6: 39 fe cmp %edi,%esi <== NOT EXECUTED
1127c8: 76 ee jbe 1127b8 <IMFS_memfile_extend+0xdc><== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
}
rtems_set_errno_and_return_minus_one( ENOSPC );
1127ca: e8 71 16 00 00 call 113e40 <__errno> <== NOT EXECUTED
1127cf: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED
1127d5: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
return 0;
}
1127da: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1127dd: 5b pop %ebx <== NOT EXECUTED
1127de: 5e pop %esi <== NOT EXECUTED
1127df: 5f pop %edi <== NOT EXECUTED
1127e0: c9 leave <== NOT EXECUTED
1127e1: c3 ret <== NOT EXECUTED
1127e2: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( new_length <= the_jnode->info.file.size )
1127e4: 7c 09 jl 1127ef <IMFS_memfile_extend+0x113><== NEVER TAKEN
1127e6: 39 55 d8 cmp %edx,-0x28(%ebp)
1127e9: 0f 87 67 ff ff ff ja 112756 <IMFS_memfile_extend+0x7a>
/*
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
1127ef: 31 c0 xor %eax,%eax
return 0;
}
1127f1: 8d 65 f4 lea -0xc(%ebp),%esp
1127f4: 5b pop %ebx
1127f5: 5e pop %esi
1127f6: 5f pop %edi
1127f7: c9 leave
1127f8: c3 ret
1127f9: 8d 76 00 lea 0x0(%esi),%esi
/*
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
1127fc: 8b 45 d8 mov -0x28(%ebp),%eax
1127ff: 8b 55 dc mov -0x24(%ebp),%edx
112802: 89 43 50 mov %eax,0x50(%ebx)
112805: 89 53 54 mov %edx,0x54(%ebx)
112808: 31 c0 xor %eax,%eax
11280a: eb e5 jmp 1127f1 <IMFS_memfile_extend+0x115>
assert( the_jnode );
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
11280c: 68 fc 1f 12 00 push $0x121ffc <== NOT EXECUTED
112811: 68 11 21 12 00 push $0x122111 <== NOT EXECUTED
112816: 68 35 01 00 00 push $0x135 <== NOT EXECUTED
11281b: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112820: e8 7f 5a ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
/*
* Perform internal consistency checks
*/
assert( the_jnode );
112825: 68 80 1f 12 00 push $0x121f80 <== NOT EXECUTED
11282a: 68 11 21 12 00 push $0x122111 <== NOT EXECUTED
11282f: 68 31 01 00 00 push $0x131 <== NOT EXECUTED
112834: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112839: e8 66 5a ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
0011213c <IMFS_memfile_get_block_pointer>:
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
11213c: 55 push %ebp
11213d: 89 e5 mov %esp,%ebp
11213f: 57 push %edi
112140: 56 push %esi
112141: 53 push %ebx
112142: 83 ec 1c sub $0x1c,%esp
112145: 8b 5d 08 mov 0x8(%ebp),%ebx
112148: 8b 7d 0c mov 0xc(%ebp),%edi
11214b: 8b 75 10 mov 0x10(%ebp),%esi
/*
* Perform internal consistency checks
*/
assert( the_jnode );
11214e: 85 db test %ebx,%ebx
112150: 0f 84 59 01 00 00 je 1122af <IMFS_memfile_get_block_pointer+0x173><== NEVER TAKEN
if ( !the_jnode )
return NULL;
assert( the_jnode->type == IMFS_MEMORY_FILE );
112156: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx)
11215a: 0f 85 68 01 00 00 jne 1122c8 <IMFS_memfile_get_block_pointer+0x18c><== NEVER TAKEN
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
112160: 8b 0d 98 6e 12 00 mov 0x126e98,%ecx
112166: c1 e9 02 shr $0x2,%ecx
112169: 8d 41 ff lea -0x1(%ecx),%eax
11216c: 39 c7 cmp %eax,%edi
11216e: 76 44 jbe 1121b4 <IMFS_memfile_get_block_pointer+0x78><== ALWAYS TAKEN
/*
* Is the block number in the doubly indirect portion?
*/
if ( my_block <= LAST_DOUBLY_INDIRECT ) {
112170: 8d 41 01 lea 0x1(%ecx),%eax <== NOT EXECUTED
112173: 0f af c1 imul %ecx,%eax <== NOT EXECUTED
112176: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED
112179: 39 d7 cmp %edx,%edi <== NOT EXECUTED
11217b: 77 57 ja 1121d4 <IMFS_memfile_get_block_pointer+0x98><== NOT EXECUTED
#if 0
fprintf(stdout, "(d %d) ", block );
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
11217d: 89 f8 mov %edi,%eax <== NOT EXECUTED
11217f: 29 c8 sub %ecx,%eax <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
112181: 31 d2 xor %edx,%edx <== NOT EXECUTED
112183: f7 f1 div %ecx <== NOT EXECUTED
112185: 89 c1 mov %eax,%ecx <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
p = info->doubly_indirect;
112187: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED
if ( malloc_it ) {
11218a: 85 f6 test %esi,%esi <== NOT EXECUTED
11218c: 0f 84 96 00 00 00 je 112228 <IMFS_memfile_get_block_pointer+0xec><== NOT EXECUTED
if ( !p ) {
112192: 85 c0 test %eax,%eax <== NOT EXECUTED
112194: 0f 84 dd 00 00 00 je 112277 <IMFS_memfile_get_block_pointer+0x13b><== NOT EXECUTED
if ( !p )
return 0;
info->doubly_indirect = p;
}
p1 = (block_p *)p[ doubly ];
11219a: 8d 1c 88 lea (%eax,%ecx,4),%ebx <== NOT EXECUTED
11219d: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
if ( !p1 ) {
11219f: 85 c0 test %eax,%eax <== NOT EXECUTED
1121a1: 0f 84 ba 00 00 00 je 112261 <IMFS_memfile_get_block_pointer+0x125><== NOT EXECUTED
#if 0
fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly,
singly, p, &p[singly] );
fflush(stdout);
#endif
return (block_p *)&p[ singly ];
1121a7: 8d 04 90 lea (%eax,%edx,4),%eax <== NOT EXECUTED
/*
* This means the requested block number is out of range.
*/
return 0;
}
1121aa: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1121ad: 5b pop %ebx <== NOT EXECUTED
1121ae: 5e pop %esi <== NOT EXECUTED
1121af: 5f pop %edi <== NOT EXECUTED
1121b0: c9 leave <== NOT EXECUTED
1121b1: c3 ret <== NOT EXECUTED
1121b2: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( my_block <= LAST_INDIRECT ) {
#if 0
fprintf(stdout, "(s %d) ", block );
fflush(stdout);
#endif
p = info->indirect;
1121b4: 8b 43 58 mov 0x58(%ebx),%eax
if ( malloc_it ) {
1121b7: 85 f6 test %esi,%esi
1121b9: 0f 84 85 00 00 00 je 112244 <IMFS_memfile_get_block_pointer+0x108>
if ( !p ) {
1121bf: 85 c0 test %eax,%eax
1121c1: 0f 84 89 00 00 00 je 112250 <IMFS_memfile_get_block_pointer+0x114>
p2 = memfile_alloc_block();
if ( !p2 )
return 0;
p1[ doubly ] = (block_p) p2;
}
return (block_p *)&p2[ singly ];
1121c7: 8d 04 b8 lea (%eax,%edi,4),%eax
/*
* This means the requested block number is out of range.
*/
return 0;
}
1121ca: 8d 65 f4 lea -0xc(%ebp),%esp
1121cd: 5b pop %ebx
1121ce: 5e pop %esi
1121cf: 5f pop %edi
1121d0: c9 leave
1121d1: c3 ret
1121d2: 66 90 xchg %ax,%ax
#endif
/*
* Is the block number in the triply indirect portion?
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
1121d4: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
1121d7: 0f af d1 imul %ecx,%edx <== NOT EXECUTED
1121da: 4a dec %edx <== NOT EXECUTED
1121db: 39 d7 cmp %edx,%edi <== NOT EXECUTED
1121dd: 77 59 ja 112238 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
my_block -= FIRST_TRIPLY_INDIRECT;
1121df: 29 c7 sub %eax,%edi <== NOT EXECUTED
1121e1: 89 f8 mov %edi,%eax <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
1121e3: 31 d2 xor %edx,%edx <== NOT EXECUTED
1121e5: f7 f1 div %ecx <== NOT EXECUTED
1121e7: 89 d7 mov %edx,%edi <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
1121e9: 31 d2 xor %edx,%edx <== NOT EXECUTED
1121eb: f7 f1 div %ecx <== NOT EXECUTED
1121ed: 89 c1 mov %eax,%ecx <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
p = info->triply_indirect;
1121ef: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED
if ( malloc_it ) {
1121f2: 85 f6 test %esi,%esi <== NOT EXECUTED
1121f4: 0f 84 9a 00 00 00 je 112294 <IMFS_memfile_get_block_pointer+0x158><== NOT EXECUTED
if ( !p ) {
1121fa: 85 c0 test %eax,%eax <== NOT EXECUTED
1121fc: 0f 84 df 00 00 00 je 1122e1 <IMFS_memfile_get_block_pointer+0x1a5><== NOT EXECUTED
if ( !p )
return 0;
info->triply_indirect = p;
}
p1 = (block_p *) p[ triply ];
112202: 8d 1c 88 lea (%eax,%ecx,4),%ebx <== NOT EXECUTED
112205: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
if ( !p1 ) {
112207: 85 c0 test %eax,%eax <== NOT EXECUTED
112209: 0f 84 f3 00 00 00 je 112302 <IMFS_memfile_get_block_pointer+0x1c6><== NOT EXECUTED
if ( !p1 )
return 0;
p[ triply ] = (block_p) p1;
}
p2 = (block_p *)p1[ doubly ];
11220f: 8d 1c 90 lea (%eax,%edx,4),%ebx <== NOT EXECUTED
112212: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
if ( !p2 ) {
112214: 85 c0 test %eax,%eax <== NOT EXECUTED
112216: 75 af jne 1121c7 <IMFS_memfile_get_block_pointer+0x8b><== NOT EXECUTED
p2 = memfile_alloc_block();
112218: e8 fb fe ff ff call 112118 <memfile_alloc_block> <== NOT EXECUTED
if ( !p2 )
11221d: 85 c0 test %eax,%eax <== NOT EXECUTED
11221f: 74 17 je 112238 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0;
p1[ doubly ] = (block_p) p2;
112221: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
112223: eb a2 jmp 1121c7 <IMFS_memfile_get_block_pointer+0x8b><== NOT EXECUTED
112225: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
return (block_p *)&p1[ singly ];
}
if ( !p )
112228: 85 c0 test %eax,%eax <== NOT EXECUTED
11222a: 74 0c je 112238 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0;
p = (block_p *)p[ doubly ];
11222c: 8b 04 88 mov (%eax,%ecx,4),%eax <== NOT EXECUTED
if ( !p )
11222f: 85 c0 test %eax,%eax <== NOT EXECUTED
112231: 0f 85 70 ff ff ff jne 1121a7 <IMFS_memfile_get_block_pointer+0x6b><== NOT EXECUTED
112237: 90 nop <== NOT EXECUTED
p2 = (block_p *)p1[ doubly ];
if ( !p2 )
return 0;
return (block_p *)&p2[ singly ];
112238: 31 c0 xor %eax,%eax <== NOT EXECUTED
/*
* This means the requested block number is out of range.
*/
return 0;
}
11223a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
11223d: 5b pop %ebx <== NOT EXECUTED
11223e: 5e pop %esi <== NOT EXECUTED
11223f: 5f pop %edi <== NOT EXECUTED
112240: c9 leave <== NOT EXECUTED
112241: c3 ret <== NOT EXECUTED
112242: 66 90 xchg %ax,%ax <== NOT EXECUTED
info->indirect = p;
}
return &info->indirect[ my_block ];
}
if ( !p )
112244: 85 c0 test %eax,%eax
112246: 0f 85 7b ff ff ff jne 1121c7 <IMFS_memfile_get_block_pointer+0x8b><== ALWAYS TAKEN
p2 = (block_p *)p1[ doubly ];
if ( !p2 )
return 0;
return (block_p *)&p2[ singly ];
11224c: 31 c0 xor %eax,%eax
11224e: eb ea jmp 11223a <IMFS_memfile_get_block_pointer+0xfe><== NOT EXECUTED
p = info->indirect;
if ( malloc_it ) {
if ( !p ) {
p = memfile_alloc_block();
112250: e8 c3 fe ff ff call 112118 <memfile_alloc_block>
if ( !p )
112255: 85 c0 test %eax,%eax
112257: 74 df je 112238 <IMFS_memfile_get_block_pointer+0xfc><== NEVER TAKEN
return 0;
info->indirect = p;
112259: 89 43 58 mov %eax,0x58(%ebx)
11225c: e9 66 ff ff ff jmp 1121c7 <IMFS_memfile_get_block_pointer+0x8b>
info->doubly_indirect = p;
}
p1 = (block_p *)p[ doubly ];
if ( !p1 ) {
p1 = memfile_alloc_block();
112261: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
112264: e8 af fe ff ff call 112118 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
112269: 85 c0 test %eax,%eax <== NOT EXECUTED
11226b: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
11226e: 74 c8 je 112238 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0;
p[ doubly ] = (block_p) p1;
112270: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
112272: e9 30 ff ff ff jmp 1121a7 <IMFS_memfile_get_block_pointer+0x6b><== NOT EXECUTED
p = info->doubly_indirect;
if ( malloc_it ) {
if ( !p ) {
p = memfile_alloc_block();
112277: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
11227a: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
11227d: e8 96 fe ff ff call 112118 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
112282: 85 c0 test %eax,%eax <== NOT EXECUTED
112284: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
112287: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
11228a: 74 ac je 112238 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0;
info->doubly_indirect = p;
11228c: 89 43 5c mov %eax,0x5c(%ebx) <== NOT EXECUTED
11228f: e9 06 ff ff ff jmp 11219a <IMFS_memfile_get_block_pointer+0x5e><== NOT EXECUTED
p1[ doubly ] = (block_p) p2;
}
return (block_p *)&p2[ singly ];
}
if ( !p )
112294: 85 c0 test %eax,%eax <== NOT EXECUTED
112296: 74 a0 je 112238 <IMFS_memfile_get_block_pointer+0xfc><== 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 ];
112298: 8b 04 88 mov (%eax,%ecx,4),%eax <== NOT EXECUTED
if ( !p1 )
11229b: 85 c0 test %eax,%eax <== NOT EXECUTED
11229d: 74 99 je 112238 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0;
p2 = (block_p *)p1[ doubly ];
11229f: 8b 14 90 mov (%eax,%edx,4),%edx <== NOT EXECUTED
if ( !p2 )
return 0;
return (block_p *)&p2[ singly ];
1122a2: 8d 04 ba lea (%edx,%edi,4),%eax <== NOT EXECUTED
p1 = (block_p *) p[ triply ];
if ( !p1 )
return 0;
p2 = (block_p *)p1[ doubly ];
if ( !p2 )
1122a5: 85 d2 test %edx,%edx <== NOT EXECUTED
1122a7: 0f 85 fd fe ff ff jne 1121aa <IMFS_memfile_get_block_pointer+0x6e><== NOT EXECUTED
1122ad: eb 89 jmp 112238 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
/*
* Perform internal consistency checks
*/
assert( the_jnode );
1122af: 68 80 1f 12 00 push $0x121f80 <== NOT EXECUTED
1122b4: 68 6c 20 12 00 push $0x12206c <== NOT EXECUTED
1122b9: 68 88 03 00 00 push $0x388 <== NOT EXECUTED
1122be: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
1122c3: e8 dc 5f ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
if ( !the_jnode )
return NULL;
assert( the_jnode->type == IMFS_MEMORY_FILE );
1122c8: 68 fc 1f 12 00 push $0x121ffc <== NOT EXECUTED
1122cd: 68 6c 20 12 00 push $0x12206c <== NOT EXECUTED
1122d2: 68 8c 03 00 00 push $0x38c <== NOT EXECUTED
1122d7: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
1122dc: e8 c3 5f ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
p = info->triply_indirect;
if ( malloc_it ) {
if ( !p ) {
p = memfile_alloc_block();
1122e1: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
1122e4: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
1122e7: e8 2c fe ff ff call 112118 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
1122ec: 85 c0 test %eax,%eax <== NOT EXECUTED
1122ee: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1122f1: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
1122f4: 0f 84 3e ff ff ff je 112238 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0;
info->triply_indirect = p;
1122fa: 89 43 60 mov %eax,0x60(%ebx) <== NOT EXECUTED
1122fd: e9 00 ff ff ff jmp 112202 <IMFS_memfile_get_block_pointer+0xc6><== NOT EXECUTED
}
p1 = (block_p *) p[ triply ];
if ( !p1 ) {
p1 = memfile_alloc_block();
112302: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
112305: e8 0e fe ff ff call 112118 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
11230a: 85 c0 test %eax,%eax <== NOT EXECUTED
11230c: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
11230f: 0f 84 23 ff ff ff je 112238 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0;
p[ triply ] = (block_p) p1;
112315: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
112317: e9 f3 fe ff ff jmp 11220f <IMFS_memfile_get_block_pointer+0xd3><== NOT EXECUTED
00112c5c <IMFS_memfile_read>:
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
112c5c: 55 push %ebp
112c5d: 89 e5 mov %esp,%ebp
112c5f: 57 push %edi
112c60: 56 push %esi
112c61: 53 push %ebx
112c62: 83 ec 4c sub $0x4c,%esp
112c65: 8b 75 0c mov 0xc(%ebp),%esi
112c68: 8b 7d 10 mov 0x10(%ebp),%edi
112c6b: 8b 45 18 mov 0x18(%ebp),%eax
/*
* Perform internal consistency checks
*/
assert( the_jnode );
112c6e: 8b 55 08 mov 0x8(%ebp),%edx
112c71: 85 d2 test %edx,%edx
112c73: 0f 84 8e 02 00 00 je 112f07 <IMFS_memfile_read+0x2ab><== NEVER TAKEN
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE ||
112c79: 8b 4d 08 mov 0x8(%ebp),%ecx
112c7c: 8b 51 4c mov 0x4c(%ecx),%edx
112c7f: 8d 4a fb lea -0x5(%edx),%ecx
112c82: 83 f9 01 cmp $0x1,%ecx
112c85: 0f 87 63 02 00 00 ja 112eee <IMFS_memfile_read+0x292><== NEVER TAKEN
/*
* Error checks on arguments
*/
assert( dest );
112c8b: 8b 5d 14 mov 0x14(%ebp),%ebx
112c8e: 85 db test %ebx,%ebx
112c90: 0f 84 26 02 00 00 je 112ebc <IMFS_memfile_read+0x260><== NEVER TAKEN
/*
* If there is nothing to read, then quick exit.
*/
my_length = length;
if ( !my_length )
112c96: 85 c0 test %eax,%eax
112c98: 0f 84 f0 01 00 00 je 112e8e <IMFS_memfile_read+0x232><== NEVER TAKEN
/*
* Linear files (as created from a tar file are easier to handle
* than block files).
*/
if (the_jnode->type == IMFS_LINEAR_FILE) {
112c9e: 83 fa 06 cmp $0x6,%edx
112ca1: 0f 84 5d 01 00 00 je 112e04 <IMFS_memfile_read+0x1a8><== NEVER TAKEN
/*
* 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;
112ca7: 89 f2 mov %esi,%edx
if ( last_byte > the_jnode->info.file.size )
112ca9: 8b 4d 08 mov 0x8(%ebp),%ecx
112cac: 8b 49 50 mov 0x50(%ecx),%ecx
112caf: 89 4d cc mov %ecx,-0x34(%ebp)
112cb2: 8d 1c 30 lea (%eax,%esi,1),%ebx
112cb5: 89 5d d0 mov %ebx,-0x30(%ebp)
112cb8: 31 c9 xor %ecx,%ecx
112cba: 8b 5d 08 mov 0x8(%ebp),%ebx
112cbd: 3b 4b 54 cmp 0x54(%ebx),%ecx
112cc0: 0f 8e e2 00 00 00 jle 112da8 <IMFS_memfile_read+0x14c><== ALWAYS TAKEN
my_length = the_jnode->info.file.size - start;
112cc6: 8b 5d cc mov -0x34(%ebp),%ebx
112cc9: 29 d3 sub %edx,%ebx
112ccb: 89 5d cc mov %ebx,-0x34(%ebp)
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
112cce: a1 98 6e 12 00 mov 0x126e98,%eax
112cd3: 89 45 d0 mov %eax,-0x30(%ebp)
112cd6: 99 cltd
112cd7: 89 d3 mov %edx,%ebx
112cd9: 52 push %edx
112cda: 50 push %eax
112cdb: 57 push %edi
112cdc: 56 push %esi
112cdd: 89 45 c0 mov %eax,-0x40(%ebp)
112ce0: e8 e7 c2 00 00 call 11efcc <__moddi3>
112ce5: 83 c4 10 add $0x10,%esp
112ce8: 89 45 c8 mov %eax,-0x38(%ebp)
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
112ceb: 8b 4d c0 mov -0x40(%ebp),%ecx
112cee: 53 push %ebx
112cef: 51 push %ecx
112cf0: 57 push %edi
112cf1: 56 push %esi
112cf2: e8 85 c1 00 00 call 11ee7c <__divdi3>
112cf7: 83 c4 10 add $0x10,%esp
112cfa: 89 c3 mov %eax,%ebx
if ( start_offset ) {
112cfc: 8b 4d c8 mov -0x38(%ebp),%ecx
112cff: 85 c9 test %ecx,%ecx
112d01: 0f 85 b1 00 00 00 jne 112db8 <IMFS_memfile_read+0x15c>
112d07: 8b 55 14 mov 0x14(%ebp),%edx
112d0a: 89 55 c8 mov %edx,-0x38(%ebp)
112d0d: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp)
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
112d14: 8b 55 d0 mov -0x30(%ebp),%edx
112d17: 39 55 cc cmp %edx,-0x34(%ebp)
112d1a: 72 39 jb 112d55 <IMFS_memfile_read+0xf9>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
112d1c: 50 push %eax
112d1d: 6a 00 push $0x0
112d1f: 53 push %ebx
112d20: ff 75 08 pushl 0x8(%ebp)
112d23: e8 14 f4 ff ff call 11213c <IMFS_memfile_get_block_pointer>
assert( block_ptr );
112d28: 83 c4 10 add $0x10,%esp
112d2b: 85 c0 test %eax,%eax
112d2d: 0f 84 70 01 00 00 je 112ea3 <IMFS_memfile_read+0x247><== NEVER TAKEN
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
112d33: 8b 30 mov (%eax),%esi
112d35: 8b 7d c8 mov -0x38(%ebp),%edi
112d38: 8b 4d d0 mov -0x30(%ebp),%ecx
112d3b: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
dest += to_copy;
112d3d: 89 7d c8 mov %edi,-0x38(%ebp)
block++;
112d40: 43 inc %ebx
my_length -= to_copy;
112d41: 8b 4d d0 mov -0x30(%ebp),%ecx
112d44: 29 4d cc sub %ecx,-0x34(%ebp)
copied += to_copy;
112d47: 01 4d c4 add %ecx,-0x3c(%ebp)
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
112d4a: 8b 7d cc mov -0x34(%ebp),%edi
112d4d: 39 3d 98 6e 12 00 cmp %edi,0x126e98
112d53: 76 c7 jbe 112d1c <IMFS_memfile_read+0xc0>
* Phase 3: possibly the first part of one block
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
if ( my_length ) {
112d55: 8b 7d cc mov -0x34(%ebp),%edi
112d58: 85 ff test %edi,%edi
112d5a: 74 27 je 112d83 <IMFS_memfile_read+0x127>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
112d5c: 56 push %esi
112d5d: 6a 00 push $0x0
112d5f: 53 push %ebx
112d60: ff 75 08 pushl 0x8(%ebp)
112d63: e8 d4 f3 ff ff call 11213c <IMFS_memfile_get_block_pointer>
assert( block_ptr );
112d68: 83 c4 10 add $0x10,%esp
112d6b: 85 c0 test %eax,%eax
112d6d: 0f 84 62 01 00 00 je 112ed5 <IMFS_memfile_read+0x279><== NEVER TAKEN
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], my_length );
112d73: 8b 30 mov (%eax),%esi
112d75: 8b 7d c8 mov -0x38(%ebp),%edi
112d78: 8b 4d cc mov -0x34(%ebp),%ecx
112d7b: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
copied += my_length;
112d7d: 8b 45 cc mov -0x34(%ebp),%eax
112d80: 01 45 c4 add %eax,-0x3c(%ebp)
}
IMFS_update_atime( the_jnode );
112d83: 83 ec 08 sub $0x8,%esp
112d86: 6a 00 push $0x0
112d88: 8d 45 e0 lea -0x20(%ebp),%eax
112d8b: 50 push %eax
112d8c: e8 cf 58 ff ff call 108660 <gettimeofday>
112d91: 8b 45 e0 mov -0x20(%ebp),%eax
112d94: 8b 55 08 mov 0x8(%ebp),%edx
112d97: 89 42 40 mov %eax,0x40(%edx)
return copied;
112d9a: 8b 45 c4 mov -0x3c(%ebp),%eax
112d9d: 83 c4 10 add $0x10,%esp
}
112da0: 8d 65 f4 lea -0xc(%ebp),%esp
112da3: 5b pop %ebx
112da4: 5e pop %esi
112da5: 5f pop %edi
112da6: c9 leave
112da7: c3 ret
* If the last byte we are supposed to read is past the end of this
* in memory file, then shorten the length to read.
*/
last_byte = start + length;
if ( last_byte > the_jnode->info.file.size )
112da8: 0f 8d ba 00 00 00 jge 112e68 <IMFS_memfile_read+0x20c><== ALWAYS TAKEN
112dae: 89 45 cc mov %eax,-0x34(%ebp)
112db1: e9 18 ff ff ff jmp 112cce <IMFS_memfile_read+0x72>
112db6: 66 90 xchg %ax,%ax
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
112db8: 52 push %edx
112db9: 6a 00 push $0x0
112dbb: 53 push %ebx
112dbc: ff 75 08 pushl 0x8(%ebp)
112dbf: e8 78 f3 ff ff call 11213c <IMFS_memfile_get_block_pointer>
assert( block_ptr );
112dc4: 83 c4 10 add $0x10,%esp
112dc7: 85 c0 test %eax,%eax
112dc9: 0f 84 51 01 00 00 je 112f20 <IMFS_memfile_read+0x2c4><== NEVER TAKEN
*/
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;
112dcf: 8b 4d d0 mov -0x30(%ebp),%ecx
112dd2: 2b 4d c8 sub -0x38(%ebp),%ecx
112dd5: 8b 55 cc mov -0x34(%ebp),%edx
112dd8: 39 ca cmp %ecx,%edx
112dda: 0f 87 9c 00 00 00 ja 112e7c <IMFS_memfile_read+0x220>
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 );
112de0: 8b 75 c8 mov -0x38(%ebp),%esi
112de3: 03 30 add (%eax),%esi
dest += to_copy;
112de5: 8b 7d 14 mov 0x14(%ebp),%edi
112de8: 89 d1 mov %edx,%ecx
112dea: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
112dec: 89 7d c8 mov %edi,-0x38(%ebp)
block++;
112def: 43 inc %ebx
my_length -= to_copy;
112df0: 29 55 cc sub %edx,-0x34(%ebp)
112df3: a1 98 6e 12 00 mov 0x126e98,%eax
112df8: 89 45 d0 mov %eax,-0x30(%ebp)
112dfb: 89 55 c4 mov %edx,-0x3c(%ebp)
112dfe: e9 11 ff ff ff jmp 112d14 <IMFS_memfile_read+0xb8>
112e03: 90 nop
* than block files).
*/
if (the_jnode->type == IMFS_LINEAR_FILE) {
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
112e04: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
112e07: 8b 5b 58 mov 0x58(%ebx),%ebx <== NOT EXECUTED
112e0a: 89 5d cc mov %ebx,-0x34(%ebp) <== NOT EXECUTED
if (my_length > (the_jnode->info.linearfile.size - start))
112e0d: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
112e10: 8b 51 50 mov 0x50(%ecx),%edx <== NOT EXECUTED
112e13: 8b 49 54 mov 0x54(%ecx),%ecx <== NOT EXECUTED
112e16: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
112e19: 89 4d b4 mov %ecx,-0x4c(%ebp) <== NOT EXECUTED
112e1c: 29 f2 sub %esi,%edx <== NOT EXECUTED
112e1e: 19 f9 sbb %edi,%ecx <== NOT EXECUTED
112e20: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
112e23: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
112e26: 31 db xor %ebx,%ebx <== NOT EXECUTED
112e28: 39 cb cmp %ecx,%ebx <== NOT EXECUTED
112e2a: 7e 58 jle 112e84 <IMFS_memfile_read+0x228><== NOT EXECUTED
my_length = the_jnode->info.linearfile.size - start;
112e2c: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED
112e2f: 29 f2 sub %esi,%edx <== NOT EXECUTED
memcpy(dest, &file_ptr[start], my_length);
112e31: 03 75 cc add -0x34(%ebp),%esi <== NOT EXECUTED
112e34: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
112e37: 89 d1 mov %edx,%ecx <== NOT EXECUTED
112e39: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
IMFS_update_atime( the_jnode );
112e3b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
112e3e: 6a 00 push $0x0 <== NOT EXECUTED
112e40: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
112e43: 50 push %eax <== NOT EXECUTED
112e44: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
112e47: e8 14 58 ff ff call 108660 <gettimeofday> <== NOT EXECUTED
112e4c: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
112e4f: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
112e52: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
return my_length;
112e55: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
112e58: 89 d0 mov %edx,%eax <== NOT EXECUTED
112e5a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
IMFS_update_atime( the_jnode );
return copied;
}
112e5d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
112e60: 5b pop %ebx <== NOT EXECUTED
112e61: 5e pop %esi <== NOT EXECUTED
112e62: 5f pop %edi <== NOT EXECUTED
112e63: c9 leave <== NOT EXECUTED
112e64: c3 ret <== NOT EXECUTED
112e65: 8d 76 00 lea 0x0(%esi),%esi <== 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;
if ( last_byte > the_jnode->info.file.size )
112e68: 8b 4d cc mov -0x34(%ebp),%ecx
112e6b: 39 4d d0 cmp %ecx,-0x30(%ebp)
112e6e: 0f 87 52 fe ff ff ja 112cc6 <IMFS_memfile_read+0x6a>
112e74: e9 35 ff ff ff jmp 112dae <IMFS_memfile_read+0x152>
112e79: 8d 76 00 lea 0x0(%esi),%esi
*/
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;
112e7c: 89 ca mov %ecx,%edx
112e7e: e9 5d ff ff ff jmp 112de0 <IMFS_memfile_read+0x184>
112e83: 90 nop
if (the_jnode->type == IMFS_LINEAR_FILE) {
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
if (my_length > (the_jnode->info.linearfile.size - start))
112e84: 7c 04 jl 112e8a <IMFS_memfile_read+0x22e><== NOT EXECUTED
112e86: 39 d0 cmp %edx,%eax <== NOT EXECUTED
112e88: 77 a2 ja 112e2c <IMFS_memfile_read+0x1d0><== NOT EXECUTED
112e8a: 89 c2 mov %eax,%edx <== NOT EXECUTED
112e8c: eb a3 jmp 112e31 <IMFS_memfile_read+0x1d5><== NOT EXECUTED
* If there is nothing to read, then quick exit.
*/
my_length = length;
if ( !my_length )
rtems_set_errno_and_return_minus_one( EINVAL );
112e8e: e8 ad 0f 00 00 call 113e40 <__errno> <== NOT EXECUTED
112e93: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
112e99: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
112e9e: e9 fd fe ff ff jmp 112da0 <IMFS_memfile_read+0x144><== NOT EXECUTED
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
112ea3: 68 96 1f 12 00 push $0x121f96 <== NOT EXECUTED
112ea8: 68 9e 20 12 00 push $0x12209e <== NOT EXECUTED
112ead: 68 a7 02 00 00 push $0x2a7 <== NOT EXECUTED
112eb2: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112eb7: e8 e8 53 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
/*
* Error checks on arguments
*/
assert( dest );
112ebc: 68 a7 1f 12 00 push $0x121fa7 <== NOT EXECUTED
112ec1: 68 9e 20 12 00 push $0x12209e <== NOT EXECUTED
112ec6: 68 5a 02 00 00 push $0x25a <== NOT EXECUTED
112ecb: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112ed0: e8 cf 53 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
if ( my_length ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
112ed5: 68 96 1f 12 00 push $0x121f96 <== NOT EXECUTED
112eda: 68 9e 20 12 00 push $0x12209e <== NOT EXECUTED
112edf: 68 b9 02 00 00 push $0x2b9 <== NOT EXECUTED
112ee4: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112ee9: e8 b6 53 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
assert( the_jnode );
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE ||
112eee: 68 20 20 12 00 push $0x122020 <== NOT EXECUTED
112ef3: 68 9e 20 12 00 push $0x12209e <== NOT EXECUTED
112ef8: 68 51 02 00 00 push $0x251 <== NOT EXECUTED
112efd: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112f02: e8 9d 53 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
/*
* Perform internal consistency checks
*/
assert( the_jnode );
112f07: 68 80 1f 12 00 push $0x121f80 <== NOT EXECUTED
112f0c: 68 9e 20 12 00 push $0x12209e <== NOT EXECUTED
112f11: 68 4c 02 00 00 push $0x24c <== NOT EXECUTED
112f16: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112f1b: e8 84 53 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
112f20: 68 96 1f 12 00 push $0x121f96 <== NOT EXECUTED
112f25: 68 9e 20 12 00 push $0x12209e <== NOT EXECUTED
112f2a: 68 96 02 00 00 push $0x296 <== NOT EXECUTED
112f2f: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112f34: e8 6b 53 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
001123e4 <IMFS_memfile_remove>:
*/
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode
)
{
1123e4: 55 push %ebp
1123e5: 89 e5 mov %esp,%ebp
1123e7: 57 push %edi
1123e8: 56 push %esi
1123e9: 53 push %ebx
1123ea: 83 ec 1c sub $0x1c,%esp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
1123ed: 8b 55 08 mov 0x8(%ebp),%edx
1123f0: 85 d2 test %edx,%edx
1123f2: 0f 84 61 01 00 00 je 112559 <IMFS_memfile_remove+0x175><== NEVER TAKEN
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
1123f8: 8b 45 08 mov 0x8(%ebp),%eax
1123fb: 83 78 4c 05 cmpl $0x5,0x4c(%eax)
1123ff: 0f 85 6d 01 00 00 jne 112572 <IMFS_memfile_remove+0x18e><== NEVER TAKEN
/*
* 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;
112405: 8b 3d 98 6e 12 00 mov 0x126e98,%edi
11240b: c1 ef 02 shr $0x2,%edi
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
11240e: 8b 55 08 mov 0x8(%ebp),%edx
112411: 8b 42 58 mov 0x58(%edx),%eax
112414: 85 c0 test %eax,%eax
112416: 74 12 je 11242a <IMFS_memfile_remove+0x46>
if ( info->indirect ) {
memfile_free_blocks_in_table( &info->indirect, to_free );
112418: 83 ec 08 sub $0x8,%esp
11241b: 57 push %edi
11241c: 89 d0 mov %edx,%eax
11241e: 83 c0 58 add $0x58,%eax
112421: 50 push %eax
112422: e8 f5 fe ff ff call 11231c <memfile_free_blocks_in_table>
112427: 83 c4 10 add $0x10,%esp
}
if ( info->doubly_indirect ) {
11242a: 8b 4d 08 mov 0x8(%ebp),%ecx
11242d: 8b 51 5c mov 0x5c(%ecx),%edx
112430: 85 d2 test %edx,%edx
112432: 74 57 je 11248b <IMFS_memfile_remove+0xa7><== ALWAYS TAKEN
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
112434: a1 98 6e 12 00 mov 0x126e98,%eax <== NOT EXECUTED
112439: 89 c1 mov %eax,%ecx <== NOT EXECUTED
11243b: c1 e9 02 shr $0x2,%ecx <== NOT EXECUTED
11243e: 74 38 je 112478 <IMFS_memfile_remove+0x94><== NOT EXECUTED
112440: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
112442: 31 db xor %ebx,%ebx <== NOT EXECUTED
112444: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
112447: eb 06 jmp 11244f <IMFS_memfile_remove+0x6b><== NOT EXECUTED
112449: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
11244c: 8b 56 5c mov 0x5c(%esi),%edx <== NOT EXECUTED
if ( info->doubly_indirect[i] ) {
11244f: c1 e1 02 shl $0x2,%ecx <== NOT EXECUTED
112452: 83 3c 0a 00 cmpl $0x0,(%edx,%ecx,1) <== NOT EXECUTED
112456: 74 14 je 11246c <IMFS_memfile_remove+0x88><== NOT EXECUTED
memfile_free_blocks_in_table(
112458: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
11245b: 57 push %edi <== NOT EXECUTED
11245c: 01 ca add %ecx,%edx <== NOT EXECUTED
11245e: 52 push %edx <== NOT EXECUTED
11245f: e8 b8 fe ff ff call 11231c <memfile_free_blocks_in_table><== NOT EXECUTED
112464: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
112467: a1 98 6e 12 00 mov 0x126e98,%eax <== NOT EXECUTED
memfile_free_blocks_in_table( &info->indirect, to_free );
}
if ( info->doubly_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
11246c: 43 inc %ebx <== NOT EXECUTED
11246d: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
11246f: 89 c2 mov %eax,%edx <== NOT EXECUTED
112471: c1 ea 02 shr $0x2,%edx <== NOT EXECUTED
112474: 39 da cmp %ebx,%edx <== NOT EXECUTED
112476: 77 d4 ja 11244c <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 );
112478: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
11247b: 57 push %edi <== NOT EXECUTED
11247c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
11247f: 83 c0 5c add $0x5c,%eax <== NOT EXECUTED
112482: 50 push %eax <== NOT EXECUTED
112483: e8 94 fe ff ff call 11231c <memfile_free_blocks_in_table><== NOT EXECUTED
112488: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
if ( info->triply_indirect ) {
11248b: 8b 45 08 mov 0x8(%ebp),%eax
11248e: 8b 50 60 mov 0x60(%eax),%edx
112491: 85 d2 test %edx,%edx
112493: 0f 84 b6 00 00 00 je 11254f <IMFS_memfile_remove+0x16b><== ALWAYS TAKEN
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
112499: a1 98 6e 12 00 mov 0x126e98,%eax <== NOT EXECUTED
11249e: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1124a0: c1 e9 02 shr $0x2,%ecx <== NOT EXECUTED
1124a3: 0f 84 93 00 00 00 je 11253c <IMFS_memfile_remove+0x158><== NOT EXECUTED
p = (block_p *) info->triply_indirect[i];
1124a9: 8b 32 mov (%edx),%esi <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
1124ab: 85 f6 test %esi,%esi <== NOT EXECUTED
1124ad: 0f 84 89 00 00 00 je 11253c <IMFS_memfile_remove+0x158><== NOT EXECUTED
1124b3: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
1124ba: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
1124c1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break;
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
1124c4: 89 c2 mov %eax,%edx <== NOT EXECUTED
1124c6: c1 ea 02 shr $0x2,%edx <== NOT EXECUTED
1124c9: 74 30 je 1124fb <IMFS_memfile_remove+0x117><== NOT EXECUTED
1124cb: 31 d2 xor %edx,%edx <== NOT EXECUTED
1124cd: 31 db xor %ebx,%ebx <== NOT EXECUTED
1124cf: 90 nop <== NOT EXECUTED
if ( p[j] ) {
1124d0: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED
1124d3: 8b 0c 16 mov (%esi,%edx,1),%ecx <== NOT EXECUTED
1124d6: 85 c9 test %ecx,%ecx <== NOT EXECUTED
1124d8: 74 15 je 1124ef <IMFS_memfile_remove+0x10b><== NOT EXECUTED
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
1124da: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1124dd: 57 push %edi <== NOT EXECUTED
1124de: 8d 14 16 lea (%esi,%edx,1),%edx <== NOT EXECUTED
1124e1: 52 push %edx <== NOT EXECUTED
1124e2: e8 35 fe ff ff call 11231c <memfile_free_blocks_in_table><== NOT EXECUTED
1124e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1124ea: a1 98 6e 12 00 mov 0x126e98,%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++ ) {
1124ef: 43 inc %ebx <== NOT EXECUTED
1124f0: 89 da mov %ebx,%edx <== NOT EXECUTED
1124f2: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1124f4: c1 e9 02 shr $0x2,%ecx <== NOT EXECUTED
1124f7: 39 d9 cmp %ebx,%ecx <== NOT EXECUTED
1124f9: 77 d5 ja 1124d0 <IMFS_memfile_remove+0xec><== NOT EXECUTED
if ( p[j] ) {
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
}
}
memfile_free_blocks_in_table(
1124fb: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1124fe: 57 push %edi <== NOT EXECUTED
1124ff: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
112502: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
112505: 03 41 60 add 0x60(%ecx),%eax <== NOT EXECUTED
112508: 50 push %eax <== NOT EXECUTED
112509: e8 0e fe ff ff call 11231c <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++ ) {
11250e: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED
112511: a1 98 6e 12 00 mov 0x126e98,%eax <== NOT EXECUTED
112516: 89 c2 mov %eax,%edx <== NOT EXECUTED
112518: c1 ea 02 shr $0x2,%edx <== NOT EXECUTED
11251b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11251e: 3b 55 e4 cmp -0x1c(%ebp),%edx <== NOT EXECUTED
112521: 76 19 jbe 11253c <IMFS_memfile_remove+0x158><== NOT EXECUTED
p = (block_p *) info->triply_indirect[i];
if ( !p ) /* ensure we have a valid pointer */
112523: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
112526: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED
112529: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
p = (block_p *) info->triply_indirect[i];
11252c: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
11252f: 8b 51 60 mov 0x60(%ecx),%edx <== NOT EXECUTED
112532: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
112535: 8b 34 0a mov (%edx,%ecx,1),%esi <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
112538: 85 f6 test %esi,%esi <== NOT EXECUTED
11253a: 75 88 jne 1124c4 <IMFS_memfile_remove+0xe0><== NOT EXECUTED
}
}
memfile_free_blocks_in_table(
(block_p **)&info->triply_indirect[i], to_free );
}
memfile_free_blocks_in_table(
11253c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
11253f: 57 push %edi <== NOT EXECUTED
112540: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
112543: 83 c0 60 add $0x60,%eax <== NOT EXECUTED
112546: 50 push %eax <== NOT EXECUTED
112547: e8 d0 fd ff ff call 11231c <memfile_free_blocks_in_table><== NOT EXECUTED
11254c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
(block_p **)&info->triply_indirect, to_free );
}
return 0;
}
11254f: 31 c0 xor %eax,%eax
112551: 8d 65 f4 lea -0xc(%ebp),%esp
112554: 5b pop %ebx
112555: 5e pop %esi
112556: 5f pop %edi
112557: c9 leave
112558: c3 ret
/*
* Perform internal consistency checks
*/
assert( the_jnode );
112559: 68 80 1f 12 00 push $0x121f80 <== NOT EXECUTED
11255e: 68 b0 20 12 00 push $0x1220b0 <== NOT EXECUTED
112563: 68 ee 01 00 00 push $0x1ee <== NOT EXECUTED
112568: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
11256d: e8 32 5d ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
112572: 68 fc 1f 12 00 push $0x121ffc <== NOT EXECUTED
112577: 68 b0 20 12 00 push $0x1220b0 <== NOT EXECUTED
11257c: 68 f2 01 00 00 push $0x1f2 <== NOT EXECUTED
112581: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112586: e8 19 5d ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
00112398 <IMFS_memfile_remove_block>:
MEMFILE_STATIC int IMFS_memfile_remove_block(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
112398: 55 push %ebp <== NOT EXECUTED
112399: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11239b: 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 );
11239e: 6a 00 push $0x0 <== NOT EXECUTED
1123a0: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1123a3: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1123a6: e8 91 fd ff ff call 11213c <IMFS_memfile_get_block_pointer><== NOT EXECUTED
assert( block_ptr );
1123ab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1123ae: 85 c0 test %eax,%eax <== NOT EXECUTED
1123b0: 74 18 je 1123ca <IMFS_memfile_remove_block+0x32><== NOT EXECUTED
if ( block_ptr ) {
ptr = *block_ptr;
1123b2: 8b 10 mov (%eax),%edx <== NOT EXECUTED
*block_ptr = 0;
1123b4: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
memfile_free_block( ptr );
1123ba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1123bd: 52 push %edx <== NOT EXECUTED
1123be: e8 39 fd ff ff call 1120fc <memfile_free_block> <== NOT EXECUTED
}
return 1;
}
1123c3: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
1123c8: c9 leave <== NOT EXECUTED
1123c9: c3 ret <== NOT EXECUTED
{
block_p *block_ptr;
block_p ptr;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
1123ca: 68 96 1f 12 00 push $0x121f96 <== NOT EXECUTED
1123cf: 68 e1 20 12 00 push $0x1220e1 <== NOT EXECUTED
1123d4: 68 96 01 00 00 push $0x196 <== NOT EXECUTED
1123d9: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
1123de: e8 c1 5e ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
0011292c <IMFS_memfile_write>:
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
11292c: 55 push %ebp
11292d: 89 e5 mov %esp,%ebp
11292f: 57 push %edi
112930: 56 push %esi
112931: 53 push %ebx
112932: 83 ec 3c sub $0x3c,%esp
112935: 8b 5d 0c mov 0xc(%ebp),%ebx
112938: 8b 75 10 mov 0x10(%ebp),%esi
/*
* Perform internal consistency checks
*/
assert( the_jnode );
11293b: 8b 4d 08 mov 0x8(%ebp),%ecx
11293e: 85 c9 test %ecx,%ecx
112940: 0f 84 d8 01 00 00 je 112b1e <IMFS_memfile_write+0x1f2><== NEVER TAKEN
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
112946: 8b 45 08 mov 0x8(%ebp),%eax
112949: 83 78 4c 05 cmpl $0x5,0x4c(%eax)
11294d: 0f 85 b2 01 00 00 jne 112b05 <IMFS_memfile_write+0x1d9><== NEVER TAKEN
/*
* Error check arguments
*/
assert( source );
112953: 8b 55 14 mov 0x14(%ebp),%edx
112956: 85 d2 test %edx,%edx
112958: 0f 84 d9 01 00 00 je 112b37 <IMFS_memfile_write+0x20b><== NEVER TAKEN
/*
* If there is nothing to write, then quick exit.
*/
my_length = length;
if ( !my_length )
11295e: 8b 45 18 mov 0x18(%ebp),%eax
112961: 85 c0 test %eax,%eax
112963: 0f 84 6c 01 00 00 je 112ad5 <IMFS_memfile_write+0x1a9><== NEVER TAKEN
* 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 ) {
112969: 8b 45 18 mov 0x18(%ebp),%eax
11296c: 01 d8 add %ebx,%eax
11296e: 31 d2 xor %edx,%edx
112970: 8b 4d 08 mov 0x8(%ebp),%ecx
112973: 3b 51 54 cmp 0x54(%ecx),%edx
112976: 7c 10 jl 112988 <IMFS_memfile_write+0x5c><== NEVER TAKEN
112978: 0f 8f 26 01 00 00 jg 112aa4 <IMFS_memfile_write+0x178><== NEVER TAKEN
11297e: 3b 41 50 cmp 0x50(%ecx),%eax
112981: 0f 87 1d 01 00 00 ja 112aa4 <IMFS_memfile_write+0x178><== ALWAYS TAKEN
112987: 90 nop
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
112988: a1 98 6e 12 00 mov 0x126e98,%eax
11298d: 89 45 d4 mov %eax,-0x2c(%ebp)
112990: 99 cltd
112991: 89 45 c8 mov %eax,-0x38(%ebp)
112994: 89 55 cc mov %edx,-0x34(%ebp)
112997: 52 push %edx
112998: 50 push %eax
112999: 56 push %esi
11299a: 53 push %ebx
11299b: e8 2c c6 00 00 call 11efcc <__moddi3>
1129a0: 83 c4 10 add $0x10,%esp
1129a3: 89 c7 mov %eax,%edi
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
1129a5: ff 75 cc pushl -0x34(%ebp)
1129a8: ff 75 c8 pushl -0x38(%ebp)
1129ab: 56 push %esi
1129ac: 53 push %ebx
1129ad: e8 ca c4 00 00 call 11ee7c <__divdi3>
1129b2: 83 c4 10 add $0x10,%esp
1129b5: 89 c3 mov %eax,%ebx
if ( start_offset ) {
1129b7: 85 ff test %edi,%edi
1129b9: 0f 85 a1 00 00 00 jne 112a60 <IMFS_memfile_write+0x134>
1129bf: 8b 75 14 mov 0x14(%ebp),%esi
1129c2: 8b 55 18 mov 0x18(%ebp),%edx
1129c5: c7 45 c8 00 00 00 00 movl $0x0,-0x38(%ebp)
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
1129cc: 3b 55 d4 cmp -0x2c(%ebp),%edx
1129cf: 72 3b jb 112a0c <IMFS_memfile_write+0xe0>
1129d1: 8d 76 00 lea 0x0(%esi),%esi
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
1129d4: 51 push %ecx
1129d5: 6a 00 push $0x0
1129d7: 53 push %ebx
1129d8: ff 75 08 pushl 0x8(%ebp)
1129db: 89 55 c4 mov %edx,-0x3c(%ebp)
1129de: e8 59 f7 ff ff call 11213c <IMFS_memfile_get_block_pointer>
assert( block_ptr );
1129e3: 83 c4 10 add $0x10,%esp
1129e6: 85 c0 test %eax,%eax
1129e8: 8b 55 c4 mov -0x3c(%ebp),%edx
1129eb: 0f 84 fb 00 00 00 je 112aec <IMFS_memfile_write+0x1c0><== NEVER TAKEN
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 );
1129f1: 8b 00 mov (%eax),%eax
src += to_copy;
1129f3: 89 c7 mov %eax,%edi
1129f5: 8b 4d d4 mov -0x2c(%ebp),%ecx
1129f8: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
block++;
1129fa: 43 inc %ebx
my_length -= to_copy;
1129fb: 2b 55 d4 sub -0x2c(%ebp),%edx
*
* 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(
1129fe: 8b 4d d4 mov -0x2c(%ebp),%ecx
112a01: 01 4d c8 add %ecx,-0x38(%ebp)
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
112a04: 39 15 98 6e 12 00 cmp %edx,0x126e98
112a0a: 76 c8 jbe 1129d4 <IMFS_memfile_write+0xa8>
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
to_copy = my_length;
if ( my_length ) {
112a0c: 85 d2 test %edx,%edx
112a0e: 74 28 je 112a38 <IMFS_memfile_write+0x10c>
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
112a10: 50 push %eax
112a11: 6a 00 push $0x0
112a13: 53 push %ebx
112a14: ff 75 08 pushl 0x8(%ebp)
112a17: 89 55 c4 mov %edx,-0x3c(%ebp)
112a1a: e8 1d f7 ff ff call 11213c <IMFS_memfile_get_block_pointer>
assert( block_ptr );
112a1f: 83 c4 10 add $0x10,%esp
112a22: 85 c0 test %eax,%eax
112a24: 8b 55 c4 mov -0x3c(%ebp),%edx
112a27: 0f 84 23 01 00 00 je 112b50 <IMFS_memfile_write+0x224><== NEVER TAKEN
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 );
112a2d: 8b 00 mov (%eax),%eax
112a2f: 89 c7 mov %eax,%edi
112a31: 89 d1 mov %edx,%ecx
112a33: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
my_length = 0;
copied += to_copy;
112a35: 01 55 c8 add %edx,-0x38(%ebp)
}
IMFS_mtime_ctime_update( the_jnode );
112a38: 83 ec 08 sub $0x8,%esp
112a3b: 6a 00 push $0x0
112a3d: 8d 45 e0 lea -0x20(%ebp),%eax
112a40: 50 push %eax
112a41: e8 1a 5c ff ff call 108660 <gettimeofday>
112a46: 8b 45 e0 mov -0x20(%ebp),%eax
112a49: 8b 55 08 mov 0x8(%ebp),%edx
112a4c: 89 42 44 mov %eax,0x44(%edx)
112a4f: 89 42 48 mov %eax,0x48(%edx)
return copied;
112a52: 83 c4 10 add $0x10,%esp
}
112a55: 8b 45 c8 mov -0x38(%ebp),%eax
112a58: 8d 65 f4 lea -0xc(%ebp),%esp
112a5b: 5b pop %ebx
112a5c: 5e pop %esi
112a5d: 5f pop %edi
112a5e: c9 leave
112a5f: c3 ret
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
112a60: 56 push %esi
112a61: 6a 00 push $0x0
112a63: 50 push %eax
112a64: ff 75 08 pushl 0x8(%ebp)
112a67: e8 d0 f6 ff ff call 11213c <IMFS_memfile_get_block_pointer>
assert( block_ptr );
112a6c: 83 c4 10 add $0x10,%esp
112a6f: 85 c0 test %eax,%eax
112a71: 0f 84 f2 00 00 00 je 112b69 <IMFS_memfile_write+0x23d><== NEVER TAKEN
*/
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;
112a77: 8b 55 d4 mov -0x2c(%ebp),%edx
112a7a: 29 fa sub %edi,%edx
112a7c: 89 55 c8 mov %edx,-0x38(%ebp)
112a7f: 8b 4d 18 mov 0x18(%ebp),%ecx
112a82: 39 ca cmp %ecx,%edx
112a84: 77 4a ja 112ad0 <IMFS_memfile_write+0x1a4>
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 );
112a86: 03 38 add (%eax),%edi
src += to_copy;
112a88: 8b 75 14 mov 0x14(%ebp),%esi
112a8b: 8b 4d c8 mov -0x38(%ebp),%ecx
112a8e: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
block++;
112a90: 43 inc %ebx
my_length -= to_copy;
112a91: 8b 55 18 mov 0x18(%ebp),%edx
112a94: 2b 55 c8 sub -0x38(%ebp),%edx
copied += to_copy;
112a97: a1 98 6e 12 00 mov 0x126e98,%eax
112a9c: 89 45 d4 mov %eax,-0x2c(%ebp)
112a9f: e9 28 ff ff ff jmp 1129cc <IMFS_memfile_write+0xa0>
* in memory file, then extend the length.
*/
last_byte = start + length;
if ( last_byte > the_jnode->info.file.size ) {
status = IMFS_memfile_extend( the_jnode, last_byte );
112aa4: 57 push %edi
112aa5: 52 push %edx
112aa6: 50 push %eax
112aa7: ff 75 08 pushl 0x8(%ebp)
112aaa: e8 2d fc ff ff call 1126dc <IMFS_memfile_extend>
if ( status )
112aaf: 83 c4 10 add $0x10,%esp
112ab2: 85 c0 test %eax,%eax
112ab4: 0f 84 ce fe ff ff je 112988 <IMFS_memfile_write+0x5c><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOSPC );
112aba: e8 81 13 00 00 call 113e40 <__errno> <== NOT EXECUTED
112abf: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED
112ac5: c7 45 c8 ff ff ff ff movl $0xffffffff,-0x38(%ebp) <== NOT EXECUTED
112acc: eb 87 jmp 112a55 <IMFS_memfile_write+0x129><== NOT EXECUTED
112ace: 66 90 xchg %ax,%ax <== 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;
112ad0: 89 4d c8 mov %ecx,-0x38(%ebp)
112ad3: eb b1 jmp 112a86 <IMFS_memfile_write+0x15a>
* If there is nothing to write, then quick exit.
*/
my_length = length;
if ( !my_length )
rtems_set_errno_and_return_minus_one( EINVAL );
112ad5: e8 66 13 00 00 call 113e40 <__errno> <== NOT EXECUTED
112ada: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
112ae0: c7 45 c8 ff ff ff ff movl $0xffffffff,-0x38(%ebp) <== NOT EXECUTED
112ae7: e9 69 ff ff ff jmp 112a55 <IMFS_memfile_write+0x129><== NOT EXECUTED
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
112aec: 68 96 1f 12 00 push $0x121f96 <== NOT EXECUTED
112af1: 68 8b 20 12 00 push $0x12208b <== NOT EXECUTED
112af6: 68 30 03 00 00 push $0x330 <== NOT EXECUTED
112afb: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112b00: e8 9f 57 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
assert( the_jnode );
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
112b05: 68 fc 1f 12 00 push $0x121ffc <== NOT EXECUTED
112b0a: 68 8b 20 12 00 push $0x12208b <== NOT EXECUTED
112b0f: 68 e7 02 00 00 push $0x2e7 <== NOT EXECUTED
112b14: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112b19: e8 86 57 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
/*
* Perform internal consistency checks
*/
assert( the_jnode );
112b1e: 68 80 1f 12 00 push $0x121f80 <== NOT EXECUTED
112b23: 68 8b 20 12 00 push $0x12208b <== NOT EXECUTED
112b28: 68 e3 02 00 00 push $0x2e3 <== NOT EXECUTED
112b2d: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112b32: e8 6d 57 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
/*
* Error check arguments
*/
assert( source );
112b37: 68 a0 1f 12 00 push $0x121fa0 <== NOT EXECUTED
112b3c: 68 8b 20 12 00 push $0x12208b <== NOT EXECUTED
112b41: 68 ef 02 00 00 push $0x2ef <== NOT EXECUTED
112b46: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112b4b: e8 54 57 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
to_copy = my_length;
if ( my_length ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
112b50: 68 96 1f 12 00 push $0x121f96 <== NOT EXECUTED
112b55: 68 8b 20 12 00 push $0x12208b <== NOT EXECUTED
112b5a: 68 46 03 00 00 push $0x346 <== NOT EXECUTED
112b5f: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112b64: e8 3b 57 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
112b69: 68 96 1f 12 00 push $0x121f96 <== NOT EXECUTED
112b6e: 68 8b 20 12 00 push $0x12208b <== NOT EXECUTED
112b73: 68 1c 03 00 00 push $0x31c <== NOT EXECUTED
112b78: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112b7d: e8 22 57 ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
00107dec <IMFS_mknod>:
const char *token, /* IN */
mode_t mode, /* IN */
dev_t dev, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
107dec: 55 push %ebp
107ded: 89 e5 mov %esp,%ebp
107def: 57 push %edi
107df0: 56 push %esi
107df1: 53 push %ebx
107df2: 83 ec 5c sub $0x5c,%esp
107df5: 8b 55 08 mov 0x8(%ebp),%edx
107df8: 8b 5d 0c mov 0xc(%ebp),%ebx
107dfb: 8b 75 10 mov 0x10(%ebp),%esi
107dfe: 8b 45 14 mov 0x14(%ebp),%eax
107e01: 89 45 a4 mov %eax,-0x5c(%ebp)
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 );
107e04: 31 c0 xor %eax,%eax
107e06: b9 ff ff ff ff mov $0xffffffff,%ecx
107e0b: 89 d7 mov %edx,%edi
107e0d: f2 ae repnz scas %es:(%edi),%al
107e0f: f7 d1 not %ecx
107e11: 49 dec %ecx
107e12: 8d 45 e4 lea -0x1c(%ebp),%eax
107e15: 50 push %eax
107e16: 8d 7d af lea -0x51(%ebp),%edi
107e19: 57 push %edi
107e1a: 51 push %ecx
107e1b: 52 push %edx
107e1c: e8 53 8a 00 00 call 110874 <IMFS_get_token>
/*
* Figure out what type of IMFS node this is.
*/
if ( S_ISDIR(mode) )
107e21: 89 d8 mov %ebx,%eax
107e23: 25 00 f0 00 00 and $0xf000,%eax
107e28: 83 c4 10 add $0x10,%esp
107e2b: 3d 00 40 00 00 cmp $0x4000,%eax
107e30: 74 5e je 107e90 <IMFS_mknod+0xa4>
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
107e32: 3d 00 80 00 00 cmp $0x8000,%eax
107e37: 74 4f je 107e88 <IMFS_mknod+0x9c>
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
107e39: 3d 00 60 00 00 cmp $0x6000,%eax
107e3e: 74 38 je 107e78 <IMFS_mknod+0x8c>
107e40: 3d 00 20 00 00 cmp $0x2000,%eax
107e45: 74 31 je 107e78 <IMFS_mknod+0x8c>
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
}
else if (S_ISFIFO(mode))
107e47: 3d 00 10 00 00 cmp $0x1000,%eax
107e4c: 75 4a jne 107e98 <IMFS_mknod+0xac> <== NEVER TAKEN
107e4e: ba 07 00 00 00 mov $0x7,%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(
107e53: 83 ec 0c sub $0xc,%esp
107e56: 8d 45 d0 lea -0x30(%ebp),%eax
107e59: 50 push %eax
107e5a: 53 push %ebx
107e5b: 57 push %edi
107e5c: 52 push %edx
107e5d: ff 75 18 pushl 0x18(%ebp)
107e60: e8 07 7d 00 00 call 10fb6c <IMFS_create_node>
new_name,
mode,
&info
);
if ( !new_node )
107e65: 83 c4 20 add $0x20,%esp
107e68: 85 c0 test %eax,%eax
107e6a: 74 3e je 107eaa <IMFS_mknod+0xbe> <== NEVER TAKEN
107e6c: 31 c0 xor %eax,%eax
rtems_set_errno_and_return_minus_one( ENOMEM );
return 0;
}
107e6e: 8d 65 f4 lea -0xc(%ebp),%esp
107e71: 5b pop %ebx
107e72: 5e pop %esi
107e73: 5f pop %edi
107e74: c9 leave
107e75: c3 ret
107e76: 66 90 xchg %ax,%ax
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
107e78: 89 75 d0 mov %esi,-0x30(%ebp)
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
107e7b: 8b 45 a4 mov -0x5c(%ebp),%eax
107e7e: 89 45 d4 mov %eax,-0x2c(%ebp)
107e81: ba 02 00 00 00 mov $0x2,%edx
*/
if ( S_ISDIR(mode) )
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
107e86: eb cb jmp 107e53 <IMFS_mknod+0x67>
/*
* Figure out what type of IMFS node this is.
*/
if ( S_ISDIR(mode) )
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
107e88: ba 05 00 00 00 mov $0x5,%edx
107e8d: eb c4 jmp 107e53 <IMFS_mknod+0x67>
107e8f: 90 nop
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
}
else if (S_ISFIFO(mode))
type = IMFS_FIFO;
else {
rtems_set_errno_and_return_minus_one( EINVAL );
107e90: ba 01 00 00 00 mov $0x1,%edx
107e95: eb bc jmp 107e53 <IMFS_mknod+0x67>
107e97: 90 nop
107e98: e8 a3 bf 00 00 call 113e40 <__errno> <== NOT EXECUTED
107e9d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
107ea3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
107ea8: eb c4 jmp 107e6e <IMFS_mknod+0x82> <== NOT EXECUTED
mode,
&info
);
if ( !new_node )
rtems_set_errno_and_return_minus_one( ENOMEM );
107eaa: e8 91 bf 00 00 call 113e40 <__errno> <== NOT EXECUTED
107eaf: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
107eb5: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
107eba: eb b2 jmp 107e6e <IMFS_mknod+0x82> <== NOT EXECUTED
00107ebc <IMFS_mount>:
#include <rtems/seterr.h>
int IMFS_mount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
107ebc: 55 push %ebp
107ebd: 89 e5 mov %esp,%ebp
107ebf: 83 ec 08 sub $0x8,%esp
107ec2: 8b 55 08 mov 0x8(%ebp),%edx
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
107ec5: 8b 42 08 mov 0x8(%edx),%eax
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
107ec8: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
107ecc: 75 0a jne 107ed8 <IMFS_mount+0x1c> <== NEVER TAKEN
/*
* Set mt_fs pointer to point to the mount table entry for
* the mounted file system.
*/
node->info.directory.mt_fs = mt_entry;
107ece: 89 50 5c mov %edx,0x5c(%eax)
107ed1: 31 c0 xor %eax,%eax
return 0;
}
107ed3: c9 leave
107ed4: c3 ret
107ed5: 8d 76 00 lea 0x0(%esi),%esi
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
107ed8: e8 63 bf 00 00 call 113e40 <__errno> <== NOT EXECUTED
107edd: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
107ee3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
* the mounted file system.
*/
node->info.directory.mt_fs = mt_entry;
return 0;
}
107ee8: c9 leave <== NOT EXECUTED
107ee9: c3 ret <== NOT EXECUTED
00109bbc <IMFS_print_jnode>:
*/
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
109bbc: 55 push %ebp
109bbd: 89 e5 mov %esp,%ebp
109bbf: 53 push %ebx
109bc0: 83 ec 04 sub $0x4,%esp
109bc3: 8b 5d 08 mov 0x8(%ebp),%ebx
assert( the_jnode );
109bc6: 85 db test %ebx,%ebx
109bc8: 0f 84 7f 01 00 00 je 109d4d <IMFS_print_jnode+0x191><== NEVER TAKEN
fprintf(stdout, "%s", the_jnode->name );
109bce: 83 ec 08 sub $0x8,%esp
109bd1: a1 e0 be 12 00 mov 0x12bee0,%eax
109bd6: ff 70 08 pushl 0x8(%eax)
109bd9: 8d 43 0c lea 0xc(%ebx),%eax
109bdc: 50 push %eax
109bdd: e8 56 de 00 00 call 117a38 <fputs>
switch( the_jnode->type ) {
109be2: 8b 43 4c mov 0x4c(%ebx),%eax
109be5: 83 c4 10 add $0x10,%esp
109be8: 83 f8 07 cmp $0x7,%eax
109beb: 76 2b jbe 109c18 <IMFS_print_jnode+0x5c> <== ALWAYS TAKEN
fprintf(stdout, " FIFO not printed\n" );
assert(0);
break;
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
109bed: 52 push %edx <== NOT EXECUTED
109bee: 50 push %eax <== NOT EXECUTED
109bef: 68 ee 6b 12 00 push $0x126bee <== NOT EXECUTED
109bf4: a1 e0 be 12 00 mov 0x12bee0,%eax <== NOT EXECUTED
109bf9: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
109bfc: e8 0f dd 00 00 call 117910 <fprintf> <== NOT EXECUTED
assert(0);
109c01: 68 1f 45 12 00 push $0x12451f <== NOT EXECUTED
109c06: 68 58 6d 12 00 push $0x126d58 <== NOT EXECUTED
109c0b: 6a 6c push $0x6c <== NOT EXECUTED
109c0d: 68 38 6c 12 00 push $0x126c38 <== NOT EXECUTED
109c12: e8 85 09 00 00 call 10a59c <__assert_func> <== NOT EXECUTED
109c17: 90 nop <== NOT EXECUTED
)
{
assert( the_jnode );
fprintf(stdout, "%s", the_jnode->name );
switch( the_jnode->type ) {
109c18: ff 24 85 24 6d 12 00 jmp *0x126d24(,%eax,4)
109c1f: 90 nop
fprintf(stdout, " links not printed\n" );
assert(0);
break;
case IMFS_FIFO:
fprintf(stdout, " FIFO not printed\n" );
109c20: a1 e0 be 12 00 mov 0x12bee0,%eax <== NOT EXECUTED
109c25: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
109c28: 6a 12 push $0x12 <== NOT EXECUTED
109c2a: 6a 01 push $0x1 <== NOT EXECUTED
109c2c: 68 db 6b 12 00 push $0x126bdb <== NOT EXECUTED
109c31: e8 3a ea 00 00 call 118670 <fwrite> <== NOT EXECUTED
assert(0);
109c36: 68 1f 45 12 00 push $0x12451f <== NOT EXECUTED
109c3b: 68 58 6d 12 00 push $0x126d58 <== NOT EXECUTED
109c40: 6a 67 push $0x67 <== NOT EXECUTED
109c42: 68 38 6c 12 00 push $0x126c38 <== NOT EXECUTED
109c47: e8 50 09 00 00 call 10a59c <__assert_func> <== NOT EXECUTED
fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",
the_jnode->info.device.major, the_jnode->info.device.minor );
break;
case IMFS_LINEAR_FILE:
fprintf(stdout, " (file %" PRId32 " %p)",
109c4c: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
109c4f: ff 73 50 pushl 0x50(%ebx) <== NOT EXECUTED
109c52: 68 ac 6b 12 00 push $0x126bac <== NOT EXECUTED
109c57: a1 e0 be 12 00 mov 0x12bee0,%eax <== NOT EXECUTED
109c5c: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
109c5f: e8 ac dc 00 00 call 117910 <fprintf> <== NOT EXECUTED
(uint32_t)the_jnode->info.linearfile.size,
the_jnode->info.linearfile.direct
);
break;
109c64: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
109c67: c7 45 08 d5 6f 12 00 movl $0x126fd5,0x8(%ebp) <== NOT EXECUTED
}
109c6e: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
109c71: c9 leave <== NOT EXECUTED
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
109c72: e9 59 f6 00 00 jmp 1192d0 <puts> <== NOT EXECUTED
109c77: 90 nop <== NOT EXECUTED
the_jnode->info.file.indirect,
the_jnode->info.file.doubly_indirect,
the_jnode->info.file.triply_indirect
);
#else
fprintf(stdout, " (file %" PRId32 ")",
109c78: 51 push %ecx
109c79: ff 73 50 pushl 0x50(%ebx)
109c7c: 68 bb 6b 12 00 push $0x126bbb
109c81: a1 e0 be 12 00 mov 0x12bee0,%eax
109c86: ff 70 08 pushl 0x8(%eax)
109c89: e8 82 dc 00 00 call 117910 <fprintf>
(uint32_t)the_jnode->info.file.size );
#endif
break;
109c8e: 83 c4 10 add $0x10,%esp
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
109c91: c7 45 08 d5 6f 12 00 movl $0x126fd5,0x8(%ebp)
}
109c98: 8b 5d fc mov -0x4(%ebp),%ebx
109c9b: c9 leave
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
109c9c: e9 2f f6 00 00 jmp 1192d0 <puts>
109ca1: 8d 76 00 lea 0x0(%esi),%esi
fprintf(stdout, " links not printed\n" );
assert(0);
break;
case IMFS_SYM_LINK:
fprintf(stdout, " links not printed\n" );
109ca4: a1 e0 be 12 00 mov 0x12bee0,%eax <== NOT EXECUTED
109ca9: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
109cac: 6a 13 push $0x13 <== NOT EXECUTED
109cae: 6a 01 push $0x1 <== NOT EXECUTED
109cb0: 68 c7 6b 12 00 push $0x126bc7 <== NOT EXECUTED
109cb5: e8 b6 e9 00 00 call 118670 <fwrite> <== NOT EXECUTED
assert(0);
109cba: 68 1f 45 12 00 push $0x12451f <== NOT EXECUTED
109cbf: 68 58 6d 12 00 push $0x126d58 <== NOT EXECUTED
109cc4: 6a 62 push $0x62 <== NOT EXECUTED
109cc6: 68 38 6c 12 00 push $0x126c38 <== NOT EXECUTED
109ccb: e8 cc 08 00 00 call 10a59c <__assert_func> <== NOT EXECUTED
(uint32_t)the_jnode->info.file.size );
#endif
break;
case IMFS_HARD_LINK:
fprintf(stdout, " links not printed\n" );
109cd0: a1 e0 be 12 00 mov 0x12bee0,%eax <== NOT EXECUTED
109cd5: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
109cd8: 6a 13 push $0x13 <== NOT EXECUTED
109cda: 6a 01 push $0x1 <== NOT EXECUTED
109cdc: 68 c7 6b 12 00 push $0x126bc7 <== NOT EXECUTED
109ce1: e8 8a e9 00 00 call 118670 <fwrite> <== NOT EXECUTED
assert(0);
109ce6: 68 1f 45 12 00 push $0x12451f <== NOT EXECUTED
109ceb: 68 58 6d 12 00 push $0x126d58 <== NOT EXECUTED
109cf0: 6a 5d push $0x5d <== NOT EXECUTED
109cf2: 68 38 6c 12 00 push $0x126c38 <== NOT EXECUTED
109cf7: e8 a0 08 00 00 call 10a59c <__assert_func> <== NOT EXECUTED
case IMFS_DIRECTORY:
fprintf(stdout, "/" );
break;
case IMFS_DEVICE:
fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",
109cfc: ff 73 54 pushl 0x54(%ebx)
109cff: ff 73 50 pushl 0x50(%ebx)
109d02: 68 99 6b 12 00 push $0x126b99
109d07: a1 e0 be 12 00 mov 0x12bee0,%eax
109d0c: ff 70 08 pushl 0x8(%eax)
109d0f: e8 fc db 00 00 call 117910 <fprintf>
the_jnode->info.device.major, the_jnode->info.device.minor );
break;
109d14: 83 c4 10 add $0x10,%esp
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
109d17: c7 45 08 d5 6f 12 00 movl $0x126fd5,0x8(%ebp)
}
109d1e: 8b 5d fc mov -0x4(%ebp),%ebx
109d21: c9 leave
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
109d22: e9 a9 f5 00 00 jmp 1192d0 <puts>
109d27: 90 nop
assert( the_jnode );
fprintf(stdout, "%s", the_jnode->name );
switch( the_jnode->type ) {
case IMFS_DIRECTORY:
fprintf(stdout, "/" );
109d28: 83 ec 08 sub $0x8,%esp
109d2b: a1 e0 be 12 00 mov 0x12bee0,%eax
109d30: ff 70 08 pushl 0x8(%eax)
109d33: 6a 2f push $0x2f
109d35: e8 12 dc 00 00 call 11794c <fputc>
break;
109d3a: 83 c4 10 add $0x10,%esp
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
109d3d: c7 45 08 d5 6f 12 00 movl $0x126fd5,0x8(%ebp)
}
109d44: 8b 5d fc mov -0x4(%ebp),%ebx
109d47: c9 leave
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
assert(0);
break;
}
puts("");
109d48: e9 83 f5 00 00 jmp 1192d0 <puts>
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
assert( the_jnode );
109d4d: 68 8f 6b 12 00 push $0x126b8f <== NOT EXECUTED
109d52: 68 58 6d 12 00 push $0x126d58 <== NOT EXECUTED
109d57: 6a 38 push $0x38 <== NOT EXECUTED
109d59: 68 38 6c 12 00 push $0x126c38 <== NOT EXECUTED
109d5e: e8 39 08 00 00 call 10a59c <__assert_func> <== NOT EXECUTED
00107efc <IMFS_readlink>:
int IMFS_readlink(
rtems_filesystem_location_info_t *loc,
char *buf, /* OUT */
size_t bufsize
)
{
107efc: 55 push %ebp
107efd: 89 e5 mov %esp,%ebp
107eff: 57 push %edi
107f00: 56 push %esi
107f01: 53 push %ebx
107f02: 83 ec 0c sub $0xc,%esp
107f05: 8b 7d 0c mov 0xc(%ebp),%edi
107f08: 8b 75 10 mov 0x10(%ebp),%esi
IMFS_jnode_t *node;
int i;
node = loc->node_access;
107f0b: 8b 45 08 mov 0x8(%ebp),%eax
107f0e: 8b 18 mov (%eax),%ebx
if ( node->type != IMFS_SYM_LINK )
107f10: 83 7b 4c 04 cmpl $0x4,0x4c(%ebx)
107f14: 75 36 jne 107f4c <IMFS_readlink+0x50> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
107f16: 85 f6 test %esi,%esi
107f18: 74 2e je 107f48 <IMFS_readlink+0x4c> <== NEVER TAKEN
107f1a: 8b 43 50 mov 0x50(%ebx),%eax
107f1d: 8a 10 mov (%eax),%dl
107f1f: 84 d2 test %dl,%dl
107f21: 74 25 je 107f48 <IMFS_readlink+0x4c> <== NEVER TAKEN
int i;
node = loc->node_access;
if ( node->type != IMFS_SYM_LINK )
rtems_set_errno_and_return_minus_one( EINVAL );
107f23: 31 c9 xor %ecx,%ecx
107f25: 31 c0 xor %eax,%eax
107f27: eb 0d jmp 107f36 <IMFS_readlink+0x3a>
107f29: 8d 76 00 lea 0x0(%esi),%esi
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
107f2c: 8b 53 50 mov 0x50(%ebx),%edx
107f2f: 8a 14 02 mov (%edx,%eax,1),%dl
107f32: 84 d2 test %dl,%dl
107f34: 74 0a je 107f40 <IMFS_readlink+0x44>
buf[i] = node->info.sym_link.name[i];
107f36: 88 14 0f mov %dl,(%edi,%ecx,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++ )
107f39: 40 inc %eax
107f3a: 89 c1 mov %eax,%ecx
107f3c: 39 c6 cmp %eax,%esi
107f3e: 77 ec ja 107f2c <IMFS_readlink+0x30>
buf[i] = node->info.sym_link.name[i];
return i;
}
107f40: 83 c4 0c add $0xc,%esp
107f43: 5b pop %ebx
107f44: 5e pop %esi
107f45: 5f pop %edi
107f46: c9 leave
107f47: c3 ret
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++ )
107f48: 31 c0 xor %eax,%eax
107f4a: eb f4 jmp 107f40 <IMFS_readlink+0x44> <== NOT EXECUTED
int i;
node = loc->node_access;
if ( node->type != IMFS_SYM_LINK )
rtems_set_errno_and_return_minus_one( EINVAL );
107f4c: e8 ef be 00 00 call 113e40 <__errno> <== NOT EXECUTED
107f51: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
107f57: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
107f5c: eb e2 jmp 107f40 <IMFS_readlink+0x44> <== NOT EXECUTED
00107f60 <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 */
)
{
107f60: 55 push %ebp
107f61: 89 e5 mov %esp,%ebp
107f63: 53 push %ebx
107f64: 83 ec 18 sub $0x18,%esp
IMFS_jnode_t *the_jnode;
IMFS_jnode_t *new_parent;
the_jnode = old_loc->node_access;
107f67: 8b 45 0c mov 0xc(%ebp),%eax
107f6a: 8b 18 mov (%eax),%ebx
strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );
107f6c: 6a 20 push $0x20
107f6e: ff 75 14 pushl 0x14(%ebp)
107f71: 8d 43 0c lea 0xc(%ebx),%eax
107f74: 50 push %eax
107f75: e8 12 cb 00 00 call 114a8c <strncpy>
if ( the_jnode->Parent != NULL )
107f7a: 83 c4 10 add $0x10,%esp
107f7d: 8b 4b 08 mov 0x8(%ebx),%ecx
107f80: 85 c9 test %ecx,%ecx
107f82: 74 0c je 107f90 <IMFS_rename+0x30> <== NEVER TAKEN
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
107f84: 83 ec 0c sub $0xc,%esp
107f87: 53 push %ebx
107f88: e8 1f 46 00 00 call 10c5ac <_Chain_Extract>
107f8d: 83 c4 10 add $0x10,%esp
rtems_chain_extract( (rtems_chain_node *) the_jnode );
new_parent = new_parent_loc->node_access;
107f90: 8b 45 10 mov 0x10(%ebp),%eax
107f93: 8b 00 mov (%eax),%eax
the_jnode->Parent = new_parent;
107f95: 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 );
107f98: 83 ec 08 sub $0x8,%esp
107f9b: 53 push %ebx
107f9c: 83 c0 50 add $0x50,%eax
107f9f: 50 push %eax
107fa0: e8 e3 45 00 00 call 10c588 <_Chain_Append>
rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
/*
* Update the time.
*/
IMFS_update_ctime( the_jnode );
107fa5: 58 pop %eax
107fa6: 5a pop %edx
107fa7: 6a 00 push $0x0
107fa9: 8d 45 f0 lea -0x10(%ebp),%eax
107fac: 50 push %eax
107fad: e8 ae 06 00 00 call 108660 <gettimeofday>
107fb2: 8b 45 f0 mov -0x10(%ebp),%eax
107fb5: 89 43 48 mov %eax,0x48(%ebx)
return 0;
}
107fb8: 31 c0 xor %eax,%eax
107fba: 8b 5d fc mov -0x4(%ebp),%ebx
107fbd: c9 leave
107fbe: c3 ret
00110950 <IMFS_rmnod>:
int IMFS_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
110950: 55 push %ebp
110951: 89 e5 mov %esp,%ebp
110953: 56 push %esi
110954: 53 push %ebx
110955: 83 ec 10 sub $0x10,%esp
110958: 8b 75 0c mov 0xc(%ebp),%esi
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
11095b: 8b 1e mov (%esi),%ebx
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
11095d: 8b 43 08 mov 0x8(%ebx),%eax
110960: 85 c0 test %eax,%eax
110962: 74 13 je 110977 <IMFS_rmnod+0x27> <== NEVER TAKEN
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
110964: 83 ec 0c sub $0xc,%esp
110967: 53 push %ebx
110968: e8 3f bc ff ff call 10c5ac <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
11096d: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
110974: 83 c4 10 add $0x10,%esp
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
110977: 66 ff 4b 34 decw 0x34(%ebx)
IMFS_update_ctime( the_jnode );
11097b: 83 ec 08 sub $0x8,%esp
11097e: 6a 00 push $0x0
110980: 8d 45 f0 lea -0x10(%ebp),%eax
110983: 50 push %eax
110984: e8 d7 7c ff ff call 108660 <gettimeofday>
110989: 8b 45 f0 mov -0x10(%ebp),%eax
11098c: 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) ) {
11098f: 89 1c 24 mov %ebx,(%esp)
110992: e8 ad 02 00 00 call 110c44 <rtems_libio_is_file_open>
110997: 83 c4 10 add $0x10,%esp
11099a: 85 c0 test %eax,%eax
11099c: 75 25 jne 1109c3 <IMFS_rmnod+0x73> <== NEVER TAKEN
11099e: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx)
1109a3: 75 1e jne 1109c3 <IMFS_rmnod+0x73> <== NEVER TAKEN
/*
* Is rtems_filesystem_current this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
1109a5: a1 24 50 12 00 mov 0x125024,%eax
1109aa: 8b 50 04 mov 0x4(%eax),%edx
1109ad: 3b 16 cmp (%esi),%edx
1109af: 74 33 je 1109e4 <IMFS_rmnod+0x94> <== NEVER TAKEN
/*
* Free memory associated with a memory file.
*/
if ( the_jnode->type == IMFS_SYM_LINK ) {
1109b1: 83 7b 4c 04 cmpl $0x4,0x4c(%ebx)
1109b5: 74 15 je 1109cc <IMFS_rmnod+0x7c>
if ( the_jnode->info.sym_link.name )
free( (void*) the_jnode->info.sym_link.name );
}
free( the_jnode );
1109b7: 83 ec 0c sub $0xc,%esp
1109ba: 53 push %ebx
1109bb: e8 24 7c ff ff call 1085e4 <free>
1109c0: 83 c4 10 add $0x10,%esp
}
return 0;
}
1109c3: 31 c0 xor %eax,%eax
1109c5: 8d 65 f8 lea -0x8(%ebp),%esp
1109c8: 5b pop %ebx
1109c9: 5e pop %esi
1109ca: c9 leave
1109cb: c3 ret
/*
* Free memory associated with a memory file.
*/
if ( the_jnode->type == IMFS_SYM_LINK ) {
if ( the_jnode->info.sym_link.name )
1109cc: 8b 43 50 mov 0x50(%ebx),%eax
1109cf: 85 c0 test %eax,%eax
1109d1: 74 e4 je 1109b7 <IMFS_rmnod+0x67> <== NEVER TAKEN
free( (void*) the_jnode->info.sym_link.name );
1109d3: 83 ec 0c sub $0xc,%esp
1109d6: 50 push %eax
1109d7: e8 08 7c ff ff call 1085e4 <free>
1109dc: 83 c4 10 add $0x10,%esp
1109df: eb d6 jmp 1109b7 <IMFS_rmnod+0x67>
1109e1: 8d 76 00 lea 0x0(%esi),%esi
/*
* Is rtems_filesystem_current this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
rtems_filesystem_current.node_access = NULL;
1109e4: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
1109eb: eb c4 jmp 1109b1 <IMFS_rmnod+0x61> <== NOT EXECUTED
001109f0 <IMFS_stat>:
int IMFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
1109f0: 55 push %ebp
1109f1: 89 e5 mov %esp,%ebp
1109f3: 56 push %esi
1109f4: 53 push %ebx
1109f5: 8b 4d 08 mov 0x8(%ebp),%ecx
1109f8: 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;
1109fb: 8b 11 mov (%ecx),%edx
switch ( the_jnode->type ) {
1109fd: 83 7a 4c 07 cmpl $0x7,0x4c(%edx)
110a01: 76 15 jbe 110a18 <IMFS_stat+0x28> <== ALWAYS TAKEN
case IMFS_FIFO:
buf->st_size = 0;
break;
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
110a03: e8 38 34 00 00 call 113e40 <__errno> <== NOT EXECUTED
110a08: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
110a0e: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
buf->st_ctime = the_jnode->stat_ctime;
buf->st_blksize = imfs_rq_memfile_bytes_per_block;
return 0;
}
110a13: 5b pop %ebx <== NOT EXECUTED
110a14: 5e pop %esi <== NOT EXECUTED
110a15: c9 leave <== NOT EXECUTED
110a16: c3 ret <== NOT EXECUTED
110a17: 90 nop <== NOT EXECUTED
IMFS_device_t *io;
the_jnode = loc->node_access;
switch ( the_jnode->type ) {
110a18: 8b 5a 4c mov 0x4c(%edx),%ebx
110a1b: ff 24 9d b8 1e 12 00 jmp *0x121eb8(,%ebx,4)
110a22: 66 90 xchg %ax,%ax
case IMFS_SYM_LINK:
buf->st_size = 0;
break;
case IMFS_FIFO:
buf->st_size = 0;
110a24: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) <== NOT EXECUTED
110a2b: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax) <== 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 );
110a32: 8b 49 10 mov 0x10(%ecx),%ecx
110a35: 8b 49 34 mov 0x34(%ecx),%ecx
110a38: 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 =
110a3a: c7 00 fe ff 00 00 movl $0xfffe,(%eax)
110a40: 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;
110a43: 8b 4a 30 mov 0x30(%edx),%ecx
110a46: 89 48 0c mov %ecx,0xc(%eax)
buf->st_nlink = the_jnode->st_nlink;
110a49: 8b 4a 34 mov 0x34(%edx),%ecx
110a4c: 66 89 48 10 mov %cx,0x10(%eax)
buf->st_ino = the_jnode->st_ino;
110a50: 8b 4a 38 mov 0x38(%edx),%ecx
110a53: 89 48 08 mov %ecx,0x8(%eax)
buf->st_uid = the_jnode->st_uid;
110a56: 8b 4a 3c mov 0x3c(%edx),%ecx
110a59: 66 89 48 12 mov %cx,0x12(%eax)
buf->st_gid = the_jnode->st_gid;
110a5d: 66 8b 4a 3e mov 0x3e(%edx),%cx
110a61: 66 89 48 14 mov %cx,0x14(%eax)
buf->st_atime = the_jnode->stat_atime;
110a65: 8b 4a 40 mov 0x40(%edx),%ecx
110a68: 89 48 28 mov %ecx,0x28(%eax)
buf->st_mtime = the_jnode->stat_mtime;
110a6b: 8b 4a 44 mov 0x44(%edx),%ecx
110a6e: 89 48 30 mov %ecx,0x30(%eax)
buf->st_ctime = the_jnode->stat_ctime;
110a71: 8b 52 48 mov 0x48(%edx),%edx
110a74: 89 50 38 mov %edx,0x38(%eax)
buf->st_blksize = imfs_rq_memfile_bytes_per_block;
110a77: 8b 15 50 31 12 00 mov 0x123150,%edx
110a7d: 89 50 40 mov %edx,0x40(%eax)
110a80: 31 c0 xor %eax,%eax
return 0;
}
110a82: 5b pop %ebx
110a83: 5e pop %esi
110a84: c9 leave
110a85: c3 ret
110a86: 66 90 xchg %ax,%ax
switch ( the_jnode->type ) {
case IMFS_DEVICE:
io = &the_jnode->info.device;
buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
110a88: 8b 5a 54 mov 0x54(%edx),%ebx
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
110a8b: 8b 72 50 mov 0x50(%edx),%esi
110a8e: 89 70 18 mov %esi,0x18(%eax)
110a91: 89 58 1c mov %ebx,0x1c(%eax)
break;
110a94: eb 9c jmp 110a32 <IMFS_stat+0x42>
110a96: 66 90 xchg %ax,%ax
case IMFS_LINEAR_FILE:
case IMFS_MEMORY_FILE:
buf->st_size = the_jnode->info.file.size;
110a98: 8b 5a 50 mov 0x50(%edx),%ebx
110a9b: 8b 72 54 mov 0x54(%edx),%esi
110a9e: 89 58 20 mov %ebx,0x20(%eax)
110aa1: 89 70 24 mov %esi,0x24(%eax)
break;
110aa4: eb 8c jmp 110a32 <IMFS_stat+0x42>
00107fc0 <IMFS_symlink>:
int IMFS_symlink(
rtems_filesystem_location_info_t *parent_loc,
const char *link_name,
const char *node_name
)
{
107fc0: 55 push %ebp
107fc1: 89 e5 mov %esp,%ebp
107fc3: 57 push %edi
107fc4: 53 push %ebx
107fc5: 83 ec 40 sub $0x40,%esp
107fc8: 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 );
107fcb: 31 c0 xor %eax,%eax
107fcd: b9 ff ff ff ff mov $0xffffffff,%ecx
107fd2: 89 d7 mov %edx,%edi
107fd4: f2 ae repnz scas %es:(%edi),%al
107fd6: f7 d1 not %ecx
107fd8: 49 dec %ecx
107fd9: 8d 45 f4 lea -0xc(%ebp),%eax
107fdc: 50 push %eax
107fdd: 8d 5d bf lea -0x41(%ebp),%ebx
107fe0: 53 push %ebx
107fe1: 51 push %ecx
107fe2: 52 push %edx
107fe3: e8 8c 88 00 00 call 110874 <IMFS_get_token>
/*
* Duplicate link name
*/
info.sym_link.name = strdup(link_name);
107fe8: 58 pop %eax
107fe9: ff 75 0c pushl 0xc(%ebp)
107fec: e8 bf c9 00 00 call 1149b0 <strdup>
107ff1: 89 45 e0 mov %eax,-0x20(%ebp)
if (info.sym_link.name == NULL) {
107ff4: 83 c4 10 add $0x10,%esp
107ff7: 85 c0 test %eax,%eax
107ff9: 74 27 je 108022 <IMFS_symlink+0x62> <== NEVER TAKEN
* 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(
107ffb: 83 ec 0c sub $0xc,%esp
107ffe: 8d 45 e0 lea -0x20(%ebp),%eax
108001: 50 push %eax
108002: 68 ff a1 00 00 push $0xa1ff
108007: 53 push %ebx
108008: 6a 04 push $0x4
10800a: ff 75 08 pushl 0x8(%ebp)
10800d: e8 5a 7b 00 00 call 10fb6c <IMFS_create_node>
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if (new_node == NULL) {
108012: 83 c4 20 add $0x20,%esp
108015: 85 c0 test %eax,%eax
108017: 74 1b je 108034 <IMFS_symlink+0x74> <== NEVER TAKEN
108019: 31 c0 xor %eax,%eax
free(info.sym_link.name);
rtems_set_errno_and_return_minus_one(ENOMEM);
}
return 0;
}
10801b: 8d 65 f8 lea -0x8(%ebp),%esp
10801e: 5b pop %ebx
10801f: 5f pop %edi
108020: c9 leave
108021: c3 ret
/*
* Duplicate link name
*/
info.sym_link.name = strdup(link_name);
if (info.sym_link.name == NULL) {
rtems_set_errno_and_return_minus_one(ENOMEM);
108022: e8 19 be 00 00 call 113e40 <__errno> <== NOT EXECUTED
108027: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
10802d: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
108032: eb e7 jmp 10801b <IMFS_symlink+0x5b> <== NOT EXECUTED
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if (new_node == NULL) {
free(info.sym_link.name);
108034: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108037: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
10803a: e8 a5 05 00 00 call 1085e4 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
10803f: e8 fc bd 00 00 call 113e40 <__errno> <== NOT EXECUTED
108044: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
10804a: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
10804f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108052: eb c7 jmp 10801b <IMFS_symlink+0x5b> <== NOT EXECUTED
00108054 <IMFS_unlink>:
int IMFS_unlink(
rtems_filesystem_location_info_t *parentloc, /* IN */
rtems_filesystem_location_info_t *loc /* IN */
)
{
108054: 55 push %ebp
108055: 89 e5 mov %esp,%ebp
108057: 57 push %edi
108058: 56 push %esi
108059: 53 push %ebx
10805a: 83 ec 3c sub $0x3c,%esp
10805d: 8b 5d 0c mov 0xc(%ebp),%ebx
IMFS_jnode_t *node;
rtems_filesystem_location_info_t the_link;
int result = 0;
node = loc->node_access;
108060: 8b 13 mov (%ebx),%edx
/*
* If this is the last last pointer to the node
* free the node.
*/
if ( node->type == IMFS_HARD_LINK ) {
108062: 83 7a 4c 03 cmpl $0x3,0x4c(%edx)
108066: 74 18 je 108080 <IMFS_unlink+0x2c>
/*
* Now actually free the node we were asked to free.
*/
result = (*loc->handlers->rmnod_h)( parentloc, loc );
108068: 83 ec 08 sub $0x8,%esp
10806b: 8b 43 08 mov 0x8(%ebx),%eax
10806e: 53 push %ebx
10806f: ff 75 08 pushl 0x8(%ebp)
108072: ff 50 34 call *0x34(%eax)
return result;
108075: 83 c4 10 add $0x10,%esp
}
108078: 8d 65 f4 lea -0xc(%ebp),%esp
10807b: 5b pop %ebx
10807c: 5e pop %esi
10807d: 5f pop %edi
10807e: c9 leave
10807f: c3 ret
* free the node.
*/
if ( node->type == IMFS_HARD_LINK ) {
if ( !node->info.hard_link.link_node )
108080: 8b 42 50 mov 0x50(%edx),%eax
108083: 85 c0 test %eax,%eax
108085: 74 79 je 108100 <IMFS_unlink+0xac> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
the_link = *loc;
108087: 8d 7d cc lea -0x34(%ebp),%edi
10808a: b9 05 00 00 00 mov $0x5,%ecx
10808f: 89 de mov %ebx,%esi
108091: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
the_link.node_access = node->info.hard_link.link_node;
108093: 89 45 cc mov %eax,-0x34(%ebp)
IMFS_Set_handlers( &the_link );
108096: 83 ec 0c sub $0xc,%esp
108099: 8d 75 cc lea -0x34(%ebp),%esi
10809c: 56 push %esi
10809d: 89 55 c4 mov %edx,-0x3c(%ebp)
1080a0: e8 d3 7b 00 00 call 10fc78 <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)
1080a5: 8b 55 c4 mov -0x3c(%ebp),%edx
1080a8: 8b 42 50 mov 0x50(%edx),%eax
1080ab: 8b 48 34 mov 0x34(%eax),%ecx
1080ae: 83 c4 10 add $0x10,%esp
1080b1: 66 83 f9 01 cmp $0x1,%cx
1080b5: 74 27 je 1080de <IMFS_unlink+0x8a>
if ( result != 0 )
return -1;
}
else
{
node->info.hard_link.link_node->st_nlink --;
1080b7: 49 dec %ecx
1080b8: 66 89 48 34 mov %cx,0x34(%eax)
IMFS_update_ctime( node->info.hard_link.link_node );
1080bc: 83 ec 08 sub $0x8,%esp
1080bf: 6a 00 push $0x0
1080c1: 8d 45 e0 lea -0x20(%ebp),%eax
1080c4: 50 push %eax
1080c5: 89 55 c4 mov %edx,-0x3c(%ebp)
1080c8: e8 93 05 00 00 call 108660 <gettimeofday>
1080cd: 8b 55 c4 mov -0x3c(%ebp),%edx
1080d0: 8b 42 50 mov 0x50(%edx),%eax
1080d3: 8b 55 e0 mov -0x20(%ebp),%edx
1080d6: 89 50 48 mov %edx,0x48(%eax)
1080d9: 83 c4 10 add $0x10,%esp
1080dc: eb 8a jmp 108068 <IMFS_unlink+0x14>
* to remove the node that is a link and the node itself.
*/
if ( node->info.hard_link.link_node->st_nlink == 1)
{
result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
1080de: 83 ec 08 sub $0x8,%esp
1080e1: 56 push %esi
1080e2: ff 75 08 pushl 0x8(%ebp)
1080e5: 8b 45 d4 mov -0x2c(%ebp),%eax
1080e8: ff 50 34 call *0x34(%eax)
if ( result != 0 )
1080eb: 83 c4 10 add $0x10,%esp
1080ee: 85 c0 test %eax,%eax
1080f0: 0f 84 72 ff ff ff je 108068 <IMFS_unlink+0x14>
1080f6: b8 ff ff ff ff mov $0xffffffff,%eax
1080fb: e9 78 ff ff ff jmp 108078 <IMFS_unlink+0x24>
*/
if ( node->type == IMFS_HARD_LINK ) {
if ( !node->info.hard_link.link_node )
rtems_set_errno_and_return_minus_one( EINVAL );
108100: e8 3b bd 00 00 call 113e40 <__errno> <== NOT EXECUTED
108105: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
10810b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
108110: e9 63 ff ff ff jmp 108078 <IMFS_unlink+0x24> <== NOT EXECUTED
00108118 <IMFS_unmount>:
#include <rtems/seterr.h>
int IMFS_unmount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
108118: 55 push %ebp
108119: 89 e5 mov %esp,%ebp
10811b: 83 ec 08 sub $0x8,%esp
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
10811e: 8b 45 08 mov 0x8(%ebp),%eax
108121: 8b 40 08 mov 0x8(%eax),%eax
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
108124: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
108128: 75 12 jne 10813c <IMFS_unmount+0x24> <== NEVER TAKEN
/*
* Did the node indicate that there was a directory mounted here?
*/
if ( node->info.directory.mt_fs == NULL )
10812a: 8b 50 5c mov 0x5c(%eax),%edx
10812d: 85 d2 test %edx,%edx
10812f: 74 1d je 10814e <IMFS_unmount+0x36> <== NEVER TAKEN
/*
* 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;
108131: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax)
108138: 31 c0 xor %eax,%eax
return 0;
}
10813a: c9 leave
10813b: c3 ret
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
10813c: e8 ff bc 00 00 call 113e40 <__errno> <== NOT EXECUTED
108141: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
108147: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
*/
node->info.directory.mt_fs = NULL;
return 0;
}
10814c: c9 leave <== NOT EXECUTED
10814d: c3 ret <== NOT EXECUTED
/*
* Did the node indicate that there was a directory mounted here?
*/
if ( node->info.directory.mt_fs == NULL )
rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */
10814e: e8 ed bc 00 00 call 113e40 <__errno> <== NOT EXECUTED
108153: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
108159: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
*/
node->info.directory.mt_fs = NULL;
return 0;
}
10815e: c9 leave <== NOT EXECUTED
10815f: c3 ret <== NOT EXECUTED
00108810 <RTEMS_Malloc_Initialize>:
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
108810: 55 push %ebp
108811: 89 e5 mov %esp,%ebp
108813: 57 push %edi
108814: 56 push %esi
108815: 53 push %ebx
108816: 83 ec 0c sub $0xc,%esp
108819: 8b 5d 08 mov 0x8(%ebp),%ebx
10881c: 8b 75 0c mov 0xc(%ebp),%esi
#endif
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
10881f: a1 e8 55 12 00 mov 0x1255e8,%eax
108824: 85 c0 test %eax,%eax
108826: 74 02 je 10882a <RTEMS_Malloc_Initialize+0x1a>
(*rtems_malloc_statistics_helpers->initialize)();
108828: ff 10 call *(%eax)
}
/*
* Initialize the garbage collection list to start with nothing on it.
*/
malloc_deferred_frees_initialize();
10882a: e8 79 ff ff ff call 1087a8 <malloc_deferred_frees_initialize>
/*
* Initialize the optional sbrk support for extending the heap
*/
if ( rtems_malloc_sbrk_helpers != NULL ) {
10882f: a1 ec 55 12 00 mov 0x1255ec,%eax
108834: 85 c0 test %eax,%eax
108836: 74 13 je 10884b <RTEMS_Malloc_Initialize+0x3b><== ALWAYS TAKEN
void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
108838: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10883b: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
10883e: 53 push %ebx <== NOT EXECUTED
10883f: ff 10 call *(%eax) <== NOT EXECUTED
heap_begin,
sbrk_amount
);
heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
108841: 8d 34 33 lea (%ebx,%esi,1),%esi <== NOT EXECUTED
108844: 29 c6 sub %eax,%esi <== NOT EXECUTED
108846: 89 c3 mov %eax,%ebx <== NOT EXECUTED
108848: 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 (
10884b: 80 3d e5 55 12 00 00 cmpb $0x0,0x1255e5
108852: 75 1f jne 108873 <RTEMS_Malloc_Initialize+0x63>
!rtems_unified_work_area
&& rtems_configuration_get_do_zero_of_workspace()
108854: 80 3d 48 32 12 00 00 cmpb $0x0,0x123248
10885b: 75 3f jne 10889c <RTEMS_Malloc_Initialize+0x8c>
void *area_begin,
uintptr_t area_size,
uintptr_t page_size
)
{
return _Heap_Initialize( heap, area_begin, area_size, page_size );
10885d: 6a 04 push $0x4
10885f: 56 push %esi
108860: 53 push %ebx
108861: ff 35 58 31 12 00 pushl 0x123158
108867: e8 6c 42 00 00 call 10cad8 <_Heap_Initialize>
RTEMS_Malloc_Heap,
heap_begin,
heap_size,
CPU_HEAP_ALIGNMENT
);
if ( status == 0 ) {
10886c: 83 c4 10 add $0x10,%esp
10886f: 85 c0 test %eax,%eax
108871: 74 3c je 1088af <RTEMS_Malloc_Initialize+0x9f><== NEVER TAKEN
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
}
MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
108873: 8b 1d 00 72 12 00 mov 0x127200,%ebx
108879: 83 ec 0c sub $0xc,%esp
10887c: ff 35 58 31 12 00 pushl 0x123158
108882: e8 c5 4d 00 00 call 10d64c <_Protected_heap_Get_size>
108887: 8d 1c 18 lea (%eax,%ebx,1),%ebx
10888a: 89 1d 00 72 12 00 mov %ebx,0x127200
108890: 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
}
108893: 8d 65 f4 lea -0xc(%ebp),%esp
108896: 5b pop %ebx
108897: 5e pop %esi
108898: 5f pop %edi
108899: c9 leave
10889a: c3 ret
10889b: 90 nop
if (
!rtems_unified_work_area
&& rtems_configuration_get_do_zero_of_workspace()
) {
memset( heap_begin, 0, heap_size );
10889c: 31 c0 xor %eax,%eax
10889e: 89 df mov %ebx,%edi
1088a0: 89 f1 mov %esi,%ecx
1088a2: 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 ) {
1088a4: 80 3d e5 55 12 00 00 cmpb $0x0,0x1255e5
1088ab: 74 b0 je 10885d <RTEMS_Malloc_Initialize+0x4d><== ALWAYS TAKEN
1088ad: eb c4 jmp 108873 <RTEMS_Malloc_Initialize+0x63><== NOT EXECUTED
heap_begin,
heap_size,
CPU_HEAP_ALIGNMENT
);
if ( status == 0 ) {
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
1088af: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1088b2: 6a 1a push $0x1a <== NOT EXECUTED
1088b4: e8 3b 3a 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
0010cda8 <Stack_check_Dump_threads_usage>:
static rtems_printk_plugin_t print_handler;
void Stack_check_Dump_threads_usage(
Thread_Control *the_thread
)
{
10cda8: 55 push %ebp <== NOT EXECUTED
10cda9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10cdab: 57 push %edi <== NOT EXECUTED
10cdac: 56 push %esi <== NOT EXECUTED
10cdad: 53 push %ebx <== NOT EXECUTED
10cdae: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
10cdb1: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
void *high_water_mark;
void *current;
Stack_Control *stack;
char name[5];
if ( !the_thread )
10cdb4: 85 db test %ebx,%ebx <== NOT EXECUTED
10cdb6: 0f 84 c5 00 00 00 je 10ce81 <Stack_check_Dump_threads_usage+0xd9><== NOT EXECUTED
return;
if ( !print_handler )
10cdbc: a1 34 00 17 00 mov 0x170034,%eax <== NOT EXECUTED
10cdc1: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
10cdc4: 85 c0 test %eax,%eax <== NOT EXECUTED
10cdc6: 0f 84 b5 00 00 00 je 10ce81 <Stack_check_Dump_threads_usage+0xd9><== NOT EXECUTED
/*
* Obtain interrupt stack information
*/
if (the_thread == (Thread_Control *) -1) {
10cdcc: 83 fb ff cmp $0xffffffff,%ebx <== NOT EXECUTED
10cdcf: 0f 84 d7 00 00 00 je 10ceac <Stack_check_Dump_threads_usage+0x104><== NOT EXECUTED
current = 0;
}
else
return;
} else {
stack = &the_thread->Start.Initial_stack;
10cdd5: 8d b3 c0 00 00 00 lea 0xc0(%ebx),%esi <== NOT EXECUTED
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
10cddb: 8b 93 d4 00 00 00 mov 0xd4(%ebx),%edx <== NOT EXECUTED
10cde1: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
}
low = Stack_check_usable_stack_start(stack);
10cde4: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
10cde7: 83 c0 10 add $0x10,%eax <== NOT EXECUTED
10cdea: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
10cded: 8b 3e mov (%esi),%edi <== NOT EXECUTED
10cdef: 83 ef 10 sub $0x10,%edi <== NOT EXECUTED
high_water_mark = Stack_check_find_high_water_mark(low, size);
10cdf2: 57 push %edi <== NOT EXECUTED
10cdf3: 50 push %eax <== NOT EXECUTED
10cdf4: e8 77 ff ff ff call 10cd70 <Stack_check_find_high_water_mark><== NOT EXECUTED
if ( high_water_mark )
10cdf9: 59 pop %ecx <== NOT EXECUTED
10cdfa: 5a pop %edx <== NOT EXECUTED
10cdfb: 85 c0 test %eax,%eax <== NOT EXECUTED
10cdfd: 0f 84 c9 00 00 00 je 10cecc <Stack_check_Dump_threads_usage+0x124><== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
10ce03: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
10ce06: 01 fa add %edi,%edx <== NOT EXECUTED
10ce08: 29 c2 sub %eax,%edx <== NOT EXECUTED
10ce0a: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
else
used = 0;
if ( the_thread ) {
10ce0d: 85 db test %ebx,%ebx <== NOT EXECUTED
10ce0f: 0f 84 c7 00 00 00 je 10cedc <Stack_check_Dump_threads_usage+0x134><== NOT EXECUTED
(*print_handler)(
10ce15: 52 push %edx <== NOT EXECUTED
10ce16: 8d 45 e3 lea -0x1d(%ebp),%eax <== NOT EXECUTED
10ce19: 50 push %eax <== NOT EXECUTED
10ce1a: 6a 05 push $0x5 <== NOT EXECUTED
10ce1c: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10ce1f: e8 f4 5d 00 00 call 112c18 <rtems_object_get_name> <== NOT EXECUTED
10ce24: 50 push %eax <== NOT EXECUTED
10ce25: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10ce28: 68 0c f5 15 00 push $0x15f50c <== NOT EXECUTED
10ce2d: ff 35 30 00 17 00 pushl 0x170030 <== NOT EXECUTED
10ce33: ff 55 d0 call *-0x30(%ebp) <== NOT EXECUTED
10ce36: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
);
} else {
(*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 );
}
(*print_handler)(
10ce39: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
10ce3c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10ce3f: 57 push %edi <== NOT EXECUTED
10ce40: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
10ce43: 8b 16 mov (%esi),%edx <== NOT EXECUTED
10ce45: 8d 54 10 ff lea -0x1(%eax,%edx,1),%edx <== NOT EXECUTED
10ce49: 52 push %edx <== NOT EXECUTED
10ce4a: 50 push %eax <== NOT EXECUTED
10ce4b: 68 27 f5 15 00 push $0x15f527 <== NOT EXECUTED
10ce50: ff 35 30 00 17 00 pushl 0x170030 <== NOT EXECUTED
10ce56: ff 15 34 00 17 00 call *0x170034 <== NOT EXECUTED
stack->area + stack->size - 1,
current,
size
);
if (Stack_check_Initialized == 0) {
10ce5c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10ce5f: 8b 1d 2c 00 17 00 mov 0x17002c,%ebx <== NOT EXECUTED
10ce65: 85 db test %ebx,%ebx <== NOT EXECUTED
10ce67: 74 23 je 10ce8c <Stack_check_Dump_threads_usage+0xe4><== NOT EXECUTED
(*print_handler)( print_context, "Unavailable\n" );
} else {
(*print_handler)( print_context, "%8" PRId32 "\n", used );
10ce69: 51 push %ecx <== NOT EXECUTED
10ce6a: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
10ce6d: 68 52 f5 15 00 push $0x15f552 <== NOT EXECUTED
10ce72: ff 35 30 00 17 00 pushl 0x170030 <== NOT EXECUTED
10ce78: ff 15 34 00 17 00 call *0x170034 <== NOT EXECUTED
10ce7e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
10ce81: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10ce84: 5b pop %ebx <== NOT EXECUTED
10ce85: 5e pop %esi <== NOT EXECUTED
10ce86: 5f pop %edi <== NOT EXECUTED
10ce87: c9 leave <== NOT EXECUTED
10ce88: c3 ret <== NOT EXECUTED
10ce89: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
current,
size
);
if (Stack_check_Initialized == 0) {
(*print_handler)( print_context, "Unavailable\n" );
10ce8c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10ce8f: 68 45 f5 15 00 push $0x15f545 <== NOT EXECUTED
10ce94: ff 35 30 00 17 00 pushl 0x170030 <== NOT EXECUTED
10ce9a: ff 15 34 00 17 00 call *0x170034 <== NOT EXECUTED
10cea0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} else {
(*print_handler)( print_context, "%8" PRId32 "\n", used );
}
}
10cea3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10cea6: 5b pop %ebx <== NOT EXECUTED
10cea7: 5e pop %esi <== NOT EXECUTED
10cea8: 5f pop %edi <== NOT EXECUTED
10cea9: c9 leave <== NOT EXECUTED
10ceaa: c3 ret <== NOT EXECUTED
10ceab: 90 nop <== NOT EXECUTED
/*
* Obtain interrupt stack information
*/
if (the_thread == (Thread_Control *) -1) {
if (Stack_check_Interrupt_stack.area) {
10ceac: 8b 0d 34 2d 17 00 mov 0x172d34,%ecx <== NOT EXECUTED
10ceb2: 85 c9 test %ecx,%ecx <== NOT EXECUTED
10ceb4: 74 cb je 10ce81 <Stack_check_Dump_threads_usage+0xd9><== NOT EXECUTED
10ceb6: be 30 2d 17 00 mov $0x172d30,%esi <== NOT EXECUTED
10cebb: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
10cec2: 31 db xor %ebx,%ebx <== NOT EXECUTED
10cec4: e9 1b ff ff ff jmp 10cde4 <Stack_check_Dump_threads_usage+0x3c><== NOT EXECUTED
10cec9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
low = Stack_check_usable_stack_start(stack);
size = Stack_check_usable_stack_size(stack);
high_water_mark = Stack_check_find_high_water_mark(low, size);
if ( high_water_mark )
10cecc: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
else
used = 0;
if ( the_thread ) {
10ced3: 85 db test %ebx,%ebx <== NOT EXECUTED
10ced5: 0f 85 3a ff ff ff jne 10ce15 <Stack_check_Dump_threads_usage+0x6d><== NOT EXECUTED
10cedb: 90 nop <== 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 );
10cedc: 50 push %eax <== NOT EXECUTED
10cedd: 6a ff push $0xffffffff <== NOT EXECUTED
10cedf: 68 19 f5 15 00 push $0x15f519 <== NOT EXECUTED
10cee4: ff 35 30 00 17 00 pushl 0x170030 <== NOT EXECUTED
10ceea: ff 55 d0 call *-0x30(%ebp) <== NOT EXECUTED
10ceed: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10cef0: e9 44 ff ff ff jmp 10ce39 <Stack_check_Dump_threads_usage+0x91><== NOT EXECUTED
0010d100 <Stack_check_Initialize>:
/*
* Stack_check_Initialize
*/
void Stack_check_Initialize( void )
{
10d100: 55 push %ebp
10d101: 89 e5 mov %esp,%ebp
10d103: 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)
10d104: 8b 3d 2c 00 17 00 mov 0x17002c,%edi
10d10a: 85 ff test %edi,%edi
10d10c: 75 4d jne 10d15b <Stack_check_Initialize+0x5b>
10d10e: 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 ];
10d110: 89 c2 mov %eax,%edx
10d112: 83 e2 03 and $0x3,%edx
10d115: 8b 14 95 90 f6 15 00 mov 0x15f690(,%edx,4),%edx
10d11c: 89 14 85 20 2d 17 00 mov %edx,0x172d20(,%eax,4)
/*
* Dope the pattern and fill areas
*/
p = Stack_check_Pattern.pattern;
for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {
10d123: 40 inc %eax
10d124: 83 f8 04 cmp $0x4,%eax
10d127: 75 e7 jne 10d110 <Stack_check_Initialize+0x10>
/*
* 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) {
10d129: 8b 15 c8 2e 17 00 mov 0x172ec8,%edx
10d12f: 85 d2 test %edx,%edx
10d131: 74 1e je 10d151 <Stack_check_Initialize+0x51><== NEVER TAKEN
10d133: 8b 0d 88 2e 17 00 mov 0x172e88,%ecx
10d139: 85 c9 test %ecx,%ecx
10d13b: 74 14 je 10d151 <Stack_check_Initialize+0x51><== NEVER TAKEN
Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;
10d13d: 89 15 34 2d 17 00 mov %edx,0x172d34
Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
10d143: 29 d1 sub %edx,%ecx
10d145: 89 0d 30 2d 17 00 mov %ecx,0x172d30
(char *) _CPU_Interrupt_stack_low;
Stack_check_Dope_stack(&Stack_check_Interrupt_stack);
10d14b: b0 a5 mov $0xa5,%al
10d14d: 89 d7 mov %edx,%edi
10d14f: f3 aa rep stos %al,%es:(%edi)
}
#endif
Stack_check_Initialized = 1;
10d151: c7 05 2c 00 17 00 01 movl $0x1,0x17002c
10d158: 00 00 00
}
10d15b: 5f pop %edi
10d15c: c9 leave
10d15d: c3 ret
0010cd70 <Stack_check_find_high_water_mark>:
*/
void *Stack_check_find_high_water_mark(
const void *s,
size_t n
)
{
10cd70: 55 push %ebp <== NOT EXECUTED
10cd71: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10cd73: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
10cd76: 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;
10cd79: 8d 41 10 lea 0x10(%ecx),%eax <== NOT EXECUTED
for (ebase = base + length; base < ebase; base++)
10cd7c: 83 e2 fc and $0xfffffffc,%edx <== NOT EXECUTED
10cd7f: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED
10cd82: 39 d0 cmp %edx,%eax <== NOT EXECUTED
10cd84: 73 1d jae 10cda3 <Stack_check_find_high_water_mark+0x33><== NOT EXECUTED
if (*base != U32_PATTERN)
10cd86: 81 79 10 a5 a5 a5 a5 cmpl $0xa5a5a5a5,0x10(%ecx) <== NOT EXECUTED
10cd8d: 74 0d je 10cd9c <Stack_check_find_high_water_mark+0x2c><== NOT EXECUTED
10cd8f: eb 14 jmp 10cda5 <Stack_check_find_high_water_mark+0x35><== NOT EXECUTED
10cd91: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
10cd94: 81 38 a5 a5 a5 a5 cmpl $0xa5a5a5a5,(%eax) <== NOT EXECUTED
10cd9a: 75 09 jne 10cda5 <Stack_check_find_high_water_mark+0x35><== 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++)
10cd9c: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
10cd9f: 39 c2 cmp %eax,%edx <== NOT EXECUTED
10cda1: 77 f1 ja 10cd94 <Stack_check_find_high_water_mark+0x24><== NOT EXECUTED
10cda3: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (*base != U32_PATTERN)
return (void *) base;
#endif
return (void *)0;
}
10cda5: c9 leave <== NOT EXECUTED
10cda6: c3 ret <== NOT EXECUTED
0010cf74 <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)
{
10cf74: 55 push %ebp <== NOT EXECUTED
10cf75: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10cf77: 56 push %esi <== NOT EXECUTED
10cf78: 53 push %ebx <== NOT EXECUTED
10cf79: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
10cf7c: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
10cf7f: 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);
10cf82: 8b b3 c4 00 00 00 mov 0xc4(%ebx),%esi <== NOT EXECUTED
char name [32];
printk("BLOWN STACK!!!\n");
10cf88: 68 6f f5 15 00 push $0x15f56f <== NOT EXECUTED
10cf8d: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED
10cf90: e8 17 2b 00 00 call 10faac <printk> <== NOT EXECUTED
printk("task control block: 0x%08" PRIxPTR "\n", running);
10cf95: 58 pop %eax <== NOT EXECUTED
10cf96: 5a pop %edx <== NOT EXECUTED
10cf97: 53 push %ebx <== NOT EXECUTED
10cf98: 68 7f f5 15 00 push $0x15f57f <== NOT EXECUTED
10cf9d: e8 0a 2b 00 00 call 10faac <printk> <== NOT EXECUTED
printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);
10cfa2: 5a pop %edx <== NOT EXECUTED
10cfa3: 59 pop %ecx <== NOT EXECUTED
10cfa4: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10cfa7: 68 9c f5 15 00 push $0x15f59c <== NOT EXECUTED
10cfac: e8 fb 2a 00 00 call 10faac <printk> <== NOT EXECUTED
printk(
10cfb1: 59 pop %ecx <== NOT EXECUTED
10cfb2: 58 pop %eax <== NOT EXECUTED
10cfb3: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
10cfb6: 68 ae f5 15 00 push $0x15f5ae <== NOT EXECUTED
10cfbb: e8 ec 2a 00 00 call 10faac <printk> <== NOT EXECUTED
"task name: 0x%08" PRIx32 "\n",
running->Object.name.name_u32
);
printk(
10cfc0: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10cfc3: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
10cfc6: 50 push %eax <== NOT EXECUTED
10cfc7: 6a 20 push $0x20 <== NOT EXECUTED
10cfc9: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10cfcc: e8 47 5c 00 00 call 112c18 <rtems_object_get_name> <== NOT EXECUTED
10cfd1: 59 pop %ecx <== NOT EXECUTED
10cfd2: 5a pop %edx <== NOT EXECUTED
10cfd3: 50 push %eax <== NOT EXECUTED
10cfd4: 68 c2 f5 15 00 push $0x15f5c2 <== NOT EXECUTED
10cfd9: e8 ce 2a 00 00 call 10faac <printk> <== NOT EXECUTED
"task name string: %s\n",
rtems_object_get_name(running->Object.id, sizeof(name), name)
);
printk(
10cfde: 8b 8b c4 00 00 00 mov 0xc4(%ebx),%ecx <== NOT EXECUTED
10cfe4: 8b 83 c0 00 00 00 mov 0xc0(%ebx),%eax <== NOT EXECUTED
10cfea: 8d 1c 01 lea (%ecx,%eax,1),%ebx <== NOT EXECUTED
10cfed: 53 push %ebx <== NOT EXECUTED
10cfee: 51 push %ecx <== NOT EXECUTED
10cfef: 50 push %eax <== NOT EXECUTED
10cff0: 68 24 f6 15 00 push $0x15f624 <== NOT EXECUTED
10cff5: e8 b2 2a 00 00 call 10faac <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) {
10cffa: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10cffd: 8a 55 d4 mov -0x2c(%ebp),%dl <== NOT EXECUTED
10d000: 84 d2 test %dl,%dl <== NOT EXECUTED
10d002: 74 10 je 10d014 <Stack_check_report_blown_task+0xa0><== NOT EXECUTED
rtems_configuration_get_user_multiprocessing_table()->node
);
}
#endif
rtems_fatal_error_occurred(0x81);
10d004: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10d007: 68 81 00 00 00 push $0x81 <== NOT EXECUTED
10d00c: e8 2b 66 00 00 call 11363c <rtems_fatal_error_occurred><== NOT EXECUTED
10d011: 8d 76 00 lea 0x0(%esi),%esi <== 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);
10d014: 8d 46 08 lea 0x8(%esi),%eax <== NOT EXECUTED
(unsigned long) stack->size,
stack->area,
((char *) stack->area + stack->size)
);
if (!pattern_ok) {
printk(
10d017: 83 c6 18 add $0x18,%esi <== NOT EXECUTED
10d01a: 56 push %esi <== NOT EXECUTED
10d01b: 50 push %eax <== NOT EXECUTED
10d01c: 6a 10 push $0x10 <== NOT EXECUTED
10d01e: 68 58 f6 15 00 push $0x15f658 <== NOT EXECUTED
10d023: e8 84 2a 00 00 call 10faac <printk> <== NOT EXECUTED
10d028: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10d02b: eb d7 jmp 10d004 <Stack_check_report_blown_task+0x90><== NOT EXECUTED
00145cfc <T.58>:
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
145cfc: 55 push %ebp <== NOT EXECUTED
145cfd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
145cff: 57 push %edi <== NOT EXECUTED
145d00: 56 push %esi <== NOT EXECUTED
145d01: 53 push %ebx <== NOT EXECUTED
145d02: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
145d05: 89 45 b8 mov %eax,-0x48(%ebp) <== NOT EXECUTED
145d08: 89 55 a4 mov %edx,-0x5c(%ebp) <== NOT EXECUTED
145d0b: 89 4d ac mov %ecx,-0x54(%ebp) <== NOT EXECUTED
145d0e: 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;
145d11: c6 01 00 movb $0x0,(%ecx) <== NOT EXECUTED
/*
* Load the bitmap.
*/
rc = rtems_rfs_bitmap_load_map (control, &map);
145d14: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
145d17: e8 00 fc ff ff call 14591c <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
145d1c: 85 c0 test %eax,%eax <== NOT EXECUTED
145d1e: 7e 08 jle 145d28 <T.58+0x2c> <== NOT EXECUTED
}
while (((direction < 0) && (test_bit >= end_bit))
|| ((direction > 0) && (test_bit <= end_bit)));
return 0;
}
145d20: 83 c4 5c add $0x5c,%esp <== NOT EXECUTED
145d23: 5b pop %ebx <== NOT EXECUTED
145d24: 5e pop %esi <== NOT EXECUTED
145d25: 5f pop %edi <== NOT EXECUTED
145d26: c9 leave <== NOT EXECUTED
145d27: c3 ret <== NOT EXECUTED
return rc;
/*
* Calculate the bit we are testing plus the end point we search over.
*/
test_bit = *bit;
145d28: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
145d2b: 8b 10 mov (%eax),%edx <== NOT EXECUTED
end_bit = test_bit + (window * direction);
145d2d: 89 de mov %ebx,%esi <== NOT EXECUTED
145d2f: c1 e6 0b shl $0xb,%esi <== NOT EXECUTED
if (end_bit < 0)
145d32: 01 d6 add %edx,%esi <== NOT EXECUTED
145d34: 0f 88 cf 01 00 00 js 145f09 <T.58+0x20d> <== NOT EXECUTED
end_bit = 0;
else if (end_bit >= control->size)
145d3a: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
145d3d: 8b 41 0c mov 0xc(%ecx),%eax <== NOT EXECUTED
145d40: 39 c6 cmp %eax,%esi <== NOT EXECUTED
145d42: 0f 83 94 01 00 00 jae 145edc <T.58+0x1e0> <== NOT EXECUTED
end_bit = control->size - 1;
map_index = rtems_rfs_bitmap_map_index (test_bit);
145d48: 89 d7 mov %edx,%edi <== NOT EXECUTED
145d4a: c1 ff 05 sar $0x5,%edi <== NOT EXECUTED
145d4d: 89 7d c8 mov %edi,-0x38(%ebp) <== NOT EXECUTED
map_offset = rtems_rfs_bitmap_map_offset (test_bit);
145d50: 89 d7 mov %edx,%edi <== NOT EXECUTED
145d52: 83 e7 1f and $0x1f,%edi <== NOT EXECUTED
search_index = rtems_rfs_bitmap_map_index (map_index);
search_offset = rtems_rfs_bitmap_map_offset (map_index);
145d55: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
145d58: 83 e1 1f and $0x1f,%ecx <== NOT EXECUTED
search_bits = &control->search_bits[search_index];
145d5b: 89 d0 mov %edx,%eax <== NOT EXECUTED
145d5d: c1 f8 0a sar $0xa,%eax <== NOT EXECUTED
145d60: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
145d63: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
145d66: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
145d69: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED
145d6c: 01 45 b4 add %eax,-0x4c(%ebp) <== NOT EXECUTED
map_bits = &map[map_index];
145d6f: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
145d72: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
145d75: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
145d78: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
145d7b: 01 45 cc add %eax,-0x34(%ebp) <== NOT EXECUTED
}
map_bits += direction * bits_skipped;
map_index += direction * bits_skipped;
}
search_bits += direction;
145d7e: 8d 04 9d 00 00 00 00 lea 0x0(,%ebx,4),%eax <== NOT EXECUTED
145d85: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
145d88: 89 d8 mov %ebx,%eax <== NOT EXECUTED
145d8a: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
145d8d: 89 45 a8 mov %eax,-0x58(%ebp) <== NOT EXECUTED
145d90: 89 f8 mov %edi,%eax <== 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))
145d92: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
145d95: 8b 3f mov (%edi),%edi <== NOT EXECUTED
145d97: 89 7d bc mov %edi,-0x44(%ebp) <== NOT EXECUTED
145d9a: 85 ff test %edi,%edi <== NOT EXECUTED
145d9c: 0f 84 a6 00 00 00 je 145e48 <T.58+0x14c> <== NOT EXECUTED
145da2: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
145da5: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
145da8: 01 d9 add %ebx,%ecx <== NOT EXECUTED
145daa: c1 e1 05 shl $0x5,%ecx <== NOT EXECUTED
145dad: 83 c1 1f add $0x1f,%ecx <== NOT EXECUTED
145db0: 89 4d c4 mov %ecx,-0x3c(%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)
145db3: 83 7d d0 1f cmpl $0x1f,-0x30(%ebp) <== NOT EXECUTED
145db7: 0f 87 b6 00 00 00 ja 145e73 <T.58+0x177> <== 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);
145dbd: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
145dc2: 8a 4d d0 mov -0x30(%ebp),%cl <== NOT EXECUTED
145dc5: d3 e7 shl %cl,%edi <== NOT EXECUTED
145dc7: 89 7d c0 mov %edi,-0x40(%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))
145dca: 8b 4d bc mov -0x44(%ebp),%ecx <== NOT EXECUTED
145dcd: 85 cf test %ecx,%edi <== NOT EXECUTED
145dcf: 74 4b je 145e1c <T.58+0x120> <== 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))
145dd1: 8b 7d cc mov -0x34(%ebp),%edi <== NOT EXECUTED
145dd4: 8b 3f mov (%edi),%edi <== NOT EXECUTED
145dd6: 89 7d d4 mov %edi,-0x2c(%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);
145dd9: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
145dde: 88 c1 mov %al,%cl <== NOT EXECUTED
145de0: d3 e7 shl %cl,%edi <== 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))
145de2: 85 7d d4 test %edi,-0x2c(%ebp) <== NOT EXECUTED
145de5: 0f 85 b9 00 00 00 jne 145ea4 <T.58+0x1a8> <== NOT EXECUTED
*found = true;
rtems_rfs_buffer_mark_dirty (control->buffer);
return 0;
}
if (test_bit == end_bit)
145deb: 39 d6 cmp %edx,%esi <== NOT EXECUTED
145ded: 74 2d je 145e1c <T.58+0x120> <== NOT EXECUTED
145def: 8d 0c 18 lea (%eax,%ebx,1),%ecx <== NOT EXECUTED
145df2: 8d 04 1a lea (%edx,%ebx,1),%eax <== NOT EXECUTED
145df5: eb 1f jmp 145e16 <T.58+0x11a> <== NOT EXECUTED
145df7: 90 nop <== NOT EXECUTED
145df8: 89 c2 mov %eax,%edx <== 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);
145dfa: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
145dff: d3 e7 shl %cl,%edi <== 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))
145e01: 85 7d d4 test %edi,-0x2c(%ebp) <== NOT EXECUTED
145e04: 0f 85 9a 00 00 00 jne 145ea4 <T.58+0x1a8> <== NOT EXECUTED
*search_bits = rtems_rfs_bitmap_set (*search_bits,
1 << search_offset);
control->free--;
*bit = test_bit;
*found = true;
rtems_rfs_buffer_mark_dirty (control->buffer);
145e0a: 01 d9 add %ebx,%ecx <== NOT EXECUTED
145e0c: 01 d8 add %ebx,%eax <== NOT EXECUTED
return 0;
}
if (test_bit == end_bit)
145e0e: 89 c2 mov %eax,%edx <== NOT EXECUTED
145e10: 29 da sub %ebx,%edx <== NOT EXECUTED
145e12: 39 d6 cmp %edx,%esi <== NOT EXECUTED
145e14: 74 06 je 145e1c <T.58+0x120> <== 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)
145e16: 83 f9 1f cmp $0x1f,%ecx <== NOT EXECUTED
145e19: 76 dd jbe 145df8 <T.58+0xfc> <== NOT EXECUTED
145e1b: 90 nop <== NOT EXECUTED
map_offset += direction;
test_bit += direction;
}
}
map_bits += direction;
145e1c: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
145e1f: 01 4d cc add %ecx,-0x34(%ebp) <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
145e22: 01 5d c8 add %ebx,-0x38(%ebp) <== NOT EXECUTED
}
}
map_bits += direction;
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
145e25: 83 fb 00 cmp $0x0,%ebx <== NOT EXECUTED
145e28: 7e 66 jle 145e90 <T.58+0x194> <== NOT EXECUTED
search_bits += direction;
search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
}
while (((direction < 0) && (test_bit >= end_bit))
|| ((direction > 0) && (test_bit <= end_bit)));
145e2a: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
145e2d: 83 ea 1f sub $0x1f,%edx <== NOT EXECUTED
test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
search_offset += direction;
if (((direction < 0) && (test_bit <= end_bit))
145e30: 39 d6 cmp %edx,%esi <== NOT EXECUTED
145e32: 0f 8e df 00 00 00 jle 145f17 <T.58+0x21b> <== NOT EXECUTED
145e38: 31 c0 xor %eax,%eax <== NOT EXECUTED
145e3a: 01 5d d0 add %ebx,-0x30(%ebp) <== NOT EXECUTED
145e3d: 8b 7d a8 mov -0x58(%ebp),%edi <== NOT EXECUTED
145e40: 01 7d c4 add %edi,-0x3c(%ebp) <== NOT EXECUTED
145e43: e9 6b ff ff ff jmp 145db3 <T.58+0xb7> <== 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);
145e48: 83 e2 e0 and $0xffffffe0,%edx <== NOT EXECUTED
if (direction > 0)
145e4b: 85 db test %ebx,%ebx <== NOT EXECUTED
145e4d: 0f 8e a1 00 00 00 jle 145ef4 <T.58+0x1f8> <== NOT EXECUTED
{
bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset;
145e53: bf 20 00 00 00 mov $0x20,%edi <== NOT EXECUTED
145e58: 29 cf sub %ecx,%edi <== NOT EXECUTED
test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();
145e5a: 89 f8 mov %edi,%eax <== NOT EXECUTED
145e5c: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
145e5f: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED
145e62: 31 c0 xor %eax,%eax <== NOT EXECUTED
* adds 1. Remember the logic is for subtraction.
*/
test_bit -= ((bits_skipped - 1) * rtems_rfs_bitmap_element_bits ()) + 1;
map_offset = rtems_rfs_bitmap_element_bits () - 1;
}
map_bits += direction * bits_skipped;
145e64: 0f af fb imul %ebx,%edi <== NOT EXECUTED
145e67: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
145e6a: 8d 0c b9 lea (%ecx,%edi,4),%ecx <== NOT EXECUTED
145e6d: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
map_index += direction * bits_skipped;
145e70: 01 7d c8 add %edi,-0x38(%ebp) <== NOT EXECUTED
}
search_bits += direction;
145e73: 8b 7d b0 mov -0x50(%ebp),%edi <== NOT EXECUTED
145e76: 01 7d b4 add %edi,-0x4c(%ebp) <== NOT EXECUTED
search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
145e79: 83 fb 00 cmp $0x0,%ebx <== NOT EXECUTED
145e7c: 7e 66 jle 145ee4 <T.58+0x1e8> <== NOT EXECUTED
}
while (((direction < 0) && (test_bit >= end_bit))
|| ((direction > 0) && (test_bit <= end_bit)));
145e7e: 39 d6 cmp %edx,%esi <== NOT EXECUTED
145e80: 0f 8c 8a 00 00 00 jl 145f10 <T.58+0x214> <== NOT EXECUTED
145e86: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
145e88: e9 05 ff ff ff jmp 145d92 <T.58+0x96> <== NOT EXECUTED
145e8d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
}
map_bits += direction;
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
145e90: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
search_offset += direction;
if (((direction < 0) && (test_bit <= end_bit))
145e93: 74 08 je 145e9d <T.58+0x1a1> <== NOT EXECUTED
145e95: 39 d6 cmp %edx,%esi <== NOT EXECUTED
145e97: 0f 8d 87 00 00 00 jge 145f24 <T.58+0x228> <== NOT EXECUTED
145e9d: b8 1f 00 00 00 mov $0x1f,%eax <== NOT EXECUTED
145ea2: eb 96 jmp 145e3a <T.58+0x13e> <== 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);
145ea4: f7 d7 not %edi <== NOT EXECUTED
145ea6: 23 7d d4 and -0x2c(%ebp),%edi <== 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);
145ea9: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
145eac: 89 38 mov %edi,(%eax) <== NOT EXECUTED
if (rtems_rfs_bitmap_match(*map_bits,
145eae: 85 ff test %edi,%edi <== NOT EXECUTED
145eb0: 75 0a jne 145ebc <T.58+0x1c0> <== NOT EXECUTED
RTEMS_RFS_BITMAP_ELEMENT_SET))
*search_bits = rtems_rfs_bitmap_set (*search_bits,
145eb2: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
145eb5: f7 d0 not %eax <== NOT EXECUTED
145eb7: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
145eba: 21 01 and %eax,(%ecx) <== NOT EXECUTED
1 << search_offset);
control->free--;
145ebc: 8b 7d b8 mov -0x48(%ebp),%edi <== NOT EXECUTED
145ebf: ff 4f 10 decl 0x10(%edi) <== NOT EXECUTED
*bit = test_bit;
145ec2: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
145ec5: 89 10 mov %edx,(%eax) <== NOT EXECUTED
*found = true;
145ec7: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
145eca: c6 02 01 movb $0x1,(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
145ecd: 8b 07 mov (%edi),%eax <== NOT EXECUTED
145ecf: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
145ed2: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
while (((direction < 0) && (test_bit >= end_bit))
|| ((direction > 0) && (test_bit <= end_bit)));
return 0;
}
145ed4: 83 c4 5c add $0x5c,%esp <== NOT EXECUTED
145ed7: 5b pop %ebx <== NOT EXECUTED
145ed8: 5e pop %esi <== NOT EXECUTED
145ed9: 5f pop %edi <== NOT EXECUTED
145eda: c9 leave <== NOT EXECUTED
145edb: c3 ret <== NOT EXECUTED
end_bit = test_bit + (window * direction);
if (end_bit < 0)
end_bit = 0;
else if (end_bit >= control->size)
end_bit = control->size - 1;
145edc: 8d 70 ff lea -0x1(%eax),%esi <== NOT EXECUTED
145edf: e9 64 fe ff ff jmp 145d48 <T.58+0x4c> <== NOT EXECUTED
search_bits += direction;
search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
}
while (((direction < 0) && (test_bit >= end_bit))
|| ((direction > 0) && (test_bit <= end_bit)));
145ee4: 74 2a je 145f10 <T.58+0x214> <== NOT EXECUTED
145ee6: 39 d6 cmp %edx,%esi <== NOT EXECUTED
145ee8: 7f 26 jg 145f10 <T.58+0x214> <== NOT EXECUTED
}
map_bits += direction * bits_skipped;
map_index += direction * bits_skipped;
}
search_bits += direction;
145eea: b9 1f 00 00 00 mov $0x1f,%ecx <== NOT EXECUTED
145eef: e9 9e fe ff ff jmp 145d92 <T.58+0x96> <== NOT EXECUTED
test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();
map_offset = 0;
}
else
{
bits_skipped = search_offset + 1;
145ef4: 8d 79 01 lea 0x1(%ecx),%edi <== 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;
145ef7: c1 e1 05 shl $0x5,%ecx <== NOT EXECUTED
145efa: f7 d1 not %ecx <== NOT EXECUTED
145efc: 8d 14 11 lea (%ecx,%edx,1),%edx <== NOT EXECUTED
145eff: b8 1f 00 00 00 mov $0x1f,%eax <== NOT EXECUTED
145f04: e9 5b ff ff ff jmp 145e64 <T.58+0x168> <== NOT EXECUTED
* Calculate the bit we are testing plus the end point we search over.
*/
test_bit = *bit;
end_bit = test_bit + (window * direction);
if (end_bit < 0)
145f09: 31 f6 xor %esi,%esi <== NOT EXECUTED
145f0b: e9 38 fe ff ff jmp 145d48 <T.58+0x4c> <== NOT EXECUTED
search_bits += direction;
search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
}
while (((direction < 0) && (test_bit >= end_bit))
|| ((direction > 0) && (test_bit <= end_bit)));
145f10: 31 c0 xor %eax,%eax <== NOT EXECUTED
145f12: e9 09 fe ff ff jmp 145d20 <T.58+0x24> <== NOT EXECUTED
}
map_bits += direction * bits_skipped;
map_index += direction * bits_skipped;
}
search_bits += direction;
145f17: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
145f1a: 01 4d b4 add %ecx,-0x4c(%ebp) <== NOT EXECUTED
145f1d: 31 c0 xor %eax,%eax <== NOT EXECUTED
145f1f: e9 5a ff ff ff jmp 145e7e <T.58+0x182> <== NOT EXECUTED
145f24: 8b 45 b0 mov -0x50(%ebp),%eax <== NOT EXECUTED
145f27: 01 45 b4 add %eax,-0x4c(%ebp) <== NOT EXECUTED
145f2a: b8 1f 00 00 00 mov $0x1f,%eax <== NOT EXECUTED
145f2f: eb b5 jmp 145ee6 <T.58+0x1ea> <== NOT EXECUTED
0010c43c <_API_extensions_Run_postdriver>:
*
* _API_extensions_Run_postdriver
*/
void _API_extensions_Run_postdriver( void )
{
10c43c: 55 push %ebp
10c43d: 89 e5 mov %esp,%ebp
10c43f: 53 push %ebx
10c440: 83 ec 04 sub $0x4,%esp
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
10c443: 8b 1d b8 75 12 00 mov 0x1275b8,%ebx
10c449: 81 fb bc 75 12 00 cmp $0x1275bc,%ebx
10c44f: 74 10 je 10c461 <_API_extensions_Run_postdriver+0x25><== NEVER TAKEN
10c451: 8d 76 00 lea 0x0(%esi),%esi
* Currently all APIs configure this hook so it is always non-NULL.
*/
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
if ( the_extension->postdriver_hook )
#endif
(*the_extension->postdriver_hook)();
10c454: ff 53 08 call *0x8(%ebx)
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
!_Chain_Is_tail( &_API_extensions_List, the_node ) ;
the_node = the_node->next ) {
10c457: 8b 1b mov (%ebx),%ebx
void _API_extensions_Run_postdriver( void )
{
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
10c459: 81 fb bc 75 12 00 cmp $0x1275bc,%ebx
10c45f: 75 f3 jne 10c454 <_API_extensions_Run_postdriver+0x18><== NEVER TAKEN
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
if ( the_extension->postdriver_hook )
#endif
(*the_extension->postdriver_hook)();
}
}
10c461: 58 pop %eax
10c462: 5b pop %ebx
10c463: c9 leave
10c464: c3 ret
0010c468 <_API_extensions_Run_postswitch>:
*
* _API_extensions_Run_postswitch
*/
void _API_extensions_Run_postswitch( void )
{
10c468: 55 push %ebp
10c469: 89 e5 mov %esp,%ebp
10c46b: 53 push %ebx
10c46c: 83 ec 04 sub $0x4,%esp
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
10c46f: 8b 1d b8 75 12 00 mov 0x1275b8,%ebx
10c475: 81 fb bc 75 12 00 cmp $0x1275bc,%ebx
10c47b: 74 1c je 10c499 <_API_extensions_Run_postswitch+0x31><== NEVER TAKEN
10c47d: 8d 76 00 lea 0x0(%esi),%esi
* provide this hook.
*/
#if defined(RTEMS_ITRON_API)
if ( the_extension->postswitch_hook )
#endif
(*the_extension->postswitch_hook)( _Thread_Executing );
10c480: 83 ec 0c sub $0xc,%esp
10c483: ff 35 18 74 12 00 pushl 0x127418
10c489: ff 53 0c call *0xc(%ebx)
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
!_Chain_Is_tail( &_API_extensions_List, the_node ) ;
the_node = the_node->next ) {
10c48c: 8b 1b mov (%ebx),%ebx
void _API_extensions_Run_postswitch( void )
{
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
10c48e: 83 c4 10 add $0x10,%esp
10c491: 81 fb bc 75 12 00 cmp $0x1275bc,%ebx
10c497: 75 e7 jne 10c480 <_API_extensions_Run_postswitch+0x18><== NEVER TAKEN
#if defined(RTEMS_ITRON_API)
if ( the_extension->postswitch_hook )
#endif
(*the_extension->postswitch_hook)( _Thread_Executing );
}
}
10c499: 8b 5d fc mov -0x4(%ebp),%ebx
10c49c: c9 leave
10c49d: c3 ret
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
0011a144 <_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
)
{
11a144: 55 push %ebp
11a145: 89 e5 mov %esp,%ebp
11a147: 57 push %edi
11a148: 56 push %esi
11a149: 53 push %ebx
11a14a: 83 ec 1c sub $0x1c,%esp
11a14d: 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 ) {
11a150: 8b 45 10 mov 0x10(%ebp),%eax
11a153: 39 43 4c cmp %eax,0x4c(%ebx)
11a156: 72 60 jb 11a1b8 <_CORE_message_queue_Broadcast+0x74><== NEVER TAKEN
* 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 ) {
11a158: 8b 43 48 mov 0x48(%ebx),%eax
11a15b: 85 c0 test %eax,%eax
11a15d: 75 45 jne 11a1a4 <_CORE_message_queue_Broadcast+0x60>
* 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))) {
11a15f: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
11a166: eb 18 jmp 11a180 <_CORE_message_queue_Broadcast+0x3c>
waitp = &the_thread->Wait;
number_broadcasted += 1;
11a168: ff 45 e4 incl -0x1c(%ebp)
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
11a16b: 8b 42 2c mov 0x2c(%edx),%eax
11a16e: 89 c7 mov %eax,%edi
11a170: 8b 75 0c mov 0xc(%ebp),%esi
11a173: 8b 4d 10 mov 0x10(%ebp),%ecx
11a176: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
11a178: 8b 42 28 mov 0x28(%edx),%eax
11a17b: 8b 55 10 mov 0x10(%ebp),%edx
11a17e: 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))) {
11a180: 83 ec 0c sub $0xc,%esp
11a183: 53 push %ebx
11a184: e8 b3 23 00 00 call 11c53c <_Thread_queue_Dequeue>
11a189: 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 =
11a18b: 83 c4 10 add $0x10,%esp
11a18e: 85 c0 test %eax,%eax
11a190: 75 d6 jne 11a168 <_CORE_message_queue_Broadcast+0x24>
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_message_queue_mp_support) ( the_thread, id );
#endif
}
*count = number_broadcasted;
11a192: 8b 55 e4 mov -0x1c(%ebp),%edx
11a195: 8b 45 1c mov 0x1c(%ebp),%eax
11a198: 89 10 mov %edx,(%eax)
11a19a: 31 c0 xor %eax,%eax
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
11a19c: 8d 65 f4 lea -0xc(%ebp),%esp
11a19f: 5b pop %ebx
11a1a0: 5e pop %esi
11a1a1: 5f pop %edi
11a1a2: c9 leave
11a1a3: c3 ret
* 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 ) {
*count = 0;
11a1a4: 8b 55 1c mov 0x1c(%ebp),%edx
11a1a7: c7 02 00 00 00 00 movl $0x0,(%edx)
11a1ad: 31 c0 xor %eax,%eax
#endif
}
*count = number_broadcasted;
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
11a1af: 8d 65 f4 lea -0xc(%ebp),%esp
11a1b2: 5b pop %ebx
11a1b3: 5e pop %esi
11a1b4: 5f pop %edi
11a1b5: c9 leave
11a1b6: c3 ret
11a1b7: 90 nop
{
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
11a1b8: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
#endif
}
*count = number_broadcasted;
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
11a1bd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
11a1c0: 5b pop %ebx <== NOT EXECUTED
11a1c1: 5e pop %esi <== NOT EXECUTED
11a1c2: 5f pop %edi <== NOT EXECUTED
11a1c3: c9 leave <== NOT EXECUTED
11a1c4: c3 ret <== NOT EXECUTED
001152b4 <_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
)
{
1152b4: 55 push %ebp
1152b5: 89 e5 mov %esp,%ebp
1152b7: 57 push %edi
1152b8: 56 push %esi
1152b9: 53 push %ebx
1152ba: 83 ec 0c sub $0xc,%esp
1152bd: 8b 5d 08 mov 0x8(%ebp),%ebx
1152c0: 8b 75 10 mov 0x10(%ebp),%esi
1152c3: 8b 45 14 mov 0x14(%ebp),%eax
size_t message_buffering_required;
size_t allocated_message_size;
the_message_queue->maximum_pending_messages = maximum_pending_messages;
1152c6: 89 73 44 mov %esi,0x44(%ebx)
the_message_queue->number_of_pending_messages = 0;
1152c9: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx)
the_message_queue->maximum_message_size = maximum_message_size;
1152d0: 89 43 4c mov %eax,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)) {
1152d3: a8 03 test $0x3,%al
1152d5: 75 19 jne 1152f0 <_CORE_message_queue_Initialize+0x3c>
1152d7: 89 c2 mov %eax,%edx
/*
* Calculate how much total memory is required for message buffering and
* check for overflow on the multiplication.
*/
message_buffering_required = (size_t) maximum_pending_messages *
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
1152d9: 8d 7a 10 lea 0x10(%edx),%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 *
1152dc: 89 f8 mov %edi,%eax
1152de: 0f af c6 imul %esi,%eax
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
if (message_buffering_required < allocated_message_size)
1152e1: 39 d0 cmp %edx,%eax
1152e3: 73 23 jae 115308 <_CORE_message_queue_Initialize+0x54><== ALWAYS TAKEN
THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
1152e5: 31 c0 xor %eax,%eax
}
1152e7: 8d 65 f4 lea -0xc(%ebp),%esp
1152ea: 5b pop %ebx
1152eb: 5e pop %esi
1152ec: 5f pop %edi
1152ed: c9 leave
1152ee: c3 ret
1152ef: 90 nop
* 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)) {
allocated_message_size += sizeof(uint32_t);
1152f0: 8d 50 04 lea 0x4(%eax),%edx
allocated_message_size &= ~(sizeof(uint32_t) - 1);
1152f3: 83 e2 fc and $0xfffffffc,%edx
}
if (allocated_message_size < maximum_message_size)
1152f6: 39 d0 cmp %edx,%eax
1152f8: 77 eb ja 1152e5 <_CORE_message_queue_Initialize+0x31><== 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));
1152fa: 8d 7a 10 lea 0x10(%edx),%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 *
1152fd: 89 f8 mov %edi,%eax
1152ff: 0f af c6 imul %esi,%eax
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
if (message_buffering_required < allocated_message_size)
115302: 39 d0 cmp %edx,%eax
115304: 72 df jb 1152e5 <_CORE_message_queue_Initialize+0x31><== NEVER TAKEN
115306: 66 90 xchg %ax,%ax
return false;
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
115308: 83 ec 0c sub $0xc,%esp
11530b: 50 push %eax
11530c: e8 a7 28 00 00 call 117bb8 <_Workspace_Allocate>
115311: 89 43 5c mov %eax,0x5c(%ebx)
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
115314: 83 c4 10 add $0x10,%esp
115317: 85 c0 test %eax,%eax
115319: 74 ca je 1152e5 <_CORE_message_queue_Initialize+0x31>
/*
* Initialize the pool of inactive messages, pending messages,
* and set of waiting threads.
*/
_Chain_Initialize (
11531b: 57 push %edi
11531c: 56 push %esi
11531d: 50 push %eax
11531e: 8d 43 60 lea 0x60(%ebx),%eax
115321: 50 push %eax
115322: e8 95 53 00 00 call 11a6bc <_Chain_Initialize>
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
115327: 8d 43 54 lea 0x54(%ebx),%eax
11532a: 89 43 50 mov %eax,0x50(%ebx)
the_chain->permanent_null = NULL;
11532d: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx)
the_chain->last = _Chain_Head(the_chain);
115334: 8d 43 50 lea 0x50(%ebx),%eax
115337: 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(
11533a: 6a 06 push $0x6
11533c: 68 80 00 00 00 push $0x80
115341: 8b 45 0c mov 0xc(%ebp),%eax
115344: 83 38 01 cmpl $0x1,(%eax)
115347: 0f 94 c0 sete %al
11534a: 0f b6 c0 movzbl %al,%eax
11534d: 50 push %eax
11534e: 53 push %ebx
11534f: e8 94 1e 00 00 call 1171e8 <_Thread_queue_Initialize>
115354: b0 01 mov $0x1,%al
THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
115356: 83 c4 20 add $0x20,%esp
}
115359: 8d 65 f4 lea -0xc(%ebp),%esp
11535c: 5b pop %ebx
11535d: 5e pop %esi
11535e: 5f pop %edi
11535f: c9 leave
115360: c3 ret
0010c5e8 <_CORE_message_queue_Submit>:
#endif
CORE_message_queue_Submit_types submit_type,
bool wait,
Watchdog_Interval timeout
)
{
10c5e8: 55 push %ebp
10c5e9: 89 e5 mov %esp,%ebp
10c5eb: 57 push %edi
10c5ec: 56 push %esi
10c5ed: 53 push %ebx
10c5ee: 83 ec 0c sub $0xc,%esp
10c5f1: 8b 5d 08 mov 0x8(%ebp),%ebx
10c5f4: 8b 75 0c mov 0xc(%ebp),%esi
CORE_message_queue_Buffer_control *the_message;
Thread_Control *the_thread;
if ( size > the_message_queue->maximum_message_size ) {
10c5f7: 8b 45 10 mov 0x10(%ebp),%eax
10c5fa: 39 43 4c cmp %eax,0x4c(%ebx)
10c5fd: 72 79 jb 10c678 <_CORE_message_queue_Submit+0x90>
}
/*
* Is there a thread currently waiting on this message queue?
*/
if ( the_message_queue->number_of_pending_messages == 0 ) {
10c5ff: 8b 53 48 mov 0x48(%ebx),%edx
10c602: 85 d2 test %edx,%edx
10c604: 74 3e je 10c644 <_CORE_message_queue_Submit+0x5c>
RTEMS_INLINE_ROUTINE CORE_message_queue_Buffer_control *
_CORE_message_queue_Allocate_message_buffer (
CORE_message_queue_Control *the_message_queue
)
{
return (CORE_message_queue_Buffer_control *)
10c606: 83 ec 0c sub $0xc,%esp
10c609: 8d 43 60 lea 0x60(%ebx),%eax
10c60c: 50 push %eax
10c60d: e8 b2 ff ff ff call 10c5c4 <_Chain_Get>
10c612: 89 c2 mov %eax,%edx
* No one waiting on the message queue at this time, so attempt to
* queue the message up for a future receive.
*/
the_message =
_CORE_message_queue_Allocate_message_buffer( the_message_queue );
if ( the_message ) {
10c614: 83 c4 10 add $0x10,%esp
10c617: 85 c0 test %eax,%eax
10c619: 74 6d je 10c688 <_CORE_message_queue_Submit+0xa0>
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
10c61b: 8d 40 0c lea 0xc(%eax),%eax
10c61e: 89 c7 mov %eax,%edi
10c620: 8b 4d 10 mov 0x10(%ebp),%ecx
10c623: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
_CORE_message_queue_Copy_buffer(
buffer,
the_message->Contents.buffer,
size
);
the_message->Contents.size = size;
10c625: 8b 4d 10 mov 0x10(%ebp),%ecx
10c628: 89 4a 08 mov %ecx,0x8(%edx)
_CORE_message_queue_Set_message_priority( the_message, submit_type );
_CORE_message_queue_Insert_message(
10c62b: 50 push %eax
10c62c: ff 75 1c pushl 0x1c(%ebp)
10c62f: 52 push %edx
10c630: 53 push %ebx
10c631: e8 62 51 00 00 call 111798 <_CORE_message_queue_Insert_message>
10c636: 31 c0 xor %eax,%eax
the_message_queue,
the_message,
submit_type
);
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
10c638: 83 c4 10 add $0x10,%esp
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;
#endif
}
10c63b: 8d 65 f4 lea -0xc(%ebp),%esp
10c63e: 5b pop %ebx
10c63f: 5e pop %esi
10c640: 5f pop %edi
10c641: c9 leave
10c642: c3 ret
10c643: 90 nop
/*
* Is there a thread currently waiting on this message queue?
*/
if ( the_message_queue->number_of_pending_messages == 0 ) {
the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
10c644: 83 ec 0c sub $0xc,%esp
10c647: 53 push %ebx
10c648: e8 1f 19 00 00 call 10df6c <_Thread_queue_Dequeue>
10c64d: 89 c2 mov %eax,%edx
if ( the_thread ) {
10c64f: 83 c4 10 add $0x10,%esp
10c652: 85 c0 test %eax,%eax
10c654: 74 b0 je 10c606 <_CORE_message_queue_Submit+0x1e>
10c656: 8b 40 2c mov 0x2c(%eax),%eax
10c659: 89 c7 mov %eax,%edi
10c65b: 8b 4d 10 mov 0x10(%ebp),%ecx
10c65e: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
_CORE_message_queue_Copy_buffer(
buffer,
the_thread->Wait.return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
10c660: 8b 42 28 mov 0x28(%edx),%eax
10c663: 8b 4d 10 mov 0x10(%ebp),%ecx
10c666: 89 08 mov %ecx,(%eax)
the_thread->Wait.count = (uint32_t) submit_type;
10c668: 8b 45 1c mov 0x1c(%ebp),%eax
10c66b: 89 42 24 mov %eax,0x24(%edx)
10c66e: 31 c0 xor %eax,%eax
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;
#endif
}
10c670: 8d 65 f4 lea -0xc(%ebp),%esp
10c673: 5b pop %ebx
10c674: 5e pop %esi
10c675: 5f pop %edi
10c676: c9 leave
10c677: c3 ret
)
{
CORE_message_queue_Buffer_control *the_message;
Thread_Control *the_thread;
if ( size > the_message_queue->maximum_message_size ) {
10c678: b8 01 00 00 00 mov $0x1,%eax
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;
#endif
}
10c67d: 8d 65 f4 lea -0xc(%ebp),%esp
10c680: 5b pop %ebx
10c681: 5e pop %esi
10c682: 5f pop %edi
10c683: c9 leave
10c684: c3 ret
10c685: 8d 76 00 lea 0x0(%esi),%esi
* No one waiting on the message queue at this time, so attempt to
* queue the message up for a future receive.
*/
the_message =
_CORE_message_queue_Allocate_message_buffer( the_message_queue );
if ( the_message ) {
10c688: b8 02 00 00 00 mov $0x2,%eax
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;
#endif
}
10c68d: 8d 65 f4 lea -0xc(%ebp),%esp
10c690: 5b pop %ebx
10c691: 5e pop %esi
10c692: 5f pop %edi
10c693: c9 leave
10c694: c3 ret
0010c6a4 <_CORE_mutex_Initialize>:
CORE_mutex_Status _CORE_mutex_Initialize(
CORE_mutex_Control *the_mutex,
CORE_mutex_Attributes *the_mutex_attributes,
uint32_t initial_lock
)
{
10c6a4: 55 push %ebp
10c6a5: 89 e5 mov %esp,%ebp
10c6a7: 57 push %edi
10c6a8: 56 push %esi
10c6a9: 53 push %ebx
10c6aa: 83 ec 0c sub $0xc,%esp
10c6ad: 8b 45 08 mov 0x8(%ebp),%eax
10c6b0: 8b 5d 0c mov 0xc(%ebp),%ebx
10c6b3: 8b 55 10 mov 0x10(%ebp),%edx
/* Add this to the RTEMS environment later ?????????
rtems_assert( initial_lock == CORE_MUTEX_LOCKED ||
initial_lock == CORE_MUTEX_UNLOCKED );
*/
the_mutex->Attributes = *the_mutex_attributes;
10c6b6: 8d 78 40 lea 0x40(%eax),%edi
10c6b9: b9 04 00 00 00 mov $0x4,%ecx
10c6be: 89 de mov %ebx,%esi
10c6c0: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
the_mutex->lock = initial_lock;
10c6c2: 89 50 50 mov %edx,0x50(%eax)
the_mutex->blocked_count = 0;
10c6c5: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax)
if ( initial_lock == CORE_MUTEX_LOCKED ) {
10c6cc: 85 d2 test %edx,%edx
10c6ce: 75 30 jne 10c700 <_CORE_mutex_Initialize+0x5c>
the_mutex->nest_count = 1;
10c6d0: c7 40 54 01 00 00 00 movl $0x1,0x54(%eax)
the_mutex->holder = _Thread_Executing;
10c6d7: 8b 15 18 74 12 00 mov 0x127418,%edx
10c6dd: 89 50 5c mov %edx,0x5c(%eax)
the_mutex->holder_id = _Thread_Executing->Object.id;
10c6e0: 8b 4a 08 mov 0x8(%edx),%ecx
10c6e3: 89 48 60 mov %ecx,0x60(%eax)
*/
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority(
CORE_mutex_Attributes *the_attribute
)
{
return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
10c6e6: 8b 48 48 mov 0x48(%eax),%ecx
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
10c6e9: 83 f9 02 cmp $0x2,%ecx
10c6ec: 74 05 je 10c6f3 <_CORE_mutex_Initialize+0x4f>
10c6ee: 83 f9 03 cmp $0x3,%ecx
10c6f1: 75 22 jne 10c715 <_CORE_mutex_Initialize+0x71>
_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
if ( _Thread_Executing->current_priority <
the_mutex->Attributes.priority_ceiling )
10c6f3: 8b 4a 14 mov 0x14(%edx),%ecx
10c6f6: 3b 48 4c cmp 0x4c(%eax),%ecx
10c6f9: 72 41 jb 10c73c <_CORE_mutex_Initialize+0x98>
_Chain_Prepend_unprotected( &_Thread_Executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = _Thread_Executing->current_priority;
#endif
_Thread_Executing->resource_count++;
10c6fb: ff 42 1c incl 0x1c(%edx)
10c6fe: eb 15 jmp 10c715 <_CORE_mutex_Initialize+0x71>
}
} else {
the_mutex->nest_count = 0;
10c700: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
the_mutex->holder = NULL;
10c707: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax)
the_mutex->holder_id = 0;
10c70e: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax)
}
_Thread_queue_Initialize(
10c715: 6a 05 push $0x5
10c717: 68 00 04 00 00 push $0x400
10c71c: 31 d2 xor %edx,%edx
10c71e: 83 7b 08 00 cmpl $0x0,0x8(%ebx)
10c722: 0f 95 c2 setne %dl
10c725: 52 push %edx
10c726: 50 push %eax
10c727: e8 bc 1b 00 00 call 10e2e8 <_Thread_queue_Initialize>
10c72c: 31 c0 xor %eax,%eax
THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY,
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
10c72e: 83 c4 10 add $0x10,%esp
}
10c731: 8d 65 f4 lea -0xc(%ebp),%esp
10c734: 5b pop %ebx
10c735: 5e pop %esi
10c736: 5f pop %edi
10c737: c9 leave
10c738: c3 ret
10c739: 8d 76 00 lea 0x0(%esi),%esi
the_mutex->holder_id = _Thread_Executing->Object.id;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
if ( _Thread_Executing->current_priority <
the_mutex->Attributes.priority_ceiling )
10c73c: b8 06 00 00 00 mov $0x6,%eax
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
10c741: 8d 65 f4 lea -0xc(%ebp),%esp
10c744: 5b pop %ebx
10c745: 5e pop %esi
10c746: 5f pop %edi
10c747: c9 leave
10c748: c3 ret
0010c79c <_CORE_mutex_Seize>:
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
10c79c: 55 push %ebp
10c79d: 89 e5 mov %esp,%ebp
10c79f: 53 push %ebx
10c7a0: 83 ec 14 sub $0x14,%esp
10c7a3: 8b 5d 08 mov 0x8(%ebp),%ebx
10c7a6: 8a 55 10 mov 0x10(%ebp),%dl
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
10c7a9: a1 58 73 12 00 mov 0x127358,%eax
10c7ae: 85 c0 test %eax,%eax
10c7b0: 74 04 je 10c7b6 <_CORE_mutex_Seize+0x1a>
10c7b2: 84 d2 test %dl,%dl
10c7b4: 75 36 jne 10c7ec <_CORE_mutex_Seize+0x50><== ALWAYS TAKEN
10c7b6: 83 ec 08 sub $0x8,%esp
10c7b9: 8d 45 18 lea 0x18(%ebp),%eax
10c7bc: 50 push %eax
10c7bd: 53 push %ebx
10c7be: 88 55 f4 mov %dl,-0xc(%ebp)
10c7c1: e8 16 50 00 00 call 1117dc <_CORE_mutex_Seize_interrupt_trylock>
10c7c6: 83 c4 10 add $0x10,%esp
10c7c9: 85 c0 test %eax,%eax
10c7cb: 8a 55 f4 mov -0xc(%ebp),%dl
10c7ce: 74 14 je 10c7e4 <_CORE_mutex_Seize+0x48>
10c7d0: 84 d2 test %dl,%dl
10c7d2: 75 30 jne 10c804 <_CORE_mutex_Seize+0x68>
10c7d4: ff 75 18 pushl 0x18(%ebp)
10c7d7: 9d popf
10c7d8: a1 18 74 12 00 mov 0x127418,%eax
10c7dd: c7 40 34 01 00 00 00 movl $0x1,0x34(%eax)
}
10c7e4: 8b 5d fc mov -0x4(%ebp),%ebx
10c7e7: c9 leave
10c7e8: c3 ret
10c7e9: 8d 76 00 lea 0x0(%esi),%esi
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
10c7ec: 83 3d 20 75 12 00 01 cmpl $0x1,0x127520
10c7f3: 76 c1 jbe 10c7b6 <_CORE_mutex_Seize+0x1a>
10c7f5: 53 push %ebx
10c7f6: 6a 13 push $0x13
10c7f8: 6a 00 push $0x0
10c7fa: 6a 00 push $0x0
10c7fc: e8 fb 05 00 00 call 10cdfc <_Internal_error_Occurred>
10c801: 8d 76 00 lea 0x0(%esi),%esi
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;
10c804: c7 43 30 01 00 00 00 movl $0x1,0x30(%ebx)
10c80b: a1 18 74 12 00 mov 0x127418,%eax
10c810: 89 58 44 mov %ebx,0x44(%eax)
10c813: 8b 55 0c mov 0xc(%ebp),%edx
10c816: 89 50 20 mov %edx,0x20(%eax)
10c819: a1 58 73 12 00 mov 0x127358,%eax
10c81e: 40 inc %eax
10c81f: a3 58 73 12 00 mov %eax,0x127358
10c824: ff 75 18 pushl 0x18(%ebp)
10c827: 9d popf
10c828: 83 ec 08 sub $0x8,%esp
10c82b: ff 75 14 pushl 0x14(%ebp)
10c82e: 53 push %ebx
10c82f: e8 18 ff ff ff call 10c74c <_CORE_mutex_Seize_interrupt_blocking>
10c834: 83 c4 10 add $0x10,%esp
}
10c837: 8b 5d fc mov -0x4(%ebp),%ebx
10c83a: c9 leave
10c83b: c3 ret
001117dc <_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
)
{
1117dc: 55 push %ebp
1117dd: 89 e5 mov %esp,%ebp
1117df: 56 push %esi
1117e0: 53 push %ebx
1117e1: 8b 45 08 mov 0x8(%ebp),%eax
1117e4: 8b 4d 0c mov 0xc(%ebp),%ecx
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
1117e7: 8b 15 18 74 12 00 mov 0x127418,%edx
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
1117ed: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx)
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
1117f4: 8b 58 50 mov 0x50(%eax),%ebx
1117f7: 85 db test %ebx,%ebx
1117f9: 74 31 je 11182c <_CORE_mutex_Seize_interrupt_trylock+0x50>
the_mutex->lock = CORE_MUTEX_LOCKED;
1117fb: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax)
the_mutex->holder = executing;
111802: 89 50 5c mov %edx,0x5c(%eax)
the_mutex->holder_id = executing->Object.id;
111805: 8b 5a 08 mov 0x8(%edx),%ebx
111808: 89 58 60 mov %ebx,0x60(%eax)
the_mutex->nest_count = 1;
11180b: 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;
111812: 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 ) ||
111815: 83 fb 02 cmp $0x2,%ebx
111818: 74 26 je 111840 <_CORE_mutex_Seize_interrupt_trylock+0x64>
11181a: 83 fb 03 cmp $0x3,%ebx
11181d: 74 35 je 111854 <_CORE_mutex_Seize_interrupt_trylock+0x78>
*/
if ( _Thread_Is_executing( the_mutex->holder ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
_ISR_Enable( *level_p );
11181f: ff 31 pushl (%ecx)
111821: 9d popf
111822: 31 c0 xor %eax,%eax
return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p );
}
111824: 8d 65 f8 lea -0x8(%ebp),%esp
111827: 5b pop %ebx
111828: 5e pop %esi
111829: c9 leave
11182a: c3 ret
11182b: 90 nop
/*
* 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 ) ) {
11182c: 3b 50 5c cmp 0x5c(%eax),%edx
11182f: 74 17 je 111848 <_CORE_mutex_Seize_interrupt_trylock+0x6c>
the_mutex->nest_count++;
_ISR_Enable( *level_p );
return 0;
case CORE_MUTEX_NESTING_IS_ERROR:
executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
_ISR_Enable( *level_p );
111831: b8 01 00 00 00 mov $0x1,%eax
111836: 8d 65 f8 lea -0x8(%ebp),%esp
111839: 5b pop %ebx
11183a: 5e pop %esi
11183b: c9 leave
11183c: c3 ret
11183d: 8d 76 00 lea 0x0(%esi),%esi
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
111840: ff 42 1c incl 0x1c(%edx)
111843: eb da jmp 11181f <_CORE_mutex_Seize_interrupt_trylock+0x43>
111845: 8d 76 00 lea 0x0(%esi),%esi
* 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 ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
111848: 8b 58 40 mov 0x40(%eax),%ebx
11184b: 85 db test %ebx,%ebx
11184d: 75 3d jne 11188c <_CORE_mutex_Seize_interrupt_trylock+0xb0>
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
11184f: ff 40 54 incl 0x54(%eax)
111852: eb cb jmp 11181f <_CORE_mutex_Seize_interrupt_trylock+0x43>
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
111854: 8b 5a 1c mov 0x1c(%edx),%ebx
111857: 8d 73 01 lea 0x1(%ebx),%esi
11185a: 89 72 1c mov %esi,0x1c(%edx)
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
current = executing->current_priority;
11185d: 8b 72 14 mov 0x14(%edx),%esi
if ( current == ceiling ) {
111860: 39 70 4c cmp %esi,0x4c(%eax)
111863: 74 ba je 11181f <_CORE_mutex_Seize_interrupt_trylock+0x43>
_ISR_Enable( *level_p );
return 0;
}
if ( current > ceiling ) {
111865: 72 39 jb 1118a0 <_CORE_mutex_Seize_interrupt_trylock+0xc4>
);
_Thread_Enable_dispatch();
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
111867: c7 42 34 06 00 00 00 movl $0x6,0x34(%edx)
the_mutex->lock = CORE_MUTEX_UNLOCKED;
11186e: c7 40 50 01 00 00 00 movl $0x1,0x50(%eax)
the_mutex->nest_count = 0; /* undo locking above */
111875: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
executing->resource_count--; /* undo locking above */
11187c: 89 5a 1c mov %ebx,0x1c(%edx)
_ISR_Enable( *level_p );
11187f: ff 31 pushl (%ecx)
111881: 9d popf
111882: 31 c0 xor %eax,%eax
111884: 8d 65 f8 lea -0x8(%ebp),%esp
111887: 5b pop %ebx
111888: 5e pop %esi
111889: c9 leave
11188a: c3 ret
11188b: 90 nop
* 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 ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
11188c: 4b dec %ebx
11188d: 75 a2 jne 111831 <_CORE_mutex_Seize_interrupt_trylock+0x55><== ALWAYS TAKEN
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
_ISR_Enable( *level_p );
return 0;
case CORE_MUTEX_NESTING_IS_ERROR:
executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
11188f: c7 42 34 02 00 00 00 movl $0x2,0x34(%edx) <== NOT EXECUTED
_ISR_Enable( *level_p );
111896: ff 31 pushl (%ecx) <== NOT EXECUTED
111898: 9d popf <== NOT EXECUTED
111899: 31 c0 xor %eax,%eax <== NOT EXECUTED
11189b: eb 99 jmp 111836 <_CORE_mutex_Seize_interrupt_trylock+0x5a><== NOT EXECUTED
11189d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
1118a0: 8b 15 58 73 12 00 mov 0x127358,%edx
1118a6: 42 inc %edx
1118a7: 89 15 58 73 12 00 mov %edx,0x127358
return 0;
}
if ( current > ceiling ) {
_Thread_Disable_dispatch();
_ISR_Enable( *level_p );
1118ad: ff 31 pushl (%ecx)
1118af: 9d popf
_Thread_Change_priority(
1118b0: 52 push %edx
1118b1: 6a 00 push $0x0
1118b3: ff 70 4c pushl 0x4c(%eax)
1118b6: ff 70 5c pushl 0x5c(%eax)
1118b9: e8 e6 bd ff ff call 10d6a4 <_Thread_Change_priority>
the_mutex->holder,
the_mutex->Attributes.priority_ceiling,
false
);
_Thread_Enable_dispatch();
1118be: e8 c9 c2 ff ff call 10db8c <_Thread_Enable_dispatch>
1118c3: 31 c0 xor %eax,%eax
1118c5: 83 c4 10 add $0x10,%esp
1118c8: e9 69 ff ff ff jmp 111836 <_CORE_mutex_Seize_interrupt_trylock+0x5a>
0010c83c <_CORE_mutex_Surrender>:
#else
Objects_Id id __attribute__((unused)),
CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused))
#endif
)
{
10c83c: 55 push %ebp
10c83d: 89 e5 mov %esp,%ebp
10c83f: 53 push %ebx
10c840: 83 ec 04 sub $0x4,%esp
10c843: 8b 5d 08 mov 0x8(%ebp),%ebx
Thread_Control *the_thread;
Thread_Control *holder;
#ifdef __RTEMS_STRICT_ORDER_MUTEX__
Chain_Node *first_node;
#endif
holder = the_mutex->holder;
10c846: 8b 43 5c mov 0x5c(%ebx),%eax
* allowed when the mutex in quetion is FIFO or simple Priority
* discipline. But Priority Ceiling or Priority Inheritance mutexes
* must be released by the thread which acquired them.
*/
if ( the_mutex->Attributes.only_owner_release ) {
10c849: 80 7b 44 00 cmpb $0x0,0x44(%ebx)
10c84d: 74 15 je 10c864 <_CORE_mutex_Surrender+0x28>
if ( !_Thread_Is_executing( holder ) )
10c84f: 3b 05 18 74 12 00 cmp 0x127418,%eax
10c855: 74 0d je 10c864 <_CORE_mutex_Surrender+0x28>
10c857: b8 03 00 00 00 mov $0x3,%eax
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
10c85c: 8b 5d fc mov -0x4(%ebp),%ebx
10c85f: c9 leave
10c860: c3 ret
10c861: 8d 76 00 lea 0x0(%esi),%esi
return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE;
}
/* XXX already unlocked -- not right status */
if ( !the_mutex->nest_count )
10c864: 8b 53 54 mov 0x54(%ebx),%edx
10c867: 85 d2 test %edx,%edx
10c869: 74 65 je 10c8d0 <_CORE_mutex_Surrender+0x94>
return CORE_MUTEX_STATUS_SUCCESSFUL;
the_mutex->nest_count--;
10c86b: 4a dec %edx
10c86c: 89 53 54 mov %edx,0x54(%ebx)
if ( the_mutex->nest_count != 0 ) {
10c86f: 85 d2 test %edx,%edx
10c871: 75 5d jne 10c8d0 <_CORE_mutex_Surrender+0x94>
10c873: 8b 53 48 mov 0x48(%ebx),%edx
/*
* Formally release the mutex before possibly transferring it to a
* blocked thread.
*/
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
10c876: 83 fa 02 cmp $0x2,%edx
10c879: 0f 84 99 00 00 00 je 10c918 <_CORE_mutex_Surrender+0xdc>
10c87f: 83 fa 03 cmp $0x3,%edx
10c882: 0f 84 90 00 00 00 je 10c918 <_CORE_mutex_Surrender+0xdc>
}
first_node = _Chain_Get_first_unprotected(&holder->lock_mutex);
#endif
holder->resource_count--;
}
the_mutex->holder = NULL;
10c888: c7 43 5c 00 00 00 00 movl $0x0,0x5c(%ebx)
the_mutex->holder_id = 0;
10c88f: c7 43 60 00 00 00 00 movl $0x0,0x60(%ebx)
/*
* Whether or not someone is waiting for the mutex, an
* inherited priority must be lowered if this is the last
* mutex (i.e. resource) this task has.
*/
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
10c896: 83 fa 02 cmp $0x2,%edx
10c899: 74 5d je 10c8f8 <_CORE_mutex_Surrender+0xbc>
10c89b: 83 fa 03 cmp $0x3,%edx
10c89e: 74 58 je 10c8f8 <_CORE_mutex_Surrender+0xbc>
/*
* Now we check if another thread was waiting for this mutex. If so,
* transfer the mutex to that thread.
*/
if ( ( the_thread = _Thread_queue_Dequeue( &the_mutex->Wait_queue ) ) ) {
10c8a0: 83 ec 0c sub $0xc,%esp
10c8a3: 53 push %ebx
10c8a4: e8 c3 16 00 00 call 10df6c <_Thread_queue_Dequeue>
10c8a9: 83 c4 10 add $0x10,%esp
10c8ac: 85 c0 test %eax,%eax
10c8ae: 74 7c je 10c92c <_CORE_mutex_Surrender+0xf0>
} else
#endif
{
the_mutex->holder = the_thread;
10c8b0: 89 43 5c mov %eax,0x5c(%ebx)
the_mutex->holder_id = the_thread->Object.id;
10c8b3: 8b 50 08 mov 0x8(%eax),%edx
10c8b6: 89 53 60 mov %edx,0x60(%ebx)
the_mutex->nest_count = 1;
10c8b9: c7 43 54 01 00 00 00 movl $0x1,0x54(%ebx)
switch ( the_mutex->Attributes.discipline ) {
10c8c0: 8b 53 48 mov 0x48(%ebx),%edx
10c8c3: 83 fa 02 cmp $0x2,%edx
10c8c6: 74 58 je 10c920 <_CORE_mutex_Surrender+0xe4>
10c8c8: 83 fa 03 cmp $0x3,%edx
10c8cb: 74 0b je 10c8d8 <_CORE_mutex_Surrender+0x9c>
10c8cd: 8d 76 00 lea 0x0(%esi),%esi
}
break;
}
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
10c8d0: 31 c0 xor %eax,%eax
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
10c8d2: 8b 5d fc mov -0x4(%ebp),%ebx
10c8d5: c9 leave
10c8d6: c3 ret
10c8d7: 90 nop
case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING:
#ifdef __RTEMS_STRICT_ORDER_MUTEX__
_Chain_Prepend_unprotected(&the_thread->lock_mutex,&the_mutex->queue.lock_queue);
the_mutex->queue.priority_before = the_thread->current_priority;
#endif
the_thread->resource_count++;
10c8d8: ff 40 1c incl 0x1c(%eax)
if (the_mutex->Attributes.priority_ceiling <
10c8db: 8b 53 4c mov 0x4c(%ebx),%edx
the_thread->current_priority){
10c8de: 3b 50 14 cmp 0x14(%eax),%edx
10c8e1: 73 ed jae 10c8d0 <_CORE_mutex_Surrender+0x94>
_Thread_Change_priority(
10c8e3: 51 push %ecx
10c8e4: 6a 00 push $0x0
10c8e6: 52 push %edx
10c8e7: 50 push %eax
10c8e8: e8 b7 0d 00 00 call 10d6a4 <_Thread_Change_priority>
10c8ed: 31 c0 xor %eax,%eax
10c8ef: 83 c4 10 add $0x10,%esp
10c8f2: e9 65 ff ff ff jmp 10c85c <_CORE_mutex_Surrender+0x20>
10c8f7: 90 nop
_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
#ifdef __RTEMS_STRICT_ORDER_MUTEX__
if(the_mutex->queue.priority_before != holder->current_priority)
_Thread_Change_priority(holder,the_mutex->queue.priority_before,true);
#endif
if ( holder->resource_count == 0 &&
10c8f8: 8b 50 1c mov 0x1c(%eax),%edx
10c8fb: 85 d2 test %edx,%edx
10c8fd: 75 a1 jne 10c8a0 <_CORE_mutex_Surrender+0x64>
holder->real_priority != holder->current_priority ) {
10c8ff: 8b 50 18 mov 0x18(%eax),%edx
10c902: 3b 50 14 cmp 0x14(%eax),%edx
10c905: 74 99 je 10c8a0 <_CORE_mutex_Surrender+0x64>
_Thread_Change_priority( holder, holder->real_priority, true );
10c907: 51 push %ecx
10c908: 6a 01 push $0x1
10c90a: 52 push %edx
10c90b: 50 push %eax
10c90c: e8 93 0d 00 00 call 10d6a4 <_Thread_Change_priority>
10c911: 83 c4 10 add $0x10,%esp
10c914: eb 8a jmp 10c8a0 <_CORE_mutex_Surrender+0x64>
10c916: 66 90 xchg %ax,%ax
the_mutex->nest_count++;
return CORE_MUTEX_RELEASE_NOT_ORDER;
}
first_node = _Chain_Get_first_unprotected(&holder->lock_mutex);
#endif
holder->resource_count--;
10c918: ff 48 1c decl 0x1c(%eax)
10c91b: e9 68 ff ff ff jmp 10c888 <_CORE_mutex_Surrender+0x4c>
case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT:
#ifdef __RTEMS_STRICT_ORDER_MUTEX__
_Chain_Prepend_unprotected(&the_thread->lock_mutex,&the_mutex->queue.lock_queue);
the_mutex->queue.priority_before = the_thread->current_priority;
#endif
the_thread->resource_count++;
10c920: ff 40 1c incl 0x1c(%eax)
10c923: 31 c0 xor %eax,%eax
break;
10c925: e9 32 ff ff ff jmp 10c85c <_CORE_mutex_Surrender+0x20>
10c92a: 66 90 xchg %ax,%ax
}
break;
}
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
10c92c: c7 43 50 01 00 00 00 movl $0x1,0x50(%ebx)
10c933: 31 c0 xor %eax,%eax
10c935: e9 22 ff ff ff jmp 10c85c <_CORE_mutex_Surrender+0x20>
0010c988 <_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
)
{
10c988: 55 push %ebp
10c989: 89 e5 mov %esp,%ebp
10c98b: 53 push %ebx
10c98c: 83 ec 10 sub $0x10,%esp
10c98f: 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)) ) {
10c992: 53 push %ebx
10c993: e8 d4 15 00 00 call 10df6c <_Thread_queue_Dequeue>
10c998: 83 c4 10 add $0x10,%esp
10c99b: 85 c0 test %eax,%eax
10c99d: 74 09 je 10c9a8 <_CORE_semaphore_Surrender+0x20>
10c99f: 31 c0 xor %eax,%eax
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
}
return status;
}
10c9a1: 8b 5d fc mov -0x4(%ebp),%ebx
10c9a4: c9 leave
10c9a5: c3 ret
10c9a6: 66 90 xchg %ax,%ax
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_semaphore_mp_support) ( the_thread, id );
#endif
} else {
_ISR_Disable( level );
10c9a8: 9c pushf
10c9a9: fa cli
10c9aa: 5a pop %edx
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
10c9ab: 8b 43 48 mov 0x48(%ebx),%eax
10c9ae: 3b 43 40 cmp 0x40(%ebx),%eax
10c9b1: 72 0d jb 10c9c0 <_CORE_semaphore_Surrender+0x38><== ALWAYS TAKEN
10c9b3: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED
the_semaphore->count += 1;
else
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
10c9b8: 52 push %edx
10c9b9: 9d popf
}
return status;
}
10c9ba: 8b 5d fc mov -0x4(%ebp),%ebx
10c9bd: c9 leave
10c9be: c3 ret
10c9bf: 90 nop
#endif
} else {
_ISR_Disable( level );
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
the_semaphore->count += 1;
10c9c0: 40 inc %eax
10c9c1: 89 43 48 mov %eax,0x48(%ebx)
10c9c4: 31 c0 xor %eax,%eax
10c9c6: eb f0 jmp 10c9b8 <_CORE_semaphore_Surrender+0x30>
00111670 <_Chain_Initialize>:
Chain_Control *the_chain,
void *starting_address,
size_t number_nodes,
size_t node_size
)
{
111670: 55 push %ebp
111671: 89 e5 mov %esp,%ebp
111673: 57 push %edi
111674: 56 push %esi
111675: 53 push %ebx
111676: 8b 7d 08 mov 0x8(%ebp),%edi
111679: 8b 4d 10 mov 0x10(%ebp),%ecx
11167c: 8b 75 14 mov 0x14(%ebp),%esi
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(
Chain_Control *the_chain
)
{
return (Chain_Node *) the_chain;
11167f: 89 fa mov %edi,%edx
Chain_Node *current;
Chain_Node *next;
count = number_nodes;
current = _Chain_Head( the_chain );
the_chain->permanent_null = NULL;
111681: c7 47 04 00 00 00 00 movl $0x0,0x4(%edi)
next = starting_address;
while ( count-- ) {
111688: 85 c9 test %ecx,%ecx
11168a: 74 17 je 1116a3 <_Chain_Initialize+0x33><== NEVER TAKEN
Chain_Node *next;
count = number_nodes;
current = _Chain_Head( the_chain );
the_chain->permanent_null = NULL;
next = starting_address;
11168c: 8b 45 0c mov 0xc(%ebp),%eax
11168f: eb 05 jmp 111696 <_Chain_Initialize+0x26>
111691: 8d 76 00 lea 0x0(%esi),%esi
while ( count-- ) {
111694: 89 d8 mov %ebx,%eax
current->next = next;
111696: 89 02 mov %eax,(%edx)
next->previous = current;
111698: 89 50 04 mov %edx,0x4(%eax)
11169b: 8d 1c 30 lea (%eax,%esi,1),%ebx
current = next;
next = (Chain_Node *)
11169e: 89 c2 mov %eax,%edx
count = number_nodes;
current = _Chain_Head( the_chain );
the_chain->permanent_null = NULL;
next = starting_address;
while ( count-- ) {
1116a0: 49 dec %ecx
1116a1: 75 f1 jne 111694 <_Chain_Initialize+0x24>
next->previous = current;
current = next;
next = (Chain_Node *)
_Addresses_Add_offset( (void *) next, node_size );
}
current->next = _Chain_Tail( the_chain );
1116a3: 8d 47 04 lea 0x4(%edi),%eax
1116a6: 89 02 mov %eax,(%edx)
the_chain->last = current;
1116a8: 89 57 08 mov %edx,0x8(%edi)
}
1116ab: 5b pop %ebx
1116ac: 5e pop %esi
1116ad: 5f pop %edi
1116ae: c9 leave
1116af: 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
0010b6bc <_Event_Seize>:
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
10b6bc: 55 push %ebp
10b6bd: 89 e5 mov %esp,%ebp
10b6bf: 57 push %edi
10b6c0: 56 push %esi
10b6c1: 53 push %ebx
10b6c2: 83 ec 2c sub $0x2c,%esp
10b6c5: 8b 45 08 mov 0x8(%ebp),%eax
10b6c8: 8b 4d 0c mov 0xc(%ebp),%ecx
10b6cb: 8b 55 10 mov 0x10(%ebp),%edx
10b6ce: 89 55 dc mov %edx,-0x24(%ebp)
10b6d1: 8b 7d 14 mov 0x14(%ebp),%edi
rtems_event_set pending_events;
ISR_Level level;
RTEMS_API_Control *api;
Thread_blocking_operation_States sync_state;
executing = _Thread_Executing;
10b6d4: 8b 1d 18 74 12 00 mov 0x127418,%ebx
executing->Wait.return_code = RTEMS_SUCCESSFUL;
10b6da: c7 43 34 00 00 00 00 movl $0x0,0x34(%ebx)
api = executing->API_Extensions[ THREAD_API_RTEMS ];
10b6e1: 8b b3 f0 00 00 00 mov 0xf0(%ebx),%esi
_ISR_Disable( level );
10b6e7: 9c pushf
10b6e8: fa cli
10b6e9: 8f 45 e0 popl -0x20(%ebp)
pending_events = api->pending_events;
10b6ec: 8b 16 mov (%esi),%edx
10b6ee: 89 55 d4 mov %edx,-0x2c(%ebp)
seized_events = _Event_sets_Get( pending_events, event_in );
if ( !_Event_sets_Is_empty( seized_events ) &&
10b6f1: 21 c2 and %eax,%edx
10b6f3: 89 55 e4 mov %edx,-0x1c(%ebp)
10b6f6: 74 0d je 10b705 <_Event_Seize+0x49>
10b6f8: 39 d0 cmp %edx,%eax
10b6fa: 0f 84 84 00 00 00 je 10b784 <_Event_Seize+0xc8>
10b700: f6 c1 02 test $0x2,%cl
10b703: 75 7f jne 10b784 <_Event_Seize+0xc8> <== ALWAYS TAKEN
_ISR_Enable( level );
*event_out = seized_events;
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
10b705: f6 c1 01 test $0x1,%cl
10b708: 75 62 jne 10b76c <_Event_Seize+0xb0>
* 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;
10b70a: 89 4b 30 mov %ecx,0x30(%ebx)
executing->Wait.count = (uint32_t) event_in;
10b70d: 89 43 24 mov %eax,0x24(%ebx)
executing->Wait.return_argument = event_out;
10b710: 89 7b 28 mov %edi,0x28(%ebx)
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
10b713: c7 05 60 76 12 00 01 movl $0x1,0x127660
10b71a: 00 00 00
_ISR_Enable( level );
10b71d: ff 75 e0 pushl -0x20(%ebp)
10b720: 9d popf
if ( ticks ) {
10b721: 8b 45 dc mov -0x24(%ebp),%eax
10b724: 85 c0 test %eax,%eax
10b726: 0f 85 80 00 00 00 jne 10b7ac <_Event_Seize+0xf0>
NULL
);
_Watchdog_Insert_ticks( &executing->Timer, ticks );
}
_Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );
10b72c: 83 ec 08 sub $0x8,%esp
10b72f: 68 00 01 00 00 push $0x100
10b734: 53 push %ebx
10b735: e8 02 2d 00 00 call 10e43c <_Thread_Set_state>
_ISR_Disable( level );
10b73a: 9c pushf
10b73b: fa cli
10b73c: 5a pop %edx
sync_state = _Event_Sync_state;
10b73d: a1 60 76 12 00 mov 0x127660,%eax
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
10b742: c7 05 60 76 12 00 00 movl $0x0,0x127660
10b749: 00 00 00
if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
10b74c: 83 c4 10 add $0x10,%esp
10b74f: 83 f8 01 cmp $0x1,%eax
10b752: 74 4c je 10b7a0 <_Event_Seize+0xe4>
* 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 );
10b754: 89 55 10 mov %edx,0x10(%ebp)
10b757: 89 5d 0c mov %ebx,0xc(%ebp)
10b75a: 89 45 08 mov %eax,0x8(%ebp)
}
10b75d: 8d 65 f4 lea -0xc(%ebp),%esp
10b760: 5b pop %ebx
10b761: 5e pop %esi
10b762: 5f pop %edi
10b763: 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 );
10b764: e9 ef 1e 00 00 jmp 10d658 <_Thread_blocking_operation_Cancel>
10b769: 8d 76 00 lea 0x0(%esi),%esi
*event_out = seized_events;
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
_ISR_Enable( level );
10b76c: ff 75 e0 pushl -0x20(%ebp)
10b76f: 9d popf
executing->Wait.return_code = RTEMS_UNSATISFIED;
10b770: c7 43 34 0d 00 00 00 movl $0xd,0x34(%ebx)
*event_out = seized_events;
10b777: 8b 55 e4 mov -0x1c(%ebp),%edx
10b77a: 89 17 mov %edx,(%edi)
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
}
10b77c: 8d 65 f4 lea -0xc(%ebp),%esp
10b77f: 5b pop %ebx
10b780: 5e pop %esi
10b781: 5f pop %edi
10b782: c9 leave
10b783: c3 ret
pending_events = api->pending_events;
seized_events = _Event_sets_Get( pending_events, event_in );
if ( !_Event_sets_Is_empty( seized_events ) &&
(seized_events == event_in || _Options_Is_any( option_set )) ) {
api->pending_events =
10b784: 8b 45 e4 mov -0x1c(%ebp),%eax
10b787: f7 d0 not %eax
10b789: 23 45 d4 and -0x2c(%ebp),%eax
10b78c: 89 06 mov %eax,(%esi)
_Event_sets_Clear( pending_events, seized_events );
_ISR_Enable( level );
10b78e: ff 75 e0 pushl -0x20(%ebp)
10b791: 9d popf
*event_out = seized_events;
10b792: 8b 45 e4 mov -0x1c(%ebp),%eax
10b795: 89 07 mov %eax,(%edi)
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
}
10b797: 8d 65 f4 lea -0xc(%ebp),%esp
10b79a: 5b pop %ebx
10b79b: 5e pop %esi
10b79c: 5f pop %edi
10b79d: c9 leave
10b79e: c3 ret
10b79f: 90 nop
_ISR_Disable( level );
sync_state = _Event_Sync_state;
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
_ISR_Enable( level );
10b7a0: 52 push %edx
10b7a1: 9d popf
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
}
10b7a2: 8d 65 f4 lea -0xc(%ebp),%esp
10b7a5: 5b pop %ebx
10b7a6: 5e pop %esi
10b7a7: 5f pop %edi
10b7a8: c9 leave
10b7a9: c3 ret
10b7aa: 66 90 xchg %ax,%ax
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
_ISR_Enable( level );
if ( ticks ) {
_Watchdog_Initialize(
10b7ac: 8b 43 08 mov 0x8(%ebx),%eax
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
10b7af: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx)
the_watchdog->routine = routine;
10b7b6: c7 43 64 4c b9 10 00 movl $0x10b94c,0x64(%ebx)
the_watchdog->id = id;
10b7bd: 89 43 68 mov %eax,0x68(%ebx)
the_watchdog->user_data = user_data;
10b7c0: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
10b7c7: 8b 45 dc mov -0x24(%ebp),%eax
10b7ca: 89 43 54 mov %eax,0x54(%ebx)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
10b7cd: 83 ec 08 sub $0x8,%esp
10b7d0: 8d 43 48 lea 0x48(%ebx),%eax
10b7d3: 50 push %eax
10b7d4: 68 38 74 12 00 push $0x127438
10b7d9: e8 ae 32 00 00 call 10ea8c <_Watchdog_Insert>
10b7de: 83 c4 10 add $0x10,%esp
10b7e1: e9 46 ff ff ff jmp 10b72c <_Event_Seize+0x70>
0010b83c <_Event_Surrender>:
*/
void _Event_Surrender(
Thread_Control *the_thread
)
{
10b83c: 55 push %ebp
10b83d: 89 e5 mov %esp,%ebp
10b83f: 57 push %edi
10b840: 56 push %esi
10b841: 53 push %ebx
10b842: 83 ec 1c sub $0x1c,%esp
10b845: 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 ];
10b848: 8b 8b f0 00 00 00 mov 0xf0(%ebx),%ecx
option_set = (rtems_option) the_thread->Wait.option;
10b84e: 8b 73 30 mov 0x30(%ebx),%esi
_ISR_Disable( level );
10b851: 9c pushf
10b852: fa cli
10b853: 8f 45 e4 popl -0x1c(%ebp)
pending_events = api->pending_events;
10b856: 8b 11 mov (%ecx),%edx
event_condition = (rtems_event_set) the_thread->Wait.count;
10b858: 8b 43 24 mov 0x24(%ebx),%eax
seized_events = _Event_sets_Get( pending_events, event_condition );
/*
* No events were seized in this operation
*/
if ( _Event_sets_Is_empty( seized_events ) ) {
10b85b: 89 c7 mov %eax,%edi
10b85d: 21 d7 and %edx,%edi
10b85f: 89 7d e0 mov %edi,-0x20(%ebp)
10b862: 0f 84 ac 00 00 00 je 10b914 <_Event_Surrender+0xd8>
/*
* 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() &&
10b868: 8b 3d f4 73 12 00 mov 0x1273f4,%edi
10b86e: 85 ff test %edi,%edi
10b870: 74 08 je 10b87a <_Event_Surrender+0x3e>
10b872: 3b 1d 18 74 12 00 cmp 0x127418,%ebx
10b878: 74 5a je 10b8d4 <_Event_Surrender+0x98>
}
/*
* Otherwise, this is a normal send to another thread
*/
if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {
10b87a: f6 43 11 01 testb $0x1,0x11(%ebx)
10b87e: 0f 84 90 00 00 00 je 10b914 <_Event_Surrender+0xd8>
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
10b884: 3b 45 e0 cmp -0x20(%ebp),%eax
10b887: 74 09 je 10b892 <_Event_Surrender+0x56>
10b889: 83 e6 02 and $0x2,%esi
10b88c: 0f 84 82 00 00 00 je 10b914 <_Event_Surrender+0xd8> <== NEVER TAKEN
api->pending_events = _Event_sets_Clear( pending_events, seized_events );
10b892: 8b 45 e0 mov -0x20(%ebp),%eax
10b895: f7 d0 not %eax
10b897: 21 d0 and %edx,%eax
10b899: 89 01 mov %eax,(%ecx)
the_thread->Wait.count = 0;
10b89b: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
10b8a2: 8b 43 28 mov 0x28(%ebx),%eax
10b8a5: 8b 7d e0 mov -0x20(%ebp),%edi
10b8a8: 89 38 mov %edi,(%eax)
_ISR_Flash( level );
10b8aa: ff 75 e4 pushl -0x1c(%ebp)
10b8ad: 9d popf
10b8ae: fa cli
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
10b8af: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
10b8b3: 74 6b je 10b920 <_Event_Surrender+0xe4>
_ISR_Enable( level );
10b8b5: ff 75 e4 pushl -0x1c(%ebp)
10b8b8: 9d popf
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
10b8b9: 83 ec 08 sub $0x8,%esp
10b8bc: 68 f8 ff 03 10 push $0x1003fff8
10b8c1: 53 push %ebx
10b8c2: e8 1d 1f 00 00 call 10d7e4 <_Thread_Clear_state>
10b8c7: 83 c4 10 add $0x10,%esp
}
return;
}
}
_ISR_Enable( level );
}
10b8ca: 8d 65 f4 lea -0xc(%ebp),%esp
10b8cd: 5b pop %ebx
10b8ce: 5e pop %esi
10b8cf: 5f pop %edi
10b8d0: c9 leave
10b8d1: c3 ret
10b8d2: 66 90 xchg %ax,%ax
* If we are in an ISR and sending to the current thread, then
* we have a critical section issue to deal with.
*/
if ( _ISR_Is_in_progress() &&
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
10b8d4: 8b 3d 60 76 12 00 mov 0x127660,%edi
/*
* 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() &&
10b8da: 83 ff 02 cmp $0x2,%edi
10b8dd: 74 09 je 10b8e8 <_Event_Surrender+0xac> <== NEVER TAKEN
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
10b8df: 8b 3d 60 76 12 00 mov 0x127660,%edi
/*
* 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() &&
10b8e5: 4f dec %edi
10b8e6: 75 92 jne 10b87a <_Event_Surrender+0x3e>
_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) ) {
10b8e8: 3b 45 e0 cmp -0x20(%ebp),%eax
10b8eb: 74 05 je 10b8f2 <_Event_Surrender+0xb6>
10b8ed: 83 e6 02 and $0x2,%esi
10b8f0: 74 22 je 10b914 <_Event_Surrender+0xd8> <== NEVER TAKEN
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
10b8f2: 8b 45 e0 mov -0x20(%ebp),%eax
10b8f5: f7 d0 not %eax
10b8f7: 21 d0 and %edx,%eax
10b8f9: 89 01 mov %eax,(%ecx)
the_thread->Wait.count = 0;
10b8fb: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
10b902: 8b 43 28 mov 0x28(%ebx),%eax
10b905: 8b 55 e0 mov -0x20(%ebp),%edx
10b908: 89 10 mov %edx,(%eax)
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
10b90a: c7 05 60 76 12 00 03 movl $0x3,0x127660
10b911: 00 00 00
_Thread_Unblock( the_thread );
}
return;
}
}
_ISR_Enable( level );
10b914: ff 75 e4 pushl -0x1c(%ebp)
10b917: 9d popf
}
10b918: 8d 65 f4 lea -0xc(%ebp),%esp
10b91b: 5b pop %ebx
10b91c: 5e pop %esi
10b91d: 5f pop %edi
10b91e: c9 leave
10b91f: c3 ret
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
10b920: c7 43 50 03 00 00 00 movl $0x3,0x50(%ebx)
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
_ISR_Enable( level );
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
10b927: ff 75 e4 pushl -0x1c(%ebp)
10b92a: 9d popf
(void) _Watchdog_Remove( &the_thread->Timer );
10b92b: 83 ec 0c sub $0xc,%esp
10b92e: 8d 43 48 lea 0x48(%ebx),%eax
10b931: 50 push %eax
10b932: e8 7d 32 00 00 call 10ebb4 <_Watchdog_Remove>
10b937: 58 pop %eax
10b938: 5a pop %edx
10b939: 68 f8 ff 03 10 push $0x1003fff8
10b93e: 53 push %ebx
10b93f: e8 a0 1e 00 00 call 10d7e4 <_Thread_Clear_state>
10b944: 83 c4 10 add $0x10,%esp
10b947: eb cf jmp 10b918 <_Event_Surrender+0xdc>
0010b94c <_Event_Timeout>:
void _Event_Timeout(
Objects_Id id,
void *ignored
)
{
10b94c: 55 push %ebp
10b94d: 89 e5 mov %esp,%ebp
10b94f: 83 ec 20 sub $0x20,%esp
Thread_Control *the_thread;
Objects_Locations location;
ISR_Level level;
the_thread = _Thread_Get( id, &location );
10b952: 8d 45 f4 lea -0xc(%ebp),%eax
10b955: 50 push %eax
10b956: ff 75 08 pushl 0x8(%ebp)
10b959: e8 52 22 00 00 call 10dbb0 <_Thread_Get>
switch ( location ) {
10b95e: 83 c4 10 add $0x10,%esp
10b961: 8b 55 f4 mov -0xc(%ebp),%edx
10b964: 85 d2 test %edx,%edx
10b966: 75 37 jne 10b99f <_Event_Timeout+0x53> <== 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 );
10b968: 9c pushf
10b969: fa cli
10b96a: 5a pop %edx
_ISR_Enable( level );
return;
}
#endif
the_thread->Wait.count = 0;
10b96b: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax)
if ( _Thread_Is_executing( the_thread ) ) {
10b972: 3b 05 18 74 12 00 cmp 0x127418,%eax
10b978: 74 2a je 10b9a4 <_Event_Timeout+0x58>
if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
_Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
}
the_thread->Wait.return_code = RTEMS_TIMEOUT;
10b97a: c7 40 34 06 00 00 00 movl $0x6,0x34(%eax)
_ISR_Enable( level );
10b981: 52 push %edx
10b982: 9d popf
10b983: 83 ec 08 sub $0x8,%esp
10b986: 68 f8 ff 03 10 push $0x1003fff8
10b98b: 50 push %eax
10b98c: e8 53 1e 00 00 call 10d7e4 <_Thread_Clear_state>
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
10b991: a1 58 73 12 00 mov 0x127358,%eax
10b996: 48 dec %eax
10b997: a3 58 73 12 00 mov %eax,0x127358
10b99c: 83 c4 10 add $0x10,%esp
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
10b99f: c9 leave
10b9a0: c3 ret
10b9a1: 8d 76 00 lea 0x0(%esi),%esi
}
#endif
the_thread->Wait.count = 0;
if ( _Thread_Is_executing( the_thread ) ) {
if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
10b9a4: 8b 0d 60 76 12 00 mov 0x127660,%ecx
10b9aa: 49 dec %ecx
10b9ab: 75 cd jne 10b97a <_Event_Timeout+0x2e>
_Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
10b9ad: c7 05 60 76 12 00 02 movl $0x2,0x127660
10b9b4: 00 00 00
10b9b7: eb c1 jmp 10b97a <_Event_Timeout+0x2e>
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
00111928 <_Heap_Allocate_aligned_with_boundary>:
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
111928: 55 push %ebp
111929: 89 e5 mov %esp,%ebp
11192b: 57 push %edi
11192c: 56 push %esi
11192d: 53 push %ebx
11192e: 83 ec 2c sub $0x2c,%esp
111931: 8b 7d 0c mov 0xc(%ebp),%edi
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
111934: 8b 45 08 mov 0x8(%ebp),%eax
111937: 8b 48 08 mov 0x8(%eax),%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;
11193a: 8b 50 10 mov 0x10(%eax),%edx
11193d: 89 55 d4 mov %edx,-0x2c(%ebp)
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
if ( block_size_floor < alloc_size ) {
111940: 89 f8 mov %edi,%eax
111942: 83 c0 04 add $0x4,%eax
111945: 89 45 e0 mov %eax,-0x20(%ebp)
111948: 0f 82 5a 01 00 00 jb 111aa8 <_Heap_Allocate_aligned_with_boundary+0x180>
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
11194e: 8b 75 14 mov 0x14(%ebp),%esi
111951: 85 f6 test %esi,%esi
111953: 0f 85 48 01 00 00 jne 111aa1 <_Heap_Allocate_aligned_with_boundary+0x179>
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
111959: 39 4d 08 cmp %ecx,0x8(%ebp)
11195c: 0f 84 50 01 00 00 je 111ab2 <_Heap_Allocate_aligned_with_boundary+0x18a>
111962: 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;
111969: 8b 55 d4 mov -0x2c(%ebp),%edx
11196c: 83 c2 07 add $0x7,%edx
11196f: 89 55 c8 mov %edx,-0x38(%ebp)
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;
uintptr_t alloc_begin = alloc_end - alloc_size;
111972: c7 45 d8 04 00 00 00 movl $0x4,-0x28(%ebp)
111979: 29 7d d8 sub %edi,-0x28(%ebp)
11197c: eb 19 jmp 111997 <_Heap_Allocate_aligned_with_boundary+0x6f>
11197e: 66 90 xchg %ax,%ax
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
111980: 8d 59 08 lea 0x8(%ecx),%ebx
boundary
);
}
}
if ( alloc_begin != 0 ) {
111983: 85 db test %ebx,%ebx
111985: 0f 85 e9 00 00 00 jne 111a74 <_Heap_Allocate_aligned_with_boundary+0x14c><== ALWAYS TAKEN
break;
}
block = block->next;
11198b: 8b 49 08 mov 0x8(%ecx),%ecx
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
11198e: 39 4d 08 cmp %ecx,0x8(%ebp)
111991: 0f 84 25 01 00 00 je 111abc <_Heap_Allocate_aligned_with_boundary+0x194>
_HAssert( _Heap_Is_prev_used( block ) );
/* Statistics */
++search_count;
111997: 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 ) {
11199a: 8b 59 04 mov 0x4(%ecx),%ebx
11199d: 39 5d e0 cmp %ebx,-0x20(%ebp)
1119a0: 73 e9 jae 11198b <_Heap_Allocate_aligned_with_boundary+0x63>
if ( alignment == 0 ) {
1119a2: 8b 55 10 mov 0x10(%ebp),%edx
1119a5: 85 d2 test %edx,%edx
1119a7: 74 d7 je 111980 <_Heap_Allocate_aligned_with_boundary+0x58>
uintptr_t alignment,
uintptr_t boundary
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
1119a9: 8b 45 08 mov 0x8(%ebp),%eax
1119ac: 8b 40 14 mov 0x14(%eax),%eax
1119af: 89 45 d0 mov %eax,-0x30(%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;
1119b2: 83 e3 fe and $0xfffffffe,%ebx
1119b5: 8d 1c 19 lea (%ecx,%ebx,1),%ebx
1119b8: 8d 51 08 lea 0x8(%ecx),%edx
1119bb: 89 55 cc mov %edx,-0x34(%ebp)
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;
1119be: 8b 75 c8 mov -0x38(%ebp),%esi
1119c1: 29 c6 sub %eax,%esi
1119c3: 01 de add %ebx,%esi
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;
uintptr_t alloc_begin = alloc_end - alloc_size;
1119c5: 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);
1119c8: 89 d8 mov %ebx,%eax
1119ca: 31 d2 xor %edx,%edx
1119cc: f7 75 10 divl 0x10(%ebp)
1119cf: 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 ) {
1119d1: 39 de cmp %ebx,%esi
1119d3: 73 0b jae 1119e0 <_Heap_Allocate_aligned_with_boundary+0xb8>
1119d5: 89 f0 mov %esi,%eax
1119d7: 31 d2 xor %edx,%edx
1119d9: f7 75 10 divl 0x10(%ebp)
1119dc: 89 f3 mov %esi,%ebx
1119de: 29 d3 sub %edx,%ebx
}
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
1119e0: 8b 45 14 mov 0x14(%ebp),%eax
1119e3: 85 c0 test %eax,%eax
1119e5: 74 59 je 111a40 <_Heap_Allocate_aligned_with_boundary+0x118>
/* 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;
1119e7: 8d 34 3b lea (%ebx,%edi,1),%esi
1119ea: 89 f0 mov %esi,%eax
1119ec: 31 d2 xor %edx,%edx
1119ee: f7 75 14 divl 0x14(%ebp)
1119f1: 89 f0 mov %esi,%eax
1119f3: 29 d0 sub %edx,%eax
1119f5: 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 ) {
1119f7: 39 c3 cmp %eax,%ebx
1119f9: 73 45 jae 111a40 <_Heap_Allocate_aligned_with_boundary+0x118>
1119fb: 39 c6 cmp %eax,%esi
1119fd: 76 41 jbe 111a40 <_Heap_Allocate_aligned_with_boundary+0x118>
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
1119ff: 8b 45 cc mov -0x34(%ebp),%eax
111a02: 01 f8 add %edi,%eax
111a04: 89 45 dc mov %eax,-0x24(%ebp)
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
if ( boundary_line < boundary_floor ) {
111a07: 39 d0 cmp %edx,%eax
111a09: 77 80 ja 11198b <_Heap_Allocate_aligned_with_boundary+0x63>
111a0b: 89 ce mov %ecx,%esi
111a0d: eb 0e jmp 111a1d <_Heap_Allocate_aligned_with_boundary+0xf5>
111a0f: 90 nop
/* 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 ) {
111a10: 39 c1 cmp %eax,%ecx
111a12: 76 2a jbe 111a3e <_Heap_Allocate_aligned_with_boundary+0x116>
if ( boundary_line < boundary_floor ) {
111a14: 39 55 dc cmp %edx,-0x24(%ebp)
111a17: 0f 87 a3 00 00 00 ja 111ac0 <_Heap_Allocate_aligned_with_boundary+0x198><== NEVER TAKEN
return 0;
}
alloc_begin = boundary_line - alloc_size;
111a1d: 89 d3 mov %edx,%ebx
111a1f: 29 fb sub %edi,%ebx
111a21: 89 d8 mov %ebx,%eax
111a23: 31 d2 xor %edx,%edx
111a25: f7 75 10 divl 0x10(%ebp)
111a28: 29 d3 sub %edx,%ebx
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
alloc_end = alloc_begin + alloc_size;
111a2a: 8d 0c 3b lea (%ebx,%edi,1),%ecx
111a2d: 89 c8 mov %ecx,%eax
111a2f: 31 d2 xor %edx,%edx
111a31: f7 75 14 divl 0x14(%ebp)
111a34: 89 c8 mov %ecx,%eax
111a36: 29 d0 sub %edx,%eax
111a38: 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 ) {
111a3a: 39 c3 cmp %eax,%ebx
111a3c: 72 d2 jb 111a10 <_Heap_Allocate_aligned_with_boundary+0xe8>
111a3e: 89 f1 mov %esi,%ecx
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 ) {
111a40: 39 5d cc cmp %ebx,-0x34(%ebp)
111a43: 0f 87 42 ff ff ff ja 11198b <_Heap_Allocate_aligned_with_boundary+0x63>
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;
111a49: be f8 ff ff ff mov $0xfffffff8,%esi
111a4e: 29 ce sub %ecx,%esi
111a50: 01 de add %ebx,%esi
111a52: 89 d8 mov %ebx,%eax
111a54: 31 d2 xor %edx,%edx
111a56: f7 75 d4 divl -0x2c(%ebp)
111a59: 29 d6 sub %edx,%esi
if ( free_size >= min_block_size || free_size == 0 ) {
111a5b: 39 75 d0 cmp %esi,-0x30(%ebp)
111a5e: 0f 86 1f ff ff ff jbe 111983 <_Heap_Allocate_aligned_with_boundary+0x5b>
111a64: 85 f6 test %esi,%esi
111a66: 0f 85 1f ff ff ff jne 11198b <_Heap_Allocate_aligned_with_boundary+0x63>
boundary
);
}
}
if ( alloc_begin != 0 ) {
111a6c: 85 db test %ebx,%ebx
111a6e: 0f 84 17 ff ff ff je 11198b <_Heap_Allocate_aligned_with_boundary+0x63><== NEVER TAKEN
block = block->next;
}
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
111a74: 8b 55 e4 mov -0x1c(%ebp),%edx
111a77: 8b 45 08 mov 0x8(%ebp),%eax
111a7a: 01 50 4c add %edx,0x4c(%eax)
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
111a7d: 57 push %edi
111a7e: 53 push %ebx
111a7f: 51 push %ecx
111a80: 50 push %eax
111a81: e8 86 b2 ff ff call 10cd0c <_Heap_Block_allocate>
111a86: 89 d8 mov %ebx,%eax
111a88: 83 c4 10 add $0x10,%esp
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
Heap_Statistics *const stats = &heap->stats;
111a8b: 8b 4d e4 mov -0x1c(%ebp),%ecx
111a8e: 8b 55 08 mov 0x8(%ebp),%edx
111a91: 39 4a 44 cmp %ecx,0x44(%edx)
111a94: 73 14 jae 111aaa <_Heap_Allocate_aligned_with_boundary+0x182>
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
111a96: 89 4a 44 mov %ecx,0x44(%edx)
}
return (void *) alloc_begin;
}
111a99: 8d 65 f4 lea -0xc(%ebp),%esp
111a9c: 5b pop %ebx
111a9d: 5e pop %esi
111a9e: 5f pop %edi
111a9f: c9 leave
111aa0: c3 ret
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
111aa1: 3b 7d 14 cmp 0x14(%ebp),%edi
111aa4: 76 21 jbe 111ac7 <_Heap_Allocate_aligned_with_boundary+0x19f>
111aa6: 66 90 xchg %ax,%ax
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
111aa8: 31 c0 xor %eax,%eax
}
return (void *) alloc_begin;
}
111aaa: 8d 65 f4 lea -0xc(%ebp),%esp
111aad: 5b pop %ebx
111aae: 5e pop %esi
111aaf: 5f pop %edi
111ab0: c9 leave
111ab1: c3 ret
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
111ab2: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
111ab9: 8d 76 00 lea 0x0(%esi),%esi
111abc: 31 c0 xor %eax,%eax
111abe: eb cb jmp 111a8b <_Heap_Allocate_aligned_with_boundary+0x163>
111ac0: 89 f1 mov %esi,%ecx <== NOT EXECUTED
111ac2: e9 c4 fe ff ff jmp 11198b <_Heap_Allocate_aligned_with_boundary+0x63><== NOT EXECUTED
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
return NULL;
}
if ( alignment == 0 ) {
111ac7: 8b 5d 10 mov 0x10(%ebp),%ebx
111aca: 85 db test %ebx,%ebx
111acc: 0f 85 87 fe ff ff jne 111959 <_Heap_Allocate_aligned_with_boundary+0x31>
111ad2: 89 55 10 mov %edx,0x10(%ebp)
111ad5: e9 7f fe ff ff jmp 111959 <_Heap_Allocate_aligned_with_boundary+0x31>
0010cd0c <_Heap_Block_allocate>:
Heap_Control *heap,
Heap_Block *block,
uintptr_t alloc_begin,
uintptr_t alloc_size
)
{
10cd0c: 55 push %ebp
10cd0d: 89 e5 mov %esp,%ebp
10cd0f: 57 push %edi
10cd10: 56 push %esi
10cd11: 53 push %ebx
10cd12: 83 ec 10 sub $0x10,%esp
10cd15: 8b 75 08 mov 0x8(%ebp),%esi
10cd18: 8b 5d 0c mov 0xc(%ebp),%ebx
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
10cd1b: 89 5d ec mov %ebx,-0x14(%ebp)
10cd1e: 8b 7d 10 mov 0x10(%ebp),%edi
10cd21: 83 ef 08 sub $0x8,%edi
Heap_Statistics *const stats = &heap->stats;
uintptr_t const alloc_area_begin = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_area_offset = alloc_begin - alloc_area_begin;
10cd24: 89 f8 mov %edi,%eax
10cd26: 29 d8 sub %ebx,%eax
Heap_Block *free_list_anchor = NULL;
_HAssert( alloc_area_begin <= alloc_begin );
if ( _Heap_Is_free( block ) ) {
10cd28: 8b 53 04 mov 0x4(%ebx),%edx
10cd2b: 83 e2 fe and $0xfffffffe,%edx
10cd2e: f6 44 13 04 01 testb $0x1,0x4(%ebx,%edx,1)
10cd33: 0f 85 8b 00 00 00 jne 10cdc4 <_Heap_Block_allocate+0xb8>
free_list_anchor = block->prev;
10cd39: 8b 4b 0c mov 0xc(%ebx),%ecx
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
10cd3c: 8b 53 08 mov 0x8(%ebx),%edx
Heap_Block *prev = block->prev;
prev->next = next;
10cd3f: 89 51 08 mov %edx,0x8(%ecx)
next->prev = prev;
10cd42: 89 4a 0c mov %ecx,0xc(%edx)
_Heap_Free_list_remove( block );
/* Statistics */
--stats->free_blocks;
10cd45: ff 4e 38 decl 0x38(%esi)
++stats->used_blocks;
10cd48: ff 46 40 incl 0x40(%esi)
stats->free_size -= _Heap_Block_size( block );
10cd4b: 8b 53 04 mov 0x4(%ebx),%edx
10cd4e: 83 e2 fe and $0xfffffffe,%edx
10cd51: 29 56 30 sub %edx,0x30(%esi)
} else {
free_list_anchor = _Heap_Free_list_head( heap );
}
if ( alloc_area_offset < heap->page_size ) {
10cd54: 8b 56 10 mov 0x10(%esi),%edx
10cd57: 89 55 e4 mov %edx,-0x1c(%ebp)
10cd5a: 39 d0 cmp %edx,%eax
10cd5c: 72 72 jb 10cdd0 <_Heap_Block_allocate+0xc4>
- 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;
10cd5e: 8b 43 04 mov 0x4(%ebx),%eax
10cd61: 89 45 f0 mov %eax,-0x10(%ebp)
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 )
10cd64: 8b 45 10 mov 0x10(%ebp),%eax
10cd67: 31 d2 xor %edx,%edx
10cd69: f7 75 e4 divl -0x1c(%ebp)
10cd6c: 29 d7 sub %edx,%edi
_Heap_Block_of_alloc_area( alloc_begin, heap->page_size );
uintptr_t const new_block_begin = (uintptr_t) new_block;
uintptr_t const new_block_size = block_end - new_block_begin;
block_end = new_block_begin;
block_size = block_end - block_begin;
10cd6e: 89 f8 mov %edi,%eax
10cd70: 29 d8 sub %ebx,%eax
_HAssert( block_size >= heap->min_block_size );
_HAssert( new_block_size >= heap->min_block_size );
/* Statistics */
stats->free_size += block_size;
10cd72: 01 46 30 add %eax,0x30(%esi)
if ( _Heap_Is_prev_used( block ) ) {
10cd75: f6 43 04 01 testb $0x1,0x4(%ebx)
10cd79: 75 69 jne 10cde4 <_Heap_Block_allocate+0xd8>
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Prev_block(
const Heap_Block *block
)
{
return (Heap_Block *) ((uintptr_t) block - block->prev_size);
10cd7b: 2b 1b sub (%ebx),%ebx
Heap_Block *const prev_block = _Heap_Prev_block( block );
uintptr_t const prev_block_size = _Heap_Block_size( prev_block );
block = prev_block;
block_begin = (uintptr_t) block;
block_size += prev_block_size;
10cd7d: 8b 53 04 mov 0x4(%ebx),%edx
10cd80: 83 e2 fe and $0xfffffffe,%edx
10cd83: 01 d0 add %edx,%eax
}
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
10cd85: 89 c2 mov %eax,%edx
10cd87: 83 ca 01 or $0x1,%edx
10cd8a: 89 53 04 mov %edx,0x4(%ebx)
new_block->prev_size = block_size;
10cd8d: 89 07 mov %eax,(%edi)
new_block->size_and_flag = new_block_size;
10cd8f: 8b 45 f0 mov -0x10(%ebp),%eax
10cd92: 83 e0 fe and $0xfffffffe,%eax
10cd95: 03 45 ec add -0x14(%ebp),%eax
10cd98: 29 f8 sub %edi,%eax
10cd9a: 89 47 04 mov %eax,0x4(%edi)
_Heap_Block_split( heap, new_block, free_list_anchor, alloc_size );
10cd9d: ff 75 14 pushl 0x14(%ebp)
10cda0: 51 push %ecx
10cda1: 57 push %edi
10cda2: 56 push %esi
10cda3: e8 80 fe ff ff call 10cc28 <_Heap_Block_split>
10cda8: 89 fb mov %edi,%ebx
10cdaa: 83 c4 10 add $0x10,%esp
alloc_size
);
}
/* Statistics */
if ( stats->min_free_size > stats->free_size ) {
10cdad: 8b 46 30 mov 0x30(%esi),%eax
Heap_Block *block,
uintptr_t alloc_begin,
uintptr_t alloc_size
)
{
Heap_Statistics *const stats = &heap->stats;
10cdb0: 39 46 34 cmp %eax,0x34(%esi)
10cdb3: 76 03 jbe 10cdb8 <_Heap_Block_allocate+0xac>
);
}
/* Statistics */
if ( stats->min_free_size > stats->free_size ) {
stats->min_free_size = stats->free_size;
10cdb5: 89 46 34 mov %eax,0x34(%esi)
}
return block;
}
10cdb8: 89 d8 mov %ebx,%eax
10cdba: 8d 65 f4 lea -0xc(%ebp),%esp
10cdbd: 5b pop %ebx
10cdbe: 5e pop %esi
10cdbf: 5f pop %edi
10cdc0: c9 leave
10cdc1: c3 ret
10cdc2: 66 90 xchg %ax,%ax
/* Statistics */
--stats->free_blocks;
++stats->used_blocks;
stats->free_size -= _Heap_Block_size( block );
} else {
free_list_anchor = _Heap_Free_list_head( heap );
10cdc4: 89 f1 mov %esi,%ecx
}
if ( alloc_area_offset < heap->page_size ) {
10cdc6: 8b 56 10 mov 0x10(%esi),%edx
10cdc9: 89 55 e4 mov %edx,-0x1c(%ebp)
10cdcc: 39 d0 cmp %edx,%eax
10cdce: 73 8e jae 10cd5e <_Heap_Block_allocate+0x52>
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
_Heap_Block_split( heap, block, free_list_anchor, alloc_size );
10cdd0: 03 45 14 add 0x14(%ebp),%eax
10cdd3: 50 push %eax
10cdd4: 51 push %ecx
10cdd5: 53 push %ebx
10cdd6: 56 push %esi
10cdd7: e8 4c fe ff ff call 10cc28 <_Heap_Block_split>
10cddc: 83 c4 10 add $0x10,%esp
10cddf: eb cc jmp 10cdad <_Heap_Block_allocate+0xa1>
10cde1: 8d 76 00 lea 0x0(%esi),%esi
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
10cde4: 8b 51 08 mov 0x8(%ecx),%edx
new_block->next = next;
10cde7: 89 53 08 mov %edx,0x8(%ebx)
new_block->prev = block_before;
10cdea: 89 4b 0c mov %ecx,0xc(%ebx)
block_before->next = new_block;
10cded: 89 59 08 mov %ebx,0x8(%ecx)
next->prev = new_block;
10cdf0: 89 5a 0c mov %ebx,0xc(%edx)
_Heap_Free_list_insert_after( free_list_anchor, block );
free_list_anchor = block;
/* Statistics */
++stats->free_blocks;
10cdf3: ff 46 38 incl 0x38(%esi)
10cdf6: 89 d9 mov %ebx,%ecx
10cdf8: eb 8b jmp 10cd85 <_Heap_Block_allocate+0x79>
0010cc28 <_Heap_Block_split>:
Heap_Control *heap,
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
10cc28: 55 push %ebp
10cc29: 89 e5 mov %esp,%ebp
10cc2b: 57 push %edi
10cc2c: 56 push %esi
10cc2d: 53 push %ebx
10cc2e: 83 ec 14 sub $0x14,%esp
10cc31: 8b 4d 08 mov 0x8(%ebp),%ecx
10cc34: 8b 5d 0c mov 0xc(%ebp),%ebx
Heap_Statistics *const stats = &heap->stats;
uintptr_t const page_size = heap->page_size;
10cc37: 8b 79 10 mov 0x10(%ecx),%edi
uintptr_t const min_block_size = heap->min_block_size;
10cc3a: 8b 41 14 mov 0x14(%ecx),%eax
10cc3d: 89 45 e8 mov %eax,-0x18(%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;
10cc40: 8b 43 04 mov 0x4(%ebx),%eax
10cc43: 89 45 e4 mov %eax,-0x1c(%ebp)
10cc46: 89 c6 mov %eax,%esi
10cc48: 83 e6 fe and $0xfffffffe,%esi
uintptr_t const min_alloc_size = min_block_size - HEAP_BLOCK_HEADER_SIZE;
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const used_size =
_Heap_Max( alloc_size, min_alloc_size ) + HEAP_BLOCK_HEADER_SIZE;
10cc4b: 8b 55 e8 mov -0x18(%ebp),%edx
10cc4e: 83 ea 08 sub $0x8,%edx
10cc51: 8b 45 14 mov 0x14(%ebp),%eax
10cc54: 39 d0 cmp %edx,%eax
10cc56: 73 02 jae 10cc5a <_Heap_Block_split+0x32>
10cc58: 89 d0 mov %edx,%eax
10cc5a: 83 c0 08 add $0x8,%eax
10cc5d: 89 45 f0 mov %eax,-0x10(%ebp)
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
10cc60: 31 d2 xor %edx,%edx
10cc62: f7 f7 div %edi
if ( remainder != 0 ) {
10cc64: 85 d2 test %edx,%edx
10cc66: 75 70 jne 10ccd8 <_Heap_Block_split+0xb0>
10cc68: 8b 7d f0 mov -0x10(%ebp),%edi
10cc6b: 89 7d ec mov %edi,-0x14(%ebp)
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
10cc6e: 8d 04 33 lea (%ebx,%esi,1),%eax
10cc71: 89 45 e0 mov %eax,-0x20(%ebp)
Heap_Block *next_block = _Heap_Block_at( block, block_size );
_HAssert( used_size <= block_size + HEAP_BLOCK_SIZE_OFFSET );
_HAssert( used_size + free_size == block_size + HEAP_BLOCK_SIZE_OFFSET );
if ( free_size >= free_size_limit ) {
10cc74: 8d 56 04 lea 0x4(%esi),%edx
10cc77: 2b 55 f0 sub -0x10(%ebp),%edx
10cc7a: 8b 7d e8 mov -0x18(%ebp),%edi
10cc7d: 83 c7 04 add $0x4,%edi
10cc80: 39 fa cmp %edi,%edx
10cc82: 72 60 jb 10cce4 <_Heap_Block_split+0xbc>
10cc84: 8b 55 ec mov -0x14(%ebp),%edx
10cc87: 01 da add %ebx,%edx
Heap_Block *const free_block = _Heap_Block_at( block, used_block_size );
uintptr_t free_block_size = block_size - used_block_size;
10cc89: 2b 75 ec sub -0x14(%ebp),%esi
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
block->size_and_flag = size | flag;
10cc8c: 8b 7d e4 mov -0x1c(%ebp),%edi
10cc8f: 83 e7 01 and $0x1,%edi
10cc92: 0b 7d ec or -0x14(%ebp),%edi
10cc95: 89 7b 04 mov %edi,0x4(%ebx)
_HAssert( used_block_size + free_block_size == block_size );
_Heap_Block_set_size( block, used_block_size );
/* Statistics */
stats->free_size += free_block_size;
10cc98: 01 71 30 add %esi,0x30(%ecx)
- 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;
10cc9b: 8b 58 04 mov 0x4(%eax),%ebx
10cc9e: 83 e3 fe and $0xfffffffe,%ebx
if ( _Heap_Is_used( next_block ) ) {
10cca1: f6 44 18 04 01 testb $0x1,0x4(%eax,%ebx,1)
10cca6: 75 4c jne 10ccf4 <_Heap_Block_split+0xcc>
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
10cca8: 8b 48 08 mov 0x8(%eax),%ecx
Heap_Block *prev = old_block->prev;
10ccab: 8b 40 0c mov 0xc(%eax),%eax
new_block->next = next;
10ccae: 89 4a 08 mov %ecx,0x8(%edx)
new_block->prev = prev;
10ccb1: 89 42 0c mov %eax,0xc(%edx)
next->prev = new_block;
10ccb4: 89 51 0c mov %edx,0xc(%ecx)
prev->next = new_block;
10ccb7: 89 50 08 mov %edx,0x8(%eax)
} else {
uintptr_t const next_block_size = _Heap_Block_size( next_block );
_Heap_Free_list_replace( next_block, free_block );
free_block_size += next_block_size;
10ccba: 01 de add %ebx,%esi
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
10ccbc: 8d 04 16 lea (%esi,%edx,1),%eax
next_block = _Heap_Block_at( free_block, free_block_size );
}
free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED;
10ccbf: 89 f1 mov %esi,%ecx
10ccc1: 83 c9 01 or $0x1,%ecx
10ccc4: 89 4a 04 mov %ecx,0x4(%edx)
next_block->prev_size = free_block_size;
10ccc7: 89 30 mov %esi,(%eax)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
10ccc9: 83 60 04 fe andl $0xfffffffe,0x4(%eax)
} else {
next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
}
}
10cccd: 83 c4 14 add $0x14,%esp
10ccd0: 5b pop %ebx
10ccd1: 5e pop %esi
10ccd2: 5f pop %edi
10ccd3: c9 leave
10ccd4: c3 ret
10ccd5: 8d 76 00 lea 0x0(%esi),%esi
)
{
uintptr_t remainder = value % alignment;
if ( remainder != 0 ) {
return value - remainder + alignment;
10ccd8: 03 7d f0 add -0x10(%ebp),%edi
10ccdb: 29 d7 sub %edx,%edi
10ccdd: 89 7d ec mov %edi,-0x14(%ebp)
10cce0: eb 8c jmp 10cc6e <_Heap_Block_split+0x46>
10cce2: 66 90 xchg %ax,%ax
free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED;
next_block->prev_size = free_block_size;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
} else {
next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
10cce4: 8b 45 e0 mov -0x20(%ebp),%eax
10cce7: 83 48 04 01 orl $0x1,0x4(%eax)
}
}
10cceb: 83 c4 14 add $0x14,%esp
10ccee: 5b pop %ebx
10ccef: 5e pop %esi
10ccf0: 5f pop %edi
10ccf1: c9 leave
10ccf2: c3 ret
10ccf3: 90 nop
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
10ccf4: 8b 7d 10 mov 0x10(%ebp),%edi
10ccf7: 8b 5f 08 mov 0x8(%edi),%ebx
new_block->next = next;
10ccfa: 89 5a 08 mov %ebx,0x8(%edx)
new_block->prev = block_before;
10ccfd: 89 7a 0c mov %edi,0xc(%edx)
block_before->next = new_block;
10cd00: 89 57 08 mov %edx,0x8(%edi)
next->prev = new_block;
10cd03: 89 53 0c mov %edx,0xc(%ebx)
if ( _Heap_Is_used( next_block ) ) {
_Heap_Free_list_insert_after( free_list_anchor, free_block );
/* Statistics */
++stats->free_blocks;
10cd06: ff 41 38 incl 0x38(%ecx)
10cd09: eb b4 jmp 10ccbf <_Heap_Block_split+0x97>
00115290 <_Heap_Extend>:
Heap_Control *heap,
void *area_begin_ptr,
uintptr_t area_size,
uintptr_t *amount_extended
)
{
115290: 55 push %ebp
115291: 89 e5 mov %esp,%ebp
115293: 56 push %esi
115294: 53 push %ebx
115295: 8b 4d 08 mov 0x8(%ebp),%ecx
115298: 8b 45 0c mov 0xc(%ebp),%eax
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;
11529b: 8b 51 1c mov 0x1c(%ecx),%edx
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;
11529e: 8b 59 24 mov 0x24(%ecx),%ebx
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;
1152a1: 3b 41 18 cmp 0x18(%ecx),%eax
1152a4: 73 3a jae 1152e0 <_Heap_Extend+0x50>
* 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 ) {
1152a6: 39 d0 cmp %edx,%eax
1152a8: 74 0e je 1152b8 <_Heap_Extend+0x28>
1152aa: b8 02 00 00 00 mov $0x2,%eax
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
}
return HEAP_EXTEND_SUCCESSFUL;
}
1152af: 8d 65 f8 lea -0x8(%ebp),%esp
1152b2: 5b pop %ebx
1152b3: 5e pop %esi
1152b4: c9 leave
1152b5: c3 ret
1152b6: 66 90 xchg %ax,%ax
{
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;
1152b8: 03 45 10 add 0x10(%ebp),%eax
* 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;
1152bb: 89 41 1c mov %eax,0x1c(%ecx)
extend_size = new_heap_area_end
1152be: 29 d8 sub %ebx,%eax
1152c0: 8d 70 f8 lea -0x8(%eax),%esi
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
1152c3: 89 f0 mov %esi,%eax
1152c5: 31 d2 xor %edx,%edx
1152c7: f7 71 10 divl 0x10(%ecx)
1152ca: 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;
1152cc: 8b 45 14 mov 0x14(%ebp),%eax
1152cf: 89 30 mov %esi,(%eax)
if( extend_size >= heap->min_block_size ) {
1152d1: 39 71 14 cmp %esi,0x14(%ecx)
1152d4: 76 1a jbe 1152f0 <_Heap_Extend+0x60> <== ALWAYS TAKEN
1152d6: 31 c0 xor %eax,%eax
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
}
return HEAP_EXTEND_SUCCESSFUL;
}
1152d8: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
1152db: 5b pop %ebx <== NOT EXECUTED
1152dc: 5e pop %esi <== NOT EXECUTED
1152dd: c9 leave <== NOT EXECUTED
1152de: c3 ret <== NOT EXECUTED
1152df: 90 nop <== NOT EXECUTED
* 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 ) {
1152e0: 39 d0 cmp %edx,%eax
1152e2: 73 c2 jae 1152a6 <_Heap_Extend+0x16>
1152e4: b8 01 00 00 00 mov $0x1,%eax
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
}
return HEAP_EXTEND_SUCCESSFUL;
}
1152e9: 8d 65 f8 lea -0x8(%ebp),%esp
1152ec: 5b pop %ebx
1152ed: 5e pop %esi
1152ee: c9 leave
1152ef: c3 ret
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
1152f0: 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;
1152f3: 8b 43 04 mov 0x4(%ebx),%eax
1152f6: 83 e0 01 and $0x1,%eax
1152f9: 09 f0 or %esi,%eax
1152fb: 89 43 04 mov %eax,0x4(%ebx)
if( extend_size >= heap->min_block_size ) {
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 =
1152fe: 8b 41 20 mov 0x20(%ecx),%eax
115301: 29 d0 sub %edx,%eax
115303: 83 c8 01 or $0x1,%eax
115306: 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;
115309: 89 51 24 mov %edx,0x24(%ecx)
/* Statistics */
stats->size += extend_size;
11530c: 01 71 2c add %esi,0x2c(%ecx)
++stats->used_blocks;
11530f: ff 41 40 incl 0x40(%ecx)
--stats->frees; /* Do not count subsequent call as actual free() */
115312: ff 49 50 decl 0x50(%ecx)
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
115315: 83 ec 08 sub $0x8,%esp
115318: 83 c3 08 add $0x8,%ebx
11531b: 53 push %ebx
11531c: 51 push %ecx
11531d: e8 ce a7 ff ff call 10faf0 <_Heap_Free>
115322: 31 c0 xor %eax,%eax
115324: 83 c4 10 add $0x10,%esp
}
return HEAP_EXTEND_SUCCESSFUL;
}
115327: 8d 65 f8 lea -0x8(%ebp),%esp
11532a: 5b pop %ebx
11532b: 5e pop %esi
11532c: c9 leave
11532d: c3 ret
00111adc <_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 )
{
111adc: 55 push %ebp
111add: 89 e5 mov %esp,%ebp
111adf: 57 push %edi
111ae0: 56 push %esi
111ae1: 53 push %ebx
111ae2: 83 ec 18 sub $0x18,%esp
111ae5: 8b 5d 08 mov 0x8(%ebp),%ebx
111ae8: 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 )
111aeb: 8d 48 f8 lea -0x8(%eax),%ecx
111aee: 31 d2 xor %edx,%edx
111af0: f7 73 10 divl 0x10(%ebx)
111af3: 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;
111af5: 8b 43 20 mov 0x20(%ebx),%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
111af8: 39 c1 cmp %eax,%ecx
111afa: 72 07 jb 111b03 <_Heap_Free+0x27>
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
111afc: 8b 73 24 mov 0x24(%ebx),%esi
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
111aff: 39 f1 cmp %esi,%ecx
111b01: 76 0d jbe 111b10 <_Heap_Free+0x34>
/* Statistics */
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
111b03: 31 c0 xor %eax,%eax
}
111b05: 83 c4 18 add $0x18,%esp
111b08: 5b pop %ebx
111b09: 5e pop %esi
111b0a: 5f pop %edi
111b0b: c9 leave
111b0c: c3 ret
111b0d: 8d 76 00 lea 0x0(%esi),%esi
- 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;
111b10: 8b 51 04 mov 0x4(%ecx),%edx
111b13: 89 55 f0 mov %edx,-0x10(%ebp)
111b16: 83 e2 fe and $0xfffffffe,%edx
111b19: 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);
111b1c: 01 ca add %ecx,%edx
111b1e: 89 55 dc mov %edx,-0x24(%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
111b21: 39 d0 cmp %edx,%eax
111b23: 77 de ja 111b03 <_Heap_Free+0x27> <== NEVER TAKEN
111b25: 39 d6 cmp %edx,%esi
111b27: 72 da jb 111b03 <_Heap_Free+0x27> <== 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;
111b29: 8b 7a 04 mov 0x4(%edx),%edi
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
_HAssert( false );
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
111b2c: f7 c7 01 00 00 00 test $0x1,%edi
111b32: 74 cf je 111b03 <_Heap_Free+0x27> <== 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;
111b34: 83 e7 fe and $0xfffffffe,%edi
111b37: 89 7d e8 mov %edi,-0x18(%ebp)
_HAssert( false );
return false;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
111b3a: 39 d6 cmp %edx,%esi
111b3c: 0f 84 e2 00 00 00 je 111c24 <_Heap_Free+0x148>
#include <rtems/system.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
111b42: 8b 55 dc mov -0x24(%ebp),%edx
111b45: 8b 7d e8 mov -0x18(%ebp),%edi
111b48: 8b 7c 3a 04 mov 0x4(%edx,%edi,1),%edi
111b4c: 89 7d e0 mov %edi,-0x20(%ebp)
111b4f: 8a 55 e0 mov -0x20(%ebp),%dl
111b52: 83 e2 01 and $0x1,%edx
111b55: 88 55 e7 mov %dl,-0x19(%ebp)
111b58: 80 75 e7 01 xorb $0x1,-0x19(%ebp)
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
if ( !_Heap_Is_prev_used( block ) ) {
111b5c: f6 45 f0 01 testb $0x1,-0x10(%ebp)
111b60: 75 46 jne 111ba8 <_Heap_Free+0xcc>
uintptr_t const prev_size = block->prev_size;
111b62: 8b 39 mov (%ecx),%edi
111b64: 89 7d f0 mov %edi,-0x10(%ebp)
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
111b67: 29 f9 sub %edi,%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
111b69: 39 c8 cmp %ecx,%eax
111b6b: 77 96 ja 111b03 <_Heap_Free+0x27> <== NEVER TAKEN
111b6d: 39 ce cmp %ecx,%esi
111b6f: 72 92 jb 111b03 <_Heap_Free+0x27> <== 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) ) {
111b71: f6 41 04 01 testb $0x1,0x4(%ecx)
111b75: 74 8c je 111b03 <_Heap_Free+0x27> <== NEVER TAKEN
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
111b77: 80 7d e7 00 cmpb $0x0,-0x19(%ebp)
111b7b: 0f 84 af 00 00 00 je 111c30 <_Heap_Free+0x154>
uintptr_t const size = block_size + prev_size + next_block_size;
111b81: 8b 45 ec mov -0x14(%ebp),%eax
111b84: 03 45 e8 add -0x18(%ebp),%eax
111b87: 01 f8 add %edi,%eax
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
111b89: 8b 55 dc mov -0x24(%ebp),%edx
111b8c: 8b 72 08 mov 0x8(%edx),%esi
Heap_Block *prev = block->prev;
111b8f: 8b 52 0c mov 0xc(%edx),%edx
prev->next = next;
111b92: 89 72 08 mov %esi,0x8(%edx)
next->prev = prev;
111b95: 89 56 0c mov %edx,0xc(%esi)
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
111b98: ff 4b 38 decl 0x38(%ebx)
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
111b9b: 89 c2 mov %eax,%edx
111b9d: 83 ca 01 or $0x1,%edx
111ba0: 89 51 04 mov %edx,0x4(%ecx)
next_block = _Heap_Block_at( prev_block, size );
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
111ba3: 89 04 01 mov %eax,(%ecx,%eax,1)
111ba6: eb 2c jmp 111bd4 <_Heap_Free+0xf8>
uintptr_t const size = block_size + prev_size;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = size;
}
} else if ( next_is_free ) { /* coalesce next */
111ba8: 80 7d e7 00 cmpb $0x0,-0x19(%ebp)
111bac: 74 3e je 111bec <_Heap_Free+0x110>
uintptr_t const size = block_size + next_block_size;
111bae: 8b 7d e8 mov -0x18(%ebp),%edi
111bb1: 03 7d ec add -0x14(%ebp),%edi
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
111bb4: 8b 75 dc mov -0x24(%ebp),%esi
111bb7: 8b 46 08 mov 0x8(%esi),%eax
Heap_Block *prev = old_block->prev;
111bba: 8b 56 0c mov 0xc(%esi),%edx
new_block->next = next;
111bbd: 89 41 08 mov %eax,0x8(%ecx)
new_block->prev = prev;
111bc0: 89 51 0c mov %edx,0xc(%ecx)
next->prev = new_block;
111bc3: 89 48 0c mov %ecx,0xc(%eax)
prev->next = new_block;
111bc6: 89 4a 08 mov %ecx,0x8(%edx)
_Heap_Free_list_replace( next_block, block );
block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
111bc9: 89 f8 mov %edi,%eax
111bcb: 83 c8 01 or $0x1,%eax
111bce: 89 41 04 mov %eax,0x4(%ecx)
next_block = _Heap_Block_at( block, size );
next_block->prev_size = size;
111bd1: 89 3c 39 mov %edi,(%ecx,%edi,1)
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
111bd4: ff 4b 40 decl 0x40(%ebx)
++stats->frees;
111bd7: ff 43 50 incl 0x50(%ebx)
stats->free_size += block_size;
111bda: 8b 55 ec mov -0x14(%ebp),%edx
111bdd: 01 53 30 add %edx,0x30(%ebx)
111be0: b0 01 mov $0x1,%al
return( true );
}
111be2: 83 c4 18 add $0x18,%esp
111be5: 5b pop %ebx
111be6: 5e pop %esi
111be7: 5f pop %edi
111be8: c9 leave
111be9: c3 ret
111bea: 66 90 xchg %ax,%ax
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
111bec: 8b 43 08 mov 0x8(%ebx),%eax
new_block->next = next;
111bef: 89 41 08 mov %eax,0x8(%ecx)
new_block->prev = block_before;
111bf2: 89 59 0c mov %ebx,0xc(%ecx)
block_before->next = new_block;
111bf5: 89 4b 08 mov %ecx,0x8(%ebx)
next->prev = new_block;
111bf8: 89 48 0c mov %ecx,0xc(%eax)
next_block->prev_size = size;
} else { /* no coalesce */
/* Add 'block' to the head of the free blocks list as it tends to
produce less fragmentation than adding to the tail. */
_Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
111bfb: 8b 45 ec mov -0x14(%ebp),%eax
111bfe: 83 c8 01 or $0x1,%eax
111c01: 89 41 04 mov %eax,0x4(%ecx)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
111c04: 8b 7d dc mov -0x24(%ebp),%edi
111c07: 83 67 04 fe andl $0xfffffffe,0x4(%edi)
next_block->prev_size = block_size;
111c0b: 8b 45 ec mov -0x14(%ebp),%eax
111c0e: 89 07 mov %eax,(%edi)
/* Statistics */
++stats->free_blocks;
111c10: 8b 43 38 mov 0x38(%ebx),%eax
111c13: 40 inc %eax
111c14: 89 43 38 mov %eax,0x38(%ebx)
#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;
111c17: 3b 43 3c cmp 0x3c(%ebx),%eax
111c1a: 76 b8 jbe 111bd4 <_Heap_Free+0xf8>
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;
111c1c: 89 43 3c mov %eax,0x3c(%ebx)
111c1f: eb b3 jmp 111bd4 <_Heap_Free+0xf8>
111c21: 8d 76 00 lea 0x0(%esi),%esi
_HAssert( false );
return false;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
111c24: c6 45 e7 00 movb $0x0,-0x19(%ebp)
111c28: e9 2f ff ff ff jmp 111b5c <_Heap_Free+0x80>
111c2d: 8d 76 00 lea 0x0(%esi),%esi
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;
111c30: 8b 45 ec mov -0x14(%ebp),%eax
111c33: 03 45 f0 add -0x10(%ebp),%eax
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
111c36: 89 c6 mov %eax,%esi
111c38: 83 ce 01 or $0x1,%esi
111c3b: 89 71 04 mov %esi,0x4(%ecx)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
111c3e: 8b 55 dc mov -0x24(%ebp),%edx
111c41: 83 62 04 fe andl $0xfffffffe,0x4(%edx)
next_block->prev_size = size;
111c45: 89 02 mov %eax,(%edx)
111c47: eb 8b jmp 111bd4 <_Heap_Free+0xf8>
001312a8 <_Heap_Get_free_information>:
void _Heap_Get_free_information(
Heap_Control *the_heap,
Heap_Information *info
)
{
1312a8: 55 push %ebp
1312a9: 89 e5 mov %esp,%ebp
1312ab: 57 push %edi
1312ac: 56 push %esi
1312ad: 53 push %ebx
1312ae: 8b 7d 08 mov 0x8(%ebp),%edi
1312b1: 8b 75 0c mov 0xc(%ebp),%esi
Heap_Block *the_block;
Heap_Block *const tail = _Heap_Free_list_tail(the_heap);
info->number = 0;
1312b4: c7 06 00 00 00 00 movl $0x0,(%esi)
info->largest = 0;
1312ba: c7 46 04 00 00 00 00 movl $0x0,0x4(%esi)
info->total = 0;
1312c1: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi)
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
1312c8: 8b 57 08 mov 0x8(%edi),%edx
for(the_block = _Heap_Free_list_first(the_heap);
1312cb: 39 d7 cmp %edx,%edi
1312cd: 74 2a je 1312f9 <_Heap_Get_free_information+0x51><== NEVER TAKEN
1312cf: bb 01 00 00 00 mov $0x1,%ebx
1312d4: 31 c9 xor %ecx,%ecx
1312d6: eb 02 jmp 1312da <_Heap_Get_free_information+0x32>
1312d8: 89 c3 mov %eax,%ebx
- 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;
1312da: 8b 42 04 mov 0x4(%edx),%eax
1312dd: 83 e0 fe and $0xfffffffe,%eax
/* As we always coalesce free blocks, prev block must have been used. */
_HAssert(_Heap_Is_prev_used(the_block));
info->number++;
info->total += the_size;
1312e0: 01 c1 add %eax,%ecx
if ( info->largest < the_size )
1312e2: 39 46 04 cmp %eax,0x4(%esi)
1312e5: 73 03 jae 1312ea <_Heap_Get_free_information+0x42>
info->largest = the_size;
1312e7: 89 46 04 mov %eax,0x4(%esi)
info->largest = 0;
info->total = 0;
for(the_block = _Heap_Free_list_first(the_heap);
the_block != tail;
the_block = the_block->next)
1312ea: 8b 52 08 mov 0x8(%edx),%edx
1312ed: 8d 43 01 lea 0x1(%ebx),%eax
info->number = 0;
info->largest = 0;
info->total = 0;
for(the_block = _Heap_Free_list_first(the_heap);
1312f0: 39 d7 cmp %edx,%edi
1312f2: 75 e4 jne 1312d8 <_Heap_Get_free_information+0x30>
1312f4: 89 1e mov %ebx,(%esi)
1312f6: 89 4e 08 mov %ecx,0x8(%esi)
info->number++;
info->total += the_size;
if ( info->largest < the_size )
info->largest = the_size;
}
}
1312f9: 5b pop %ebx
1312fa: 5e pop %esi
1312fb: 5f pop %edi
1312fc: c9 leave
1312fd: c3 ret
00143d74 <_Heap_Get_information>:
void _Heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
143d74: 55 push %ebp
143d75: 89 e5 mov %esp,%ebp
143d77: 57 push %edi
143d78: 56 push %esi
143d79: 53 push %ebx
143d7a: 83 ec 04 sub $0x4,%esp
143d7d: 8b 45 08 mov 0x8(%ebp),%eax
143d80: 8b 75 0c mov 0xc(%ebp),%esi
Heap_Block *the_block = the_heap->first_block;
143d83: 8b 58 20 mov 0x20(%eax),%ebx
Heap_Block *const end = the_heap->last_block;
143d86: 8b 78 24 mov 0x24(%eax),%edi
_HAssert(the_block->prev_size == the_heap->page_size);
_HAssert(_Heap_Is_prev_used(the_block));
the_info->Free.number = 0;
143d89: c7 06 00 00 00 00 movl $0x0,(%esi)
the_info->Free.total = 0;
143d8f: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi)
the_info->Free.largest = 0;
143d96: c7 46 04 00 00 00 00 movl $0x0,0x4(%esi)
the_info->Used.number = 0;
143d9d: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi)
the_info->Used.total = 0;
143da4: c7 46 14 00 00 00 00 movl $0x0,0x14(%esi)
the_info->Used.largest = 0;
143dab: c7 46 10 00 00 00 00 movl $0x0,0x10(%esi)
while ( the_block != end ) {
143db2: 39 fb cmp %edi,%ebx
143db4: 74 45 je 143dfb <_Heap_Get_information+0x87><== NEVER TAKEN
143db6: 8b 4b 04 mov 0x4(%ebx),%ecx
uintptr_t const the_size = _Heap_Block_size(the_block);
Heap_Block *const next_block = _Heap_Block_at(the_block, the_size);
Heap_Information *info;
if ( _Heap_Is_prev_used(next_block) )
info = &the_info->Used;
143db9: 8d 46 0c lea 0xc(%esi),%eax
143dbc: 89 45 f0 mov %eax,-0x10(%ebp)
143dbf: eb 16 jmp 143dd7 <_Heap_Get_information+0x63>
143dc1: 8d 76 00 lea 0x0(%esi),%esi
while ( the_block != end ) {
uintptr_t const the_size = _Heap_Block_size(the_block);
Heap_Block *const next_block = _Heap_Block_at(the_block, the_size);
Heap_Information *info;
if ( _Heap_Is_prev_used(next_block) )
143dc4: 89 f0 mov %esi,%eax
info = &the_info->Used;
else
info = &the_info->Free;
info->number++;
143dc6: ff 00 incl (%eax)
info->total += the_size;
143dc8: 01 50 08 add %edx,0x8(%eax)
if ( info->largest < the_size )
143dcb: 39 50 04 cmp %edx,0x4(%eax)
143dce: 73 03 jae 143dd3 <_Heap_Get_information+0x5f>
info->largest = the_size;
143dd0: 89 50 04 mov %edx,0x4(%eax)
the_info->Free.largest = 0;
the_info->Used.number = 0;
the_info->Used.total = 0;
the_info->Used.largest = 0;
while ( the_block != end ) {
143dd3: 39 df cmp %ebx,%edi
143dd5: 74 15 je 143dec <_Heap_Get_information+0x78>
- 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;
143dd7: 89 ca mov %ecx,%edx
143dd9: 83 e2 fe and $0xfffffffe,%edx
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
143ddc: 01 d3 add %edx,%ebx
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;
143dde: 8b 4b 04 mov 0x4(%ebx),%ecx
uintptr_t const the_size = _Heap_Block_size(the_block);
Heap_Block *const next_block = _Heap_Block_at(the_block, the_size);
Heap_Information *info;
if ( _Heap_Is_prev_used(next_block) )
143de1: f6 c1 01 test $0x1,%cl
143de4: 74 de je 143dc4 <_Heap_Get_information+0x50>
143de6: 8b 45 f0 mov -0x10(%ebp),%eax
143de9: eb db jmp 143dc6 <_Heap_Get_information+0x52>
143deb: 90 nop
the_info->Free.largest = 0;
the_info->Used.number = 0;
the_info->Used.total = 0;
the_info->Used.largest = 0;
while ( the_block != end ) {
143dec: 8b 46 14 mov 0x14(%esi),%eax
143def: 83 c0 08 add $0x8,%eax
/*
* Handle the last dummy block. Don't consider this block to be
* "used" as client never allocated it. Make 'Used.total' contain this
* blocks' overhead though.
*/
the_info->Used.total += HEAP_BLOCK_HEADER_SIZE;
143df2: 89 46 14 mov %eax,0x14(%esi)
}
143df5: 58 pop %eax
143df6: 5b pop %ebx
143df7: 5e pop %esi
143df8: 5f pop %edi
143df9: c9 leave
143dfa: c3 ret
the_info->Free.largest = 0;
the_info->Used.number = 0;
the_info->Used.total = 0;
the_info->Used.largest = 0;
while ( the_block != end ) {
143dfb: b8 08 00 00 00 mov $0x8,%eax <== NOT EXECUTED
143e00: eb f0 jmp 143df2 <_Heap_Get_information+0x7e><== NOT EXECUTED
0011f944 <_Heap_Resize_block>:
void *alloc_begin_ptr,
uintptr_t new_alloc_size,
uintptr_t *old_size,
uintptr_t *new_size
)
{
11f944: 55 push %ebp
11f945: 89 e5 mov %esp,%ebp
11f947: 57 push %edi
11f948: 56 push %esi
11f949: 53 push %ebx
11f94a: 83 ec 2c sub $0x2c,%esp
11f94d: 8b 5d 08 mov 0x8(%ebp),%ebx
11f950: 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 )
11f953: 8d 4e f8 lea -0x8(%esi),%ecx
11f956: 89 f0 mov %esi,%eax
11f958: 31 d2 xor %edx,%edx
11f95a: f7 73 10 divl 0x10(%ebx)
11f95d: 29 d1 sub %edx,%ecx
uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;
Heap_Block *const block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
*old_size = 0;
11f95f: 8b 45 14 mov 0x14(%ebp),%eax
11f962: c7 00 00 00 00 00 movl $0x0,(%eax)
*new_size = 0;
11f968: 8b 55 18 mov 0x18(%ebp),%edx
11f96b: c7 02 00 00 00 00 movl $0x0,(%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
11f971: 39 4b 20 cmp %ecx,0x20(%ebx)
11f974: 76 0e jbe 11f984 <_Heap_Resize_block+0x40>
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
*new_size = (uintptr_t) next_block - alloc_begin + HEAP_BLOCK_SIZE_OFFSET;
/* Statistics */
++stats->resizes;
11f976: b8 02 00 00 00 mov $0x2,%eax
new_size
);
} else {
return HEAP_RESIZE_FATAL_ERROR;
}
}
11f97b: 8d 65 f4 lea -0xc(%ebp),%esp
11f97e: 5b pop %ebx
11f97f: 5e pop %esi
11f980: 5f pop %edi
11f981: c9 leave
11f982: c3 ret
11f983: 90 nop
11f984: 39 4b 24 cmp %ecx,0x24(%ebx)
11f987: 72 ed jb 11f976 <_Heap_Resize_block+0x32>
- 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;
11f989: 8b 41 04 mov 0x4(%ecx),%eax
11f98c: 83 e0 fe and $0xfffffffe,%eax
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t block_size = _Heap_Block_size( block );
uintptr_t block_end = block_begin + block_size;
11f98f: 8d 3c 01 lea (%ecx,%eax,1),%edi
11f992: 89 7d d4 mov %edi,-0x2c(%ebp)
uintptr_t alloc_size = block_end - alloc_begin + HEAP_BLOCK_SIZE_OFFSET;
11f995: 89 fa mov %edi,%edx
11f997: 29 f2 sub %esi,%edx
11f999: 83 c2 04 add $0x4,%edx
11f99c: 89 55 dc mov %edx,-0x24(%ebp)
11f99f: 8b 57 04 mov 0x4(%edi),%edx
11f9a2: 83 e2 fe and $0xfffffffe,%edx
11f9a5: 89 55 d0 mov %edx,-0x30(%ebp)
RTEMS_INLINE_ROUTINE bool _Heap_Is_free(
const Heap_Block *block
)
{
return !_Heap_Is_used( block );
11f9a8: 8b 54 17 04 mov 0x4(%edi,%edx,1),%edx
11f9ac: 83 e2 01 and $0x1,%edx
11f9af: 89 55 e0 mov %edx,-0x20(%ebp)
bool next_block_is_free = _Heap_Is_free( next_block );;
_HAssert( _Heap_Is_block_in_heap( heap, next_block ) );
_HAssert( _Heap_Is_prev_used( next_block ) );
*old_size = alloc_size;
11f9b2: 8b 55 dc mov -0x24(%ebp),%edx
11f9b5: 8b 7d 14 mov 0x14(%ebp),%edi
11f9b8: 89 17 mov %edx,(%edi)
if ( next_block_is_free ) {
11f9ba: 8a 55 e0 mov -0x20(%ebp),%dl
11f9bd: 80 f2 01 xor $0x1,%dl
11f9c0: 88 55 e0 mov %dl,-0x20(%ebp)
11f9c3: 75 17 jne 11f9dc <_Heap_Resize_block+0x98>
block_size += next_block_size;
alloc_size += next_block_size;
}
if ( new_alloc_size > alloc_size ) {
11f9c5: 8b 55 dc mov -0x24(%ebp),%edx
11f9c8: 39 55 10 cmp %edx,0x10(%ebp)
11f9cb: 76 20 jbe 11f9ed <_Heap_Resize_block+0xa9>
11f9cd: b8 01 00 00 00 mov $0x1,%eax
new_size
);
} else {
return HEAP_RESIZE_FATAL_ERROR;
}
}
11f9d2: 8d 65 f4 lea -0xc(%ebp),%esp
11f9d5: 5b pop %ebx
11f9d6: 5e pop %esi
11f9d7: 5f pop %edi
11f9d8: c9 leave
11f9d9: c3 ret
11f9da: 66 90 xchg %ax,%ax
_HAssert( _Heap_Is_prev_used( next_block ) );
*old_size = alloc_size;
if ( next_block_is_free ) {
block_size += next_block_size;
11f9dc: 03 45 d0 add -0x30(%ebp),%eax
alloc_size += next_block_size;
11f9df: 8b 7d d0 mov -0x30(%ebp),%edi
11f9e2: 01 7d dc add %edi,-0x24(%ebp)
}
if ( new_alloc_size > alloc_size ) {
11f9e5: 8b 55 dc mov -0x24(%ebp),%edx
11f9e8: 39 55 10 cmp %edx,0x10(%ebp)
11f9eb: 77 e0 ja 11f9cd <_Heap_Resize_block+0x89>
return HEAP_RESIZE_UNSATISFIED;
}
if ( next_block_is_free ) {
11f9ed: 80 7d e0 00 cmpb $0x0,-0x20(%ebp)
11f9f1: 74 31 je 11fa24 <_Heap_Resize_block+0xe0>
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
block->size_and_flag = size | flag;
11f9f3: 8b 79 04 mov 0x4(%ecx),%edi
11f9f6: 83 e7 01 and $0x1,%edi
11f9f9: 09 c7 or %eax,%edi
11f9fb: 89 79 04 mov %edi,0x4(%ecx)
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
11f9fe: 8b 7d d4 mov -0x2c(%ebp),%edi
11fa01: 8b 7f 08 mov 0x8(%edi),%edi
11fa04: 89 7d e4 mov %edi,-0x1c(%ebp)
Heap_Block *prev = block->prev;
11fa07: 8b 55 d4 mov -0x2c(%ebp),%edx
11fa0a: 8b 7a 0c mov 0xc(%edx),%edi
prev->next = next;
11fa0d: 8b 55 e4 mov -0x1c(%ebp),%edx
11fa10: 89 57 08 mov %edx,0x8(%edi)
next->prev = prev;
11fa13: 89 7a 0c mov %edi,0xc(%edx)
_Heap_Block_set_size( block, block_size );
_Heap_Free_list_remove( next_block );
next_block = _Heap_Block_at( block, block_size );
next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
11fa16: 83 4c 08 04 01 orl $0x1,0x4(%eax,%ecx,1)
/* Statistics */
--stats->free_blocks;
11fa1b: ff 4b 38 decl 0x38(%ebx)
stats->free_size -= next_block_size;
11fa1e: 8b 7d d0 mov -0x30(%ebp),%edi
11fa21: 29 7b 30 sub %edi,0x30(%ebx)
}
block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size );
11fa24: ff 75 10 pushl 0x10(%ebp)
11fa27: 56 push %esi
11fa28: 51 push %ecx
11fa29: 53 push %ebx
11fa2a: e8 dd d2 fe ff call 10cd0c <_Heap_Block_allocate>
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
*new_size = (uintptr_t) next_block - alloc_begin + HEAP_BLOCK_SIZE_OFFSET;
11fa2f: 8b 50 04 mov 0x4(%eax),%edx
11fa32: 83 e2 fe and $0xfffffffe,%edx
11fa35: 29 f0 sub %esi,%eax
11fa37: 8d 44 10 04 lea 0x4(%eax,%edx,1),%eax
11fa3b: 8b 55 18 mov 0x18(%ebp),%edx
11fa3e: 89 02 mov %eax,(%edx)
/* Statistics */
++stats->resizes;
11fa40: ff 43 54 incl 0x54(%ebx)
11fa43: 31 c0 xor %eax,%eax
11fa45: 83 c4 10 add $0x10,%esp
new_size
);
} else {
return HEAP_RESIZE_FATAL_ERROR;
}
}
11fa48: 8d 65 f4 lea -0xc(%ebp),%esp
11fa4b: 5b pop %ebx
11fa4c: 5e pop %esi
11fa4d: 5f pop %edi
11fa4e: c9 leave
11fa4f: c3 ret
0011fa50 <_Heap_Size_of_alloc_area>:
bool _Heap_Size_of_alloc_area(
Heap_Control *heap,
void *alloc_begin_ptr,
uintptr_t *alloc_size
)
{
11fa50: 55 push %ebp
11fa51: 89 e5 mov %esp,%ebp
11fa53: 56 push %esi
11fa54: 53 push %ebx
11fa55: 8b 5d 08 mov 0x8(%ebp),%ebx
11fa58: 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 )
11fa5b: 8d 4e f8 lea -0x8(%esi),%ecx
11fa5e: 89 f0 mov %esi,%eax
11fa60: 31 d2 xor %edx,%edx
11fa62: f7 73 10 divl 0x10(%ebx)
11fa65: 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;
11fa67: 8b 43 20 mov 0x20(%ebx),%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
11fa6a: 39 c1 cmp %eax,%ecx
11fa6c: 72 07 jb 11fa75 <_Heap_Size_of_alloc_area+0x25>
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
11fa6e: 8b 53 24 mov 0x24(%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
11fa71: 39 d1 cmp %edx,%ecx
11fa73: 76 07 jbe 11fa7c <_Heap_Size_of_alloc_area+0x2c><== ALWAYS TAKEN
return false;
}
*alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin;
return true;
11fa75: 31 c0 xor %eax,%eax
}
11fa77: 5b pop %ebx
11fa78: 5e pop %esi
11fa79: c9 leave
11fa7a: c3 ret
11fa7b: 90 nop
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
11fa7c: 8b 59 04 mov 0x4(%ecx),%ebx
11fa7f: 83 e3 fe and $0xfffffffe,%ebx
11fa82: 01 d9 add %ebx,%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
11fa84: 39 c8 cmp %ecx,%eax
11fa86: 77 ed ja 11fa75 <_Heap_Size_of_alloc_area+0x25><== NEVER TAKEN
11fa88: 39 ca cmp %ecx,%edx
11fa8a: 72 e9 jb 11fa75 <_Heap_Size_of_alloc_area+0x25><== NEVER TAKEN
}
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if (
11fa8c: f6 41 04 01 testb $0x1,0x4(%ecx)
11fa90: 74 e3 je 11fa75 <_Heap_Size_of_alloc_area+0x25><== NEVER TAKEN
|| !_Heap_Is_prev_used( next_block )
) {
return false;
}
*alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin;
11fa92: 29 f1 sub %esi,%ecx
11fa94: 8d 51 04 lea 0x4(%ecx),%edx
11fa97: 8b 45 10 mov 0x10(%ebp),%eax
11fa9a: 89 10 mov %edx,(%eax)
11fa9c: b0 01 mov $0x1,%al
return true;
}
11fa9e: 5b pop %ebx
11fa9f: 5e pop %esi
11faa0: c9 leave
11faa1: c3 ret
0010d84c <_Heap_Walk>:
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
10d84c: 55 push %ebp
10d84d: 89 e5 mov %esp,%ebp
10d84f: 57 push %edi
10d850: 56 push %esi
10d851: 53 push %ebx
10d852: 83 ec 3c sub $0x3c,%esp
10d855: 8b 5d 08 mov 0x8(%ebp),%ebx
uintptr_t const page_size = heap->page_size;
10d858: 8b 43 10 mov 0x10(%ebx),%eax
10d85b: 89 45 e0 mov %eax,-0x20(%ebp)
uintptr_t const min_block_size = heap->min_block_size;
10d85e: 8b 53 14 mov 0x14(%ebx),%edx
10d861: 89 55 dc mov %edx,-0x24(%ebp)
Heap_Block *const last_block = heap->last_block;
10d864: 8b 43 24 mov 0x24(%ebx),%eax
10d867: 89 45 d8 mov %eax,-0x28(%ebp)
Heap_Block *block = heap->first_block;
10d86a: 8b 73 20 mov 0x20(%ebx),%esi
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
10d86d: 80 7d 10 00 cmpb $0x0,0x10(%ebp)
10d871: 75 1d jne 10d890 <_Heap_Walk+0x44>
10d873: c7 45 e4 44 d8 10 00 movl $0x10d844,-0x1c(%ebp)
if ( !_System_state_Is_up( _System_state_Get() ) ) {
10d87a: 83 3d a0 a9 12 00 03 cmpl $0x3,0x12a9a0
10d881: 74 1d je 10d8a0 <_Heap_Walk+0x54>
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
10d883: b0 01 mov $0x1,%al
block = next_block;
}
return true;
}
10d885: 8d 65 f4 lea -0xc(%ebp),%esp
10d888: 5b pop %ebx
10d889: 5e pop %esi
10d88a: 5f pop %edi
10d88b: c9 leave
10d88c: c3 ret
10d88d: 8d 76 00 lea 0x0(%esi),%esi
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
Heap_Block *const last_block = heap->last_block;
Heap_Block *block = heap->first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
10d890: c7 45 e4 14 dc 10 00 movl $0x10dc14,-0x1c(%ebp)
if ( !_System_state_Is_up( _System_state_Get() ) ) {
10d897: 83 3d a0 a9 12 00 03 cmpl $0x3,0x12a9a0
10d89e: 75 e3 jne 10d883 <_Heap_Walk+0x37> <== 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)(
10d8a0: 52 push %edx
10d8a1: ff 73 0c pushl 0xc(%ebx)
10d8a4: ff 73 08 pushl 0x8(%ebx)
10d8a7: ff 75 d8 pushl -0x28(%ebp)
10d8aa: 56 push %esi
10d8ab: ff 73 1c pushl 0x1c(%ebx)
10d8ae: ff 73 18 pushl 0x18(%ebx)
10d8b1: ff 75 dc pushl -0x24(%ebp)
10d8b4: ff 75 e0 pushl -0x20(%ebp)
10d8b7: 68 f0 2a 12 00 push $0x122af0
10d8bc: 6a 00 push $0x0
10d8be: ff 75 0c pushl 0xc(%ebp)
10d8c1: 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 ) {
10d8c4: 83 c4 30 add $0x30,%esp
10d8c7: 8b 45 e0 mov -0x20(%ebp),%eax
10d8ca: 85 c0 test %eax,%eax
10d8cc: 0f 84 b2 00 00 00 je 10d984 <_Heap_Walk+0x138>
(*printer)( source, true, "page size is zero\n" );
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
10d8d2: f6 45 e0 03 testb $0x3,-0x20(%ebp)
10d8d6: 0f 85 b0 00 00 00 jne 10d98c <_Heap_Walk+0x140>
);
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
10d8dc: 8b 45 dc mov -0x24(%ebp),%eax
10d8df: 31 d2 xor %edx,%edx
10d8e1: f7 75 e0 divl -0x20(%ebp)
10d8e4: 85 d2 test %edx,%edx
10d8e6: 0f 85 ac 00 00 00 jne 10d998 <_Heap_Walk+0x14c>
);
return false;
}
if (
10d8ec: 8d 46 08 lea 0x8(%esi),%eax
10d8ef: 31 d2 xor %edx,%edx
10d8f1: f7 75 e0 divl -0x20(%ebp)
10d8f4: 85 d2 test %edx,%edx
10d8f6: 0f 85 a8 00 00 00 jne 10d9a4 <_Heap_Walk+0x158>
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;
10d8fc: 8b 56 04 mov 0x4(%esi),%edx
10d8ff: 89 55 cc mov %edx,-0x34(%ebp)
);
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
10d902: 83 e2 01 and $0x1,%edx
10d905: 0f 84 a1 00 00 00 je 10d9ac <_Heap_Walk+0x160>
);
return false;
}
if ( first_block->prev_size != page_size ) {
10d90b: 8b 06 mov (%esi),%eax
10d90d: 39 45 e0 cmp %eax,-0x20(%ebp)
10d910: 75 4e jne 10d960 <_Heap_Walk+0x114>
);
return false;
}
if ( _Heap_Is_free( last_block ) ) {
10d912: 8b 55 d8 mov -0x28(%ebp),%edx
10d915: 8b 42 04 mov 0x4(%edx),%eax
10d918: 83 e0 fe and $0xfffffffe,%eax
10d91b: f6 44 02 04 01 testb $0x1,0x4(%edx,%eax,1)
10d920: 0f 84 bd 02 00 00 je 10dbe3 <_Heap_Walk+0x397>
int source,
Heap_Walk_printer printer,
Heap_Control *heap
)
{
uintptr_t const page_size = heap->page_size;
10d926: 8b 43 10 mov 0x10(%ebx),%eax
10d929: 89 45 d4 mov %eax,-0x2c(%ebp)
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
10d92c: 8b 4b 08 mov 0x8(%ebx),%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 ) {
10d92f: 39 cb cmp %ecx,%ebx
10d931: 0f 84 09 01 00 00 je 10da40 <_Heap_Walk+0x1f4>
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;
10d937: 8b 7b 20 mov 0x20(%ebx),%edi
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
10d93a: 39 cf cmp %ecx,%edi
10d93c: 76 76 jbe 10d9b4 <_Heap_Walk+0x168> <== ALWAYS TAKEN
10d93e: 66 90 xchg %ax,%ax
if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {
(*printer)(
10d940: 51 push %ecx
10d941: 68 38 2c 12 00 push $0x122c38
10d946: 66 90 xchg %ax,%ax
return false;
}
if ( !prev_used ) {
(*printer)(
10d948: 6a 01 push $0x1
10d94a: ff 75 0c pushl 0xc(%ebp)
10d94d: ff 55 e4 call *-0x1c(%ebp)
10d950: 31 c0 xor %eax,%eax
10d952: 83 c4 10 add $0x10,%esp
block = next_block;
}
return true;
}
10d955: 8d 65 f4 lea -0xc(%ebp),%esp
10d958: 5b pop %ebx
10d959: 5e pop %esi
10d95a: 5f pop %edi
10d95b: c9 leave
10d95c: c3 ret
10d95d: 8d 76 00 lea 0x0(%esi),%esi
return false;
}
if ( first_block->prev_size != page_size ) {
(*printer)(
10d960: 83 ec 0c sub $0xc,%esp
10d963: ff 75 e0 pushl -0x20(%ebp)
10d966: 50 push %eax
10d967: 68 0c 2c 12 00 push $0x122c0c
return false;
}
if ( free_block->prev != prev_block ) {
(*printer)(
10d96c: 6a 01 push $0x1
10d96e: ff 75 0c pushl 0xc(%ebp)
10d971: ff 55 e4 call *-0x1c(%ebp)
10d974: 31 c0 xor %eax,%eax
10d976: 83 c4 20 add $0x20,%esp
block = next_block;
}
return true;
}
10d979: 8d 65 f4 lea -0xc(%ebp),%esp
10d97c: 5b pop %ebx
10d97d: 5e pop %esi
10d97e: 5f pop %edi
10d97f: c9 leave
10d980: c3 ret
10d981: 8d 76 00 lea 0x0(%esi),%esi
first_block, last_block,
first_free_block, last_free_block
);
if ( page_size == 0 ) {
(*printer)( source, true, "page size is zero\n" );
10d984: 57 push %edi
10d985: 68 67 2e 12 00 push $0x122e67
10d98a: eb bc jmp 10d948 <_Heap_Walk+0xfc>
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
(*printer)(
10d98c: ff 75 e0 pushl -0x20(%ebp)
10d98f: 68 7a 2e 12 00 push $0x122e7a
10d994: eb b2 jmp 10d948 <_Heap_Walk+0xfc>
10d996: 66 90 xchg %ax,%ax
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
(*printer)(
10d998: ff 75 dc pushl -0x24(%ebp)
10d99b: 68 84 2b 12 00 push $0x122b84
10d9a0: eb a6 jmp 10d948 <_Heap_Walk+0xfc>
10d9a2: 66 90 xchg %ax,%ax
}
if (
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
) {
(*printer)(
10d9a4: 56 push %esi
10d9a5: 68 a8 2b 12 00 push $0x122ba8
10d9aa: eb 9c jmp 10d948 <_Heap_Walk+0xfc>
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
(*printer)(
10d9ac: 56 push %esi
10d9ad: 68 dc 2b 12 00 push $0x122bdc
10d9b2: eb 94 jmp 10d948 <_Heap_Walk+0xfc>
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
10d9b4: 8b 53 24 mov 0x24(%ebx),%edx
10d9b7: 89 55 d0 mov %edx,-0x30(%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
10d9ba: 39 d1 cmp %edx,%ecx
10d9bc: 77 82 ja 10d940 <_Heap_Walk+0xf4> <== NEVER TAKEN
);
return false;
}
if (
10d9be: 8d 41 08 lea 0x8(%ecx),%eax
10d9c1: 31 d2 xor %edx,%edx
10d9c3: f7 75 d4 divl -0x2c(%ebp)
10d9c6: 85 d2 test %edx,%edx
10d9c8: 0f 85 20 02 00 00 jne 10dbee <_Heap_Walk+0x3a2> <== NEVER TAKEN
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
10d9ce: 8b 41 04 mov 0x4(%ecx),%eax
10d9d1: 83 e0 fe and $0xfffffffe,%eax
10d9d4: f6 44 01 04 01 testb $0x1,0x4(%ecx,%eax,1)
10d9d9: 0f 85 29 02 00 00 jne 10dc08 <_Heap_Walk+0x3bc> <== NEVER TAKEN
);
return false;
}
if ( free_block->prev != prev_block ) {
10d9df: 8b 41 0c mov 0xc(%ecx),%eax
10d9e2: 39 d8 cmp %ebx,%eax
10d9e4: 0f 85 0f 02 00 00 jne 10dbf9 <_Heap_Walk+0x3ad> <== NEVER TAKEN
10d9ea: 89 75 c8 mov %esi,-0x38(%ebp)
10d9ed: 89 c6 mov %eax,%esi
10d9ef: 89 5d c4 mov %ebx,-0x3c(%ebp)
10d9f2: eb 3d jmp 10da31 <_Heap_Walk+0x1e5>
10d9f4: 39 cf cmp %ecx,%edi
10d9f6: 0f 87 44 ff ff ff ja 10d940 <_Heap_Walk+0xf4>
10d9fc: 3b 4d d0 cmp -0x30(%ebp),%ecx
10d9ff: 0f 87 3b ff ff ff ja 10d940 <_Heap_Walk+0xf4> <== NEVER TAKEN
);
return false;
}
if (
10da05: 8d 41 08 lea 0x8(%ecx),%eax
10da08: 31 d2 xor %edx,%edx
10da0a: f7 75 d4 divl -0x2c(%ebp)
10da0d: 85 d2 test %edx,%edx
10da0f: 0f 85 d9 01 00 00 jne 10dbee <_Heap_Walk+0x3a2>
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
10da15: 8b 41 04 mov 0x4(%ecx),%eax
10da18: 83 e0 fe and $0xfffffffe,%eax
10da1b: f6 44 01 04 01 testb $0x1,0x4(%ecx,%eax,1)
10da20: 0f 85 e2 01 00 00 jne 10dc08 <_Heap_Walk+0x3bc>
);
return false;
}
if ( free_block->prev != prev_block ) {
10da26: 8b 41 0c mov 0xc(%ecx),%eax
10da29: 39 d8 cmp %ebx,%eax
10da2b: 0f 85 c8 01 00 00 jne 10dbf9 <_Heap_Walk+0x3ad>
(*printer)(
10da31: 89 cb mov %ecx,%ebx
return false;
}
prev_block = free_block;
free_block = free_block->next;
10da33: 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 ) {
10da36: 39 ce cmp %ecx,%esi
10da38: 75 ba jne 10d9f4 <_Heap_Walk+0x1a8>
10da3a: 8b 75 c8 mov -0x38(%ebp),%esi
10da3d: 8b 5d c4 mov -0x3c(%ebp),%ebx
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
10da40: 39 75 d8 cmp %esi,-0x28(%ebp)
10da43: 0f 84 3a fe ff ff je 10d883 <_Heap_Walk+0x37> <== NEVER TAKEN
10da49: 8b 45 cc mov -0x34(%ebp),%eax
- 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;
10da4c: 89 c1 mov %eax,%ecx
10da4e: 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);
10da51: 8d 3c 31 lea (%ecx,%esi,1),%edi
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 ) {
10da54: a8 01 test $0x1,%al
10da56: 74 30 je 10da88 <_Heap_Walk+0x23c>
(*printer)(
10da58: 83 ec 0c sub $0xc,%esp
10da5b: 51 push %ecx
10da5c: 56 push %esi
10da5d: 68 c9 2e 12 00 push $0x122ec9
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
10da62: 6a 00 push $0x0
10da64: ff 75 0c pushl 0xc(%ebp)
10da67: 89 4d c0 mov %ecx,-0x40(%ebp)
10da6a: ff 55 e4 call *-0x1c(%ebp)
10da6d: 83 c4 20 add $0x20,%esp
10da70: 8b 4d c0 mov -0x40(%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
10da73: 39 7b 20 cmp %edi,0x20(%ebx)
10da76: 76 20 jbe 10da98 <_Heap_Walk+0x24c> <== ALWAYS TAKEN
block->prev_size
);
}
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
(*printer)(
10da78: 83 ec 0c sub $0xc,%esp
10da7b: 57 push %edi
10da7c: 56 push %esi
10da7d: 68 e4 2c 12 00 push $0x122ce4
10da82: e9 e5 fe ff ff jmp 10d96c <_Heap_Walk+0x120>
10da87: 90 nop
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
10da88: 83 ec 08 sub $0x8,%esp
10da8b: ff 36 pushl (%esi)
10da8d: 51 push %ecx
10da8e: 56 push %esi
10da8f: 68 bc 2c 12 00 push $0x122cbc
10da94: eb cc jmp 10da62 <_Heap_Walk+0x216>
10da96: 66 90 xchg %ax,%ax
10da98: 39 7b 24 cmp %edi,0x24(%ebx)
10da9b: 72 db jb 10da78 <_Heap_Walk+0x22c>
);
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) ) {
10da9d: 89 c8 mov %ecx,%eax
10da9f: 31 d2 xor %edx,%edx
10daa1: f7 75 e0 divl -0x20(%ebp)
10daa4: 85 d2 test %edx,%edx
10daa6: 0f 85 02 01 00 00 jne 10dbae <_Heap_Walk+0x362>
);
return false;
}
if ( block_size < min_block_size ) {
10daac: 39 4d dc cmp %ecx,-0x24(%ebp)
10daaf: 0f 87 0b 01 00 00 ja 10dbc0 <_Heap_Walk+0x374>
);
return false;
}
if ( next_block_begin <= block_begin ) {
10dab5: 39 fe cmp %edi,%esi
10dab7: 0f 83 17 01 00 00 jae 10dbd4 <_Heap_Walk+0x388>
);
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
10dabd: f6 47 04 01 testb $0x1,0x4(%edi)
10dac1: 0f 85 91 00 00 00 jne 10db58 <_Heap_Walk+0x30c>
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
10dac7: 8b 4b 08 mov 0x8(%ebx),%ecx
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;
10daca: 8b 46 04 mov 0x4(%esi),%eax
10dacd: 89 45 cc mov %eax,-0x34(%ebp)
- HEAP_BLOCK_HEADER_SIZE);
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{
return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;
10dad0: 83 e0 fe and $0xfffffffe,%eax
10dad3: 89 45 d4 mov %eax,-0x2c(%ebp)
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
10dad6: 01 f0 add %esi,%eax
10dad8: 89 45 d0 mov %eax,-0x30(%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)(
10dadb: 8b 56 08 mov 0x8(%esi),%edx
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;
10dade: 39 53 0c cmp %edx,0xc(%ebx)
10dae1: 0f 84 99 00 00 00 je 10db80 <_Heap_Walk+0x334>
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
10dae7: 39 da cmp %ebx,%edx
10dae9: 0f 84 a9 00 00 00 je 10db98 <_Heap_Walk+0x34c>
10daef: c7 45 c8 35 2a 12 00 movl $0x122a35,-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)(
10daf6: 8b 46 0c mov 0xc(%esi),%eax
10daf9: 39 c1 cmp %eax,%ecx
10dafb: 74 7b je 10db78 <_Heap_Walk+0x32c>
"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)" : ""),
10dafd: 39 d8 cmp %ebx,%eax
10daff: 0f 84 9f 00 00 00 je 10dba4 <_Heap_Walk+0x358>
10db05: b9 35 2a 12 00 mov $0x122a35,%ecx
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)(
10db0a: ff 75 c8 pushl -0x38(%ebp)
10db0d: 52 push %edx
10db0e: 51 push %ecx
10db0f: 50 push %eax
10db10: 56 push %esi
10db11: 68 a4 2d 12 00 push $0x122da4
10db16: 6a 00 push $0x0
10db18: ff 75 0c pushl 0xc(%ebp)
10db1b: 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 ) {
10db1e: 8b 55 d0 mov -0x30(%ebp),%edx
10db21: 8b 02 mov (%edx),%eax
10db23: 83 c4 20 add $0x20,%esp
10db26: 39 45 d4 cmp %eax,-0x2c(%ebp)
10db29: 74 11 je 10db3c <_Heap_Walk+0x2f0>
(*printer)(
10db2b: 51 push %ecx
10db2c: 52 push %edx
10db2d: 50 push %eax
10db2e: ff 75 d4 pushl -0x2c(%ebp)
10db31: 56 push %esi
10db32: 68 d0 2d 12 00 push $0x122dd0
10db37: e9 30 fe ff ff jmp 10d96c <_Heap_Walk+0x120>
);
return false;
}
if ( !prev_used ) {
10db3c: f6 45 cc 01 testb $0x1,-0x34(%ebp)
10db40: 74 4a je 10db8c <_Heap_Walk+0x340>
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
10db42: 8b 43 08 mov 0x8(%ebx),%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 ) {
10db45: 39 d8 cmp %ebx,%eax
10db47: 75 0a jne 10db53 <_Heap_Walk+0x307> <== ALWAYS TAKEN
10db49: eb 21 jmp 10db6c <_Heap_Walk+0x320> <== NOT EXECUTED
10db4b: 90 nop <== NOT EXECUTED
if ( free_block == block ) {
return true;
}
free_block = free_block->next;
10db4c: 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 ) {
10db4f: 39 d8 cmp %ebx,%eax
10db51: 74 19 je 10db6c <_Heap_Walk+0x320>
if ( free_block == block ) {
10db53: 39 f0 cmp %esi,%eax
10db55: 75 f5 jne 10db4c <_Heap_Walk+0x300>
10db57: 90 nop
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
10db58: 39 7d d8 cmp %edi,-0x28(%ebp)
10db5b: 0f 84 22 fd ff ff je 10d883 <_Heap_Walk+0x37>
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 ) {
10db61: 8b 47 04 mov 0x4(%edi),%eax
10db64: 89 fe mov %edi,%esi
10db66: e9 e1 fe ff ff jmp 10da4c <_Heap_Walk+0x200>
10db6b: 90 nop
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
10db6c: 56 push %esi
10db6d: 68 3c 2e 12 00 push $0x122e3c
10db72: e9 d1 fd ff ff jmp 10d948 <_Heap_Walk+0xfc>
10db77: 90 nop
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)(
10db78: b9 f4 2e 12 00 mov $0x122ef4,%ecx
10db7d: eb 8b jmp 10db0a <_Heap_Walk+0x2be>
10db7f: 90 nop
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap )
{
return _Heap_Free_list_tail(heap)->prev;
10db80: c7 45 c8 e0 2e 12 00 movl $0x122ee0,-0x38(%ebp)
10db87: e9 6a ff ff ff jmp 10daf6 <_Heap_Walk+0x2aa>
return false;
}
if ( !prev_used ) {
(*printer)(
10db8c: 56 push %esi
10db8d: 68 0c 2e 12 00 push $0x122e0c
10db92: e9 b1 fd ff ff jmp 10d948 <_Heap_Walk+0xfc>
10db97: 90 nop
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
10db98: c7 45 c8 ea 2e 12 00 movl $0x122eea,-0x38(%ebp)
10db9f: e9 52 ff ff ff jmp 10daf6 <_Heap_Walk+0x2aa>
"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)" : ""),
10dba4: b9 ff 2e 12 00 mov $0x122eff,%ecx
10dba9: e9 5c ff ff ff jmp 10db0a <_Heap_Walk+0x2be>
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) ) {
(*printer)(
10dbae: 83 ec 0c sub $0xc,%esp
10dbb1: 51 push %ecx
10dbb2: 56 push %esi
10dbb3: 68 14 2d 12 00 push $0x122d14
10dbb8: e9 af fd ff ff jmp 10d96c <_Heap_Walk+0x120>
10dbbd: 8d 76 00 lea 0x0(%esi),%esi
return false;
}
if ( block_size < min_block_size ) {
(*printer)(
10dbc0: 83 ec 08 sub $0x8,%esp
10dbc3: ff 75 dc pushl -0x24(%ebp)
10dbc6: 51 push %ecx
10dbc7: 56 push %esi
10dbc8: 68 44 2d 12 00 push $0x122d44
10dbcd: e9 9a fd ff ff jmp 10d96c <_Heap_Walk+0x120>
10dbd2: 66 90 xchg %ax,%ax
return false;
}
if ( next_block_begin <= block_begin ) {
(*printer)(
10dbd4: 83 ec 0c sub $0xc,%esp
10dbd7: 57 push %edi
10dbd8: 56 push %esi
10dbd9: 68 70 2d 12 00 push $0x122d70
10dbde: e9 89 fd ff ff jmp 10d96c <_Heap_Walk+0x120>
return false;
}
if ( _Heap_Is_free( last_block ) ) {
(*printer)(
10dbe3: 53 push %ebx
10dbe4: 68 98 2e 12 00 push $0x122e98
10dbe9: e9 5a fd ff ff jmp 10d948 <_Heap_Walk+0xfc>
}
if (
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
) {
(*printer)(
10dbee: 51 push %ecx
10dbef: 68 58 2c 12 00 push $0x122c58
10dbf4: e9 4f fd ff ff jmp 10d948 <_Heap_Walk+0xfc>
return false;
}
if ( free_block->prev != prev_block ) {
(*printer)(
10dbf9: 83 ec 0c sub $0xc,%esp
10dbfc: 50 push %eax
10dbfd: 51 push %ecx
10dbfe: 68 88 2c 12 00 push $0x122c88
10dc03: e9 64 fd ff ff jmp 10d96c <_Heap_Walk+0x120>
return false;
}
if ( _Heap_Is_used( free_block ) ) {
(*printer)(
10dc08: 51 push %ecx
10dc09: 68 ad 2e 12 00 push $0x122ead
10dc0e: e9 35 fd ff ff jmp 10d948 <_Heap_Walk+0xfc>
0010c308 <_IO_Initialize_all_drivers>:
*
* Output Parameters: NONE
*/
void _IO_Initialize_all_drivers( void )
{
10c308: 55 push %ebp
10c309: 89 e5 mov %esp,%ebp
10c30b: 53 push %ebx
10c30c: 83 ec 04 sub $0x4,%esp
rtems_device_major_number major;
for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )
10c30f: 8b 15 c0 76 12 00 mov 0x1276c0,%edx
10c315: 85 d2 test %edx,%edx
10c317: 74 1a je 10c333 <_IO_Initialize_all_drivers+0x2b><== NEVER TAKEN
10c319: 31 db xor %ebx,%ebx
10c31b: 90 nop
(void) rtems_io_initialize( major, 0, NULL );
10c31c: 50 push %eax
10c31d: 6a 00 push $0x0
10c31f: 6a 00 push $0x0
10c321: 53 push %ebx
10c322: e8 01 53 00 00 call 111628 <rtems_io_initialize>
void _IO_Initialize_all_drivers( void )
{
rtems_device_major_number major;
for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )
10c327: 43 inc %ebx
10c328: 83 c4 10 add $0x10,%esp
10c32b: 39 1d c0 76 12 00 cmp %ebx,0x1276c0
10c331: 77 e9 ja 10c31c <_IO_Initialize_all_drivers+0x14>
(void) rtems_io_initialize( major, 0, NULL );
}
10c333: 8b 5d fc mov -0x4(%ebp),%ebx
10c336: c9 leave
10c337: c3 ret
0010c338 <_IO_Manager_initialization>:
* workspace.
*
*/
void _IO_Manager_initialization(void)
{
10c338: 55 push %ebp
10c339: 89 e5 mov %esp,%ebp
10c33b: 57 push %edi
10c33c: 56 push %esi
10c33d: 53 push %ebx
10c33e: 83 ec 1c sub $0x1c,%esp
uint32_t index;
rtems_driver_address_table *driver_table;
uint32_t drivers_in_table;
uint32_t number_of_drivers;
driver_table = Configuration.Device_driver_table;
10c341: 8b 1d 54 32 12 00 mov 0x123254,%ebx
drivers_in_table = Configuration.number_of_device_drivers;
10c347: a1 50 32 12 00 mov 0x123250,%eax
10c34c: 89 45 e4 mov %eax,-0x1c(%ebp)
number_of_drivers = Configuration.maximum_drivers;
10c34f: 8b 35 4c 32 12 00 mov 0x12324c,%esi
/*
* If the user claims there are less drivers than are actually in
* the table, then let's just go with the table's count.
*/
if ( number_of_drivers <= drivers_in_table )
10c355: 39 f0 cmp %esi,%eax
10c357: 72 17 jb 10c370 <_IO_Manager_initialization+0x38>
* If the maximum number of driver is the same as the number in the
* table, then we do not have to copy the driver table. They can't
* register any dynamically.
*/
if ( number_of_drivers == drivers_in_table ) {
_IO_Driver_address_table = driver_table;
10c359: 89 1d c4 76 12 00 mov %ebx,0x1276c4
_IO_Number_of_drivers = number_of_drivers;
10c35f: 8b 45 e4 mov -0x1c(%ebp),%eax
10c362: a3 c0 76 12 00 mov %eax,0x1276c0
);
for ( index = 0 ; index < drivers_in_table ; index++ )
_IO_Driver_address_table[index] = driver_table[index];
number_of_drivers = drivers_in_table;
}
10c367: 8d 65 f4 lea -0xc(%ebp),%esp
10c36a: 5b pop %ebx
10c36b: 5e pop %esi
10c36c: 5f pop %edi
10c36d: c9 leave
10c36e: c3 ret
10c36f: 90 nop
/*
* The application requested extra slots in the driver table, so we
* have to allocate a new driver table and copy theirs to it.
*/
_IO_Driver_address_table = (rtems_driver_address_table *)
10c370: 8d 0c 76 lea (%esi,%esi,2),%ecx
10c373: c1 e1 03 shl $0x3,%ecx
10c376: 83 ec 0c sub $0xc,%esp
10c379: 51 push %ecx
10c37a: 89 4d dc mov %ecx,-0x24(%ebp)
10c37d: e8 0a 29 00 00 call 10ec8c <_Workspace_Allocate_or_fatal_error>
10c382: 89 c2 mov %eax,%edx
10c384: a3 c4 76 12 00 mov %eax,0x1276c4
_Workspace_Allocate_or_fatal_error(
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
_IO_Number_of_drivers = number_of_drivers;
10c389: 89 35 c0 76 12 00 mov %esi,0x1276c0
memset(
10c38f: 31 c0 xor %eax,%eax
10c391: 8b 4d dc mov -0x24(%ebp),%ecx
10c394: 89 d7 mov %edx,%edi
10c396: f3 aa rep stos %al,%es:(%edi)
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
10c398: 83 c4 10 add $0x10,%esp
10c39b: 8b 4d e4 mov -0x1c(%ebp),%ecx
10c39e: 85 c9 test %ecx,%ecx
10c3a0: 74 c5 je 10c367 <_IO_Manager_initialization+0x2f><== NEVER TAKEN
10c3a2: a1 c4 76 12 00 mov 0x1276c4,%eax
10c3a7: 89 45 e0 mov %eax,-0x20(%ebp)
10c3aa: 31 c0 xor %eax,%eax
10c3ac: 31 d2 xor %edx,%edx
10c3ae: 66 90 xchg %ax,%ax
_IO_Driver_address_table[index] = driver_table[index];
10c3b0: 8b 7d e0 mov -0x20(%ebp),%edi
10c3b3: 01 c7 add %eax,%edi
10c3b5: 8d 34 03 lea (%ebx,%eax,1),%esi
10c3b8: b9 06 00 00 00 mov $0x6,%ecx
10c3bd: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
memset(
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
10c3bf: 42 inc %edx
10c3c0: 83 c0 18 add $0x18,%eax
10c3c3: 39 55 e4 cmp %edx,-0x1c(%ebp)
10c3c6: 77 e8 ja 10c3b0 <_IO_Manager_initialization+0x78>
_IO_Driver_address_table[index] = driver_table[index];
number_of_drivers = drivers_in_table;
}
10c3c8: 8d 65 f4 lea -0xc(%ebp),%esp
10c3cb: 5b pop %ebx
10c3cc: 5e pop %esi
10c3cd: 5f pop %edi
10c3ce: c9 leave
10c3cf: c3 ret
0010cdfc <_Internal_error_Occurred>:
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
10cdfc: 55 push %ebp
10cdfd: 89 e5 mov %esp,%ebp
10cdff: 53 push %ebx
10ce00: 83 ec 08 sub $0x8,%esp
10ce03: 8b 45 08 mov 0x8(%ebp),%eax
10ce06: 8b 55 0c mov 0xc(%ebp),%edx
10ce09: 8b 5d 10 mov 0x10(%ebp),%ebx
_Internal_errors_What_happened.the_source = the_source;
10ce0c: a3 00 74 12 00 mov %eax,0x127400
_Internal_errors_What_happened.is_internal = is_internal;
10ce11: 88 15 04 74 12 00 mov %dl,0x127404
_Internal_errors_What_happened.the_error = the_error;
10ce17: 89 1d 08 74 12 00 mov %ebx,0x127408
_User_extensions_Fatal( the_source, is_internal, the_error );
10ce1d: 53 push %ebx
10ce1e: 0f b6 d2 movzbl %dl,%edx
10ce21: 52 push %edx
10ce22: 50 push %eax
10ce23: e8 0c 1b 00 00 call 10e934 <_User_extensions_Fatal>
RTEMS_INLINE_ROUTINE void _System_state_Set (
System_state_Codes state
)
{
_System_state_Current = state;
10ce28: c7 05 20 75 12 00 05 movl $0x5,0x127520 <== NOT EXECUTED
10ce2f: 00 00 00
_System_state_Set( SYSTEM_STATE_FAILED );
_CPU_Fatal_halt( the_error );
10ce32: fa cli <== NOT EXECUTED
10ce33: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10ce35: f4 hlt <== NOT EXECUTED
10ce36: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ce39: eb fe jmp 10ce39 <_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
00111c4c <_Objects_API_maximum_class>:
#include <rtems/score/object.h>
unsigned int _Objects_API_maximum_class(
uint32_t api
)
{
111c4c: 55 push %ebp
111c4d: 89 e5 mov %esp,%ebp
case OBJECTS_NO_API:
default:
break;
}
return 0;
}
111c4f: 8b 45 08 mov 0x8(%ebp),%eax
111c52: 48 dec %eax
111c53: 83 f8 03 cmp $0x3,%eax
111c56: 77 0c ja 111c64 <_Objects_API_maximum_class+0x18>
111c58: 8b 04 85 70 1f 12 00 mov 0x121f70(,%eax,4),%eax
111c5f: c9 leave
111c60: c3 ret
111c61: 8d 76 00 lea 0x0(%esi),%esi
111c64: 31 c0 xor %eax,%eax
111c66: c9 leave
111c67: c3 ret
0010ce94 <_Objects_Allocate>:
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
10ce94: 55 push %ebp
10ce95: 89 e5 mov %esp,%ebp
10ce97: 56 push %esi
10ce98: 53 push %ebx
10ce99: 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 )
10ce9c: 8b 43 18 mov 0x18(%ebx),%eax
10ce9f: 85 c0 test %eax,%eax
10cea1: 75 0d jne 10ceb0 <_Objects_Allocate+0x1c><== ALWAYS TAKEN
10cea3: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
information->inactive--;
}
}
return the_object;
}
10cea5: 89 c8 mov %ecx,%eax
10cea7: 8d 65 f8 lea -0x8(%ebp),%esp
10ceaa: 5b pop %ebx
10ceab: 5e pop %esi
10ceac: c9 leave
10cead: c3 ret
10ceae: 66 90 xchg %ax,%ax
/*
* 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 );
10ceb0: 8d 73 20 lea 0x20(%ebx),%esi
10ceb3: 83 ec 0c sub $0xc,%esp
10ceb6: 56 push %esi
10ceb7: e8 08 f7 ff ff call 10c5c4 <_Chain_Get>
10cebc: 89 c1 mov %eax,%ecx
if ( information->auto_extend ) {
10cebe: 83 c4 10 add $0x10,%esp
10cec1: 80 7b 12 00 cmpb $0x0,0x12(%ebx)
10cec5: 74 de je 10cea5 <_Objects_Allocate+0x11>
/*
* If the list is empty then we are out of objects and need to
* extend information base.
*/
if ( !the_object ) {
10cec7: 85 c0 test %eax,%eax
10cec9: 74 29 je 10cef4 <_Objects_Allocate+0x60>
}
if ( the_object ) {
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
10cecb: 0f b7 41 08 movzwl 0x8(%ecx),%eax
10cecf: 0f b7 53 08 movzwl 0x8(%ebx),%edx
10ced3: 29 d0 sub %edx,%eax
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
10ced5: 0f b7 73 14 movzwl 0x14(%ebx),%esi
10ced9: 31 d2 xor %edx,%edx
10cedb: f7 f6 div %esi
10cedd: c1 e0 02 shl $0x2,%eax
10cee0: 03 43 30 add 0x30(%ebx),%eax
10cee3: ff 08 decl (%eax)
information->inactive--;
10cee5: 66 ff 4b 2c decw 0x2c(%ebx)
}
}
return the_object;
}
10cee9: 89 c8 mov %ecx,%eax
10ceeb: 8d 65 f8 lea -0x8(%ebp),%esp
10ceee: 5b pop %ebx
10ceef: 5e pop %esi
10cef0: c9 leave
10cef1: c3 ret
10cef2: 66 90 xchg %ax,%ax
* If the list is empty then we are out of objects and need to
* extend information base.
*/
if ( !the_object ) {
_Objects_Extend_information( information );
10cef4: 83 ec 0c sub $0xc,%esp
10cef7: 53 push %ebx
10cef8: e8 3b 00 00 00 call 10cf38 <_Objects_Extend_information>
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
10cefd: 89 34 24 mov %esi,(%esp)
10cf00: e8 bf f6 ff ff call 10c5c4 <_Chain_Get>
10cf05: 89 c1 mov %eax,%ecx
}
if ( the_object ) {
10cf07: 83 c4 10 add $0x10,%esp
10cf0a: 85 c0 test %eax,%eax
10cf0c: 74 97 je 10cea5 <_Objects_Allocate+0x11>
10cf0e: eb bb jmp 10cecb <_Objects_Allocate+0x37>
0010cf38 <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
10cf38: 55 push %ebp
10cf39: 89 e5 mov %esp,%ebp
10cf3b: 57 push %edi
10cf3c: 56 push %esi
10cf3d: 53 push %ebx
10cf3e: 83 ec 4c sub $0x4c,%esp
10cf41: 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 );
10cf44: 0f b7 43 08 movzwl 0x8(%ebx),%eax
10cf48: 89 45 d0 mov %eax,-0x30(%ebp)
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
10cf4b: 8b 4b 34 mov 0x34(%ebx),%ecx
10cf4e: 85 c9 test %ecx,%ecx
10cf50: 0f 84 72 02 00 00 je 10d1c8 <_Objects_Extend_information+0x290>
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
10cf56: 8b 7b 10 mov 0x10(%ebx),%edi
10cf59: 66 89 7d d4 mov %di,-0x2c(%ebp)
10cf5d: 8b 7b 14 mov 0x14(%ebx),%edi
10cf60: 31 d2 xor %edx,%edx
10cf62: 8b 45 d4 mov -0x2c(%ebp),%eax
10cf65: 66 f7 f7 div %di
10cf68: 0f b7 f0 movzwl %ax,%esi
for ( ; block < block_count; block++ ) {
10cf6b: 85 f6 test %esi,%esi
10cf6d: 0f 84 6c 02 00 00 je 10d1df <_Objects_Extend_information+0x2a7><== NEVER TAKEN
if ( information->object_blocks[ block ] == NULL )
10cf73: 8b 01 mov (%ecx),%eax
10cf75: 85 c0 test %eax,%eax
10cf77: 0f 84 72 02 00 00 je 10d1ef <_Objects_Extend_information+0x2b7><== NEVER TAKEN
10cf7d: 0f b7 ff movzwl %di,%edi
10cf80: 8b 55 d0 mov -0x30(%ebp),%edx
10cf83: 89 55 cc mov %edx,-0x34(%ebp)
10cf86: 31 d2 xor %edx,%edx
10cf88: 8b 45 cc mov -0x34(%ebp),%eax
10cf8b: eb 09 jmp 10cf96 <_Objects_Extend_information+0x5e>
10cf8d: 8d 76 00 lea 0x0(%esi),%esi
10cf90: 83 3c 91 00 cmpl $0x0,(%ecx,%edx,4)
10cf94: 74 07 je 10cf9d <_Objects_Extend_information+0x65>
break;
else
index_base += information->allocation_size;
10cf96: 01 f8 add %edi,%eax
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
10cf98: 42 inc %edx
10cf99: 39 d6 cmp %edx,%esi
10cf9b: 77 f3 ja 10cf90 <_Objects_Extend_information+0x58>
10cf9d: 89 45 cc mov %eax,-0x34(%ebp)
else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
10cfa0: 0f b7 45 d4 movzwl -0x2c(%ebp),%eax
10cfa4: 01 f8 add %edi,%eax
10cfa6: 89 45 d4 mov %eax,-0x2c(%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 ) {
10cfa9: 3d ff ff 00 00 cmp $0xffff,%eax
10cfae: 0f 87 b1 01 00 00 ja 10d165 <_Objects_Extend_information+0x22d><== 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;
10cfb4: 0f af 7b 18 imul 0x18(%ebx),%edi
if ( information->auto_extend ) {
10cfb8: 80 7b 12 00 cmpb $0x0,0x12(%ebx)
10cfbc: 0f 85 ae 01 00 00 jne 10d170 <_Objects_Extend_information+0x238>
new_object_block = _Workspace_Allocate( block_size );
if ( !new_object_block )
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
10cfc2: 83 ec 0c sub $0xc,%esp
10cfc5: 57 push %edi
10cfc6: 89 55 b4 mov %edx,-0x4c(%ebp)
10cfc9: e8 be 1c 00 00 call 10ec8c <_Workspace_Allocate_or_fatal_error>
10cfce: 89 45 c4 mov %eax,-0x3c(%ebp)
10cfd1: 83 c4 10 add $0x10,%esp
10cfd4: 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 ) {
10cfd7: 0f b7 43 10 movzwl 0x10(%ebx),%eax
10cfdb: 39 45 cc cmp %eax,-0x34(%ebp)
10cfde: 0f 82 fe 00 00 00 jb 10d0e2 <_Objects_Extend_information+0x1aa>
*/
/*
* Up the block count and maximum
*/
block_count++;
10cfe4: 8d 7e 01 lea 0x1(%esi),%edi
* 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 );
10cfe7: 83 ec 0c sub $0xc,%esp
10cfea: 8d 04 7f lea (%edi,%edi,2),%eax
10cfed: 03 45 d4 add -0x2c(%ebp),%eax
10cff0: 03 45 d0 add -0x30(%ebp),%eax
10cff3: c1 e0 02 shl $0x2,%eax
10cff6: 50 push %eax
10cff7: 89 55 b4 mov %edx,-0x4c(%ebp)
10cffa: e8 b9 1c 00 00 call 10ecb8 <_Workspace_Allocate>
10cfff: 89 45 c8 mov %eax,-0x38(%ebp)
if ( !object_blocks ) {
10d002: 83 c4 10 add $0x10,%esp
10d005: 85 c0 test %eax,%eax
10d007: 8b 55 b4 mov -0x4c(%ebp),%edx
10d00a: 0f 84 ef 01 00 00 je 10d1ff <_Objects_Extend_information+0x2c7>
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
10d010: 8b 45 c8 mov -0x38(%ebp),%eax
10d013: 8d 04 b8 lea (%eax,%edi,4),%eax
10d016: 89 45 b8 mov %eax,-0x48(%ebp)
10d019: 8b 4d c8 mov -0x38(%ebp),%ecx
10d01c: 8d 3c f9 lea (%ecx,%edi,8),%edi
10d01f: 89 7d bc mov %edi,-0x44(%ebp)
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
10d022: 0f b7 43 10 movzwl 0x10(%ebx),%eax
10d026: 39 45 d0 cmp %eax,-0x30(%ebp)
10d029: 0f 82 60 01 00 00 jb 10d18f <_Objects_Extend_information+0x257>
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
10d02f: 8b 45 d0 mov -0x30(%ebp),%eax
10d032: 85 c0 test %eax,%eax
10d034: 74 16 je 10d04c <_Objects_Extend_information+0x114><== NEVER TAKEN
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
10d036: 31 c0 xor %eax,%eax
10d038: 8b 4d bc mov -0x44(%ebp),%ecx
10d03b: 8b 7d d0 mov -0x30(%ebp),%edi
10d03e: 66 90 xchg %ax,%ax
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
local_table[ index ] = NULL;
10d040: c7 04 81 00 00 00 00 movl $0x0,(%ecx,%eax,4)
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
10d047: 40 inc %eax
10d048: 39 c7 cmp %eax,%edi
10d04a: 77 f4 ja 10d040 <_Objects_Extend_information+0x108><== NEVER TAKEN
10d04c: c1 e6 02 shl $0x2,%esi
10d04f: 89 75 c0 mov %esi,-0x40(%ebp)
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
10d052: 8b 45 c8 mov -0x38(%ebp),%eax
10d055: 8b 7d c0 mov -0x40(%ebp),%edi
10d058: c7 04 38 00 00 00 00 movl $0x0,(%eax,%edi,1)
inactive_per_block[block_count] = 0;
10d05f: 8b 4d b8 mov -0x48(%ebp),%ecx
10d062: c7 04 39 00 00 00 00 movl $0x0,(%ecx,%edi,1)
for ( index=index_base ;
index < ( information->allocation_size + index_base );
10d069: 0f b7 73 14 movzwl 0x14(%ebx),%esi
10d06d: 03 75 cc add -0x34(%ebp),%esi
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
10d070: 39 75 cc cmp %esi,-0x34(%ebp)
10d073: 73 19 jae 10d08e <_Objects_Extend_information+0x156><== NEVER TAKEN
10d075: 8b 7d cc mov -0x34(%ebp),%edi
10d078: 8b 45 bc mov -0x44(%ebp),%eax
10d07b: 8d 0c b8 lea (%eax,%edi,4),%ecx
10d07e: 89 f8 mov %edi,%eax
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
10d080: 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++ ) {
10d086: 40 inc %eax
10d087: 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 ;
10d08a: 39 c6 cmp %eax,%esi
10d08c: 77 f2 ja 10d080 <_Objects_Extend_information+0x148>
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
}
_ISR_Disable( level );
10d08e: 9c pushf
10d08f: fa cli
10d090: 5f pop %edi
old_tables = information->object_blocks;
10d091: 8b 4b 34 mov 0x34(%ebx),%ecx
information->object_blocks = object_blocks;
10d094: 8b 45 c8 mov -0x38(%ebp),%eax
10d097: 89 43 34 mov %eax,0x34(%ebx)
information->inactive_per_block = inactive_per_block;
10d09a: 8b 45 b8 mov -0x48(%ebp),%eax
10d09d: 89 43 30 mov %eax,0x30(%ebx)
information->local_table = local_table;
10d0a0: 8b 45 bc mov -0x44(%ebp),%eax
10d0a3: 89 43 1c mov %eax,0x1c(%ebx)
information->maximum = (Objects_Maximum) maximum;
10d0a6: 8b 45 d4 mov -0x2c(%ebp),%eax
10d0a9: 66 89 43 10 mov %ax,0x10(%ebx)
information->maximum_id = _Objects_Build_id(
10d0ad: 8b 33 mov (%ebx),%esi
10d0af: c1 e6 18 shl $0x18,%esi
10d0b2: 81 ce 00 00 01 00 or $0x10000,%esi
10d0b8: 0f b7 43 04 movzwl 0x4(%ebx),%eax
10d0bc: c1 e0 1b shl $0x1b,%eax
10d0bf: 09 c6 or %eax,%esi
10d0c1: 0f b7 45 d4 movzwl -0x2c(%ebp),%eax
10d0c5: 09 c6 or %eax,%esi
10d0c7: 89 73 0c mov %esi,0xc(%ebx)
information->the_class,
_Objects_Local_node,
information->maximum
);
_ISR_Enable( level );
10d0ca: 57 push %edi
10d0cb: 9d popf
if ( old_tables )
10d0cc: 85 c9 test %ecx,%ecx
10d0ce: 74 12 je 10d0e2 <_Objects_Extend_information+0x1aa>
_Workspace_Free( old_tables );
10d0d0: 83 ec 0c sub $0xc,%esp
10d0d3: 51 push %ecx
10d0d4: 89 55 b4 mov %edx,-0x4c(%ebp)
10d0d7: e8 f8 1b 00 00 call 10ecd4 <_Workspace_Free>
10d0dc: 83 c4 10 add $0x10,%esp
10d0df: 8b 55 b4 mov -0x4c(%ebp),%edx
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
10d0e2: c1 e2 02 shl $0x2,%edx
10d0e5: 89 55 d0 mov %edx,-0x30(%ebp)
10d0e8: 8b 43 34 mov 0x34(%ebx),%eax
10d0eb: 8b 4d c4 mov -0x3c(%ebp),%ecx
10d0ee: 89 0c 10 mov %ecx,(%eax,%edx,1)
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
10d0f1: ff 73 18 pushl 0x18(%ebx)
10d0f4: 0f b7 53 14 movzwl 0x14(%ebx),%edx
10d0f8: 52 push %edx
10d0f9: 8b 7d d0 mov -0x30(%ebp),%edi
10d0fc: ff 34 38 pushl (%eax,%edi,1)
10d0ff: 8d 7d dc lea -0x24(%ebp),%edi
10d102: 57 push %edi
10d103: e8 68 45 00 00 call 111670 <_Chain_Initialize>
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
10d108: 8d 43 20 lea 0x20(%ebx),%eax
10d10b: 89 45 d4 mov %eax,-0x2c(%ebp)
10d10e: 8b 75 cc mov -0x34(%ebp),%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 ) {
10d111: 83 c4 10 add $0x10,%esp
10d114: eb 2b jmp 10d141 <_Objects_Extend_information+0x209>
10d116: 66 90 xchg %ax,%ax
the_object->id = _Objects_Build_id(
10d118: 8b 13 mov (%ebx),%edx
10d11a: c1 e2 18 shl $0x18,%edx
10d11d: 81 ca 00 00 01 00 or $0x10000,%edx
10d123: 0f b7 4b 04 movzwl 0x4(%ebx),%ecx
10d127: c1 e1 1b shl $0x1b,%ecx
10d12a: 09 ca or %ecx,%edx
10d12c: 09 f2 or %esi,%edx
10d12e: 89 50 08 mov %edx,0x8(%eax)
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
10d131: 83 ec 08 sub $0x8,%esp
10d134: 50 push %eax
10d135: ff 75 d4 pushl -0x2c(%ebp)
10d138: e8 4b f4 ff ff call 10c588 <_Chain_Append>
index++;
10d13d: 46 inc %esi
10d13e: 83 c4 10 add $0x10,%esp
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
10d141: 83 ec 0c sub $0xc,%esp
10d144: 57 push %edi
10d145: e8 7a f4 ff ff call 10c5c4 <_Chain_Get>
10d14a: 83 c4 10 add $0x10,%esp
10d14d: 85 c0 test %eax,%eax
10d14f: 75 c7 jne 10d118 <_Objects_Extend_information+0x1e0>
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
10d151: 8b 43 30 mov 0x30(%ebx),%eax
10d154: 0f b7 53 14 movzwl 0x14(%ebx),%edx
10d158: 8b 4d d0 mov -0x30(%ebp),%ecx
10d15b: 89 14 08 mov %edx,(%eax,%ecx,1)
information->inactive =
10d15e: 8b 43 14 mov 0x14(%ebx),%eax
10d161: 66 01 43 2c add %ax,0x2c(%ebx)
(Objects_Maximum)(information->inactive + information->allocation_size);
}
10d165: 8d 65 f4 lea -0xc(%ebp),%esp
10d168: 5b pop %ebx
10d169: 5e pop %esi
10d16a: 5f pop %edi
10d16b: c9 leave
10d16c: c3 ret
10d16d: 8d 76 00 lea 0x0(%esi),%esi
* Allocate the name table, and the objects and if it fails either return or
* generate a fatal error depending on auto-extending being active.
*/
block_size = information->allocation_size * information->size;
if ( information->auto_extend ) {
new_object_block = _Workspace_Allocate( block_size );
10d170: 83 ec 0c sub $0xc,%esp
10d173: 57 push %edi
10d174: 89 55 b4 mov %edx,-0x4c(%ebp)
10d177: e8 3c 1b 00 00 call 10ecb8 <_Workspace_Allocate>
10d17c: 89 45 c4 mov %eax,-0x3c(%ebp)
if ( !new_object_block )
10d17f: 83 c4 10 add $0x10,%esp
10d182: 85 c0 test %eax,%eax
10d184: 8b 55 b4 mov -0x4c(%ebp),%edx
10d187: 0f 85 4a fe ff ff jne 10cfd7 <_Objects_Extend_information+0x9f>
10d18d: eb d6 jmp 10d165 <_Objects_Extend_information+0x22d>
/*
* 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,
10d18f: c1 e6 02 shl $0x2,%esi
10d192: 89 75 c0 mov %esi,-0x40(%ebp)
10d195: 8b 73 34 mov 0x34(%ebx),%esi
10d198: 8b 7d c8 mov -0x38(%ebp),%edi
10d19b: 8b 4d c0 mov -0x40(%ebp),%ecx
10d19e: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
10d1a0: 8b 73 30 mov 0x30(%ebx),%esi
10d1a3: 8b 7d b8 mov -0x48(%ebp),%edi
10d1a6: 8b 4d c0 mov -0x40(%ebp),%ecx
10d1a9: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
10d1ab: 0f b7 43 10 movzwl 0x10(%ebx),%eax
10d1af: 03 45 d0 add -0x30(%ebp),%eax
10d1b2: 8d 0c 85 00 00 00 00 lea 0x0(,%eax,4),%ecx
10d1b9: 8b 73 1c mov 0x1c(%ebx),%esi
10d1bc: 8b 7d bc mov -0x44(%ebp),%edi
10d1bf: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
10d1c1: e9 8c fe ff ff jmp 10d052 <_Objects_Extend_information+0x11a>
10d1c6: 66 90 xchg %ax,%ax
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
10d1c8: 8b 53 10 mov 0x10(%ebx),%edx
10d1cb: 66 89 55 d4 mov %dx,-0x2c(%ebp)
10d1cf: 0f b7 7b 14 movzwl 0x14(%ebx),%edi
10d1d3: 89 45 cc mov %eax,-0x34(%ebp)
10d1d6: 31 d2 xor %edx,%edx
10d1d8: 31 f6 xor %esi,%esi
10d1da: e9 c1 fd ff ff jmp 10cfa0 <_Objects_Extend_information+0x68>
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
10d1df: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED
10d1e2: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
10d1e5: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
10d1e8: 31 d2 xor %edx,%edx <== NOT EXECUTED
10d1ea: e9 b1 fd ff ff jmp 10cfa0 <_Objects_Extend_information+0x68><== NOT EXECUTED
if ( information->object_blocks[ block ] == NULL )
10d1ef: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED
10d1f2: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
10d1f5: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
10d1f8: 31 d2 xor %edx,%edx <== NOT EXECUTED
10d1fa: e9 a1 fd ff ff jmp 10cfa0 <_Objects_Extend_information+0x68><== NOT EXECUTED
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
((maximum + minimum_index) * sizeof(Objects_Control *));
object_blocks = (void**) _Workspace_Allocate( block_size );
if ( !object_blocks ) {
_Workspace_Free( new_object_block );
10d1ff: 83 ec 0c sub $0xc,%esp
10d202: ff 75 c4 pushl -0x3c(%ebp)
10d205: e8 ca 1a 00 00 call 10ecd4 <_Workspace_Free>
return;
10d20a: 83 c4 10 add $0x10,%esp
10d20d: e9 53 ff ff ff jmp 10d165 <_Objects_Extend_information+0x22d>
0010d2a4 <_Objects_Get_information>:
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint32_t the_class
)
{
10d2a4: 55 push %ebp
10d2a5: 89 e5 mov %esp,%ebp
10d2a7: 56 push %esi
10d2a8: 53 push %ebx
10d2a9: 8b 75 08 mov 0x8(%ebp),%esi
10d2ac: 8b 5d 0c mov 0xc(%ebp),%ebx
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
10d2af: 85 db test %ebx,%ebx
10d2b1: 75 09 jne 10d2bc <_Objects_Get_information+0x18>
* 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 )
10d2b3: 31 c0 xor %eax,%eax
return NULL;
#endif
return info;
}
10d2b5: 8d 65 f8 lea -0x8(%ebp),%esp
10d2b8: 5b pop %ebx
10d2b9: 5e pop %esi
10d2ba: c9 leave
10d2bb: c3 ret
/*
* 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 );
10d2bc: 83 ec 0c sub $0xc,%esp
10d2bf: 56 push %esi
10d2c0: e8 87 49 00 00 call 111c4c <_Objects_API_maximum_class>
if ( the_class_api_maximum == 0 )
10d2c5: 83 c4 10 add $0x10,%esp
10d2c8: 85 c0 test %eax,%eax
10d2ca: 74 e7 je 10d2b3 <_Objects_Get_information+0xf>
return NULL;
if ( the_class > (uint32_t) the_class_api_maximum )
10d2cc: 39 c3 cmp %eax,%ebx
10d2ce: 77 e3 ja 10d2b3 <_Objects_Get_information+0xf>
return NULL;
if ( !_Objects_Information_table[ the_api ] )
10d2d0: 8b 04 b5 2c 73 12 00 mov 0x12732c(,%esi,4),%eax
10d2d7: 85 c0 test %eax,%eax
10d2d9: 74 d8 je 10d2b3 <_Objects_Get_information+0xf><== NEVER TAKEN
return NULL;
info = _Objects_Information_table[ the_api ][ the_class ];
10d2db: 8b 04 98 mov (%eax,%ebx,4),%eax
if ( !info )
10d2de: 85 c0 test %eax,%eax
10d2e0: 74 d3 je 10d2b5 <_Objects_Get_information+0x11><== 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 )
10d2e2: 66 83 78 10 00 cmpw $0x0,0x10(%eax)
10d2e7: 75 cc jne 10d2b5 <_Objects_Get_information+0x11>
10d2e9: eb c8 jmp 10d2b3 <_Objects_Get_information+0xf>
0010d2ec <_Objects_Get_isr_disable>:
Objects_Information *information,
Objects_Id id,
Objects_Locations *location,
ISR_Level *level_p
)
{
10d2ec: 55 push %ebp
10d2ed: 89 e5 mov %esp,%ebp
10d2ef: 56 push %esi
10d2f0: 53 push %ebx
10d2f1: 8b 55 08 mov 0x8(%ebp),%edx
10d2f4: 8b 5d 10 mov 0x10(%ebp),%ebx
Objects_Control *the_object;
uint32_t index;
ISR_Level level;
index = id - information->minimum_id + 1;
10d2f7: b8 01 00 00 00 mov $0x1,%eax
10d2fc: 2b 42 08 sub 0x8(%edx),%eax
10d2ff: 03 45 0c add 0xc(%ebp),%eax
_ISR_Disable( level );
10d302: 9c pushf
10d303: fa cli
10d304: 5e pop %esi
if ( information->maximum >= index ) {
10d305: 0f b7 4a 10 movzwl 0x10(%edx),%ecx
10d309: 39 c8 cmp %ecx,%eax
10d30b: 77 1b ja 10d328 <_Objects_Get_isr_disable+0x3c>
if ( (the_object = information->local_table[ index ]) != NULL ) {
10d30d: 8b 52 1c mov 0x1c(%edx),%edx
10d310: 8b 04 82 mov (%edx,%eax,4),%eax
10d313: 85 c0 test %eax,%eax
10d315: 74 21 je 10d338 <_Objects_Get_isr_disable+0x4c>
*location = OBJECTS_LOCAL;
10d317: c7 03 00 00 00 00 movl $0x0,(%ebx)
*level_p = level;
10d31d: 8b 55 14 mov 0x14(%ebp),%edx
10d320: 89 32 mov %esi,(%edx)
_Objects_MP_Is_remote( information, id, location, &the_object );
return the_object;
#else
return NULL;
#endif
}
10d322: 5b pop %ebx
10d323: 5e pop %esi
10d324: c9 leave
10d325: c3 ret
10d326: 66 90 xchg %ax,%ax
}
_ISR_Enable( level );
*location = OBJECTS_ERROR;
return NULL;
}
_ISR_Enable( level );
10d328: 56 push %esi
10d329: 9d popf
*location = OBJECTS_ERROR;
10d32a: c7 03 01 00 00 00 movl $0x1,(%ebx)
10d330: 31 c0 xor %eax,%eax
_Objects_MP_Is_remote( information, id, location, &the_object );
return the_object;
#else
return NULL;
#endif
}
10d332: 5b pop %ebx
10d333: 5e pop %esi
10d334: c9 leave
10d335: c3 ret
10d336: 66 90 xchg %ax,%ax
if ( (the_object = information->local_table[ index ]) != NULL ) {
*location = OBJECTS_LOCAL;
*level_p = level;
return the_object;
}
_ISR_Enable( level );
10d338: 56 push %esi
10d339: 9d popf
*location = OBJECTS_ERROR;
10d33a: c7 03 01 00 00 00 movl $0x1,(%ebx)
return NULL;
10d340: eb e0 jmp 10d322 <_Objects_Get_isr_disable+0x36>
00119524 <_Objects_Get_name_as_string>:
char *_Objects_Get_name_as_string(
Objects_Id id,
size_t length,
char *name
)
{
119524: 55 push %ebp
119525: 89 e5 mov %esp,%ebp
119527: 57 push %edi
119528: 56 push %esi
119529: 53 push %ebx
11952a: 83 ec 2c sub $0x2c,%esp
11952d: 8b 7d 08 mov 0x8(%ebp),%edi
119530: 8b 75 0c mov 0xc(%ebp),%esi
119533: 8b 5d 10 mov 0x10(%ebp),%ebx
char lname[5];
Objects_Control *the_object;
Objects_Locations location;
Objects_Id tmpId;
if ( length == 0 )
119536: 85 f6 test %esi,%esi
119538: 75 0e jne 119548 <_Objects_Get_name_as_string+0x24>
}
}
*d = '\0';
_Thread_Enable_dispatch();
return name;
11953a: 31 db xor %ebx,%ebx
}
return NULL; /* unreachable path */
}
11953c: 89 d8 mov %ebx,%eax
11953e: 8d 65 f4 lea -0xc(%ebp),%esp
119541: 5b pop %ebx
119542: 5e pop %esi
119543: 5f pop %edi
119544: c9 leave
119545: c3 ret
119546: 66 90 xchg %ax,%ax
Objects_Id tmpId;
if ( length == 0 )
return NULL;
if ( name == NULL )
119548: 85 db test %ebx,%ebx
11954a: 74 f0 je 11953c <_Objects_Get_name_as_string+0x18>
return NULL;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
11954c: 85 ff test %edi,%edi
11954e: 75 08 jne 119558 <_Objects_Get_name_as_string+0x34>
119550: a1 38 4d 13 00 mov 0x134d38,%eax
119555: 8b 78 08 mov 0x8(%eax),%edi
information = _Objects_Get_information_id( tmpId );
119558: 83 ec 0c sub $0xc,%esp
11955b: 57 push %edi
11955c: e8 bf 89 ff ff call 111f20 <_Objects_Get_information_id>
if ( !information )
119561: 83 c4 10 add $0x10,%esp
119564: 85 c0 test %eax,%eax
119566: 74 d2 je 11953a <_Objects_Get_name_as_string+0x16><== NEVER TAKEN
return NULL;
the_object = _Objects_Get( information, tmpId, &location );
119568: 51 push %ecx
119569: 8d 55 e4 lea -0x1c(%ebp),%edx
11956c: 52 push %edx
11956d: 57 push %edi
11956e: 50 push %eax
11956f: e8 6c 8a ff ff call 111fe0 <_Objects_Get>
switch ( location ) {
119574: 83 c4 10 add $0x10,%esp
119577: 8b 55 e4 mov -0x1c(%ebp),%edx
11957a: 85 d2 test %edx,%edx
11957c: 75 bc jne 11953a <_Objects_Get_name_as_string+0x16><== NEVER TAKEN
if ( information->is_string ) {
s = the_object->name.name_p;
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
11957e: 8b 50 0c mov 0xc(%eax),%edx
lname[ 0 ] = (u32_name >> 24) & 0xff;
119581: 89 d1 mov %edx,%ecx
119583: c1 e9 18 shr $0x18,%ecx
119586: 88 c8 mov %cl,%al
119588: 88 4d df mov %cl,-0x21(%ebp)
lname[ 1 ] = (u32_name >> 16) & 0xff;
11958b: 89 d1 mov %edx,%ecx
11958d: c1 e9 10 shr $0x10,%ecx
119590: 88 4d e0 mov %cl,-0x20(%ebp)
lname[ 2 ] = (u32_name >> 8) & 0xff;
119593: 89 d1 mov %edx,%ecx
119595: c1 e9 08 shr $0x8,%ecx
119598: 88 4d e1 mov %cl,-0x1f(%ebp)
lname[ 3 ] = (u32_name >> 0) & 0xff;
11959b: 88 55 e2 mov %dl,-0x1e(%ebp)
lname[ 4 ] = '\0';
11959e: c6 45 e3 00 movb $0x0,-0x1d(%ebp)
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
1195a2: 4e dec %esi
1195a3: 89 75 d4 mov %esi,-0x2c(%ebp)
1195a6: 74 3c je 1195e4 <_Objects_Get_name_as_string+0xc0><== NEVER TAKEN
1195a8: 84 c0 test %al,%al
1195aa: 74 38 je 1195e4 <_Objects_Get_name_as_string+0xc0>
1195ac: 89 d9 mov %ebx,%ecx
1195ae: 31 d2 xor %edx,%edx
1195b0: eb 0a jmp 1195bc <_Objects_Get_name_as_string+0x98>
1195b2: 66 90 xchg %ax,%ax
1195b4: 8a 44 15 df mov -0x21(%ebp,%edx,1),%al
1195b8: 84 c0 test %al,%al
1195ba: 74 1b je 1195d7 <_Objects_Get_name_as_string+0xb3>
*d = (isprint((unsigned char)*s)) ? *s : '*';
1195bc: 0f b6 f0 movzbl %al,%esi
1195bf: 8b 3d d8 22 13 00 mov 0x1322d8,%edi
1195c5: f6 44 37 01 97 testb $0x97,0x1(%edi,%esi,1)
1195ca: 75 02 jne 1195ce <_Objects_Get_name_as_string+0xaa>
1195cc: b0 2a mov $0x2a,%al
1195ce: 88 01 mov %al,(%ecx)
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
1195d0: 42 inc %edx
1195d1: 41 inc %ecx
1195d2: 3b 55 d4 cmp -0x2c(%ebp),%edx
1195d5: 72 dd jb 1195b4 <_Objects_Get_name_as_string+0x90>
*d = (isprint((unsigned char)*s)) ? *s : '*';
}
}
*d = '\0';
1195d7: c6 01 00 movb $0x0,(%ecx)
_Thread_Enable_dispatch();
1195da: e8 b1 92 ff ff call 112890 <_Thread_Enable_dispatch>
return name;
1195df: e9 58 ff ff ff jmp 11953c <_Objects_Get_name_as_string+0x18>
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
1195e4: 89 d9 mov %ebx,%ecx
1195e6: eb ef jmp 1195d7 <_Objects_Get_name_as_string+0xb3>
0011c2ec <_Objects_Get_next>:
Objects_Information *information,
Objects_Id id,
Objects_Locations *location_p,
Objects_Id *next_id_p
)
{
11c2ec: 55 push %ebp
11c2ed: 89 e5 mov %esp,%ebp
11c2ef: 57 push %edi
11c2f0: 56 push %esi
11c2f1: 53 push %ebx
11c2f2: 83 ec 0c sub $0xc,%esp
11c2f5: 8b 5d 08 mov 0x8(%ebp),%ebx
11c2f8: 8b 75 0c mov 0xc(%ebp),%esi
11c2fb: 8b 7d 10 mov 0x10(%ebp),%edi
Objects_Control *object;
Objects_Id next_id;
if ( !information )
11c2fe: 85 db test %ebx,%ebx
11c300: 75 0a jne 11c30c <_Objects_Get_next+0x20>
*next_id_p = next_id;
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
return 0;
11c302: 31 c0 xor %eax,%eax
}
11c304: 8d 65 f4 lea -0xc(%ebp),%esp
11c307: 5b pop %ebx
11c308: 5e pop %esi
11c309: 5f pop %edi
11c30a: c9 leave
11c30b: c3 ret
Objects_Id next_id;
if ( !information )
return NULL;
if ( !location_p )
11c30c: 85 ff test %edi,%edi
11c30e: 74 f2 je 11c302 <_Objects_Get_next+0x16>
return NULL;
if ( !next_id_p )
11c310: 8b 45 14 mov 0x14(%ebp),%eax
11c313: 85 c0 test %eax,%eax
11c315: 74 eb je 11c302 <_Objects_Get_next+0x16>
return NULL;
if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX)
11c317: 66 85 f6 test %si,%si
11c31a: 75 04 jne 11c320 <_Objects_Get_next+0x34>
next_id = information->minimum_id;
11c31c: 8b 73 08 mov 0x8(%ebx),%esi
11c31f: 90 nop
else
next_id = id;
do {
/* walked off end of list? */
if (_Objects_Get_index(next_id) > information->maximum)
11c320: 66 39 73 10 cmp %si,0x10(%ebx)
11c324: 72 22 jb 11c348 <_Objects_Get_next+0x5c>
*location_p = OBJECTS_ERROR;
goto final;
}
/* try to grab one */
object = _Objects_Get(information, next_id, location_p);
11c326: 51 push %ecx
11c327: 57 push %edi
11c328: 56 push %esi
11c329: 53 push %ebx
11c32a: e8 b1 5c ff ff call 111fe0 <_Objects_Get>
next_id++;
11c32f: 46 inc %esi
} while (*location_p != OBJECTS_LOCAL);
11c330: 83 c4 10 add $0x10,%esp
11c333: 8b 17 mov (%edi),%edx
11c335: 85 d2 test %edx,%edx
11c337: 75 e7 jne 11c320 <_Objects_Get_next+0x34>
*next_id_p = next_id;
11c339: 8b 55 14 mov 0x14(%ebp),%edx
11c33c: 89 32 mov %esi,(%edx)
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
return 0;
}
11c33e: 8d 65 f4 lea -0xc(%ebp),%esp
11c341: 5b pop %ebx
11c342: 5e pop %esi
11c343: 5f pop %edi
11c344: c9 leave
11c345: c3 ret
11c346: 66 90 xchg %ax,%ax
do {
/* walked off end of list? */
if (_Objects_Get_index(next_id) > information->maximum)
{
*location_p = OBJECTS_ERROR;
11c348: c7 07 01 00 00 00 movl $0x1,(%edi)
*next_id_p = next_id;
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
11c34e: 8b 45 14 mov 0x14(%ebp),%eax
11c351: c7 00 ff ff ff ff movl $0xffffffff,(%eax)
11c357: 31 c0 xor %eax,%eax
return 0;
11c359: eb a9 jmp 11c304 <_Objects_Get_next+0x18>
0011b844 <_Objects_Get_no_protection>:
Objects_Control *_Objects_Get_no_protection(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
11b844: 55 push %ebp
11b845: 89 e5 mov %esp,%ebp
11b847: 53 push %ebx
11b848: 8b 55 08 mov 0x8(%ebp),%edx
11b84b: 8b 5d 10 mov 0x10(%ebp),%ebx
/*
* 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;
11b84e: b8 01 00 00 00 mov $0x1,%eax
11b853: 2b 42 08 sub 0x8(%edx),%eax
11b856: 03 45 0c add 0xc(%ebp),%eax
if ( information->maximum >= index ) {
11b859: 0f b7 4a 10 movzwl 0x10(%edx),%ecx
11b85d: 39 c8 cmp %ecx,%eax
11b85f: 77 13 ja 11b874 <_Objects_Get_no_protection+0x30>
if ( (the_object = information->local_table[ index ]) != NULL ) {
11b861: 8b 52 1c mov 0x1c(%edx),%edx
11b864: 8b 04 82 mov (%edx,%eax,4),%eax
11b867: 85 c0 test %eax,%eax
11b869: 74 09 je 11b874 <_Objects_Get_no_protection+0x30><== NEVER TAKEN
*location = OBJECTS_LOCAL;
11b86b: c7 03 00 00 00 00 movl $0x0,(%ebx)
* This isn't supported or required yet for Global objects so
* if it isn't local, we don't find it.
*/
*location = OBJECTS_ERROR;
return NULL;
}
11b871: 5b pop %ebx
11b872: c9 leave
11b873: c3 ret
/*
* This isn't supported or required yet for Global objects so
* if it isn't local, we don't find it.
*/
*location = OBJECTS_ERROR;
11b874: c7 03 01 00 00 00 movl $0x1,(%ebx)
11b87a: 31 c0 xor %eax,%eax
return NULL;
}
11b87c: 5b pop %ebx
11b87d: c9 leave
11b87e: c3 ret
00112048 <_Objects_Id_to_name>:
*/
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
112048: 55 push %ebp
112049: 89 e5 mov %esp,%ebp
11204b: 83 ec 18 sub $0x18,%esp
11204e: 8b 55 08 mov 0x8(%ebp),%edx
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
112051: 85 d2 test %edx,%edx
112053: 75 08 jne 11205d <_Objects_Id_to_name+0x15>
112055: a1 38 4d 13 00 mov 0x134d38,%eax
11205a: 8b 50 08 mov 0x8(%eax),%edx
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
11205d: 89 d0 mov %edx,%eax
11205f: c1 e8 18 shr $0x18,%eax
112062: 83 e0 07 and $0x7,%eax
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
112065: 8d 48 ff lea -0x1(%eax),%ecx
112068: 83 f9 03 cmp $0x3,%ecx
11206b: 77 3b ja 1120a8 <_Objects_Id_to_name+0x60>
the_api = _Objects_Get_API( tmpId );
if ( !_Objects_Is_api_valid( the_api ) )
return OBJECTS_INVALID_ID;
if ( !_Objects_Information_table[ the_api ] )
11206d: 8b 04 85 4c 4c 13 00 mov 0x134c4c(,%eax,4),%eax
112074: 85 c0 test %eax,%eax
112076: 74 30 je 1120a8 <_Objects_Id_to_name+0x60>
return OBJECTS_INVALID_ID;
the_class = _Objects_Get_class( tmpId );
information = _Objects_Information_table[ the_api ][ the_class ];
112078: 89 d1 mov %edx,%ecx
11207a: c1 e9 1b shr $0x1b,%ecx
11207d: 8b 04 88 mov (%eax,%ecx,4),%eax
if ( !information )
112080: 85 c0 test %eax,%eax
112082: 74 24 je 1120a8 <_Objects_Id_to_name+0x60><== 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 );
112084: 51 push %ecx
112085: 8d 4d f4 lea -0xc(%ebp),%ecx
112088: 51 push %ecx
112089: 52 push %edx
11208a: 50 push %eax
11208b: e8 50 ff ff ff call 111fe0 <_Objects_Get>
if ( !the_object )
112090: 83 c4 10 add $0x10,%esp
112093: 85 c0 test %eax,%eax
112095: 74 11 je 1120a8 <_Objects_Id_to_name+0x60>
return OBJECTS_INVALID_ID;
*name = the_object->name;
112097: 8b 50 0c mov 0xc(%eax),%edx
11209a: 8b 45 0c mov 0xc(%ebp),%eax
11209d: 89 10 mov %edx,(%eax)
_Thread_Enable_dispatch();
11209f: e8 ec 07 00 00 call 112890 <_Thread_Enable_dispatch>
1120a4: 31 c0 xor %eax,%eax
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
}
1120a6: c9 leave
1120a7: c3 ret
if ( !the_object )
return OBJECTS_INVALID_ID;
*name = the_object->name;
_Thread_Enable_dispatch();
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
1120a8: b8 03 00 00 00 mov $0x3,%eax
}
1120ad: c9 leave
1120ae: c3 ret
0010d3ac <_Objects_Initialize_information>:
,
bool supports_global,
Objects_Thread_queue_Extract_callout extract
#endif
)
{
10d3ac: 55 push %ebp
10d3ad: 89 e5 mov %esp,%ebp
10d3af: 57 push %edi
10d3b0: 56 push %esi
10d3b1: 53 push %ebx
10d3b2: 83 ec 0c sub $0xc,%esp
10d3b5: 8b 45 08 mov 0x8(%ebp),%eax
10d3b8: 8b 55 0c mov 0xc(%ebp),%edx
10d3bb: 8b 5d 10 mov 0x10(%ebp),%ebx
10d3be: 8b 75 20 mov 0x20(%ebp),%esi
10d3c1: 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;
10d3c5: 89 10 mov %edx,(%eax)
information->the_class = the_class;
10d3c7: 66 89 58 04 mov %bx,0x4(%eax)
information->size = size;
10d3cb: 89 78 18 mov %edi,0x18(%eax)
information->local_table = 0;
10d3ce: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
information->inactive_per_block = 0;
10d3d5: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax)
information->object_blocks = 0;
10d3dc: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax)
information->inactive = 0;
10d3e3: 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;
10d3e9: 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;
10d3ef: 8b 3c 95 2c 73 12 00 mov 0x12732c(,%edx,4),%edi
10d3f6: 89 04 9f mov %eax,(%edi,%ebx,4)
/*
* Are we operating in limited or unlimited (e.g. auto-extend) mode.
*/
information->auto_extend =
(maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;
10d3f9: 8b 7d 14 mov 0x14(%ebp),%edi
10d3fc: 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 =
10d3ff: 89 f9 mov %edi,%ecx
10d401: 88 48 12 mov %cl,0x12(%eax)
(maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;
maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;
10d404: 8b 4d 14 mov 0x14(%ebp),%ecx
10d407: 81 e1 ff ff ff 7f and $0x7fffffff,%ecx
/*
* Unlimited and maximum of zero is illogical.
*/
if ( information->auto_extend && maximum_per_allocation == 0) {
10d40d: 85 ff test %edi,%edi
10d40f: 74 04 je 10d415 <_Objects_Initialize_information+0x69>
10d411: 85 c9 test %ecx,%ecx
10d413: 74 6a je 10d47f <_Objects_Initialize_information+0xd3>
}
/*
* The allocation unit is the maximum value
*/
information->allocation_size = maximum_per_allocation;
10d415: 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;
10d419: c7 40 1c a4 6f 12 00 movl $0x126fa4,0x1c(%eax)
/*
* Calculate minimum and maximum Id's
*/
minimum_index = (maximum_per_allocation == 0) ? 0 : 1;
information->minimum_id =
10d420: c1 e2 18 shl $0x18,%edx
10d423: 81 ca 00 00 01 00 or $0x10000,%edx
10d429: c1 e3 1b shl $0x1b,%ebx
10d42c: 09 da or %ebx,%edx
10d42e: 31 db xor %ebx,%ebx
10d430: 85 c9 test %ecx,%ecx
10d432: 0f 95 c3 setne %bl
10d435: 09 da or %ebx,%edx
10d437: 89 50 08 mov %edx,0x8(%eax)
/*
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
10d43a: f7 c6 03 00 00 00 test $0x3,%esi
10d440: 75 26 jne 10d468 <_Objects_Initialize_information+0xbc><== NEVER TAKEN
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
~(OBJECTS_NAME_ALIGNMENT-1);
information->name_length = name_length;
10d442: 66 89 70 38 mov %si,0x38(%eax)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10d446: 8d 50 24 lea 0x24(%eax),%edx
10d449: 89 50 20 mov %edx,0x20(%eax)
the_chain->permanent_null = NULL;
10d44c: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax)
the_chain->last = _Chain_Head(the_chain);
10d453: 8d 50 20 lea 0x20(%eax),%edx
10d456: 89 50 28 mov %edx,0x28(%eax)
_Chain_Initialize_empty( &information->Inactive );
/*
* Initialize objects .. if there are any
*/
if ( maximum_per_allocation ) {
10d459: 85 c9 test %ecx,%ecx
10d45b: 75 13 jne 10d470 <_Objects_Initialize_information+0xc4>
_Chain_Initialize_empty( &information->global_table[ index ] );
}
else
information->global_table = NULL;
#endif
}
10d45d: 8d 65 f4 lea -0xc(%ebp),%esp
10d460: 5b pop %ebx
10d461: 5e pop %esi
10d462: 5f pop %edi
10d463: c9 leave
10d464: c3 ret
10d465: 8d 76 00 lea 0x0(%esi),%esi
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
10d468: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
10d46b: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED
10d46e: eb d2 jmp 10d442 <_Objects_Initialize_information+0x96><== NOT EXECUTED
/*
* 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 );
10d470: 89 45 08 mov %eax,0x8(%ebp)
_Chain_Initialize_empty( &information->global_table[ index ] );
}
else
information->global_table = NULL;
#endif
}
10d473: 8d 65 f4 lea -0xc(%ebp),%esp
10d476: 5b pop %ebx
10d477: 5e pop %esi
10d478: 5f pop %edi
10d479: 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 );
10d47a: e9 b9 fa ff ff jmp 10cf38 <_Objects_Extend_information>
/*
* Unlimited and maximum of zero is illogical.
*/
if ( information->auto_extend && maximum_per_allocation == 0) {
_Internal_error_Occurred(
10d47f: 50 push %eax
10d480: 6a 14 push $0x14
10d482: 6a 01 push $0x1
10d484: 6a 00 push $0x0
10d486: e8 71 f9 ff ff call 10cdfc <_Internal_error_Occurred>
0010d49c <_Objects_Name_to_id_u32>:
Objects_Information *information,
uint32_t name,
uint32_t node,
Objects_Id *id
)
{
10d49c: 55 push %ebp
10d49d: 89 e5 mov %esp,%ebp
10d49f: 57 push %edi
10d4a0: 56 push %esi
10d4a1: 53 push %ebx
10d4a2: 8b 45 08 mov 0x8(%ebp),%eax
10d4a5: 8b 4d 0c mov 0xc(%ebp),%ecx
10d4a8: 8b 55 10 mov 0x10(%ebp),%edx
10d4ab: 8b 7d 14 mov 0x14(%ebp),%edi
Objects_Name name_for_mp;
#endif
/* ASSERT: information->is_string == false */
if ( !id )
10d4ae: 85 ff test %edi,%edi
10d4b0: 74 56 je 10d508 <_Objects_Name_to_id_u32+0x6c>
return OBJECTS_INVALID_ADDRESS;
if ( name == 0 )
10d4b2: 85 c9 test %ecx,%ecx
10d4b4: 74 08 je 10d4be <_Objects_Name_to_id_u32+0x22>
return OBJECTS_INVALID_NAME;
search_local_node = false;
if ( information->maximum != 0 &&
10d4b6: 8b 70 10 mov 0x10(%eax),%esi
10d4b9: 66 85 f6 test %si,%si
10d4bc: 75 0a jne 10d4c8 <_Objects_Name_to_id_u32+0x2c>
search_local_node = true;
if ( search_local_node ) {
name_length = information->name_length;
for ( index = 1; index <= information->maximum; index++ ) {
10d4be: b8 01 00 00 00 mov $0x1,%eax
name_for_mp.name_u32 = name;
return _Objects_MP_Global_name_search( information, name_for_mp, node, id );
#else
return OBJECTS_INVALID_NAME;
#endif
}
10d4c3: 5b pop %ebx
10d4c4: 5e pop %esi
10d4c5: 5f pop %edi
10d4c6: c9 leave
10d4c7: c3 ret
if ( name == 0 )
return OBJECTS_INVALID_NAME;
search_local_node = false;
if ( information->maximum != 0 &&
10d4c8: 85 d2 test %edx,%edx
10d4ca: 75 20 jne 10d4ec <_Objects_Name_to_id_u32+0x50>
search_local_node = true;
if ( search_local_node ) {
name_length = information->name_length;
for ( index = 1; index <= information->maximum; index++ ) {
10d4cc: 0f b7 f6 movzwl %si,%esi
10d4cf: 8b 58 1c mov 0x1c(%eax),%ebx
10d4d2: b8 01 00 00 00 mov $0x1,%eax
10d4d7: 90 nop
the_object = information->local_table[ index ];
10d4d8: 8b 14 83 mov (%ebx,%eax,4),%edx
if ( !the_object )
10d4db: 85 d2 test %edx,%edx
10d4dd: 74 05 je 10d4e4 <_Objects_Name_to_id_u32+0x48>
continue;
if ( name == the_object->name.name_u32 ) {
10d4df: 39 4a 0c cmp %ecx,0xc(%edx)
10d4e2: 74 18 je 10d4fc <_Objects_Name_to_id_u32+0x60>
search_local_node = true;
if ( search_local_node ) {
name_length = information->name_length;
for ( index = 1; index <= information->maximum; index++ ) {
10d4e4: 40 inc %eax
10d4e5: 39 c6 cmp %eax,%esi
10d4e7: 73 ef jae 10d4d8 <_Objects_Name_to_id_u32+0x3c>
10d4e9: eb d3 jmp 10d4be <_Objects_Name_to_id_u32+0x22>
10d4eb: 90 nop
if ( name == 0 )
return OBJECTS_INVALID_NAME;
search_local_node = false;
if ( information->maximum != 0 &&
10d4ec: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx
10d4f2: 74 d8 je 10d4cc <_Objects_Name_to_id_u32+0x30>
10d4f4: 4a dec %edx
10d4f5: 75 c7 jne 10d4be <_Objects_Name_to_id_u32+0x22>
10d4f7: eb d3 jmp 10d4cc <_Objects_Name_to_id_u32+0x30>
10d4f9: 8d 76 00 lea 0x0(%esi),%esi
the_object = information->local_table[ index ];
if ( !the_object )
continue;
if ( name == the_object->name.name_u32 ) {
*id = the_object->id;
10d4fc: 8b 42 08 mov 0x8(%edx),%eax
10d4ff: 89 07 mov %eax,(%edi)
10d501: 31 c0 xor %eax,%eax
name_for_mp.name_u32 = name;
return _Objects_MP_Global_name_search( information, name_for_mp, node, id );
#else
return OBJECTS_INVALID_NAME;
#endif
}
10d503: 5b pop %ebx
10d504: 5e pop %esi
10d505: 5f pop %edi
10d506: c9 leave
10d507: c3 ret
Objects_Name name_for_mp;
#endif
/* ASSERT: information->is_string == false */
if ( !id )
10d508: b8 02 00 00 00 mov $0x2,%eax
name_for_mp.name_u32 = name;
return _Objects_MP_Global_name_search( information, name_for_mp, node, id );
#else
return OBJECTS_INVALID_NAME;
#endif
}
10d50d: 5b pop %ebx
10d50e: 5e pop %esi
10d50f: 5f pop %edi
10d510: c9 leave
10d511: c3 ret
0010f2d4 <_Objects_Set_name>:
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
10f2d4: 55 push %ebp
10f2d5: 89 e5 mov %esp,%ebp
10f2d7: 53 push %ebx
10f2d8: 83 ec 0c sub $0xc,%esp
10f2db: 8b 5d 10 mov 0x10(%ebp),%ebx
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
10f2de: 8b 45 08 mov 0x8(%ebp),%eax
10f2e1: 0f b7 40 38 movzwl 0x38(%eax),%eax
10f2e5: 50 push %eax
10f2e6: 53 push %ebx
10f2e7: e8 2c 7b 00 00 call 116e18 <strnlen>
d[length] = '\0';
the_object->name.name_p = d;
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
10f2ec: 0f be 0b movsbl (%ebx),%ecx
10f2ef: c1 e1 18 shl $0x18,%ecx
10f2f2: 83 c4 10 add $0x10,%esp
10f2f5: 83 f8 01 cmp $0x1,%eax
10f2f8: 76 32 jbe 10f32c <_Objects_Set_name+0x58>
10f2fa: 0f be 53 01 movsbl 0x1(%ebx),%edx
10f2fe: c1 e2 10 shl $0x10,%edx
10f301: 09 ca or %ecx,%edx
10f303: 83 f8 02 cmp $0x2,%eax
10f306: 74 2c je 10f334 <_Objects_Set_name+0x60>
10f308: 0f be 4b 02 movsbl 0x2(%ebx),%ecx
10f30c: c1 e1 08 shl $0x8,%ecx
10f30f: 09 d1 or %edx,%ecx
10f311: 83 f8 03 cmp $0x3,%eax
10f314: 74 37 je 10f34d <_Objects_Set_name+0x79>
10f316: 0f be 43 03 movsbl 0x3(%ebx),%eax
10f31a: 09 c1 or %eax,%ecx
10f31c: 8b 55 0c mov 0xc(%ebp),%edx
10f31f: 89 4a 0c mov %ecx,0xc(%edx)
);
}
return true;
}
10f322: b0 01 mov $0x1,%al
10f324: 8b 5d fc mov -0x4(%ebp),%ebx
10f327: c9 leave
10f328: c3 ret
10f329: 8d 76 00 lea 0x0(%esi),%esi
d[length] = '\0';
the_object->name.name_p = d;
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
10f32c: 89 ca mov %ecx,%edx
10f32e: 81 ca 00 00 20 00 or $0x200000,%edx
10f334: 89 d1 mov %edx,%ecx
10f336: 80 cd 20 or $0x20,%ch
10f339: b8 20 00 00 00 mov $0x20,%eax
10f33e: 09 c1 or %eax,%ecx
10f340: 8b 55 0c mov 0xc(%ebp),%edx
10f343: 89 4a 0c mov %ecx,0xc(%edx)
);
}
return true;
}
10f346: b0 01 mov $0x1,%al
10f348: 8b 5d fc mov -0x4(%ebp),%ebx
10f34b: c9 leave
10f34c: c3 ret
d[length] = '\0';
the_object->name.name_p = d;
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
10f34d: b0 20 mov $0x20,%al
10f34f: eb c9 jmp 10f31a <_Objects_Set_name+0x46>
0010d514 <_Objects_Shrink_information>:
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
10d514: 55 push %ebp
10d515: 89 e5 mov %esp,%ebp
10d517: 57 push %edi
10d518: 56 push %esi
10d519: 53 push %ebx
10d51a: 83 ec 1c sub $0x1c,%esp
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
10d51d: 8b 45 08 mov 0x8(%ebp),%eax
10d520: 0f b7 58 08 movzwl 0x8(%eax),%ebx
block_count = (information->maximum - index_base) /
10d524: 0f b7 48 14 movzwl 0x14(%eax),%ecx
10d528: 0f b7 40 10 movzwl 0x10(%eax),%eax
10d52c: 29 d8 sub %ebx,%eax
10d52e: 31 d2 xor %edx,%edx
10d530: f7 f1 div %ecx
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
10d532: 85 c0 test %eax,%eax
10d534: 74 21 je 10d557 <_Objects_Shrink_information+0x43><== NEVER TAKEN
if ( information->inactive_per_block[ block ] ==
10d536: 8b 55 08 mov 0x8(%ebp),%edx
10d539: 8b 7a 30 mov 0x30(%edx),%edi
10d53c: 3b 0f cmp (%edi),%ecx
10d53e: 74 1f je 10d55f <_Objects_Shrink_information+0x4b><== NEVER TAKEN
information->object_blocks[ block ] = NULL;
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
return;
10d540: 31 d2 xor %edx,%edx
10d542: eb 0e jmp 10d552 <_Objects_Shrink_information+0x3e>
}
index_base += information->allocation_size;
10d544: 01 cb add %ecx,%ebx
10d546: 8d 34 95 00 00 00 00 lea 0x0(,%edx,4),%esi
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
if ( information->inactive_per_block[ block ] ==
10d54d: 3b 0c 97 cmp (%edi,%edx,4),%ecx
10d550: 74 12 je 10d564 <_Objects_Shrink_information+0x50>
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
10d552: 42 inc %edx
10d553: 39 d0 cmp %edx,%eax
10d555: 77 ed ja 10d544 <_Objects_Shrink_information+0x30>
return;
}
index_base += information->allocation_size;
}
}
10d557: 8d 65 f4 lea -0xc(%ebp),%esp
10d55a: 5b pop %ebx
10d55b: 5e pop %esi
10d55c: 5f pop %edi
10d55d: c9 leave
10d55e: c3 ret
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
if ( information->inactive_per_block[ block ] ==
10d55f: 31 f6 xor %esi,%esi
10d561: 8d 76 00 lea 0x0(%esi),%esi
information->allocation_size ) {
/*
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) information->Inactive.first;
10d564: 8b 55 08 mov 0x8(%ebp),%edx
10d567: 8b 42 20 mov 0x20(%edx),%eax
10d56a: 89 75 e4 mov %esi,-0x1c(%ebp)
10d56d: eb 07 jmp 10d576 <_Objects_Shrink_information+0x62>
10d56f: 90 nop
if ((index >= index_base) &&
(index < (index_base + information->allocation_size))) {
_Chain_Extract( &extract_me->Node );
}
}
while ( the_object );
10d570: 85 ff test %edi,%edi
10d572: 74 2c je 10d5a0 <_Objects_Shrink_information+0x8c>
10d574: 89 f8 mov %edi,%eax
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) information->Inactive.first;
do {
index = _Objects_Get_index( the_object->id );
10d576: 0f b7 50 08 movzwl 0x8(%eax),%edx
/*
* Get the next node before the node is extracted
*/
extract_me = the_object;
the_object = (Objects_Control *) the_object->Node.next;
10d57a: 8b 38 mov (%eax),%edi
if ((index >= index_base) &&
10d57c: 39 da cmp %ebx,%edx
10d57e: 72 f0 jb 10d570 <_Objects_Shrink_information+0x5c>
(index < (index_base + information->allocation_size))) {
10d580: 8b 75 08 mov 0x8(%ebp),%esi
10d583: 0f b7 4e 14 movzwl 0x14(%esi),%ecx
10d587: 8d 0c 0b lea (%ebx,%ecx,1),%ecx
10d58a: 39 ca cmp %ecx,%edx
10d58c: 73 e2 jae 10d570 <_Objects_Shrink_information+0x5c>
_Chain_Extract( &extract_me->Node );
10d58e: 83 ec 0c sub $0xc,%esp
10d591: 50 push %eax
10d592: e8 15 f0 ff ff call 10c5ac <_Chain_Extract>
10d597: 83 c4 10 add $0x10,%esp
}
}
while ( the_object );
10d59a: 85 ff test %edi,%edi
10d59c: 75 d6 jne 10d574 <_Objects_Shrink_information+0x60>
10d59e: 66 90 xchg %ax,%ax
10d5a0: 8b 75 e4 mov -0x1c(%ebp),%esi
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
10d5a3: 83 ec 0c sub $0xc,%esp
10d5a6: 8b 55 08 mov 0x8(%ebp),%edx
10d5a9: 8b 42 34 mov 0x34(%edx),%eax
10d5ac: ff 34 30 pushl (%eax,%esi,1)
10d5af: e8 20 17 00 00 call 10ecd4 <_Workspace_Free>
information->object_blocks[ block ] = NULL;
10d5b4: 8b 55 08 mov 0x8(%ebp),%edx
10d5b7: 8b 42 34 mov 0x34(%edx),%eax
10d5ba: c7 04 30 00 00 00 00 movl $0x0,(%eax,%esi,1)
information->inactive_per_block[ block ] = 0;
10d5c1: 8b 42 30 mov 0x30(%edx),%eax
10d5c4: c7 04 30 00 00 00 00 movl $0x0,(%eax,%esi,1)
information->inactive -= information->allocation_size;
10d5cb: 8b 42 14 mov 0x14(%edx),%eax
10d5ce: 66 29 42 2c sub %ax,0x2c(%edx)
return;
10d5d2: 83 c4 10 add $0x10,%esp
}
index_base += information->allocation_size;
}
}
10d5d5: 8d 65 f4 lea -0xc(%ebp),%esp
10d5d8: 5b pop %ebx
10d5d9: 5e pop %esi
10d5da: 5f pop %edi
10d5db: c9 leave
10d5dc: 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
0013147c <_Protected_heap_Get_information>:
bool _Protected_heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
13147c: 55 push %ebp
13147d: 89 e5 mov %esp,%ebp
13147f: 56 push %esi
131480: 53 push %ebx
131481: 8b 5d 08 mov 0x8(%ebp),%ebx
131484: 8b 75 0c mov 0xc(%ebp),%esi
if ( !the_heap )
131487: 85 db test %ebx,%ebx
131489: 74 35 je 1314c0 <_Protected_heap_Get_information+0x44>
return false;
if ( !the_info )
13148b: 85 f6 test %esi,%esi
13148d: 74 31 je 1314c0 <_Protected_heap_Get_information+0x44>
return false;
_RTEMS_Lock_allocator();
13148f: 83 ec 0c sub $0xc,%esp
131492: ff 35 70 2f 17 00 pushl 0x172f70
131498: e8 fb 24 fe ff call 113998 <_API_Mutex_Lock>
_Heap_Get_information( the_heap, the_info );
13149d: 5a pop %edx
13149e: 59 pop %ecx
13149f: 56 push %esi
1314a0: 53 push %ebx
1314a1: e8 ce 28 01 00 call 143d74 <_Heap_Get_information>
_RTEMS_Unlock_allocator();
1314a6: 58 pop %eax
1314a7: ff 35 70 2f 17 00 pushl 0x172f70
1314ad: e8 2e 25 fe ff call 1139e0 <_API_Mutex_Unlock>
1314b2: b0 01 mov $0x1,%al
return true;
1314b4: 83 c4 10 add $0x10,%esp
}
1314b7: 8d 65 f8 lea -0x8(%ebp),%esp
1314ba: 5b pop %ebx
1314bb: 5e pop %esi
1314bc: c9 leave
1314bd: c3 ret
1314be: 66 90 xchg %ax,%ax
_RTEMS_Lock_allocator();
_Heap_Get_information( the_heap, the_info );
_RTEMS_Unlock_allocator();
return true;
1314c0: 31 c0 xor %eax,%eax
}
1314c2: 8d 65 f8 lea -0x8(%ebp),%esp
1314c5: 5b pop %ebx
1314c6: 5e pop %esi
1314c7: c9 leave
1314c8: c3 ret
00110e48 <_Protected_heap_Walk>:
bool _Protected_heap_Walk(
Heap_Control *the_heap,
int source,
bool do_dump
)
{
110e48: 55 push %ebp
110e49: 89 e5 mov %esp,%ebp
110e4b: 56 push %esi
110e4c: 53 push %ebx
110e4d: 83 ec 10 sub $0x10,%esp
110e50: 8b 5d 08 mov 0x8(%ebp),%ebx
110e53: 8b 75 0c mov 0xc(%ebp),%esi
110e56: 8a 45 10 mov 0x10(%ebp),%al
* then it is forbidden to lock a mutex. But since we are inside
* a critical section, it should be safe to walk it unlocked.
*
* NOTE: Dispatching is also disabled during initialization.
*/
if ( !_Thread_Dispatch_disable_level ) {
110e59: 8b 15 58 dc 12 00 mov 0x12dc58,%edx
110e5f: 85 d2 test %edx,%edx
110e61: 74 19 je 110e7c <_Protected_heap_Walk+0x34>
_RTEMS_Lock_allocator();
status = _Heap_Walk( the_heap, source, do_dump );
_RTEMS_Unlock_allocator();
} else {
status = _Heap_Walk( the_heap, source, do_dump );
110e63: 0f b6 c0 movzbl %al,%eax
110e66: 89 45 10 mov %eax,0x10(%ebp)
110e69: 89 75 0c mov %esi,0xc(%ebp)
110e6c: 89 5d 08 mov %ebx,0x8(%ebp)
}
return status;
}
110e6f: 8d 65 f8 lea -0x8(%ebp),%esp
110e72: 5b pop %ebx
110e73: 5e pop %esi
110e74: c9 leave
if ( !_Thread_Dispatch_disable_level ) {
_RTEMS_Lock_allocator();
status = _Heap_Walk( the_heap, source, do_dump );
_RTEMS_Unlock_allocator();
} else {
status = _Heap_Walk( the_heap, source, do_dump );
110e75: e9 1e f2 ff ff jmp 110098 <_Heap_Walk>
110e7a: 66 90 xchg %ax,%ax
* a critical section, it should be safe to walk it unlocked.
*
* NOTE: Dispatching is also disabled during initialization.
*/
if ( !_Thread_Dispatch_disable_level ) {
_RTEMS_Lock_allocator();
110e7c: 83 ec 0c sub $0xc,%esp
110e7f: ff 35 10 dd 12 00 pushl 0x12dd10
110e85: 88 45 f4 mov %al,-0xc(%ebp)
110e88: e8 7b e4 ff ff call 10f308 <_API_Mutex_Lock>
status = _Heap_Walk( the_heap, source, do_dump );
110e8d: 83 c4 0c add $0xc,%esp
110e90: 8a 45 f4 mov -0xc(%ebp),%al
110e93: 0f b6 c0 movzbl %al,%eax
110e96: 50 push %eax
110e97: 56 push %esi
110e98: 53 push %ebx
110e99: e8 fa f1 ff ff call 110098 <_Heap_Walk>
_RTEMS_Unlock_allocator();
110e9e: 5a pop %edx
110e9f: ff 35 10 dd 12 00 pushl 0x12dd10
110ea5: 88 45 f4 mov %al,-0xc(%ebp)
110ea8: e8 a3 e4 ff ff call 10f350 <_API_Mutex_Unlock>
110ead: 83 c4 10 add $0x10,%esp
} else {
status = _Heap_Walk( the_heap, source, do_dump );
}
return status;
}
110eb0: 8a 45 f4 mov -0xc(%ebp),%al
110eb3: 8d 65 f8 lea -0x8(%ebp),%esp
110eb6: 5b pop %ebx
110eb7: 5e pop %esi
110eb8: c9 leave
110eb9: c3 ret
001113b0 <_RTEMS_tasks_Initialize_user_tasks>:
*
* Output parameters: NONE
*/
void _RTEMS_tasks_Initialize_user_tasks( void )
{
1113b0: 55 push %ebp
1113b1: 89 e5 mov %esp,%ebp
1113b3: 83 ec 08 sub $0x8,%esp
if ( _RTEMS_tasks_Initialize_user_tasks_p )
1113b6: a1 60 32 12 00 mov 0x123260,%eax
1113bb: 85 c0 test %eax,%eax
1113bd: 74 05 je 1113c4 <_RTEMS_tasks_Initialize_user_tasks+0x14>
(*_RTEMS_tasks_Initialize_user_tasks_p)();
}
1113bf: c9 leave
*/
void _RTEMS_tasks_Initialize_user_tasks( void )
{
if ( _RTEMS_tasks_Initialize_user_tasks_p )
(*_RTEMS_tasks_Initialize_user_tasks_p)();
1113c0: ff e0 jmp *%eax
1113c2: 66 90 xchg %ax,%ax
}
1113c4: c9 leave
1113c5: c3 ret
0010c0b0 <_RTEMS_tasks_Initialize_user_tasks_body>:
*
* Output parameters: NONE
*/
void _RTEMS_tasks_Initialize_user_tasks_body( void )
{
10c0b0: 55 push %ebp
10c0b1: 89 e5 mov %esp,%ebp
10c0b3: 57 push %edi
10c0b4: 56 push %esi
10c0b5: 53 push %ebx
10c0b6: 83 ec 1c sub $0x1c,%esp
rtems_initialization_tasks_table *user_tasks;
/*
* Move information into local variables
*/
user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
10c0b9: 8b 1d 0c 32 12 00 mov 0x12320c,%ebx
maximum = Configuration_RTEMS_API.number_of_initialization_tasks;
10c0bf: 8b 3d 08 32 12 00 mov 0x123208,%edi
/*
* Verify that we have a set of user tasks to iterate
*/
if ( !user_tasks )
10c0c5: 85 db test %ebx,%ebx
10c0c7: 74 46 je 10c10f <_RTEMS_tasks_Initialize_user_tasks_body+0x5f>
return;
/*
* Now iterate over the initialization tasks and create/start them.
*/
for ( index=0 ; index < maximum ; index++ ) {
10c0c9: 85 ff test %edi,%edi
10c0cb: 74 42 je 10c10f <_RTEMS_tasks_Initialize_user_tasks_body+0x5f><== NEVER TAKEN
10c0cd: 31 f6 xor %esi,%esi
10c0cf: 90 nop
return_value = rtems_task_create(
10c0d0: 83 ec 08 sub $0x8,%esp
10c0d3: 8d 45 e4 lea -0x1c(%ebp),%eax
10c0d6: 50 push %eax
10c0d7: ff 73 0c pushl 0xc(%ebx)
10c0da: ff 73 14 pushl 0x14(%ebx)
10c0dd: ff 73 04 pushl 0x4(%ebx)
10c0e0: ff 73 08 pushl 0x8(%ebx)
10c0e3: ff 33 pushl (%ebx)
10c0e5: e8 96 fd ff ff call 10be80 <rtems_task_create>
user_tasks[ index ].stack_size,
user_tasks[ index ].mode_set,
user_tasks[ index ].attribute_set,
&id
);
if ( !rtems_is_status_successful( return_value ) )
10c0ea: 83 c4 20 add $0x20,%esp
10c0ed: 85 c0 test %eax,%eax
10c0ef: 75 26 jne 10c117 <_RTEMS_tasks_Initialize_user_tasks_body+0x67>
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
return_value = rtems_task_start(
10c0f1: 51 push %ecx
10c0f2: ff 73 18 pushl 0x18(%ebx)
10c0f5: ff 73 10 pushl 0x10(%ebx)
10c0f8: ff 75 e4 pushl -0x1c(%ebp)
10c0fb: e8 24 00 00 00 call 10c124 <rtems_task_start>
id,
user_tasks[ index ].entry_point,
user_tasks[ index ].argument
);
if ( !rtems_is_status_successful( return_value ) )
10c100: 83 c4 10 add $0x10,%esp
10c103: 85 c0 test %eax,%eax
10c105: 75 10 jne 10c117 <_RTEMS_tasks_Initialize_user_tasks_body+0x67>
return;
/*
* Now iterate over the initialization tasks and create/start them.
*/
for ( index=0 ; index < maximum ; index++ ) {
10c107: 46 inc %esi
10c108: 83 c3 1c add $0x1c,%ebx
10c10b: 39 f7 cmp %esi,%edi
10c10d: 77 c1 ja 10c0d0 <_RTEMS_tasks_Initialize_user_tasks_body+0x20><== NEVER TAKEN
user_tasks[ index ].argument
);
if ( !rtems_is_status_successful( return_value ) )
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
}
}
10c10f: 8d 65 f4 lea -0xc(%ebp),%esp
10c112: 5b pop %ebx
10c113: 5e pop %esi
10c114: 5f pop %edi
10c115: c9 leave
10c116: c3 ret
id,
user_tasks[ index ].entry_point,
user_tasks[ index ].argument
);
if ( !rtems_is_status_successful( return_value ) )
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
10c117: 52 push %edx
10c118: 50 push %eax
10c119: 6a 01 push $0x1
10c11b: 6a 01 push $0x1
10c11d: e8 da 0c 00 00 call 10cdfc <_Internal_error_Occurred>
0011140c <_RTEMS_tasks_Post_switch_extension>:
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
11140c: 55 push %ebp
11140d: 89 e5 mov %esp,%ebp
11140f: 57 push %edi
111410: 56 push %esi
111411: 53 push %ebx
111412: 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 ];
111415: 8b 45 08 mov 0x8(%ebp),%eax
111418: 8b 98 f0 00 00 00 mov 0xf0(%eax),%ebx
if ( !api )
11141e: 85 db test %ebx,%ebx
111420: 74 45 je 111467 <_RTEMS_tasks_Post_switch_extension+0x5b><== NEVER TAKEN
* Signal Processing
*/
asr = &api->Signal;
_ISR_Disable( level );
111422: 9c pushf
111423: fa cli
111424: 58 pop %eax
signal_set = asr->signals_posted;
111425: 8b 73 14 mov 0x14(%ebx),%esi
asr->signals_posted = 0;
111428: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx)
_ISR_Enable( level );
11142f: 50 push %eax
111430: 9d popf
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
111431: 85 f6 test %esi,%esi
111433: 74 32 je 111467 <_RTEMS_tasks_Post_switch_extension+0x5b><== NEVER TAKEN
return;
asr->nest_level += 1;
111435: ff 43 1c incl 0x1c(%ebx)
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
111438: 50 push %eax
111439: 8d 7d e4 lea -0x1c(%ebp),%edi
11143c: 57 push %edi
11143d: 68 ff ff 00 00 push $0xffff
111442: ff 73 10 pushl 0x10(%ebx)
111445: e8 2a 25 00 00 call 113974 <rtems_task_mode>
(*asr->handler)( signal_set );
11144a: 89 34 24 mov %esi,(%esp)
11144d: ff 53 0c call *0xc(%ebx)
asr->nest_level -= 1;
111450: ff 4b 1c decl 0x1c(%ebx)
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
111453: 83 c4 0c add $0xc,%esp
111456: 57 push %edi
111457: 68 ff ff 00 00 push $0xffff
11145c: ff 75 e4 pushl -0x1c(%ebp)
11145f: e8 10 25 00 00 call 113974 <rtems_task_mode>
111464: 83 c4 10 add $0x10,%esp
}
111467: 8d 65 f4 lea -0xc(%ebp),%esp
11146a: 5b pop %ebx
11146b: 5e pop %esi
11146c: 5f pop %edi
11146d: c9 leave
11146e: c3 ret
00111368 <_RTEMS_tasks_Switch_extension>:
void _RTEMS_tasks_Switch_extension(
Thread_Control *executing,
Thread_Control *heir
)
{
111368: 55 push %ebp
111369: 89 e5 mov %esp,%ebp
/*
* Per Task Variables
*/
tvp = executing->task_variables;
11136b: 8b 45 08 mov 0x8(%ebp),%eax
11136e: 8b 80 00 01 00 00 mov 0x100(%eax),%eax
while (tvp) {
111374: 85 c0 test %eax,%eax
111376: 74 13 je 11138b <_RTEMS_tasks_Switch_extension+0x23>
tvp->tval = *tvp->ptr;
111378: 8b 50 04 mov 0x4(%eax),%edx
11137b: 8b 0a mov (%edx),%ecx
11137d: 89 48 0c mov %ecx,0xc(%eax)
*tvp->ptr = tvp->gval;
111380: 8b 48 08 mov 0x8(%eax),%ecx
111383: 89 0a mov %ecx,(%edx)
tvp = (rtems_task_variable_t *)tvp->next;
111385: 8b 00 mov (%eax),%eax
/*
* Per Task Variables
*/
tvp = executing->task_variables;
while (tvp) {
111387: 85 c0 test %eax,%eax
111389: 75 ed jne 111378 <_RTEMS_tasks_Switch_extension+0x10><== NEVER TAKEN
tvp->tval = *tvp->ptr;
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
11138b: 8b 45 0c mov 0xc(%ebp),%eax
11138e: 8b 80 00 01 00 00 mov 0x100(%eax),%eax
while (tvp) {
111394: 85 c0 test %eax,%eax
111396: 74 13 je 1113ab <_RTEMS_tasks_Switch_extension+0x43>
tvp->gval = *tvp->ptr;
111398: 8b 50 04 mov 0x4(%eax),%edx
11139b: 8b 0a mov (%edx),%ecx
11139d: 89 48 08 mov %ecx,0x8(%eax)
*tvp->ptr = tvp->tval;
1113a0: 8b 48 0c mov 0xc(%eax),%ecx
1113a3: 89 0a mov %ecx,(%edx)
tvp = (rtems_task_variable_t *)tvp->next;
1113a5: 8b 00 mov (%eax),%eax
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
while (tvp) {
1113a7: 85 c0 test %eax,%eax
1113a9: 75 ed jne 111398 <_RTEMS_tasks_Switch_extension+0x30><== NEVER TAKEN
tvp->gval = *tvp->ptr;
*tvp->ptr = tvp->tval;
tvp = (rtems_task_variable_t *)tvp->next;
}
}
1113ab: c9 leave
1113ac: c3 ret
0014379c <_Rate_monotonic_Initiate_statistics>:
}
void _Rate_monotonic_Initiate_statistics(
Rate_monotonic_Control *the_period
)
{
14379c: 55 push %ebp
14379d: 89 e5 mov %esp,%ebp
14379f: 57 push %edi
1437a0: 56 push %esi
1437a1: 53 push %ebx
1437a2: 83 ec 28 sub $0x28,%esp
1437a5: 8b 5d 08 mov 0x8(%ebp),%ebx
Thread_Control *owning_thread = the_period->owner;
1437a8: 8b 73 40 mov 0x40(%ebx),%esi
* If using nanosecond statistics, we need to obtain the uptime.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
Timestamp_Control uptime;
_TOD_Get_uptime( &uptime );
1437ab: 8d 7d e0 lea -0x20(%ebp),%edi
1437ae: 57 push %edi
1437af: e8 e8 d6 fe ff call 130e9c <_TOD_Get_uptime>
/*
* Set the starting point and the CPU time used for the statistics.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
the_period->time_period_initiated = uptime;
1437b4: 8b 45 e0 mov -0x20(%ebp),%eax
1437b7: 8b 55 e4 mov -0x1c(%ebp),%edx
1437ba: 89 43 4c mov %eax,0x4c(%ebx)
1437bd: 89 53 50 mov %edx,0x50(%ebx)
#else
the_period->time_period_initiated = _Watchdog_Ticks_since_boot;
#endif
the_period->cpu_usage_period_initiated = owning_thread->cpu_time_used;
1437c0: 8b 86 84 00 00 00 mov 0x84(%esi),%eax
1437c6: 8b 96 88 00 00 00 mov 0x88(%esi),%edx
1437cc: 89 43 44 mov %eax,0x44(%ebx)
1437cf: 89 53 48 mov %edx,0x48(%ebx)
* routine is invoked from rtems_rate_monotonic_period, the owner will
* be the executing thread. When this routine is invoked from
* _Rate_monotonic_Timeout, it will not.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
if (owning_thread == _Thread_Executing) {
1437d2: 83 c4 10 add $0x10,%esp
1437d5: 3b 35 78 2f 17 00 cmp 0x172f78,%esi
1437db: 74 0b je 1437e8 <_Rate_monotonic_Initiate_statistics+0x4c>
);
_Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran );
}
#endif
}
1437dd: 8d 65 f4 lea -0xc(%ebp),%esp
1437e0: 5b pop %ebx
1437e1: 5e pop %esi
1437e2: 5f pop %edi
1437e3: c9 leave
1437e4: c3 ret
1437e5: 8d 76 00 lea 0x0(%esi),%esi
/*
* Adjust the CPU time used to account for the time since last
* context switch.
*/
_Timespec_Subtract(
1437e8: 51 push %ecx
1437e9: 8d 75 d8 lea -0x28(%ebp),%esi
1437ec: 56 push %esi
1437ed: 57 push %edi
1437ee: 68 80 2f 17 00 push $0x172f80
1437f3: e8 80 28 fd ff call 116078 <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch, &uptime, &ran
);
_Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran );
1437f8: 58 pop %eax
1437f9: 5a pop %edx
1437fa: 56 push %esi
1437fb: 83 c3 44 add $0x44,%ebx
1437fe: 53 push %ebx
1437ff: e8 38 28 fd ff call 11603c <_Timespec_Add_to>
143804: 83 c4 10 add $0x10,%esp
}
#endif
}
143807: 8d 65 f4 lea -0xc(%ebp),%esp
14380a: 5b pop %ebx
14380b: 5e pop %esi
14380c: 5f pop %edi
14380d: c9 leave
14380e: 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
00143b48 <_Rate_monotonic_Timeout>:
void _Rate_monotonic_Timeout(
Objects_Id id,
void *ignored
)
{
143b48: 55 push %ebp
143b49: 89 e5 mov %esp,%ebp
143b4b: 83 ec 2c sub $0x2c,%esp
143b4e: 8d 45 f4 lea -0xc(%ebp),%eax
143b51: 50 push %eax
143b52: ff 75 08 pushl 0x8(%ebp)
143b55: 68 c0 33 17 00 push $0x1733c0
143b5a: e8 c5 0f fd ff call 114b24 <_Objects_Get>
/*
* 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 ) {
143b5f: 83 c4 10 add $0x10,%esp
143b62: 8b 55 f4 mov -0xc(%ebp),%edx
143b65: 85 d2 test %edx,%edx
143b67: 75 29 jne 143b92 <_Rate_monotonic_Timeout+0x4a><== NEVER TAKEN
case OBJECTS_LOCAL:
the_thread = the_period->owner;
143b69: 8b 50 40 mov 0x40(%eax),%edx
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
143b6c: f6 42 11 40 testb $0x40,0x11(%edx)
143b70: 74 08 je 143b7a <_Rate_monotonic_Timeout+0x32>
the_thread->Wait.id == the_period->Object.id ) {
143b72: 8b 4a 20 mov 0x20(%edx),%ecx
143b75: 3b 48 08 cmp 0x8(%eax),%ecx
143b78: 74 4e je 143bc8 <_Rate_monotonic_Timeout+0x80>
_Thread_Unblock( the_thread );
_Rate_monotonic_Initiate_statistics( the_period );
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
143b7a: 83 78 38 01 cmpl $0x1,0x38(%eax)
143b7e: 74 14 je 143b94 <_Rate_monotonic_Timeout+0x4c>
_Rate_monotonic_Initiate_statistics( the_period );
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else
the_period->state = RATE_MONOTONIC_EXPIRED;
143b80: c7 40 38 04 00 00 00 movl $0x4,0x38(%eax)
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
143b87: a1 b8 2e 17 00 mov 0x172eb8,%eax
143b8c: 48 dec %eax
143b8d: a3 b8 2e 17 00 mov %eax,0x172eb8
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
143b92: c9 leave
143b93: c3 ret
_Rate_monotonic_Initiate_statistics( the_period );
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;
143b94: c7 40 38 03 00 00 00 movl $0x3,0x38(%eax)
_Rate_monotonic_Initiate_statistics( the_period );
143b9b: 83 ec 0c sub $0xc,%esp
143b9e: 50 push %eax
143b9f: 89 45 e4 mov %eax,-0x1c(%ebp)
143ba2: e8 f5 fb ff ff call 14379c <_Rate_monotonic_Initiate_statistics>
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
143ba7: 8b 45 e4 mov -0x1c(%ebp),%eax
143baa: 8b 50 3c mov 0x3c(%eax),%edx
143bad: 89 50 1c mov %edx,0x1c(%eax)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
143bb0: 5a pop %edx
143bb1: 59 pop %ecx
143bb2: 83 c0 10 add $0x10,%eax
143bb5: 50 push %eax
143bb6: 68 98 2f 17 00 push $0x172f98
143bbb: e8 88 27 fd ff call 116348 <_Watchdog_Insert>
143bc0: 83 c4 10 add $0x10,%esp
143bc3: eb c2 jmp 143b87 <_Rate_monotonic_Timeout+0x3f>
143bc5: 8d 76 00 lea 0x0(%esi),%esi
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
143bc8: 83 ec 08 sub $0x8,%esp
143bcb: 68 f8 ff 03 10 push $0x1003fff8
143bd0: 52 push %edx
143bd1: 89 45 e4 mov %eax,-0x1c(%ebp)
143bd4: e8 9b 14 fd ff call 115074 <_Thread_Clear_state>
the_thread = the_period->owner;
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
the_thread->Wait.id == the_period->Object.id ) {
_Thread_Unblock( the_thread );
_Rate_monotonic_Initiate_statistics( the_period );
143bd9: 8b 45 e4 mov -0x1c(%ebp),%eax
143bdc: 89 04 24 mov %eax,(%esp)
143bdf: eb c1 jmp 143ba2 <_Rate_monotonic_Timeout+0x5a>
001438a8 <_Rate_monotonic_Update_statistics>:
}
void _Rate_monotonic_Update_statistics(
Rate_monotonic_Control *the_period
)
{
1438a8: 55 push %ebp
1438a9: 89 e5 mov %esp,%ebp
1438ab: 57 push %edi
1438ac: 56 push %esi
1438ad: 53 push %ebx
1438ae: 83 ec 1c sub $0x1c,%esp
1438b1: 8b 5d 08 mov 0x8(%ebp),%ebx
/*
* Update the counts.
*/
stats = &the_period->Statistics;
stats->count++;
1438b4: ff 43 54 incl 0x54(%ebx)
if ( the_period->state == RATE_MONOTONIC_EXPIRED )
1438b7: 83 7b 38 04 cmpl $0x4,0x38(%ebx)
1438bb: 0f 84 bf 00 00 00 je 143980 <_Rate_monotonic_Update_statistics+0xd8>
/*
* Grab status for time statistics.
*/
valid_status =
_Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
1438c1: 52 push %edx
1438c2: 8d 7d e0 lea -0x20(%ebp),%edi
1438c5: 57 push %edi
1438c6: 8d 75 d8 lea -0x28(%ebp),%esi
1438c9: 56 push %esi
1438ca: 53 push %ebx
1438cb: e8 40 ff ff ff call 143810 <_Rate_monotonic_Get_status>
if (!valid_status)
1438d0: 83 c4 10 add $0x10,%esp
1438d3: 84 c0 test %al,%al
1438d5: 75 09 jne 1438e0 <_Rate_monotonic_Update_statistics+0x38>
stats->min_wall_time = since_last_period;
if ( since_last_period > stats->max_wall_time )
stats->max_wall_time = since_last_period;
#endif
}
1438d7: 8d 65 f4 lea -0xc(%ebp),%esp
1438da: 5b pop %ebx
1438db: 5e pop %esi
1438dc: 5f pop %edi
1438dd: c9 leave
1438de: c3 ret
1438df: 90 nop
/*
* Update CPU time
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Add_to( &stats->total_cpu_time, &executed );
1438e0: 83 ec 08 sub $0x8,%esp
1438e3: 57 push %edi
1438e4: 8d 43 6c lea 0x6c(%ebx),%eax
1438e7: 50 push %eax
1438e8: e8 4f 27 fd ff call 11603c <_Timespec_Add_to>
if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )
1438ed: 59 pop %ecx
1438ee: 58 pop %eax
1438ef: 8d 43 5c lea 0x5c(%ebx),%eax
1438f2: 50 push %eax
1438f3: 57 push %edi
1438f4: e8 53 06 00 00 call 143f4c <_Timespec_Less_than>
1438f9: 83 c4 10 add $0x10,%esp
1438fc: 84 c0 test %al,%al
1438fe: 74 0c je 14390c <_Rate_monotonic_Update_statistics+0x64>
stats->min_cpu_time = executed;
143900: 8b 45 e0 mov -0x20(%ebp),%eax
143903: 8b 55 e4 mov -0x1c(%ebp),%edx
143906: 89 43 5c mov %eax,0x5c(%ebx)
143909: 89 53 60 mov %edx,0x60(%ebx)
if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) )
14390c: 83 ec 08 sub $0x8,%esp
14390f: 8d 43 64 lea 0x64(%ebx),%eax
143912: 50 push %eax
143913: 57 push %edi
143914: e8 0f 06 00 00 call 143f28 <_Timespec_Greater_than>
143919: 83 c4 10 add $0x10,%esp
14391c: 84 c0 test %al,%al
14391e: 74 0c je 14392c <_Rate_monotonic_Update_statistics+0x84>
stats->max_cpu_time = executed;
143920: 8b 45 e0 mov -0x20(%ebp),%eax
143923: 8b 55 e4 mov -0x1c(%ebp),%edx
143926: 89 43 64 mov %eax,0x64(%ebx)
143929: 89 53 68 mov %edx,0x68(%ebx)
/*
* Update Wall time
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Add_to( &stats->total_wall_time, &since_last_period );
14392c: 83 ec 08 sub $0x8,%esp
14392f: 56 push %esi
143930: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax
143936: 50 push %eax
143937: e8 00 27 fd ff call 11603c <_Timespec_Add_to>
if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
14393c: 58 pop %eax
14393d: 5a pop %edx
14393e: 8d 43 74 lea 0x74(%ebx),%eax
143941: 50 push %eax
143942: 56 push %esi
143943: e8 04 06 00 00 call 143f4c <_Timespec_Less_than>
143948: 83 c4 10 add $0x10,%esp
14394b: 84 c0 test %al,%al
14394d: 75 39 jne 143988 <_Rate_monotonic_Update_statistics+0xe0>
stats->min_wall_time = since_last_period;
if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
14394f: 83 ec 08 sub $0x8,%esp
143952: 8d 43 7c lea 0x7c(%ebx),%eax
143955: 50 push %eax
143956: 56 push %esi
143957: e8 cc 05 00 00 call 143f28 <_Timespec_Greater_than>
14395c: 83 c4 10 add $0x10,%esp
14395f: 84 c0 test %al,%al
143961: 0f 84 70 ff ff ff je 1438d7 <_Rate_monotonic_Update_statistics+0x2f>
stats->max_wall_time = since_last_period;
143967: 8b 45 d8 mov -0x28(%ebp),%eax
14396a: 8b 55 dc mov -0x24(%ebp),%edx
14396d: 89 43 7c mov %eax,0x7c(%ebx)
143970: 89 93 80 00 00 00 mov %edx,0x80(%ebx)
stats->min_wall_time = since_last_period;
if ( since_last_period > stats->max_wall_time )
stats->max_wall_time = since_last_period;
#endif
}
143976: 8d 65 f4 lea -0xc(%ebp),%esp
143979: 5b pop %ebx
14397a: 5e pop %esi
14397b: 5f pop %edi
14397c: c9 leave
14397d: c3 ret
14397e: 66 90 xchg %ax,%ax
*/
stats = &the_period->Statistics;
stats->count++;
if ( the_period->state == RATE_MONOTONIC_EXPIRED )
stats->missed_count++;
143980: ff 43 58 incl 0x58(%ebx)
143983: e9 39 ff ff ff jmp 1438c1 <_Rate_monotonic_Update_statistics+0x19>
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Add_to( &stats->total_wall_time, &since_last_period );
if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
stats->min_wall_time = since_last_period;
143988: 8b 45 d8 mov -0x28(%ebp),%eax
14398b: 8b 55 dc mov -0x24(%ebp),%edx
14398e: 89 43 74 mov %eax,0x74(%ebx)
143991: 89 53 78 mov %edx,0x78(%ebx)
143994: eb b9 jmp 14394f <_Rate_monotonic_Update_statistics+0xa7>
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
0010dfe8 <_TOD_Set>:
*/
void _TOD_Set(
const struct timespec *time
)
{
10dfe8: 55 push %ebp
10dfe9: 89 e5 mov %esp,%ebp
10dfeb: 53 push %ebx
10dfec: 83 ec 04 sub $0x4,%esp
10dfef: 8b 5d 08 mov 0x8(%ebp),%ebx
10dff2: a1 38 b9 12 00 mov 0x12b938,%eax
10dff7: 40 inc %eax
10dff8: a3 38 b9 12 00 mov %eax,0x12b938
long seconds;
_Thread_Disable_dispatch();
_TOD_Deactivate();
seconds = _TOD_Seconds_since_epoch();
10dffd: a1 cc b9 12 00 mov 0x12b9cc,%eax
if ( time->tv_sec < seconds )
10e002: 8b 13 mov (%ebx),%edx
10e004: 39 d0 cmp %edx,%eax
10e006: 7f 34 jg 10e03c <_TOD_Set+0x54>
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
_Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units );
10e008: 51 push %ecx
10e009: 29 c2 sub %eax,%edx
10e00b: 52 push %edx
10e00c: 6a 00 push $0x0
10e00e: 68 0c ba 12 00 push $0x12ba0c
10e013: e8 4c 24 00 00 call 110464 <_Watchdog_Adjust>
10e018: 83 c4 10 add $0x10,%esp
_Watchdog_Adjust_seconds( WATCHDOG_BACKWARD, seconds - time->tv_sec );
else
_Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - seconds );
/* POSIX format TOD (timespec) */
_Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec );
10e01b: 8b 03 mov (%ebx),%eax
10e01d: a3 cc b9 12 00 mov %eax,0x12b9cc
10e022: 8b 43 04 mov 0x4(%ebx),%eax
10e025: a3 d0 b9 12 00 mov %eax,0x12b9d0
_TOD_Is_set = true;
10e02a: c6 05 4c b9 12 00 01 movb $0x1,0x12b94c
_TOD_Activate();
_Thread_Enable_dispatch();
}
10e031: 8b 5d fc mov -0x4(%ebp),%ebx
10e034: c9 leave
_Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec );
_TOD_Is_set = true;
_TOD_Activate();
_Thread_Enable_dispatch();
10e035: e9 7e 12 00 00 jmp 10f2b8 <_Thread_Enable_dispatch>
10e03a: 66 90 xchg %ax,%ax
10e03c: 51 push %ecx
10e03d: 29 d0 sub %edx,%eax
10e03f: 50 push %eax
10e040: 6a 01 push $0x1
10e042: 68 0c ba 12 00 push $0x12ba0c
10e047: e8 18 24 00 00 call 110464 <_Watchdog_Adjust>
10e04c: 83 c4 10 add $0x10,%esp
10e04f: eb ca jmp 10e01b <_TOD_Set+0x33>
0010ca54 <_TOD_Tickle_ticks>:
*
* Output parameters: NONE
*/
void _TOD_Tickle_ticks( void )
{
10ca54: 55 push %ebp
10ca55: 89 e5 mov %esp,%ebp
10ca57: 53 push %ebx
10ca58: 83 ec 1c sub $0x1c,%esp
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
10ca5b: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
10ca62: a1 2c 32 12 00 mov 0x12322c,%eax
10ca67: 8d 04 80 lea (%eax,%eax,4),%eax
10ca6a: 8d 04 80 lea (%eax,%eax,4),%eax
10ca6d: 8d 04 80 lea (%eax,%eax,4),%eax
10ca70: c1 e0 03 shl $0x3,%eax
10ca73: 89 45 f4 mov %eax,-0xc(%ebp)
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
10ca76: a1 c4 74 12 00 mov 0x1274c4,%eax
10ca7b: 40 inc %eax
10ca7c: a3 c4 74 12 00 mov %eax,0x1274c4
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
10ca81: 8d 5d f0 lea -0x10(%ebp),%ebx
10ca84: 53 push %ebx
10ca85: 68 d8 73 12 00 push $0x1273d8
10ca8a: e8 f1 1c 00 00 call 10e780 <_Timespec_Add_to>
/* we do not care how much the uptime changed */
/* Update the timespec format TOD */
seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );
10ca8f: 58 pop %eax
10ca90: 5a pop %edx
10ca91: 53 push %ebx
10ca92: 68 ec 73 12 00 push $0x1273ec
10ca97: e8 e4 1c 00 00 call 10e780 <_Timespec_Add_to>
10ca9c: 89 c3 mov %eax,%ebx
while ( seconds ) {
10ca9e: 83 c4 10 add $0x10,%esp
10caa1: 85 c0 test %eax,%eax
10caa3: 74 16 je 10cabb <_TOD_Tickle_ticks+0x67>
10caa5: 8d 76 00 lea 0x0(%esi),%esi
*/
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void )
{
_Watchdog_Tickle( &_Watchdog_Seconds_chain );
10caa8: 83 ec 0c sub $0xc,%esp
10caab: 68 2c 74 12 00 push $0x12742c
10cab0: e8 6b 21 00 00 call 10ec20 <_Watchdog_Tickle>
10cab5: 83 c4 10 add $0x10,%esp
10cab8: 4b dec %ebx
10cab9: 75 ed jne 10caa8 <_TOD_Tickle_ticks+0x54><== NEVER TAKEN
_Watchdog_Tickle_seconds();
seconds--;
}
}
10cabb: 8b 5d fc mov -0x4(%ebp),%ebx
10cabe: c9 leave
10cabf: c3 ret
0010c804 <_TOD_To_seconds>:
*/
uint32_t _TOD_To_seconds(
const rtems_time_of_day *the_tod
)
{
10c804: 55 push %ebp
10c805: 89 e5 mov %esp,%ebp
10c807: 56 push %esi
10c808: 53 push %ebx
10c809: 8b 55 08 mov 0x8(%ebp),%edx
uint32_t time;
uint32_t year_mod_4;
time = the_tod->day - 1;
10c80c: 8b 72 08 mov 0x8(%edx),%esi
10c80f: 4e dec %esi
year_mod_4 = the_tod->year & 3;
10c810: 8b 02 mov (%edx),%eax
if ( year_mod_4 == 0 )
10c812: 89 c3 mov %eax,%ebx
10c814: 83 e3 03 and $0x3,%ebx
10c817: 74 67 je 10c880 <_TOD_To_seconds+0x7c>
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
else
time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
10c819: 8b 4a 04 mov 0x4(%edx),%ecx
10c81c: 0f b7 8c 09 00 43 12 movzwl 0x124300(%ecx,%ecx,1),%ecx
10c823: 00
10c824: 8d 34 31 lea (%ecx,%esi,1),%esi
time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) *
10c827: 0f b7 8c 1b 34 43 12 movzwl 0x124334(%ebx,%ebx,1),%ecx
10c82e: 00
10c82f: 2d c4 07 00 00 sub $0x7c4,%eax
10c834: c1 e8 02 shr $0x2,%eax
10c837: 8d 1c c0 lea (%eax,%eax,8),%ebx
10c83a: 8d 1c d8 lea (%eax,%ebx,8),%ebx
10c83d: 8d 1c 9b lea (%ebx,%ebx,4),%ebx
10c840: 8d 04 98 lea (%eax,%ebx,4),%eax
10c843: 01 c1 add %eax,%ecx
( (TOD_DAYS_PER_YEAR * 4) + 1);
time += _TOD_Days_since_last_leap_year[ year_mod_4 ];
10c845: 01 f1 add %esi,%ecx
time *= TOD_SECONDS_PER_DAY;
10c847: 8d 04 89 lea (%ecx,%ecx,4),%eax
10c84a: 8d 04 81 lea (%ecx,%eax,4),%eax
10c84d: 8d 04 c1 lea (%ecx,%eax,8),%eax
10c850: c1 e0 02 shl $0x2,%eax
10c853: 29 c8 sub %ecx,%eax
10c855: c1 e0 07 shl $0x7,%eax
time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute)
10c858: 8b 5a 14 mov 0x14(%edx),%ebx
* TOD_SECONDS_PER_MINUTE;
time += the_tod->second;
10c85b: 8b 4a 0c mov 0xc(%edx),%ecx
10c85e: 8d 0c 49 lea (%ecx,%ecx,2),%ecx
10c861: 8d 0c 89 lea (%ecx,%ecx,4),%ecx
10c864: c1 e1 02 shl $0x2,%ecx
10c867: 03 4a 10 add 0x10(%edx),%ecx
10c86a: 8d 14 49 lea (%ecx,%ecx,2),%edx
10c86d: 8d 14 92 lea (%edx,%edx,4),%edx
10c870: 8d 94 93 00 e5 da 21 lea 0x21dae500(%ebx,%edx,4),%edx
10c877: 8d 04 02 lea (%edx,%eax,1),%eax
time += TOD_SECONDS_1970_THROUGH_1988;
return( time );
}
10c87a: 5b pop %ebx
10c87b: 5e pop %esi
10c87c: c9 leave
10c87d: c3 ret
10c87e: 66 90 xchg %ax,%ax
time = the_tod->day - 1;
year_mod_4 = the_tod->year & 3;
if ( year_mod_4 == 0 )
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
10c880: 8b 4a 04 mov 0x4(%edx),%ecx
10c883: 0f b7 8c 09 1a 43 12 movzwl 0x12431a(%ecx,%ecx,1),%ecx
10c88a: 00
10c88b: 8d 34 31 lea (%ecx,%esi,1),%esi
10c88e: eb 97 jmp 10c827 <_TOD_To_seconds+0x23>
0010c890 <_TOD_Validate>:
*/
bool _TOD_Validate(
const rtems_time_of_day *the_tod
)
{
10c890: 55 push %ebp
10c891: 89 e5 mov %esp,%ebp
10c893: 53 push %ebx
10c894: 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();
10c897: 8b 1d ac 73 12 00 mov 0x1273ac,%ebx
if ((!the_tod) ||
10c89d: 85 c9 test %ecx,%ecx
10c89f: 74 53 je 10c8f4 <_TOD_Validate+0x64> <== NEVER TAKEN
10c8a1: b8 40 42 0f 00 mov $0xf4240,%eax
10c8a6: 31 d2 xor %edx,%edx
10c8a8: f7 f3 div %ebx
(the_tod->ticks >= ticks_per_second) ||
10c8aa: 3b 41 18 cmp 0x18(%ecx),%eax
10c8ad: 76 45 jbe 10c8f4 <_TOD_Validate+0x64>
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
10c8af: 83 79 14 3b cmpl $0x3b,0x14(%ecx)
10c8b3: 77 3f ja 10c8f4 <_TOD_Validate+0x64>
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
10c8b5: 83 79 10 3b cmpl $0x3b,0x10(%ecx)
10c8b9: 77 39 ja 10c8f4 <_TOD_Validate+0x64>
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
10c8bb: 83 79 0c 17 cmpl $0x17,0xc(%ecx)
10c8bf: 77 33 ja 10c8f4 <_TOD_Validate+0x64>
(the_tod->month == 0) ||
10c8c1: 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) ||
10c8c4: 85 c0 test %eax,%eax
10c8c6: 74 2c je 10c8f4 <_TOD_Validate+0x64> <== NEVER TAKEN
10c8c8: 83 f8 0c cmp $0xc,%eax
10c8cb: 77 27 ja 10c8f4 <_TOD_Validate+0x64>
(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) ||
10c8cd: 8b 11 mov (%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) ||
10c8cf: 81 fa c3 07 00 00 cmp $0x7c3,%edx
10c8d5: 76 1d jbe 10c8f4 <_TOD_Validate+0x64>
(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) )
10c8d7: 8b 49 08 mov 0x8(%ecx),%ecx
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) ||
10c8da: 85 c9 test %ecx,%ecx
10c8dc: 74 16 je 10c8f4 <_TOD_Validate+0x64> <== 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 )
10c8de: 83 e2 03 and $0x3,%edx
10c8e1: 75 16 jne 10c8f9 <_TOD_Validate+0x69>
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
10c8e3: 8b 04 85 74 43 12 00 mov 0x124374(,%eax,4),%eax
* false - if the the_tod is invalid
*
* NOTE: This routine only works for leap-years through 2099.
*/
bool _TOD_Validate(
10c8ea: 39 c8 cmp %ecx,%eax
10c8ec: 0f 93 c0 setae %al
10c8ef: eb 05 jmp 10c8f6 <_TOD_Validate+0x66>
10c8f1: 8d 76 00 lea 0x0(%esi),%esi
10c8f4: 31 c0 xor %eax,%eax
if ( the_tod->day > days_in_month )
return false;
return true;
}
10c8f6: 5b pop %ebx
10c8f7: c9 leave
10c8f8: c3 ret
return false;
if ( (the_tod->year % 4) == 0 )
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
else
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
10c8f9: 8b 04 85 40 43 12 00 mov 0x124340(,%eax,4),%eax
10c900: eb e8 jmp 10c8ea <_TOD_Validate+0x5a>
0010d6a4 <_Thread_Change_priority>:
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
10d6a4: 55 push %ebp
10d6a5: 89 e5 mov %esp,%ebp
10d6a7: 57 push %edi
10d6a8: 56 push %esi
10d6a9: 53 push %ebx
10d6aa: 83 ec 28 sub $0x28,%esp
10d6ad: 8b 5d 08 mov 0x8(%ebp),%ebx
10d6b0: 8b 75 0c mov 0xc(%ebp),%esi
10d6b3: 8a 45 10 mov 0x10(%ebp),%al
10d6b6: 88 45 e7 mov %al,-0x19(%ebp)
*/
/*
* Save original state
*/
original_state = the_thread->current_state;
10d6b9: 8b 7b 10 mov 0x10(%ebx),%edi
/*
* Set a transient state for the thread so it is pulled off the Ready chains.
* This will prevent it from being scheduled no matter what happens in an
* ISR.
*/
_Thread_Set_transient( the_thread );
10d6bc: 53 push %ebx
10d6bd: e8 56 0e 00 00 call 10e518 <_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 )
10d6c2: 83 c4 10 add $0x10,%esp
10d6c5: 39 73 14 cmp %esi,0x14(%ebx)
10d6c8: 74 0d je 10d6d7 <_Thread_Change_priority+0x33>
_Thread_Set_priority( the_thread, new_priority );
10d6ca: 83 ec 08 sub $0x8,%esp
10d6cd: 56 push %esi
10d6ce: 53 push %ebx
10d6cf: e8 fc 0c 00 00 call 10e3d0 <_Thread_Set_priority>
10d6d4: 83 c4 10 add $0x10,%esp
_ISR_Disable( level );
10d6d7: 9c pushf
10d6d8: fa cli
10d6d9: 5a pop %edx
/*
* 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;
10d6da: 8b 43 10 mov 0x10(%ebx),%eax
if ( state != STATES_TRANSIENT ) {
10d6dd: 83 f8 04 cmp $0x4,%eax
10d6e0: 74 26 je 10d708 <_Thread_Change_priority+0x64>
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
10d6e2: 83 e7 04 and $0x4,%edi
10d6e5: 74 15 je 10d6fc <_Thread_Change_priority+0x58><== ALWAYS TAKEN
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
_ISR_Enable( level );
10d6e7: 52 push %edx
10d6e8: 9d popf
if ( _States_Is_waiting_on_thread_queue( state ) ) {
10d6e9: a9 e0 be 03 00 test $0x3bee0,%eax
10d6ee: 0f 85 bc 00 00 00 jne 10d7b0 <_Thread_Change_priority+0x10c>
if ( !_Thread_Is_executing_also_the_heir() &&
_Thread_Executing->is_preemptible )
_Context_Switch_necessary = true;
_ISR_Enable( level );
}
10d6f4: 8d 65 f4 lea -0xc(%ebp),%esp
10d6f7: 5b pop %ebx
10d6f8: 5e pop %esi
10d6f9: 5f pop %edi
10d6fa: c9 leave
10d6fb: c3 ret
*/
state = the_thread->current_state;
if ( state != STATES_TRANSIENT ) {
/* 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 );
10d6fc: 89 c1 mov %eax,%ecx
10d6fe: 83 e1 fb and $0xfffffffb,%ecx
10d701: 89 4b 10 mov %ecx,0x10(%ebx)
10d704: eb e1 jmp 10d6e7 <_Thread_Change_priority+0x43>
10d706: 66 90 xchg %ax,%ax
}
return;
}
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) ) {
10d708: 83 e7 04 and $0x4,%edi
10d70b: 75 45 jne 10d752 <_Thread_Change_priority+0xae><== 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 );
10d70d: 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;
10d714: 8b 83 90 00 00 00 mov 0x90(%ebx),%eax
10d71a: 66 8b 8b 96 00 00 00 mov 0x96(%ebx),%cx
10d721: 66 09 08 or %cx,(%eax)
_Priority_Major_bit_map |= the_priority_map->ready_major;
10d724: 66 a1 0c 74 12 00 mov 0x12740c,%ax
10d72a: 0b 83 94 00 00 00 or 0x94(%ebx),%eax
10d730: 66 a3 0c 74 12 00 mov %ax,0x12740c
_Priority_Add_to_bit_map( &the_thread->Priority_map );
if ( prepend_it )
10d736: 80 7d e7 00 cmpb $0x0,-0x19(%ebp)
10d73a: 0f 84 88 00 00 00 je 10d7c8 <_Thread_Change_priority+0x124>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(
Chain_Control *the_chain
)
{
return (Chain_Node *) the_chain;
10d740: 8b 83 8c 00 00 00 mov 0x8c(%ebx),%eax
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
10d746: 89 43 04 mov %eax,0x4(%ebx)
before_node = after_node->next;
10d749: 8b 08 mov (%eax),%ecx
after_node->next = the_node;
10d74b: 89 18 mov %ebx,(%eax)
the_node->next = before_node;
10d74d: 89 0b mov %ecx,(%ebx)
before_node->previous = the_node;
10d74f: 89 59 04 mov %ebx,0x4(%ecx)
_Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
else
_Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
}
_ISR_Flash( level );
10d752: 52 push %edx
10d753: 9d popf
10d754: 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 );
10d755: 66 8b 1d 0c 74 12 00 mov 0x12740c,%bx
10d75c: 31 c0 xor %eax,%eax
10d75e: 89 c1 mov %eax,%ecx
10d760: 66 0f bc cb bsf %bx,%cx
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
10d764: 0f b7 c9 movzwl %cx,%ecx
10d767: 66 8b 9c 09 a0 74 12 mov 0x1274a0(%ecx,%ecx,1),%bx
10d76e: 00
10d76f: 66 0f bc c3 bsf %bx,%ax
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
10d773: c1 e1 04 shl $0x4,%ecx
10d776: 0f b7 c0 movzwl %ax,%eax
10d779: 8d 04 01 lea (%ecx,%eax,1),%eax
10d77c: 8d 0c 40 lea (%eax,%eax,2),%ecx
10d77f: a1 20 73 12 00 mov 0x127320,%eax
10d784: 8b 04 88 mov (%eax,%ecx,4),%eax
10d787: a3 e8 73 12 00 mov %eax,0x1273e8
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
10d78c: 8b 0d 18 74 12 00 mov 0x127418,%ecx
* 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() &&
10d792: 39 c8 cmp %ecx,%eax
10d794: 74 0d je 10d7a3 <_Thread_Change_priority+0xff>
_Thread_Executing->is_preemptible )
10d796: 80 79 75 00 cmpb $0x0,0x75(%ecx)
10d79a: 74 07 je 10d7a3 <_Thread_Change_priority+0xff>
_Context_Switch_necessary = true;
10d79c: c6 05 28 74 12 00 01 movb $0x1,0x127428
_ISR_Enable( level );
10d7a3: 52 push %edx
10d7a4: 9d popf
}
10d7a5: 8d 65 f4 lea -0xc(%ebp),%esp
10d7a8: 5b pop %ebx
10d7a9: 5e pop %esi
10d7aa: 5f pop %edi
10d7ab: c9 leave
10d7ac: c3 ret
10d7ad: 8d 76 00 lea 0x0(%esi),%esi
/* 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 );
10d7b0: 89 5d 0c mov %ebx,0xc(%ebp)
10d7b3: 8b 43 44 mov 0x44(%ebx),%eax
10d7b6: 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 );
}
10d7b9: 8d 65 f4 lea -0xc(%ebp),%esp
10d7bc: 5b pop %ebx
10d7bd: 5e pop %esi
10d7be: 5f pop %edi
10d7bf: 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 );
10d7c0: e9 73 0b 00 00 jmp 10e338 <_Thread_queue_Requeue>
10d7c5: 8d 76 00 lea 0x0(%esi),%esi
_Priority_Add_to_bit_map( &the_thread->Priority_map );
if ( prepend_it )
_Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
else
_Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
10d7c8: 8b 83 8c 00 00 00 mov 0x8c(%ebx),%eax
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
10d7ce: 8d 48 04 lea 0x4(%eax),%ecx
10d7d1: 89 0b mov %ecx,(%ebx)
old_last_node = the_chain->last;
10d7d3: 8b 48 08 mov 0x8(%eax),%ecx
the_chain->last = the_node;
10d7d6: 89 58 08 mov %ebx,0x8(%eax)
old_last_node->next = the_node;
10d7d9: 89 19 mov %ebx,(%ecx)
the_node->previous = old_last_node;
10d7db: 89 4b 04 mov %ecx,0x4(%ebx)
10d7de: e9 6f ff ff ff jmp 10d752 <_Thread_Change_priority+0xae>
0010d7e4 <_Thread_Clear_state>:
void _Thread_Clear_state(
Thread_Control *the_thread,
States_Control state
)
{
10d7e4: 55 push %ebp
10d7e5: 89 e5 mov %esp,%ebp
10d7e7: 53 push %ebx
10d7e8: 8b 45 08 mov 0x8(%ebp),%eax
10d7eb: 8b 55 0c mov 0xc(%ebp),%edx
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
10d7ee: 9c pushf
10d7ef: fa cli
10d7f0: 5b pop %ebx
current_state = the_thread->current_state;
10d7f1: 8b 48 10 mov 0x10(%eax),%ecx
if ( current_state & state ) {
10d7f4: 85 ca test %ecx,%edx
10d7f6: 74 70 je 10d868 <_Thread_Clear_state+0x84>
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
10d7f8: f7 d2 not %edx
10d7fa: 21 ca and %ecx,%edx
current_state =
10d7fc: 89 50 10 mov %edx,0x10(%eax)
the_thread->current_state = _States_Clear( state, current_state );
if ( _States_Is_ready( current_state ) ) {
10d7ff: 85 d2 test %edx,%edx
10d801: 75 65 jne 10d868 <_Thread_Clear_state+0x84>
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
10d803: 8b 90 90 00 00 00 mov 0x90(%eax),%edx
10d809: 66 8b 88 96 00 00 00 mov 0x96(%eax),%cx
10d810: 66 09 0a or %cx,(%edx)
_Priority_Major_bit_map |= the_priority_map->ready_major;
10d813: 66 8b 15 0c 74 12 00 mov 0x12740c,%dx
10d81a: 0b 90 94 00 00 00 or 0x94(%eax),%edx
10d820: 66 89 15 0c 74 12 00 mov %dx,0x12740c
_Priority_Add_to_bit_map( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
10d827: 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);
10d82d: 8d 4a 04 lea 0x4(%edx),%ecx
10d830: 89 08 mov %ecx,(%eax)
old_last_node = the_chain->last;
10d832: 8b 4a 08 mov 0x8(%edx),%ecx
the_chain->last = the_node;
10d835: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
10d838: 89 01 mov %eax,(%ecx)
the_node->previous = old_last_node;
10d83a: 89 48 04 mov %ecx,0x4(%eax)
_ISR_Flash( level );
10d83d: 53 push %ebx
10d83e: 9d popf
10d83f: 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 ) {
10d840: 8b 50 14 mov 0x14(%eax),%edx
10d843: 8b 0d e8 73 12 00 mov 0x1273e8,%ecx
10d849: 3b 51 14 cmp 0x14(%ecx),%edx
10d84c: 73 1a jae 10d868 <_Thread_Clear_state+0x84>
_Thread_Heir = the_thread;
10d84e: a3 e8 73 12 00 mov %eax,0x1273e8
if ( _Thread_Executing->is_preemptible ||
10d853: a1 18 74 12 00 mov 0x127418,%eax
10d858: 80 78 75 00 cmpb $0x0,0x75(%eax)
10d85c: 74 12 je 10d870 <_Thread_Clear_state+0x8c>
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
10d85e: c6 05 28 74 12 00 01 movb $0x1,0x127428
10d865: 8d 76 00 lea 0x0(%esi),%esi
}
}
}
_ISR_Enable( level );
10d868: 53 push %ebx
10d869: 9d popf
}
10d86a: 5b pop %ebx
10d86b: c9 leave
10d86c: c3 ret
10d86d: 8d 76 00 lea 0x0(%esi),%esi
* 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 ) {
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
10d870: 85 d2 test %edx,%edx
10d872: 74 ea je 10d85e <_Thread_Clear_state+0x7a><== NEVER TAKEN
10d874: eb f2 jmp 10d868 <_Thread_Clear_state+0x84>
0010d878 <_Thread_Close>:
void _Thread_Close(
Objects_Information *information,
Thread_Control *the_thread
)
{
10d878: 55 push %ebp
10d879: 89 e5 mov %esp,%ebp
10d87b: 56 push %esi
10d87c: 53 push %ebx
10d87d: 8b 75 08 mov 0x8(%ebp),%esi
10d880: 8b 5d 0c mov 0xc(%ebp),%ebx
10d883: 0f b7 53 08 movzwl 0x8(%ebx),%edx
10d887: 8b 46 1c mov 0x1c(%esi),%eax
10d88a: c7 04 90 00 00 00 00 movl $0x0,(%eax,%edx,4)
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
10d891: a1 58 73 12 00 mov 0x127358,%eax
10d896: 48 dec %eax
10d897: a3 58 73 12 00 mov %eax,0x127358
* disappear and set a transient state on it. So we temporarily
* unnest dispatching.
*/
_Thread_Unnest_dispatch();
_User_extensions_Thread_delete( the_thread );
10d89c: 83 ec 0c sub $0xc,%esp
10d89f: 53 push %ebx
10d8a0: e8 27 11 00 00 call 10e9cc <_User_extensions_Thread_delete>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10d8a5: a1 58 73 12 00 mov 0x127358,%eax
10d8aa: 40 inc %eax
10d8ab: a3 58 73 12 00 mov %eax,0x127358
/*
* Now we are in a dispatching critical section again and we
* can take the thread OUT of the published set. It is invalid
* to use this thread's Id OR name after this call.
*/
_Objects_Close( information, &the_thread->Object );
10d8b0: 59 pop %ecx
10d8b1: 58 pop %eax
10d8b2: 53 push %ebx
10d8b3: 56 push %esi
10d8b4: e8 57 f6 ff ff call 10cf10 <_Objects_Close>
/*
* By setting the dormant state, the thread will not be considered
* for scheduling when we remove any blocking states.
*/
_Thread_Set_state( the_thread, STATES_DORMANT );
10d8b9: 58 pop %eax
10d8ba: 5a pop %edx
10d8bb: 6a 01 push $0x1
10d8bd: 53 push %ebx
10d8be: e8 79 0b 00 00 call 10e43c <_Thread_Set_state>
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
10d8c3: 89 1c 24 mov %ebx,(%esp)
10d8c6: e8 c5 09 00 00 call 10e290 <_Thread_queue_Extract_with_proxy>
10d8cb: 83 c4 10 add $0x10,%esp
10d8ce: 84 c0 test %al,%al
10d8d0: 75 06 jne 10d8d8 <_Thread_Close+0x60>
if ( _Watchdog_Is_active( &the_thread->Timer ) )
10d8d2: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
10d8d6: 74 68 je 10d940 <_Thread_Close+0xc8>
/*
* The thread might have been FP. So deal with that.
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( _Thread_Is_allocated_fp( the_thread ) )
10d8d8: 3b 1d e0 73 12 00 cmp 0x1273e0,%ebx
10d8de: 74 74 je 10d954 <_Thread_Close+0xdc>
_Thread_Deallocate_fp();
#endif
the_thread->fp_context = NULL;
10d8e0: c7 83 e8 00 00 00 00 movl $0x0,0xe8(%ebx)
10d8e7: 00 00 00
if ( the_thread->Start.fp_context )
10d8ea: 8b 83 c8 00 00 00 mov 0xc8(%ebx),%eax
10d8f0: 85 c0 test %eax,%eax
10d8f2: 74 0c je 10d900 <_Thread_Close+0x88>
(void) _Workspace_Free( the_thread->Start.fp_context );
10d8f4: 83 ec 0c sub $0xc,%esp
10d8f7: 50 push %eax
10d8f8: e8 d7 13 00 00 call 10ecd4 <_Workspace_Free>
10d8fd: 83 c4 10 add $0x10,%esp
/*
* Free the rest of the memory associated with this task
* and set the associated pointers to NULL for safety.
*/
_Thread_Stack_Free( the_thread );
10d900: 83 ec 0c sub $0xc,%esp
10d903: 53 push %ebx
10d904: e8 e7 0c 00 00 call 10e5f0 <_Thread_Stack_Free>
the_thread->Start.stack = NULL;
10d909: c7 83 cc 00 00 00 00 movl $0x0,0xcc(%ebx)
10d910: 00 00 00
if ( the_thread->extensions )
10d913: 8b 83 fc 00 00 00 mov 0xfc(%ebx),%eax
10d919: 83 c4 10 add $0x10,%esp
10d91c: 85 c0 test %eax,%eax
10d91e: 74 0c je 10d92c <_Thread_Close+0xb4>
(void) _Workspace_Free( the_thread->extensions );
10d920: 83 ec 0c sub $0xc,%esp
10d923: 50 push %eax
10d924: e8 ab 13 00 00 call 10ecd4 <_Workspace_Free>
10d929: 83 c4 10 add $0x10,%esp
the_thread->extensions = NULL;
10d92c: c7 83 fc 00 00 00 00 movl $0x0,0xfc(%ebx)
10d933: 00 00 00
}
10d936: 8d 65 f8 lea -0x8(%ebp),%esp
10d939: 5b pop %ebx
10d93a: 5e pop %esi
10d93b: c9 leave
10d93c: c3 ret
10d93d: 8d 76 00 lea 0x0(%esi),%esi
*/
_Thread_Set_state( the_thread, STATES_DORMANT );
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
if ( _Watchdog_Is_active( &the_thread->Timer ) )
(void) _Watchdog_Remove( &the_thread->Timer );
10d940: 83 ec 0c sub $0xc,%esp
10d943: 8d 43 48 lea 0x48(%ebx),%eax
10d946: 50 push %eax
10d947: e8 68 12 00 00 call 10ebb4 <_Watchdog_Remove>
10d94c: 83 c4 10 add $0x10,%esp
10d94f: eb 87 jmp 10d8d8 <_Thread_Close+0x60>
10d951: 8d 76 00 lea 0x0(%esi),%esi
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
RTEMS_INLINE_ROUTINE void _Thread_Deallocate_fp( void )
{
_Thread_Allocated_fp = NULL;
10d954: c7 05 e0 73 12 00 00 movl $0x0,0x1273e0
10d95b: 00 00 00
10d95e: eb 80 jmp 10d8e0 <_Thread_Close+0x68>
0010d9f4 <_Thread_Delay_ended>:
void _Thread_Delay_ended(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
10d9f4: 55 push %ebp
10d9f5: 89 e5 mov %esp,%ebp
10d9f7: 83 ec 20 sub $0x20,%esp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
10d9fa: 8d 45 f4 lea -0xc(%ebp),%eax
10d9fd: 50 push %eax
10d9fe: ff 75 08 pushl 0x8(%ebp)
10da01: e8 aa 01 00 00 call 10dbb0 <_Thread_Get>
switch ( location ) {
10da06: 83 c4 10 add $0x10,%esp
10da09: 8b 55 f4 mov -0xc(%ebp),%edx
10da0c: 85 d2 test %edx,%edx
10da0e: 75 1c jne 10da2c <_Thread_Delay_ended+0x38><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_Clear_state(
10da10: 83 ec 08 sub $0x8,%esp
10da13: 68 18 00 00 10 push $0x10000018
10da18: 50 push %eax
10da19: e8 c6 fd ff ff call 10d7e4 <_Thread_Clear_state>
10da1e: a1 58 73 12 00 mov 0x127358,%eax
10da23: 48 dec %eax
10da24: a3 58 73 12 00 mov %eax,0x127358
10da29: 83 c4 10 add $0x10,%esp
| STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Thread_Unnest_dispatch();
break;
}
}
10da2c: c9 leave
10da2d: c3 ret
0010da30 <_Thread_Dispatch>:
* dispatch thread
* no dispatch thread
*/
void _Thread_Dispatch( void )
{
10da30: 55 push %ebp
10da31: 89 e5 mov %esp,%ebp
10da33: 57 push %edi
10da34: 56 push %esi
10da35: 53 push %ebx
10da36: 83 ec 1c sub $0x1c,%esp
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
10da39: 8b 1d 18 74 12 00 mov 0x127418,%ebx
_ISR_Disable( level );
10da3f: 9c pushf
10da40: fa cli
10da41: 58 pop %eax
while ( _Context_Switch_necessary == true ) {
10da42: 8a 15 28 74 12 00 mov 0x127428,%dl
10da48: 84 d2 test %dl,%dl
10da4a: 0f 84 10 01 00 00 je 10db60 <_Thread_Dispatch+0x130>
10da50: 8d 7d d8 lea -0x28(%ebp),%edi
10da53: e9 d1 00 00 00 jmp 10db29 <_Thread_Dispatch+0xf9>
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 )
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
_ISR_Enable( level );
10da58: 50 push %eax
10da59: 9d popf
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
10da5a: 83 ec 0c sub $0xc,%esp
10da5d: 8d 45 e0 lea -0x20(%ebp),%eax
10da60: 50 push %eax
10da61: e8 6a 3e 00 00 call 1118d0 <_TOD_Get_uptime>
_Timestamp_Subtract(
10da66: 83 c4 0c add $0xc,%esp
10da69: 57 push %edi
10da6a: 8d 45 e0 lea -0x20(%ebp),%eax
10da6d: 50 push %eax
10da6e: 68 20 74 12 00 push $0x127420
10da73: e8 44 0d 00 00 call 10e7bc <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
10da78: 5a pop %edx
10da79: 59 pop %ecx
10da7a: 57 push %edi
10da7b: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax
10da81: 50 push %eax
10da82: e8 f9 0c 00 00 call 10e780 <_Timespec_Add_to>
_Thread_Time_of_last_context_switch = uptime;
10da87: 8b 45 e0 mov -0x20(%ebp),%eax
10da8a: 8b 55 e4 mov -0x1c(%ebp),%edx
10da8d: a3 20 74 12 00 mov %eax,0x127420
10da92: 89 15 24 74 12 00 mov %edx,0x127424
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
10da98: a1 e4 73 12 00 mov 0x1273e4,%eax
10da9d: 83 c4 10 add $0x10,%esp
10daa0: 85 c0 test %eax,%eax
10daa2: 74 10 je 10dab4 <_Thread_Dispatch+0x84> <== NEVER TAKEN
executing->libc_reent = *_Thread_libc_reent;
10daa4: 8b 10 mov (%eax),%edx
10daa6: 89 93 ec 00 00 00 mov %edx,0xec(%ebx)
*_Thread_libc_reent = heir->libc_reent;
10daac: 8b 96 ec 00 00 00 mov 0xec(%esi),%edx
10dab2: 89 10 mov %edx,(%eax)
}
_User_extensions_Thread_switch( executing, heir );
10dab4: 83 ec 08 sub $0x8,%esp
10dab7: 56 push %esi
10dab8: 53 push %ebx
10dab9: e8 8e 0f 00 00 call 10ea4c <_User_extensions_Thread_switch>
if ( executing->fp_context != NULL )
_Context_Save_fp( &executing->fp_context );
#endif
#endif
_Context_Switch( &executing->Registers, &heir->Registers );
10dabe: 59 pop %ecx
10dabf: 58 pop %eax
10dac0: 81 c6 d0 00 00 00 add $0xd0,%esi
10dac6: 56 push %esi
10dac7: 8d 83 d0 00 00 00 lea 0xd0(%ebx),%eax
10dacd: 50 push %eax
10dace: e8 6d 12 00 00 call 10ed40 <_CPU_Context_switch>
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
10dad3: 83 c4 10 add $0x10,%esp
10dad6: 8b 93 e8 00 00 00 mov 0xe8(%ebx),%edx
10dadc: 85 d2 test %edx,%edx
10dade: 74 36 je 10db16 <_Thread_Dispatch+0xe6>
#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 );
10dae0: a1 e0 73 12 00 mov 0x1273e0,%eax
10dae5: 39 c3 cmp %eax,%ebx
10dae7: 74 2d je 10db16 <_Thread_Dispatch+0xe6>
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
10dae9: 85 c0 test %eax,%eax
10daeb: 74 11 je 10dafe <_Thread_Dispatch+0xce>
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
10daed: 83 ec 0c sub $0xc,%esp
10daf0: 05 e8 00 00 00 add $0xe8,%eax
10daf5: 50 push %eax
10daf6: e8 79 12 00 00 call 10ed74 <_CPU_Context_save_fp>
10dafb: 83 c4 10 add $0x10,%esp
_Context_Restore_fp( &executing->fp_context );
10dafe: 83 ec 0c sub $0xc,%esp
10db01: 8d 83 e8 00 00 00 lea 0xe8(%ebx),%eax
10db07: 50 push %eax
10db08: e8 71 12 00 00 call 10ed7e <_CPU_Context_restore_fp>
_Thread_Allocated_fp = executing;
10db0d: 89 1d e0 73 12 00 mov %ebx,0x1273e0
10db13: 83 c4 10 add $0x10,%esp
if ( executing->fp_context != NULL )
_Context_Restore_fp( &executing->fp_context );
#endif
#endif
executing = _Thread_Executing;
10db16: 8b 1d 18 74 12 00 mov 0x127418,%ebx
_ISR_Disable( level );
10db1c: 9c pushf
10db1d: fa cli
10db1e: 58 pop %eax
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
10db1f: 8a 15 28 74 12 00 mov 0x127428,%dl
10db25: 84 d2 test %dl,%dl
10db27: 74 37 je 10db60 <_Thread_Dispatch+0x130>
heir = _Thread_Heir;
10db29: 8b 35 e8 73 12 00 mov 0x1273e8,%esi
_Thread_Dispatch_disable_level = 1;
10db2f: c7 05 58 73 12 00 01 movl $0x1,0x127358
10db36: 00 00 00
_Context_Switch_necessary = false;
10db39: c6 05 28 74 12 00 00 movb $0x0,0x127428
_Thread_Executing = heir;
10db40: 89 35 18 74 12 00 mov %esi,0x127418
#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 )
10db46: 83 7e 7c 01 cmpl $0x1,0x7c(%esi)
10db4a: 0f 85 08 ff ff ff jne 10da58 <_Thread_Dispatch+0x28>
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
10db50: 8b 15 24 73 12 00 mov 0x127324,%edx
10db56: 89 56 78 mov %edx,0x78(%esi)
10db59: e9 fa fe ff ff jmp 10da58 <_Thread_Dispatch+0x28>
10db5e: 66 90 xchg %ax,%ax
executing = _Thread_Executing;
_ISR_Disable( level );
}
_Thread_Dispatch_disable_level = 0;
10db60: c7 05 58 73 12 00 00 movl $0x0,0x127358
10db67: 00 00 00
_ISR_Enable( level );
10db6a: 50 push %eax
10db6b: 9d popf
if ( _Thread_Do_post_task_switch_extension ||
10db6c: a1 fc 73 12 00 mov 0x1273fc,%eax
10db71: 85 c0 test %eax,%eax
10db73: 75 06 jne 10db7b <_Thread_Dispatch+0x14b><== NEVER TAKEN
executing->do_post_task_switch_extension ) {
10db75: 80 7b 74 00 cmpb $0x0,0x74(%ebx)
10db79: 74 09 je 10db84 <_Thread_Dispatch+0x154>
executing->do_post_task_switch_extension = false;
10db7b: c6 43 74 00 movb $0x0,0x74(%ebx)
_API_extensions_Run_postswitch();
10db7f: e8 e4 e8 ff ff call 10c468 <_API_extensions_Run_postswitch>
}
}
10db84: 8d 65 f4 lea -0xc(%ebp),%esp
10db87: 5b pop %ebx
10db88: 5e pop %esi
10db89: 5f pop %edi
10db8a: c9 leave
10db8b: c3 ret
00113c30 <_Thread_Evaluate_mode>:
*
* XXX
*/
bool _Thread_Evaluate_mode( void )
{
113c30: 55 push %ebp
113c31: 89 e5 mov %esp,%ebp
Thread_Control *executing;
executing = _Thread_Executing;
113c33: a1 18 74 12 00 mov 0x127418,%eax
if ( !_States_Is_ready( executing->current_state ) ||
113c38: 8b 50 10 mov 0x10(%eax),%edx
113c3b: 85 d2 test %edx,%edx
113c3d: 75 0e jne 113c4d <_Thread_Evaluate_mode+0x1d><== NEVER TAKEN
113c3f: 3b 05 e8 73 12 00 cmp 0x1273e8,%eax
113c45: 74 11 je 113c58 <_Thread_Evaluate_mode+0x28>
( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
113c47: 80 78 75 00 cmpb $0x0,0x75(%eax)
113c4b: 74 0b je 113c58 <_Thread_Evaluate_mode+0x28><== NEVER TAKEN
_Context_Switch_necessary = true;
113c4d: c6 05 28 74 12 00 01 movb $0x1,0x127428
113c54: b0 01 mov $0x1,%al
return true;
}
return false;
}
113c56: c9 leave
113c57: c3 ret
executing = _Thread_Executing;
if ( !_States_Is_ready( executing->current_state ) ||
( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
_Context_Switch_necessary = true;
return true;
113c58: 31 c0 xor %eax,%eax
}
return false;
}
113c5a: c9 leave
113c5b: c3 ret
0010dbb0 <_Thread_Get>:
Thread_Control *_Thread_Get (
Objects_Id id,
Objects_Locations *location
)
{
10dbb0: 55 push %ebp
10dbb1: 89 e5 mov %esp,%ebp
10dbb3: 53 push %ebx
10dbb4: 83 ec 04 sub $0x4,%esp
10dbb7: 8b 45 08 mov 0x8(%ebp),%eax
10dbba: 8b 4d 0c mov 0xc(%ebp),%ecx
uint32_t the_class;
Objects_Information **api_information;
Objects_Information *information;
Thread_Control *tp = (Thread_Control *) 0;
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {
10dbbd: 85 c0 test %eax,%eax
10dbbf: 74 4b je 10dc0c <_Thread_Get+0x5c>
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
10dbc1: 89 c2 mov %eax,%edx
10dbc3: c1 ea 18 shr $0x18,%edx
10dbc6: 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 )
10dbc9: 8d 5a ff lea -0x1(%edx),%ebx
10dbcc: 83 fb 03 cmp $0x3,%ebx
10dbcf: 77 2b ja 10dbfc <_Thread_Get+0x4c>
*location = OBJECTS_ERROR;
goto done;
}
the_class = _Objects_Get_class( id );
if ( the_class != 1 ) { /* threads are always first class :) */
10dbd1: 89 c3 mov %eax,%ebx
10dbd3: c1 eb 1b shr $0x1b,%ebx
10dbd6: 4b dec %ebx
10dbd7: 75 23 jne 10dbfc <_Thread_Get+0x4c>
*location = OBJECTS_ERROR;
goto done;
}
api_information = _Objects_Information_table[ the_api ];
10dbd9: 8b 14 95 2c 73 12 00 mov 0x12732c(,%edx,4),%edx
if ( !api_information ) {
10dbe0: 85 d2 test %edx,%edx
10dbe2: 74 18 je 10dbfc <_Thread_Get+0x4c>
*location = OBJECTS_ERROR;
goto done;
}
information = api_information[ the_class ];
10dbe4: 8b 52 04 mov 0x4(%edx),%edx
if ( !information ) {
10dbe7: 85 d2 test %edx,%edx
10dbe9: 74 11 je 10dbfc <_Thread_Get+0x4c>
*location = OBJECTS_ERROR;
goto done;
}
tp = (Thread_Control *) _Objects_Get( information, id, location );
10dbeb: 53 push %ebx
10dbec: 51 push %ecx
10dbed: 50 push %eax
10dbee: 52 push %edx
10dbef: e8 50 f7 ff ff call 10d344 <_Objects_Get>
10dbf4: 83 c4 10 add $0x10,%esp
done:
return tp;
}
10dbf7: 8b 5d fc mov -0x4(%ebp),%ebx
10dbfa: c9 leave
10dbfb: c3 ret
goto done;
}
information = api_information[ the_class ];
if ( !information ) {
*location = OBJECTS_ERROR;
10dbfc: c7 01 01 00 00 00 movl $0x1,(%ecx)
10dc02: 31 c0 xor %eax,%eax
tp = (Thread_Control *) _Objects_Get( information, id, location );
done:
return tp;
}
10dc04: 8b 5d fc mov -0x4(%ebp),%ebx
10dc07: c9 leave
10dc08: c3 ret
10dc09: 8d 76 00 lea 0x0(%esi),%esi
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10dc0c: a1 58 73 12 00 mov 0x127358,%eax
10dc11: 40 inc %eax
10dc12: a3 58 73 12 00 mov %eax,0x127358
Objects_Information *information;
Thread_Control *tp = (Thread_Control *) 0;
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {
_Thread_Disable_dispatch();
*location = OBJECTS_LOCAL;
10dc17: c7 01 00 00 00 00 movl $0x0,(%ecx)
tp = _Thread_Executing;
10dc1d: a1 18 74 12 00 mov 0x127418,%eax
tp = (Thread_Control *) _Objects_Get( information, id, location );
done:
return tp;
}
10dc22: 8b 5d fc mov -0x4(%ebp),%ebx
10dc25: c9 leave
10dc26: c3 ret
00113c5c <_Thread_Handler>:
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
113c5c: 55 push %ebp
113c5d: 89 e5 mov %esp,%ebp
113c5f: 53 push %ebx
113c60: 83 ec 14 sub $0x14,%esp
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
static char doneConstructors;
char doneCons;
#endif
executing = _Thread_Executing;
113c63: 8b 1d 18 74 12 00 mov 0x127418,%ebx
/*
* have to put level into a register for those cpu's that use
* inline asm here
*/
level = executing->Start.isr_level;
113c69: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
_ISR_Set_level(level);
113c6f: 85 c0 test %eax,%eax
113c71: 74 79 je 113cec <_Thread_Handler+0x90>
113c73: fa cli
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
113c74: a0 b4 6f 12 00 mov 0x126fb4,%al
113c79: 88 45 f7 mov %al,-0x9(%ebp)
doneConstructors = 1;
113c7c: c6 05 b4 6f 12 00 01 movb $0x1,0x126fb4
#endif
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
113c83: 8b 93 e8 00 00 00 mov 0xe8(%ebx),%edx
113c89: 85 d2 test %edx,%edx
113c8b: 74 24 je 113cb1 <_Thread_Handler+0x55>
#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 );
113c8d: a1 e0 73 12 00 mov 0x1273e0,%eax
113c92: 39 c3 cmp %eax,%ebx
113c94: 74 1b je 113cb1 <_Thread_Handler+0x55>
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
113c96: 85 c0 test %eax,%eax
113c98: 74 11 je 113cab <_Thread_Handler+0x4f>
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
113c9a: 83 ec 0c sub $0xc,%esp
113c9d: 05 e8 00 00 00 add $0xe8,%eax
113ca2: 50 push %eax
113ca3: e8 cc b0 ff ff call 10ed74 <_CPU_Context_save_fp>
113ca8: 83 c4 10 add $0x10,%esp
_Thread_Allocated_fp = executing;
113cab: 89 1d e0 73 12 00 mov %ebx,0x1273e0
/*
* 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 );
113cb1: 83 ec 0c sub $0xc,%esp
113cb4: 53 push %ebx
113cb5: e8 02 ac ff ff call 10e8bc <_User_extensions_Thread_begin>
/*
* At this point, the dispatch disable level BETTER be 1.
*/
_Thread_Enable_dispatch();
113cba: e8 cd 9e ff ff call 10db8c <_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) */ {
113cbf: 83 c4 10 add $0x10,%esp
113cc2: 80 7d f7 00 cmpb $0x0,-0x9(%ebp)
113cc6: 74 28 je 113cf0 <_Thread_Handler+0x94>
INIT_NAME ();
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
113cc8: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax
113cce: 85 c0 test %eax,%eax
113cd0: 74 2d je 113cff <_Thread_Handler+0xa3> <== ALWAYS TAKEN
* 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 );
113cd2: 83 ec 0c sub $0xc,%esp
113cd5: 53 push %ebx
113cd6: e8 1d ac ff ff call 10e8f8 <_User_extensions_Thread_exitted>
_Internal_error_Occurred(
113cdb: 83 c4 0c add $0xc,%esp
113cde: 6a 06 push $0x6
113ce0: 6a 01 push $0x1
113ce2: 6a 00 push $0x0
113ce4: e8 13 91 ff ff call 10cdfc <_Internal_error_Occurred>
113ce9: 8d 76 00 lea 0x0(%esi),%esi
* have to put level into a register for those cpu's that use
* inline asm here
*/
level = executing->Start.isr_level;
_ISR_Set_level(level);
113cec: fb sti
113ced: eb 85 jmp 113c74 <_Thread_Handler+0x18>
113cef: 90 nop
* _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) */ {
INIT_NAME ();
113cf0: e8 bb bf 00 00 call 11fcb0 <__start_set_sysctl_set>
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
113cf5: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax
113cfb: 85 c0 test %eax,%eax
113cfd: 75 d3 jne 113cd2 <_Thread_Handler+0x76> <== NEVER TAKEN
executing->Wait.return_argument =
(*(Thread_Entry_numeric) executing->Start.entry_point)(
113cff: 83 ec 0c sub $0xc,%esp
113d02: ff b3 a8 00 00 00 pushl 0xa8(%ebx)
113d08: ff 93 9c 00 00 00 call *0x9c(%ebx)
INIT_NAME ();
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
executing->Wait.return_argument =
113d0e: 89 43 28 mov %eax,0x28(%ebx)
113d11: 83 c4 10 add $0x10,%esp
113d14: eb bc jmp 113cd2 <_Thread_Handler+0x76>
0010de90 <_Thread_Handler_initialization>:
*
* Output parameters: NONE
*/
void _Thread_Handler_initialization(void)
{
10de90: 55 push %ebp
10de91: 89 e5 mov %esp,%ebp
10de93: 53 push %ebx
10de94: 83 ec 04 sub $0x4,%esp
uint32_t maximum_extensions;
#if defined(RTEMS_MULTIPROCESSING)
uint32_t maximum_proxies;
#endif
ticks_per_timeslice = Configuration.ticks_per_timeslice;
10de97: a1 30 32 12 00 mov 0x123230,%eax
maximum_extensions = Configuration.maximum_extensions;
10de9c: 8b 15 28 32 12 00 mov 0x123228,%edx
#endif
/*
* BOTH stacks hooks must be set or both must be NULL.
* Do not allow mixture.
*/
if ( !( (!Configuration.stack_allocate_hook)
10dea2: 8b 1d 44 32 12 00 mov 0x123244,%ebx
10dea8: 85 db test %ebx,%ebx
10deaa: 0f 94 c3 sete %bl
10dead: 8b 0d 40 32 12 00 mov 0x123240,%ecx
10deb3: 85 c9 test %ecx,%ecx
10deb5: 0f 94 c1 sete %cl
10deb8: 38 cb cmp %cl,%bl
10deba: 0f 85 9d 00 00 00 jne 10df5d <_Thread_Handler_initialization+0xcd><== NEVER TAKEN
INTERNAL_ERROR_CORE,
true,
INTERNAL_ERROR_BAD_STACK_HOOK
);
_Context_Switch_necessary = false;
10dec0: c6 05 28 74 12 00 00 movb $0x0,0x127428
_Thread_Executing = NULL;
10dec7: c7 05 18 74 12 00 00 movl $0x0,0x127418
10dece: 00 00 00
_Thread_Heir = NULL;
10ded1: c7 05 e8 73 12 00 00 movl $0x0,0x1273e8
10ded8: 00 00 00
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
_Thread_Allocated_fp = NULL;
10dedb: c7 05 e0 73 12 00 00 movl $0x0,0x1273e0
10dee2: 00 00 00
#endif
_Thread_Do_post_task_switch_extension = 0;
10dee5: c7 05 fc 73 12 00 00 movl $0x0,0x1273fc
10deec: 00 00 00
_Thread_Maximum_extensions = maximum_extensions;
10deef: 89 15 f8 73 12 00 mov %edx,0x1273f8
_Thread_Ticks_per_timeslice = ticks_per_timeslice;
10def5: a3 24 73 12 00 mov %eax,0x127324
_Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error(
10defa: 83 ec 0c sub $0xc,%esp
10defd: 0f b6 05 14 32 12 00 movzbl 0x123214,%eax
10df04: 8d 44 40 03 lea 0x3(%eax,%eax,2),%eax
10df08: c1 e0 02 shl $0x2,%eax
10df0b: 50 push %eax
10df0c: e8 7b 0d 00 00 call 10ec8c <_Workspace_Allocate_or_fatal_error>
10df11: a3 20 73 12 00 mov %eax,0x127320
(PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control)
);
for ( index=0; index <= PRIORITY_MAXIMUM ; index++ )
10df16: 0f b6 1d 14 32 12 00 movzbl 0x123214,%ebx
10df1d: 31 d2 xor %edx,%edx
10df1f: 83 c4 10 add $0x10,%esp
10df22: 66 90 xchg %ax,%ax
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10df24: 8d 48 04 lea 0x4(%eax),%ecx
10df27: 89 08 mov %ecx,(%eax)
the_chain->permanent_null = NULL;
10df29: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
the_chain->last = _Chain_Head(the_chain);
10df30: 89 40 08 mov %eax,0x8(%eax)
10df33: 42 inc %edx
10df34: 83 c0 0c add $0xc,%eax
10df37: 39 da cmp %ebx,%edx
10df39: 76 e9 jbe 10df24 <_Thread_Handler_initialization+0x94>
/*
* Initialize this class of objects.
*/
_Objects_Initialize_information(
10df3b: 50 push %eax
10df3c: 6a 08 push $0x8
10df3e: 6a 00 push $0x0
10df40: 68 04 01 00 00 push $0x104
10df45: 6a 01 push $0x1
10df47: 6a 01 push $0x1
10df49: 6a 01 push $0x1
10df4b: 68 e0 74 12 00 push $0x1274e0
10df50: e8 57 f4 ff ff call 10d3ac <_Objects_Initialize_information>
10df55: 83 c4 20 add $0x20,%esp
false, /* true if this is a global object class */
NULL /* Proxy extraction support callout */
#endif
);
}
10df58: 8b 5d fc mov -0x4(%ebp),%ebx
10df5b: c9 leave
10df5c: c3 ret
* BOTH stacks hooks must be set or both must be NULL.
* Do not allow mixture.
*/
if ( !( (!Configuration.stack_allocate_hook)
== (!Configuration.stack_free_hook) ) )
_Internal_error_Occurred(
10df5d: 52 push %edx
10df5e: 6a 0f push $0xf
10df60: 6a 01 push $0x1
10df62: 6a 00 push $0x0
10df64: e8 93 ee ff ff call 10cdfc <_Internal_error_Occurred>
0010dc28 <_Thread_Initialize>:
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
10dc28: 55 push %ebp
10dc29: 89 e5 mov %esp,%ebp
10dc2b: 57 push %edi
10dc2c: 56 push %esi
10dc2d: 53 push %ebx
10dc2e: 83 ec 24 sub $0x24,%esp
10dc31: 8b 5d 0c mov 0xc(%ebp),%ebx
10dc34: 8b 75 14 mov 0x14(%ebp),%esi
10dc37: 0f b6 7d 18 movzbl 0x18(%ebp),%edi
10dc3b: 8a 45 20 mov 0x20(%ebp),%al
10dc3e: 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;
10dc41: c7 83 f0 00 00 00 00 movl $0x0,0xf0(%ebx)
10dc48: 00 00 00
10dc4b: c7 83 f4 00 00 00 00 movl $0x0,0xf4(%ebx)
10dc52: 00 00 00
10dc55: c7 83 f8 00 00 00 00 movl $0x0,0xf8(%ebx)
10dc5c: 00 00 00
extensions_area = NULL;
the_thread->libc_reent = NULL;
10dc5f: c7 83 ec 00 00 00 00 movl $0x0,0xec(%ebx)
10dc66: 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 );
10dc69: 56 push %esi
10dc6a: 53 push %ebx
10dc6b: e8 1c 09 00 00 call 10e58c <_Thread_Stack_Allocate>
if ( !actual_stack_size || actual_stack_size < stack_size )
10dc70: 83 c4 10 add $0x10,%esp
10dc73: 85 c0 test %eax,%eax
10dc75: 0f 84 8d 01 00 00 je 10de08 <_Thread_Initialize+0x1e0>
10dc7b: 39 c6 cmp %eax,%esi
10dc7d: 0f 87 85 01 00 00 ja 10de08 <_Thread_Initialize+0x1e0><== NEVER TAKEN
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
10dc83: 8b 93 cc 00 00 00 mov 0xcc(%ebx),%edx
10dc89: 89 93 c4 00 00 00 mov %edx,0xc4(%ebx)
the_stack->size = size;
10dc8f: 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 ) {
10dc95: 89 f8 mov %edi,%eax
10dc97: 84 c0 test %al,%al
10dc99: 0f 85 81 01 00 00 jne 10de20 <_Thread_Initialize+0x1f8>
10dc9f: 31 c0 xor %eax,%eax
10dca1: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
if ( !fp_area )
goto failed;
fp_area = _Context_Fp_start( fp_area, 0 );
}
the_thread->fp_context = fp_area;
10dca8: 89 83 e8 00 00 00 mov %eax,0xe8(%ebx)
the_thread->Start.fp_context = fp_area;
10dcae: 89 83 c8 00 00 00 mov %eax,0xc8(%ebx)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
10dcb4: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx)
the_watchdog->routine = routine;
10dcbb: c7 43 64 00 00 00 00 movl $0x0,0x64(%ebx)
the_watchdog->id = id;
10dcc2: c7 43 68 00 00 00 00 movl $0x0,0x68(%ebx)
the_watchdog->user_data = user_data;
10dcc9: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx)
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
10dcd0: a1 f8 73 12 00 mov 0x1273f8,%eax
10dcd5: 85 c0 test %eax,%eax
10dcd7: 0f 85 5f 01 00 00 jne 10de3c <_Thread_Initialize+0x214>
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
goto failed;
}
the_thread->extensions = (void **) extensions_area;
10dcdd: c7 83 fc 00 00 00 00 movl $0x0,0xfc(%ebx)
10dce4: 00 00 00
10dce7: 31 ff xor %edi,%edi
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
10dce9: 8a 45 e7 mov -0x19(%ebp),%al
10dcec: 88 83 ac 00 00 00 mov %al,0xac(%ebx)
the_thread->Start.budget_algorithm = budget_algorithm;
10dcf2: 8b 45 24 mov 0x24(%ebp),%eax
10dcf5: 89 83 b0 00 00 00 mov %eax,0xb0(%ebx)
the_thread->Start.budget_callout = budget_callout;
10dcfb: 8b 45 28 mov 0x28(%ebp),%eax
10dcfe: 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;
10dd04: 8b 45 2c mov 0x2c(%ebp),%eax
10dd07: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx)
the_thread->current_state = STATES_DORMANT;
10dd0d: c7 43 10 01 00 00 00 movl $0x1,0x10(%ebx)
the_thread->Wait.queue = NULL;
10dd14: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx)
the_thread->resource_count = 0;
10dd1b: 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;
10dd22: 8b 45 1c mov 0x1c(%ebp),%eax
10dd25: 89 43 18 mov %eax,0x18(%ebx)
the_thread->Start.initial_priority = priority;
10dd28: 89 83 bc 00 00 00 mov %eax,0xbc(%ebx)
_Thread_Set_priority( the_thread, priority );
10dd2e: 83 ec 08 sub $0x8,%esp
10dd31: 50 push %eax
10dd32: 53 push %ebx
10dd33: e8 98 06 00 00 call 10e3d0 <_Thread_Set_priority>
/*
* Initialize the CPU usage statistics
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Set_to_zero( &the_thread->cpu_time_used );
10dd38: c7 83 84 00 00 00 00 movl $0x0,0x84(%ebx)
10dd3f: 00 00 00
10dd42: c7 83 88 00 00 00 00 movl $0x0,0x88(%ebx)
10dd49: 00 00 00
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
10dd4c: 0f b7 53 08 movzwl 0x8(%ebx),%edx
10dd50: 8b 45 08 mov 0x8(%ebp),%eax
10dd53: 8b 40 1c mov 0x1c(%eax),%eax
10dd56: 89 1c 90 mov %ebx,(%eax,%edx,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
10dd59: 8b 45 30 mov 0x30(%ebp),%eax
10dd5c: 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 );
10dd5f: 89 1c 24 mov %ebx,(%esp)
10dd62: e8 1d 0c 00 00 call 10e984 <_User_extensions_Thread_create>
if ( extension_status )
10dd67: 83 c4 10 add $0x10,%esp
10dd6a: 84 c0 test %al,%al
10dd6c: 0f 85 a2 00 00 00 jne 10de14 <_Thread_Initialize+0x1ec>
return true;
failed:
if ( the_thread->libc_reent )
10dd72: 8b 83 ec 00 00 00 mov 0xec(%ebx),%eax
10dd78: 85 c0 test %eax,%eax
10dd7a: 74 0c je 10dd88 <_Thread_Initialize+0x160>
_Workspace_Free( the_thread->libc_reent );
10dd7c: 83 ec 0c sub $0xc,%esp
10dd7f: 50 push %eax
10dd80: e8 4f 0f 00 00 call 10ecd4 <_Workspace_Free>
10dd85: 83 c4 10 add $0x10,%esp
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
10dd88: 8b 83 f0 00 00 00 mov 0xf0(%ebx),%eax
10dd8e: 85 c0 test %eax,%eax
10dd90: 74 0c je 10dd9e <_Thread_Initialize+0x176>
_Workspace_Free( the_thread->API_Extensions[i] );
10dd92: 83 ec 0c sub $0xc,%esp
10dd95: 50 push %eax
10dd96: e8 39 0f 00 00 call 10ecd4 <_Workspace_Free>
10dd9b: 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] )
10dd9e: 8b 83 f4 00 00 00 mov 0xf4(%ebx),%eax
10dda4: 85 c0 test %eax,%eax
10dda6: 74 0c je 10ddb4 <_Thread_Initialize+0x18c><== ALWAYS TAKEN
_Workspace_Free( the_thread->API_Extensions[i] );
10dda8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ddab: 50 push %eax <== NOT EXECUTED
10ddac: e8 23 0f 00 00 call 10ecd4 <_Workspace_Free> <== NOT EXECUTED
10ddb1: 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] )
10ddb4: 8b 83 f8 00 00 00 mov 0xf8(%ebx),%eax
10ddba: 85 c0 test %eax,%eax
10ddbc: 74 0c je 10ddca <_Thread_Initialize+0x1a2><== ALWAYS TAKEN
_Workspace_Free( the_thread->API_Extensions[i] );
10ddbe: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ddc1: 50 push %eax <== NOT EXECUTED
10ddc2: e8 0d 0f 00 00 call 10ecd4 <_Workspace_Free> <== NOT EXECUTED
10ddc7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( extensions_area )
10ddca: 85 ff test %edi,%edi
10ddcc: 74 0c je 10ddda <_Thread_Initialize+0x1b2>
(void) _Workspace_Free( extensions_area );
10ddce: 83 ec 0c sub $0xc,%esp
10ddd1: 57 push %edi
10ddd2: e8 fd 0e 00 00 call 10ecd4 <_Workspace_Free>
10ddd7: 83 c4 10 add $0x10,%esp
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
10ddda: 8b 45 e0 mov -0x20(%ebp),%eax
10dddd: 85 c0 test %eax,%eax
10dddf: 74 0e je 10ddef <_Thread_Initialize+0x1c7>
(void) _Workspace_Free( fp_area );
10dde1: 83 ec 0c sub $0xc,%esp
10dde4: ff 75 e0 pushl -0x20(%ebp)
10dde7: e8 e8 0e 00 00 call 10ecd4 <_Workspace_Free>
10ddec: 83 c4 10 add $0x10,%esp
#endif
_Thread_Stack_Free( the_thread );
10ddef: 83 ec 0c sub $0xc,%esp
10ddf2: 53 push %ebx
10ddf3: e8 f8 07 00 00 call 10e5f0 <_Thread_Stack_Free>
10ddf8: 31 c0 xor %eax,%eax
return false;
10ddfa: 83 c4 10 add $0x10,%esp
}
10ddfd: 8d 65 f4 lea -0xc(%ebp),%esp
10de00: 5b pop %ebx
10de01: 5e pop %esi
10de02: 5f pop %edi
10de03: c9 leave
10de04: c3 ret
10de05: 8d 76 00 lea 0x0(%esi),%esi
if ( fp_area )
(void) _Workspace_Free( fp_area );
#endif
_Thread_Stack_Free( the_thread );
return false;
10de08: 31 c0 xor %eax,%eax
}
10de0a: 8d 65 f4 lea -0xc(%ebp),%esp
10de0d: 5b pop %ebx
10de0e: 5e pop %esi
10de0f: 5f pop %edi
10de10: c9 leave
10de11: c3 ret
10de12: 66 90 xchg %ax,%ax
* user extensions with dispatching enabled. The Allocator
* Mutex provides sufficient protection to let the user extensions
* run safely.
*/
extension_status = _User_extensions_Thread_create( the_thread );
if ( extension_status )
10de14: b0 01 mov $0x1,%al
_Thread_Stack_Free( the_thread );
return false;
}
10de16: 8d 65 f4 lea -0xc(%ebp),%esp
10de19: 5b pop %ebx
10de1a: 5e pop %esi
10de1b: 5f pop %edi
10de1c: c9 leave
10de1d: c3 ret
10de1e: 66 90 xchg %ax,%ax
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
10de20: 83 ec 0c sub $0xc,%esp
10de23: 6a 6c push $0x6c
10de25: e8 8e 0e 00 00 call 10ecb8 <_Workspace_Allocate>
10de2a: 89 45 e0 mov %eax,-0x20(%ebp)
if ( !fp_area )
10de2d: 83 c4 10 add $0x10,%esp
10de30: 85 c0 test %eax,%eax
10de32: 74 55 je 10de89 <_Thread_Initialize+0x261>
10de34: 8b 45 e0 mov -0x20(%ebp),%eax
10de37: e9 6c fe ff ff jmp 10dca8 <_Thread_Initialize+0x80>
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
extensions_area = _Workspace_Allocate(
10de3c: 83 ec 0c sub $0xc,%esp
10de3f: 8d 04 85 04 00 00 00 lea 0x4(,%eax,4),%eax
10de46: 50 push %eax
10de47: e8 6c 0e 00 00 call 10ecb8 <_Workspace_Allocate>
10de4c: 89 c7 mov %eax,%edi
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
10de4e: 83 c4 10 add $0x10,%esp
10de51: 85 c0 test %eax,%eax
10de53: 0f 84 19 ff ff ff je 10dd72 <_Thread_Initialize+0x14a>
goto failed;
}
the_thread->extensions = (void **) extensions_area;
10de59: 89 c1 mov %eax,%ecx
10de5b: 89 83 fc 00 00 00 mov %eax,0xfc(%ebx)
* 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++ )
10de61: 8b 35 f8 73 12 00 mov 0x1273f8,%esi
10de67: 31 d2 xor %edx,%edx
10de69: 31 c0 xor %eax,%eax
10de6b: eb 09 jmp 10de76 <_Thread_Initialize+0x24e>
10de6d: 8d 76 00 lea 0x0(%esi),%esi
10de70: 8b 8b fc 00 00 00 mov 0xfc(%ebx),%ecx
the_thread->extensions[i] = NULL;
10de76: c7 04 91 00 00 00 00 movl $0x0,(%ecx,%edx,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++ )
10de7d: 40 inc %eax
10de7e: 89 c2 mov %eax,%edx
10de80: 39 c6 cmp %eax,%esi
10de82: 73 ec jae 10de70 <_Thread_Initialize+0x248>
10de84: e9 60 fe ff ff jmp 10dce9 <_Thread_Initialize+0xc1>
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
if ( !fp_area )
10de89: 31 ff xor %edi,%edi
10de8b: e9 e2 fe ff ff jmp 10dd72 <_Thread_Initialize+0x14a>
00112bf8 <_Thread_Reset>:
void _Thread_Reset(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
112bf8: 55 push %ebp
112bf9: 89 e5 mov %esp,%ebp
112bfb: 53 push %ebx
112bfc: 83 ec 10 sub $0x10,%esp
112bff: 8b 5d 08 mov 0x8(%ebp),%ebx
the_thread->resource_count = 0;
112c02: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx)
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->is_preemptible = the_thread->Start.is_preemptible;
112c09: 8a 83 ac 00 00 00 mov 0xac(%ebx),%al
112c0f: 88 43 75 mov %al,0x75(%ebx)
the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
112c12: 8b 83 b0 00 00 00 mov 0xb0(%ebx),%eax
112c18: 89 43 7c mov %eax,0x7c(%ebx)
the_thread->budget_callout = the_thread->Start.budget_callout;
112c1b: 8b 83 b4 00 00 00 mov 0xb4(%ebx),%eax
112c21: 89 83 80 00 00 00 mov %eax,0x80(%ebx)
the_thread->Start.pointer_argument = pointer_argument;
112c27: 8b 45 0c mov 0xc(%ebp),%eax
112c2a: 89 83 a4 00 00 00 mov %eax,0xa4(%ebx)
the_thread->Start.numeric_argument = numeric_argument;
112c30: 8b 45 10 mov 0x10(%ebp),%eax
112c33: 89 83 a8 00 00 00 mov %eax,0xa8(%ebx)
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
112c39: 53 push %ebx
112c3a: e8 79 c1 ff ff call 10edb8 <_Thread_queue_Extract_with_proxy>
112c3f: 83 c4 10 add $0x10,%esp
112c42: 84 c0 test %al,%al
112c44: 75 06 jne 112c4c <_Thread_Reset+0x54>
if ( _Watchdog_Is_active( &the_thread->Timer ) )
112c46: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
112c4a: 74 28 je 112c74 <_Thread_Reset+0x7c>
(void) _Watchdog_Remove( &the_thread->Timer );
}
if ( the_thread->current_priority != the_thread->Start.initial_priority ) {
112c4c: 8b 83 bc 00 00 00 mov 0xbc(%ebx),%eax
112c52: 39 43 14 cmp %eax,0x14(%ebx)
112c55: 74 15 je 112c6c <_Thread_Reset+0x74>
the_thread->real_priority = the_thread->Start.initial_priority;
112c57: 89 43 18 mov %eax,0x18(%ebx)
_Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
112c5a: 89 45 0c mov %eax,0xc(%ebp)
112c5d: 89 5d 08 mov %ebx,0x8(%ebp)
}
}
112c60: 8b 5d fc mov -0x4(%ebp),%ebx
112c63: c9 leave
(void) _Watchdog_Remove( &the_thread->Timer );
}
if ( the_thread->current_priority != the_thread->Start.initial_priority ) {
the_thread->real_priority = the_thread->Start.initial_priority;
_Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
112c64: e9 1b c3 ff ff jmp 10ef84 <_Thread_Set_priority>
112c69: 8d 76 00 lea 0x0(%esi),%esi
}
}
112c6c: 8b 5d fc mov -0x4(%ebp),%ebx
112c6f: c9 leave
112c70: c3 ret
112c71: 8d 76 00 lea 0x0(%esi),%esi
the_thread->Start.numeric_argument = numeric_argument;
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
if ( _Watchdog_Is_active( &the_thread->Timer ) )
(void) _Watchdog_Remove( &the_thread->Timer );
112c74: 83 ec 0c sub $0xc,%esp
112c77: 8d 43 48 lea 0x48(%ebx),%eax
112c7a: 50 push %eax
112c7b: e8 28 cb ff ff call 10f7a8 <_Watchdog_Remove>
112c80: 83 c4 10 add $0x10,%esp
112c83: eb c7 jmp 112c4c <_Thread_Reset+0x54>
00111f80 <_Thread_Reset_timeslice>:
* ready chain
* select heir
*/
void _Thread_Reset_timeslice( void )
{
111f80: 55 push %ebp
111f81: 89 e5 mov %esp,%ebp
111f83: 56 push %esi
111f84: 53 push %ebx
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
111f85: a1 18 74 12 00 mov 0x127418,%eax
ready = executing->ready;
111f8a: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
_ISR_Disable( level );
111f90: 9c pushf
111f91: fa cli
111f92: 59 pop %ecx
if ( _Chain_Has_only_one_node( ready ) ) {
111f93: 8b 1a mov (%edx),%ebx
111f95: 3b 5a 08 cmp 0x8(%edx),%ebx
111f98: 74 2c je 111fc6 <_Thread_Reset_timeslice+0x46>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
111f9a: 8b 30 mov (%eax),%esi
previous = the_node->previous;
111f9c: 8b 58 04 mov 0x4(%eax),%ebx
next->previous = previous;
111f9f: 89 5e 04 mov %ebx,0x4(%esi)
previous->next = next;
111fa2: 89 33 mov %esi,(%ebx)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
111fa4: 8d 5a 04 lea 0x4(%edx),%ebx
111fa7: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
111fa9: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
111fac: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
111faf: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
111fb1: 89 58 04 mov %ebx,0x4(%eax)
return;
}
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
111fb4: 51 push %ecx
111fb5: 9d popf
111fb6: fa cli
if ( _Thread_Is_heir( executing ) )
111fb7: 3b 05 e8 73 12 00 cmp 0x1273e8,%eax
111fbd: 74 0d je 111fcc <_Thread_Reset_timeslice+0x4c><== ALWAYS TAKEN
_Thread_Heir = (Thread_Control *) ready->first;
_Context_Switch_necessary = true;
111fbf: c6 05 28 74 12 00 01 movb $0x1,0x127428
_ISR_Enable( level );
111fc6: 51 push %ecx
111fc7: 9d popf
}
111fc8: 5b pop %ebx
111fc9: 5e pop %esi
111fca: c9 leave
111fcb: c3 ret
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
_Thread_Heir = (Thread_Control *) ready->first;
111fcc: 8b 02 mov (%edx),%eax
111fce: a3 e8 73 12 00 mov %eax,0x1273e8
111fd3: eb ea jmp 111fbf <_Thread_Reset_timeslice+0x3f>
00111754 <_Thread_Resume>:
void _Thread_Resume(
Thread_Control *the_thread,
bool force
)
{
111754: 55 push %ebp
111755: 89 e5 mov %esp,%ebp
111757: 53 push %ebx
111758: 8b 45 08 mov 0x8(%ebp),%eax
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
11175b: 9c pushf
11175c: fa cli
11175d: 59 pop %ecx
_ISR_Enable( level );
return;
}
#endif
current_state = the_thread->current_state;
11175e: 8b 50 10 mov 0x10(%eax),%edx
if ( current_state & STATES_SUSPENDED ) {
111761: f6 c2 02 test $0x2,%dl
111764: 74 6e je 1117d4 <_Thread_Resume+0x80> <== NEVER TAKEN
111766: 83 e2 fd and $0xfffffffd,%edx
current_state =
111769: 89 50 10 mov %edx,0x10(%eax)
the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
if ( _States_Is_ready( current_state ) ) {
11176c: 85 d2 test %edx,%edx
11176e: 75 64 jne 1117d4 <_Thread_Resume+0x80>
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
111770: 8b 90 90 00 00 00 mov 0x90(%eax),%edx
111776: 66 8b 98 96 00 00 00 mov 0x96(%eax),%bx
11177d: 66 09 1a or %bx,(%edx)
_Priority_Major_bit_map |= the_priority_map->ready_major;
111780: 66 8b 15 4c ba 12 00 mov 0x12ba4c,%dx
111787: 0b 90 94 00 00 00 or 0x94(%eax),%edx
11178d: 66 89 15 4c ba 12 00 mov %dx,0x12ba4c
_Priority_Add_to_bit_map( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
111794: 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);
11179a: 8d 5a 04 lea 0x4(%edx),%ebx
11179d: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
11179f: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
1117a2: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
1117a5: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
1117a7: 89 58 04 mov %ebx,0x4(%eax)
_ISR_Flash( level );
1117aa: 51 push %ecx
1117ab: 9d popf
1117ac: fa cli
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
1117ad: 8b 50 14 mov 0x14(%eax),%edx
1117b0: 8b 1d 28 ba 12 00 mov 0x12ba28,%ebx
1117b6: 3b 53 14 cmp 0x14(%ebx),%edx
1117b9: 73 19 jae 1117d4 <_Thread_Resume+0x80>
_Thread_Heir = the_thread;
1117bb: a3 28 ba 12 00 mov %eax,0x12ba28
if ( _Thread_Executing->is_preemptible ||
1117c0: a1 58 ba 12 00 mov 0x12ba58,%eax
1117c5: 80 78 75 00 cmpb $0x0,0x75(%eax)
1117c9: 74 11 je 1117dc <_Thread_Resume+0x88>
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
1117cb: c6 05 68 ba 12 00 01 movb $0x1,0x12ba68
1117d2: 66 90 xchg %ax,%ax
}
}
}
_ISR_Enable( level );
1117d4: 51 push %ecx
1117d5: 9d popf
}
1117d6: 5b pop %ebx
1117d7: c9 leave
1117d8: c3 ret
1117d9: 8d 76 00 lea 0x0(%esi),%esi
_ISR_Flash( level );
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
1117dc: 85 d2 test %edx,%edx
1117de: 74 eb je 1117cb <_Thread_Resume+0x77> <== NEVER TAKEN
1117e0: eb f2 jmp 1117d4 <_Thread_Resume+0x80>
0010e43c <_Thread_Set_state>:
void _Thread_Set_state(
Thread_Control *the_thread,
States_Control state
)
{
10e43c: 55 push %ebp
10e43d: 89 e5 mov %esp,%ebp
10e43f: 56 push %esi
10e440: 53 push %ebx
10e441: 8b 45 08 mov 0x8(%ebp),%eax
10e444: 8b 75 0c mov 0xc(%ebp),%esi
ISR_Level level;
Chain_Control *ready;
ready = the_thread->ready;
10e447: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
_ISR_Disable( level );
10e44d: 9c pushf
10e44e: fa cli
10e44f: 59 pop %ecx
if ( !_States_Is_ready( the_thread->current_state ) ) {
10e450: 8b 58 10 mov 0x10(%eax),%ebx
10e453: 85 db test %ebx,%ebx
10e455: 75 2d jne 10e484 <_Thread_Set_state+0x48>
_States_Set( state, the_thread->current_state );
_ISR_Enable( level );
return;
}
the_thread->current_state = state;
10e457: 89 70 10 mov %esi,0x10(%eax)
if ( _Chain_Has_only_one_node( ready ) ) {
10e45a: 8b 1a mov (%edx),%ebx
10e45c: 3b 5a 08 cmp 0x8(%edx),%ebx
10e45f: 74 3b je 10e49c <_Thread_Set_state+0x60>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
10e461: 8b 18 mov (%eax),%ebx
previous = the_node->previous;
10e463: 8b 50 04 mov 0x4(%eax),%edx
next->previous = previous;
10e466: 89 53 04 mov %edx,0x4(%ebx)
previous->next = next;
10e469: 89 1a mov %ebx,(%edx)
_Priority_Remove_from_bit_map( &the_thread->Priority_map );
} else
_Chain_Extract_unprotected( &the_thread->Object.Node );
_ISR_Flash( level );
10e46b: 51 push %ecx
10e46c: 9d popf
10e46d: fa cli
if ( _Thread_Is_heir( the_thread ) )
10e46e: 3b 05 e8 73 12 00 cmp 0x1273e8,%eax
10e474: 74 62 je 10e4d8 <_Thread_Set_state+0x9c>
_Thread_Calculate_heir();
if ( _Thread_Is_executing( the_thread ) )
10e476: 3b 05 18 74 12 00 cmp 0x127418,%eax
10e47c: 74 12 je 10e490 <_Thread_Set_state+0x54>
_Context_Switch_necessary = true;
_ISR_Enable( level );
10e47e: 51 push %ecx
10e47f: 9d popf
}
10e480: 5b pop %ebx
10e481: 5e pop %esi
10e482: c9 leave
10e483: c3 ret
Chain_Control *ready;
ready = the_thread->ready;
_ISR_Disable( level );
if ( !_States_Is_ready( the_thread->current_state ) ) {
the_thread->current_state =
10e484: 09 f3 or %esi,%ebx
10e486: 89 58 10 mov %ebx,0x10(%eax)
_States_Set( state, the_thread->current_state );
_ISR_Enable( level );
10e489: 51 push %ecx
10e48a: 9d popf
if ( _Thread_Is_executing( the_thread ) )
_Context_Switch_necessary = true;
_ISR_Enable( level );
}
10e48b: 5b pop %ebx
10e48c: 5e pop %esi
10e48d: c9 leave
10e48e: c3 ret
10e48f: 90 nop
if ( _Thread_Is_heir( the_thread ) )
_Thread_Calculate_heir();
if ( _Thread_Is_executing( the_thread ) )
_Context_Switch_necessary = true;
10e490: c6 05 28 74 12 00 01 movb $0x1,0x127428
10e497: eb e5 jmp 10e47e <_Thread_Set_state+0x42>
10e499: 8d 76 00 lea 0x0(%esi),%esi
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10e49c: 8d 5a 04 lea 0x4(%edx),%ebx
10e49f: 89 1a mov %ebx,(%edx)
the_chain->permanent_null = NULL;
10e4a1: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx)
the_chain->last = _Chain_Head(the_chain);
10e4a8: 89 52 08 mov %edx,0x8(%edx)
RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor &= the_priority_map->block_minor;
10e4ab: 8b 90 90 00 00 00 mov 0x90(%eax),%edx
10e4b1: 66 8b 98 9a 00 00 00 mov 0x9a(%eax),%bx
10e4b8: 66 21 1a and %bx,(%edx)
the_thread->current_state = state;
if ( _Chain_Has_only_one_node( ready ) ) {
_Chain_Initialize_empty( ready );
_Priority_Remove_from_bit_map( &the_thread->Priority_map );
10e4bb: 66 83 3a 00 cmpw $0x0,(%edx)
10e4bf: 75 aa jne 10e46b <_Thread_Set_state+0x2f>
if ( *the_priority_map->minor == 0 )
_Priority_Major_bit_map &= the_priority_map->block_major;
10e4c1: 66 8b 15 0c 74 12 00 mov 0x12740c,%dx
10e4c8: 23 90 98 00 00 00 and 0x98(%eax),%edx
10e4ce: 66 89 15 0c 74 12 00 mov %dx,0x12740c
10e4d5: eb 94 jmp 10e46b <_Thread_Set_state+0x2f>
10e4d7: 90 nop
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 );
10e4d8: 66 8b 35 0c 74 12 00 mov 0x12740c,%si
10e4df: 31 d2 xor %edx,%edx
10e4e1: 89 d3 mov %edx,%ebx
10e4e3: 66 0f bc de bsf %si,%bx
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
10e4e7: 0f b7 db movzwl %bx,%ebx
10e4ea: 66 8b b4 1b a0 74 12 mov 0x1274a0(%ebx,%ebx,1),%si
10e4f1: 00
10e4f2: 66 0f bc d6 bsf %si,%dx
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
10e4f6: c1 e3 04 shl $0x4,%ebx
10e4f9: 0f b7 d2 movzwl %dx,%edx
10e4fc: 8d 14 13 lea (%ebx,%edx,1),%edx
10e4ff: 8d 1c 52 lea (%edx,%edx,2),%ebx
10e502: 8b 15 20 73 12 00 mov 0x127320,%edx
10e508: 8b 14 9a mov (%edx,%ebx,4),%edx
10e50b: 89 15 e8 73 12 00 mov %edx,0x1273e8
10e511: e9 60 ff ff ff jmp 10e476 <_Thread_Set_state+0x3a>
0010e58c <_Thread_Stack_Allocate>:
size_t _Thread_Stack_Allocate(
Thread_Control *the_thread,
size_t stack_size
)
{
10e58c: 55 push %ebp
10e58d: 89 e5 mov %esp,%ebp
10e58f: 53 push %ebx
10e590: 83 ec 04 sub $0x4,%esp
10e593: a1 10 32 12 00 mov 0x123210,%eax
10e598: 8b 5d 0c mov 0xc(%ebp),%ebx
10e59b: 39 c3 cmp %eax,%ebx
10e59d: 73 02 jae 10e5a1 <_Thread_Stack_Allocate+0x15>
10e59f: 89 c3 mov %eax,%ebx
* Call ONLY the CPU table stack allocate hook, _or_ the
* the RTEMS workspace allocate. This is so the stack free
* routine can call the correct deallocation routine.
*/
if ( Configuration.stack_allocate_hook ) {
10e5a1: a1 40 32 12 00 mov 0x123240,%eax
10e5a6: 85 c0 test %eax,%eax
10e5a8: 74 32 je 10e5dc <_Thread_Stack_Allocate+0x50>
stack_addr = (*Configuration.stack_allocate_hook)( the_stack_size );
10e5aa: 83 ec 0c sub $0xc,%esp
10e5ad: 53 push %ebx
10e5ae: ff d0 call *%eax
10e5b0: 83 c4 10 add $0x10,%esp
the_stack_size = _Stack_Adjust_size( the_stack_size );
stack_addr = _Workspace_Allocate( the_stack_size );
}
if ( !stack_addr )
10e5b3: 85 c0 test %eax,%eax
10e5b5: 74 11 je 10e5c8 <_Thread_Stack_Allocate+0x3c>
the_stack_size = 0;
the_thread->Start.stack = stack_addr;
10e5b7: 8b 55 08 mov 0x8(%ebp),%edx
10e5ba: 89 82 cc 00 00 00 mov %eax,0xcc(%edx)
return the_stack_size;
}
10e5c0: 89 d8 mov %ebx,%eax
10e5c2: 8b 5d fc mov -0x4(%ebp),%ebx
10e5c5: c9 leave
10e5c6: c3 ret
10e5c7: 90 nop
the_stack_size = _Stack_Adjust_size( the_stack_size );
stack_addr = _Workspace_Allocate( the_stack_size );
}
if ( !stack_addr )
10e5c8: 31 db xor %ebx,%ebx
the_stack_size = 0;
the_thread->Start.stack = stack_addr;
10e5ca: 8b 55 08 mov 0x8(%ebp),%edx
10e5cd: 89 82 cc 00 00 00 mov %eax,0xcc(%edx)
return the_stack_size;
}
10e5d3: 89 d8 mov %ebx,%eax
10e5d5: 8b 5d fc mov -0x4(%ebp),%ebx
10e5d8: c9 leave
10e5d9: c3 ret
10e5da: 66 90 xchg %ax,%ax
RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size (
size_t size
)
{
return size + CPU_STACK_ALIGNMENT;
10e5dc: 83 c3 10 add $0x10,%ebx
* get and keep the stack adjust factor, the stack alignment, and
* the context initialization sequence in sync.
*/
the_stack_size = _Stack_Adjust_size( the_stack_size );
stack_addr = _Workspace_Allocate( the_stack_size );
10e5df: 83 ec 0c sub $0xc,%esp
10e5e2: 53 push %ebx
10e5e3: e8 d0 06 00 00 call 10ecb8 <_Workspace_Allocate>
10e5e8: 83 c4 10 add $0x10,%esp
10e5eb: eb c6 jmp 10e5b3 <_Thread_Stack_Allocate+0x27>
0010e5f0 <_Thread_Stack_Free>:
*/
void _Thread_Stack_Free(
Thread_Control *the_thread
)
{
10e5f0: 55 push %ebp
10e5f1: 89 e5 mov %esp,%ebp
10e5f3: 83 ec 08 sub $0x8,%esp
10e5f6: 8b 55 08 mov 0x8(%ebp),%edx
* Call ONLY the CPU table stack free hook, or the
* the RTEMS workspace free. This is so the free
* routine properly matches the allocation of the stack.
*/
if ( Configuration.stack_free_hook )
10e5f9: a1 44 32 12 00 mov 0x123244,%eax
10e5fe: 85 c0 test %eax,%eax
10e600: 74 0e je 10e610 <_Thread_Stack_Free+0x20>
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
10e602: 8b 92 c4 00 00 00 mov 0xc4(%edx),%edx
10e608: 89 55 08 mov %edx,0x8(%ebp)
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
}
10e60b: c9 leave
* the RTEMS workspace free. This is so the free
* routine properly matches the allocation of the stack.
*/
if ( Configuration.stack_free_hook )
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
10e60c: ff e0 jmp *%eax
10e60e: 66 90 xchg %ax,%ax
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
10e610: 8b 82 c4 00 00 00 mov 0xc4(%edx),%eax
10e616: 89 45 08 mov %eax,0x8(%ebp)
}
10e619: c9 leave
*/
if ( Configuration.stack_free_hook )
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
10e61a: e9 b5 06 00 00 jmp 10ecd4 <_Workspace_Free>
00111fd8 <_Thread_Suspend>:
*/
void _Thread_Suspend(
Thread_Control *the_thread
)
{
111fd8: 55 push %ebp
111fd9: 89 e5 mov %esp,%ebp
111fdb: 56 push %esi
111fdc: 53 push %ebx
111fdd: 8b 45 08 mov 0x8(%ebp),%eax
ISR_Level level;
Chain_Control *ready;
ready = the_thread->ready;
111fe0: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
_ISR_Disable( level );
111fe6: 9c pushf
111fe7: fa cli
111fe8: 59 pop %ecx
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count++;
#endif
if ( !_States_Is_ready( the_thread->current_state ) ) {
111fe9: 8b 58 10 mov 0x10(%eax),%ebx
111fec: 85 db test %ebx,%ebx
111fee: 75 34 jne 112024 <_Thread_Suspend+0x4c>
_States_Set( STATES_SUSPENDED, the_thread->current_state );
_ISR_Enable( level );
return;
}
the_thread->current_state = STATES_SUSPENDED;
111ff0: c7 40 10 02 00 00 00 movl $0x2,0x10(%eax)
if ( _Chain_Has_only_one_node( ready ) ) {
111ff7: 8b 1a mov (%edx),%ebx
111ff9: 3b 5a 08 cmp 0x8(%edx),%ebx
111ffc: 74 3e je 11203c <_Thread_Suspend+0x64>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
111ffe: 8b 18 mov (%eax),%ebx
previous = the_node->previous;
112000: 8b 50 04 mov 0x4(%eax),%edx
next->previous = previous;
112003: 89 53 04 mov %edx,0x4(%ebx)
previous->next = next;
112006: 89 1a mov %ebx,(%edx)
_Priority_Remove_from_bit_map( &the_thread->Priority_map );
} else
_Chain_Extract_unprotected( &the_thread->Object.Node );
_ISR_Flash( level );
112008: 51 push %ecx
112009: 9d popf
11200a: fa cli
if ( _Thread_Is_heir( the_thread ) )
11200b: 3b 05 e8 73 12 00 cmp 0x1273e8,%eax
112011: 74 65 je 112078 <_Thread_Suspend+0xa0>
_Thread_Calculate_heir();
if ( _Thread_Is_executing( the_thread ) )
112013: 3b 05 18 74 12 00 cmp 0x127418,%eax
112019: 74 15 je 112030 <_Thread_Suspend+0x58>
_Context_Switch_necessary = true;
_ISR_Enable( level );
11201b: 51 push %ecx
11201c: 9d popf
}
11201d: 5b pop %ebx
11201e: 5e pop %esi
11201f: c9 leave
112020: c3 ret
112021: 8d 76 00 lea 0x0(%esi),%esi
_ISR_Disable( level );
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count++;
#endif
if ( !_States_Is_ready( the_thread->current_state ) ) {
the_thread->current_state =
112024: 83 cb 02 or $0x2,%ebx
112027: 89 58 10 mov %ebx,0x10(%eax)
_States_Set( STATES_SUSPENDED, the_thread->current_state );
_ISR_Enable( level );
11202a: 51 push %ecx
11202b: 9d popf
if ( _Thread_Is_executing( the_thread ) )
_Context_Switch_necessary = true;
_ISR_Enable( level );
}
11202c: 5b pop %ebx
11202d: 5e pop %esi
11202e: c9 leave
11202f: c3 ret
if ( _Thread_Is_heir( the_thread ) )
_Thread_Calculate_heir();
if ( _Thread_Is_executing( the_thread ) )
_Context_Switch_necessary = true;
112030: c6 05 28 74 12 00 01 movb $0x1,0x127428
112037: eb e2 jmp 11201b <_Thread_Suspend+0x43>
112039: 8d 76 00 lea 0x0(%esi),%esi
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
11203c: 8d 5a 04 lea 0x4(%edx),%ebx
11203f: 89 1a mov %ebx,(%edx)
the_chain->permanent_null = NULL;
112041: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx)
the_chain->last = _Chain_Head(the_chain);
112048: 89 52 08 mov %edx,0x8(%edx)
RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor &= the_priority_map->block_minor;
11204b: 8b 90 90 00 00 00 mov 0x90(%eax),%edx
112051: 66 8b 98 9a 00 00 00 mov 0x9a(%eax),%bx
112058: 66 21 1a and %bx,(%edx)
the_thread->current_state = STATES_SUSPENDED;
if ( _Chain_Has_only_one_node( ready ) ) {
_Chain_Initialize_empty( ready );
_Priority_Remove_from_bit_map( &the_thread->Priority_map );
11205b: 66 83 3a 00 cmpw $0x0,(%edx)
11205f: 75 a7 jne 112008 <_Thread_Suspend+0x30>
if ( *the_priority_map->minor == 0 )
_Priority_Major_bit_map &= the_priority_map->block_major;
112061: 66 8b 15 0c 74 12 00 mov 0x12740c,%dx
112068: 23 90 98 00 00 00 and 0x98(%eax),%edx
11206e: 66 89 15 0c 74 12 00 mov %dx,0x12740c
112075: eb 91 jmp 112008 <_Thread_Suspend+0x30>
112077: 90 nop
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 );
112078: 66 8b 35 0c 74 12 00 mov 0x12740c,%si
11207f: 31 d2 xor %edx,%edx
112081: 89 d3 mov %edx,%ebx
112083: 66 0f bc de bsf %si,%bx
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
112087: 0f b7 db movzwl %bx,%ebx
11208a: 66 8b b4 1b a0 74 12 mov 0x1274a0(%ebx,%ebx,1),%si
112091: 00
112092: 66 0f bc d6 bsf %si,%dx
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
112096: c1 e3 04 shl $0x4,%ebx
112099: 0f b7 d2 movzwl %dx,%edx
11209c: 8d 14 13 lea (%ebx,%edx,1),%edx
11209f: 8d 1c 52 lea (%edx,%edx,2),%ebx
1120a2: 8b 15 20 73 12 00 mov 0x127320,%edx
1120a8: 8b 14 9a mov (%edx,%ebx,4),%edx
1120ab: 89 15 e8 73 12 00 mov %edx,0x1273e8
1120b1: e9 5d ff ff ff jmp 112013 <_Thread_Suspend+0x3b>
0010e71c <_Thread_Yield_processor>:
* ready chain
* select heir
*/
void _Thread_Yield_processor( void )
{
10e71c: 55 push %ebp
10e71d: 89 e5 mov %esp,%ebp
10e71f: 56 push %esi
10e720: 53 push %ebx
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
10e721: a1 18 74 12 00 mov 0x127418,%eax
ready = executing->ready;
10e726: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
_ISR_Disable( level );
10e72c: 9c pushf
10e72d: fa cli
10e72e: 59 pop %ecx
if ( !_Chain_Has_only_one_node( ready ) ) {
10e72f: 8b 1a mov (%edx),%ebx
10e731: 3b 5a 08 cmp 0x8(%edx),%ebx
10e734: 74 3e je 10e774 <_Thread_Yield_processor+0x58>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
10e736: 8b 30 mov (%eax),%esi
previous = the_node->previous;
10e738: 8b 58 04 mov 0x4(%eax),%ebx
next->previous = previous;
10e73b: 89 5e 04 mov %ebx,0x4(%esi)
previous->next = next;
10e73e: 89 33 mov %esi,(%ebx)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
10e740: 8d 5a 04 lea 0x4(%edx),%ebx
10e743: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
10e745: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
10e748: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
10e74b: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
10e74d: 89 58 04 mov %ebx,0x4(%eax)
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
10e750: 51 push %ecx
10e751: 9d popf
10e752: fa cli
if ( _Thread_Is_heir( executing ) )
10e753: 3b 05 e8 73 12 00 cmp 0x1273e8,%eax
10e759: 74 0d je 10e768 <_Thread_Yield_processor+0x4c><== ALWAYS TAKEN
_Thread_Heir = (Thread_Control *) ready->first;
_Context_Switch_necessary = true;
}
else if ( !_Thread_Is_heir( executing ) )
_Context_Switch_necessary = true;
10e75b: c6 05 28 74 12 00 01 movb $0x1,0x127428
_ISR_Enable( level );
10e762: 51 push %ecx
10e763: 9d popf
}
10e764: 5b pop %ebx
10e765: 5e pop %esi
10e766: c9 leave
10e767: c3 ret
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
_Thread_Heir = (Thread_Control *) ready->first;
10e768: 8b 02 mov (%edx),%eax
10e76a: a3 e8 73 12 00 mov %eax,0x1273e8
10e76f: eb ea jmp 10e75b <_Thread_Yield_processor+0x3f>
10e771: 8d 76 00 lea 0x0(%esi),%esi
_Context_Switch_necessary = true;
}
else if ( !_Thread_Is_heir( executing ) )
10e774: 3b 05 e8 73 12 00 cmp 0x1273e8,%eax
10e77a: 75 df jne 10e75b <_Thread_Yield_processor+0x3f><== NEVER TAKEN
10e77c: eb e4 jmp 10e762 <_Thread_Yield_processor+0x46>
0010dfb8 <_Thread_queue_Dequeue_priority>:
*/
Thread_Control *_Thread_queue_Dequeue_priority(
Thread_queue_Control *the_thread_queue
)
{
10dfb8: 55 push %ebp
10dfb9: 89 e5 mov %esp,%ebp
10dfbb: 57 push %edi
10dfbc: 56 push %esi
10dfbd: 53 push %ebx
10dfbe: 83 ec 1c sub $0x1c,%esp
10dfc1: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *new_second_node;
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
10dfc4: 9c pushf
10dfc5: fa cli
10dfc6: 58 pop %eax
10dfc7: 89 f2 mov %esi,%edx
10dfc9: 31 c9 xor %ecx,%ecx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10dfcb: 8d 5a 04 lea 0x4(%edx),%ebx
10dfce: 39 1a cmp %ebx,(%edx)
10dfd0: 75 1a jne 10dfec <_Thread_queue_Dequeue_priority+0x34>
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
10dfd2: 41 inc %ecx
10dfd3: 83 c2 0c add $0xc,%edx
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
for( index=0 ;
10dfd6: 83 f9 04 cmp $0x4,%ecx
10dfd9: 75 f0 jne 10dfcb <_Thread_queue_Dequeue_priority+0x13>
}
/*
* We did not find a thread to unblock.
*/
_ISR_Enable( level );
10dfdb: 50 push %eax
10dfdc: 9d popf
10dfdd: 31 db xor %ebx,%ebx
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
return( the_thread );
}
10dfdf: 89 d8 mov %ebx,%eax
10dfe1: 8d 65 f4 lea -0xc(%ebp),%esp
10dfe4: 5b pop %ebx
10dfe5: 5e pop %esi
10dfe6: 5f pop %edi
10dfe7: c9 leave
10dfe8: c3 ret
10dfe9: 8d 76 00 lea 0x0(%esi),%esi
_ISR_Disable( level );
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) {
the_thread = (Thread_Control *)
10dfec: 8d 14 49 lea (%ecx,%ecx,2),%edx
10dfef: 8b 1c 96 mov (%esi,%edx,4),%ebx
*/
_ISR_Enable( level );
return NULL;
dequeue:
the_thread->Wait.queue = NULL;
10dff2: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx)
new_first_node = the_thread->Wait.Block2n.first;
10dff9: 8b 53 38 mov 0x38(%ebx),%edx
new_first_thread = (Thread_Control *) new_first_node;
next_node = the_thread->Object.Node.next;
10dffc: 8b 0b mov (%ebx),%ecx
previous_node = the_thread->Object.Node.previous;
10dffe: 8b 73 04 mov 0x4(%ebx),%esi
10e001: 8d 7b 3c lea 0x3c(%ebx),%edi
10e004: 39 fa cmp %edi,%edx
10e006: 74 76 je 10e07e <_Thread_queue_Dequeue_priority+0xc6>
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
last_node = the_thread->Wait.Block2n.last;
10e008: 8b 7b 40 mov 0x40(%ebx),%edi
10e00b: 89 7d e4 mov %edi,-0x1c(%ebp)
new_second_node = new_first_node->next;
10e00e: 8b 3a mov (%edx),%edi
previous_node->next = new_first_node;
10e010: 89 16 mov %edx,(%esi)
next_node->previous = new_first_node;
10e012: 89 51 04 mov %edx,0x4(%ecx)
new_first_node->next = next_node;
10e015: 89 0a mov %ecx,(%edx)
new_first_node->previous = previous_node;
10e017: 89 72 04 mov %esi,0x4(%edx)
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
10e01a: 8b 4b 38 mov 0x38(%ebx),%ecx
10e01d: 3b 4b 40 cmp 0x40(%ebx),%ecx
10e020: 74 14 je 10e036 <_Thread_queue_Dequeue_priority+0x7e>
/* > two threads on 2-n */
new_second_node->previous =
10e022: 8d 4a 38 lea 0x38(%edx),%ecx
10e025: 89 4f 04 mov %ecx,0x4(%edi)
_Chain_Head( &new_first_thread->Wait.Block2n );
new_first_thread->Wait.Block2n.first = new_second_node;
10e028: 89 7a 38 mov %edi,0x38(%edx)
new_first_thread->Wait.Block2n.last = last_node;
10e02b: 8b 4d e4 mov -0x1c(%ebp),%ecx
10e02e: 89 4a 40 mov %ecx,0x40(%edx)
last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
10e031: 83 c2 3c add $0x3c,%edx
10e034: 89 11 mov %edx,(%ecx)
} else {
previous_node->next = next_node;
next_node->previous = previous_node;
}
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
10e036: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
10e03a: 74 18 je 10e054 <_Thread_queue_Dequeue_priority+0x9c>
_ISR_Enable( level );
10e03c: 50 push %eax
10e03d: 9d popf
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
10e03e: 83 ec 08 sub $0x8,%esp
10e041: 68 f8 ff 03 10 push $0x1003fff8
10e046: 53 push %ebx
10e047: e8 98 f7 ff ff call 10d7e4 <_Thread_Clear_state>
10e04c: 83 c4 10 add $0x10,%esp
10e04f: eb 8e jmp 10dfdf <_Thread_queue_Dequeue_priority+0x27>
10e051: 8d 76 00 lea 0x0(%esi),%esi
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
10e054: c7 43 50 03 00 00 00 movl $0x3,0x50(%ebx)
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
10e05b: 50 push %eax
10e05c: 9d popf
(void) _Watchdog_Remove( &the_thread->Timer );
10e05d: 83 ec 0c sub $0xc,%esp
10e060: 8d 43 48 lea 0x48(%ebx),%eax
10e063: 50 push %eax
10e064: e8 4b 0b 00 00 call 10ebb4 <_Watchdog_Remove>
10e069: 58 pop %eax
10e06a: 5a pop %edx
10e06b: 68 f8 ff 03 10 push $0x1003fff8
10e070: 53 push %ebx
10e071: e8 6e f7 ff ff call 10d7e4 <_Thread_Clear_state>
10e076: 83 c4 10 add $0x10,%esp
10e079: e9 61 ff ff ff jmp 10dfdf <_Thread_queue_Dequeue_priority+0x27>
new_first_thread->Wait.Block2n.last = last_node;
last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
}
} else {
previous_node->next = next_node;
10e07e: 89 0e mov %ecx,(%esi)
next_node->previous = previous_node;
10e080: 89 71 04 mov %esi,0x4(%ecx)
10e083: eb b1 jmp 10e036 <_Thread_queue_Dequeue_priority+0x7e>
00111d70 <_Thread_queue_Enqueue_fifo>:
Thread_blocking_operation_States _Thread_queue_Enqueue_fifo (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
111d70: 55 push %ebp
111d71: 89 e5 mov %esp,%ebp
111d73: 56 push %esi
111d74: 53 push %ebx
111d75: 8b 55 08 mov 0x8(%ebp),%edx
111d78: 8b 5d 0c mov 0xc(%ebp),%ebx
Thread_blocking_operation_States sync_state;
ISR_Level level;
_ISR_Disable( level );
111d7b: 9c pushf
111d7c: fa cli
111d7d: 59 pop %ecx
sync_state = the_thread_queue->sync_state;
111d7e: 8b 42 30 mov 0x30(%edx),%eax
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
111d81: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx)
if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) {
111d88: 83 f8 01 cmp $0x1,%eax
111d8b: 74 0b je 111d98 <_Thread_queue_Enqueue_fifo+0x28>
* 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;
111d8d: 8b 55 10 mov 0x10(%ebp),%edx
111d90: 89 0a mov %ecx,(%edx)
return sync_state;
}
111d92: 5b pop %ebx
111d93: 5e pop %esi
111d94: c9 leave
111d95: c3 ret
111d96: 66 90 xchg %ax,%ax
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
111d98: 8d 72 04 lea 0x4(%edx),%esi
111d9b: 89 33 mov %esi,(%ebx)
old_last_node = the_chain->last;
111d9d: 8b 72 08 mov 0x8(%edx),%esi
the_chain->last = the_node;
111da0: 89 5a 08 mov %ebx,0x8(%edx)
old_last_node->next = the_node;
111da3: 89 1e mov %ebx,(%esi)
the_node->previous = old_last_node;
111da5: 89 73 04 mov %esi,0x4(%ebx)
if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) {
_Chain_Append_unprotected(
&the_thread_queue->Queues.Fifo,
&the_thread->Object.Node
);
the_thread->Wait.queue = the_thread_queue;
111da8: 89 53 44 mov %edx,0x44(%ebx)
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
_ISR_Enable( level );
111dab: 51 push %ecx
111dac: 9d popf
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
return sync_state;
}
111dad: 5b pop %ebx
111dae: 5e pop %esi
111daf: c9 leave
111db0: c3 ret
0010e120 <_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
)
{
10e120: 55 push %ebp
10e121: 89 e5 mov %esp,%ebp
10e123: 57 push %edi
10e124: 56 push %esi
10e125: 53 push %ebx
10e126: 83 ec 08 sub $0x8,%esp
10e129: 8b 7d 0c mov 0xc(%ebp),%edi
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10e12c: 8d 47 3c lea 0x3c(%edi),%eax
10e12f: 89 47 38 mov %eax,0x38(%edi)
the_chain->permanent_null = NULL;
10e132: c7 47 3c 00 00 00 00 movl $0x0,0x3c(%edi)
the_chain->last = _Chain_Head(the_chain);
10e139: 8d 47 38 lea 0x38(%edi),%eax
10e13c: 89 47 40 mov %eax,0x40(%edi)
Priority_Control priority;
States_Control block_state;
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
10e13f: 8b 57 14 mov 0x14(%edi),%edx
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
10e142: 89 d0 mov %edx,%eax
10e144: c1 e8 06 shr $0x6,%eax
10e147: 8d 04 40 lea (%eax,%eax,2),%eax
10e14a: 8b 4d 08 mov 0x8(%ebp),%ecx
10e14d: 8d 34 81 lea (%ecx,%eax,4),%esi
block_state = the_thread_queue->state;
10e150: 8b 59 38 mov 0x38(%ecx),%ebx
if ( _Thread_queue_Is_reverse_search( priority ) )
10e153: f6 c2 20 test $0x20,%dl
10e156: 75 60 jne 10e1b8 <_Thread_queue_Enqueue_priority+0x98>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10e158: 8d 46 04 lea 0x4(%esi),%eax
10e15b: 89 75 f0 mov %esi,-0x10(%ebp)
10e15e: 89 7d ec mov %edi,-0x14(%ebp)
10e161: 89 c7 mov %eax,%edi
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
10e163: 9c pushf
10e164: fa cli
10e165: 5e pop %esi
search_thread = (Thread_Control *) header->first;
10e166: 8b 4d f0 mov -0x10(%ebp),%ecx
10e169: 8b 01 mov (%ecx),%eax
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
10e16b: 39 f8 cmp %edi,%eax
10e16d: 75 17 jne 10e186 <_Thread_queue_Enqueue_priority+0x66>
10e16f: e9 09 01 00 00 jmp 10e27d <_Thread_queue_Enqueue_priority+0x15d>
break;
search_priority = search_thread->current_priority;
if ( priority <= search_priority )
break;
#endif
_ISR_Flash( level );
10e174: 56 push %esi
10e175: 9d popf
10e176: fa cli
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
10e177: 85 58 10 test %ebx,0x10(%eax)
10e17a: 0f 84 a8 00 00 00 je 10e228 <_Thread_queue_Enqueue_priority+0x108><== NEVER TAKEN
_ISR_Enable( level );
goto restart_forward_search;
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
10e180: 8b 00 mov (%eax),%eax
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 ) ) {
10e182: 39 f8 cmp %edi,%eax
10e184: 74 07 je 10e18d <_Thread_queue_Enqueue_priority+0x6d>
search_priority = search_thread->current_priority;
10e186: 8b 48 14 mov 0x14(%eax),%ecx
if ( priority <= search_priority )
10e189: 39 ca cmp %ecx,%edx
10e18b: 77 e7 ja 10e174 <_Thread_queue_Enqueue_priority+0x54>
10e18d: 89 4d f0 mov %ecx,-0x10(%ebp)
10e190: 8b 7d ec mov -0x14(%ebp),%edi
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 ) ) {
10e193: 89 f3 mov %esi,%ebx
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
10e195: 8b 4d 08 mov 0x8(%ebp),%ecx
10e198: 83 79 30 01 cmpl $0x1,0x30(%ecx)
10e19c: 0f 84 8e 00 00 00 je 10e230 <_Thread_queue_Enqueue_priority+0x110>
* 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;
10e1a2: 8b 45 10 mov 0x10(%ebp),%eax
10e1a5: 89 18 mov %ebx,(%eax)
return the_thread_queue->sync_state;
10e1a7: 8b 55 08 mov 0x8(%ebp),%edx
10e1aa: 8b 42 30 mov 0x30(%edx),%eax
}
10e1ad: 83 c4 08 add $0x8,%esp
10e1b0: 5b pop %ebx
10e1b1: 5e pop %esi
10e1b2: 5f pop %edi
10e1b3: c9 leave
10e1b4: c3 ret
10e1b5: 8d 76 00 lea 0x0(%esi),%esi
10e1b8: 89 7d f0 mov %edi,-0x10(%ebp)
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
10e1bb: 0f b6 0d 14 32 12 00 movzbl 0x123214,%ecx
10e1c2: 41 inc %ecx
_ISR_Disable( level );
10e1c3: 9c pushf
10e1c4: fa cli
10e1c5: 5f pop %edi
search_thread = (Thread_Control *) header->last;
10e1c6: 8b 46 08 mov 0x8(%esi),%eax
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
10e1c9: 39 f0 cmp %esi,%eax
10e1cb: 75 12 jne 10e1df <_Thread_queue_Enqueue_priority+0xbf>
10e1cd: eb 17 jmp 10e1e6 <_Thread_queue_Enqueue_priority+0xc6>
10e1cf: 90 nop
break;
search_priority = search_thread->current_priority;
if ( priority >= search_priority )
break;
#endif
_ISR_Flash( level );
10e1d0: 57 push %edi
10e1d1: 9d popf
10e1d2: fa cli
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
10e1d3: 85 58 10 test %ebx,0x10(%eax)
10e1d6: 74 4c je 10e224 <_Thread_queue_Enqueue_priority+0x104>
_ISR_Enable( level );
goto restart_reverse_search;
}
search_thread = (Thread_Control *)
10e1d8: 8b 40 04 mov 0x4(%eax),%eax
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 ) ) {
10e1db: 39 f0 cmp %esi,%eax
10e1dd: 74 07 je 10e1e6 <_Thread_queue_Enqueue_priority+0xc6>
search_priority = search_thread->current_priority;
10e1df: 8b 48 14 mov 0x14(%eax),%ecx
if ( priority >= search_priority )
10e1e2: 39 ca cmp %ecx,%edx
10e1e4: 72 ea jb 10e1d0 <_Thread_queue_Enqueue_priority+0xb0>
10e1e6: 89 fe mov %edi,%esi
10e1e8: 89 4d ec mov %ecx,-0x14(%ebp)
10e1eb: 8b 7d f0 mov -0x10(%ebp),%edi
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 ) ) {
10e1ee: 89 f3 mov %esi,%ebx
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
10e1f0: 8b 4d 08 mov 0x8(%ebp),%ecx
10e1f3: 83 79 30 01 cmpl $0x1,0x30(%ecx)
10e1f7: 75 a9 jne 10e1a2 <_Thread_queue_Enqueue_priority+0x82>
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
10e1f9: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx)
if ( priority == search_priority )
10e200: 3b 55 ec cmp -0x14(%ebp),%edx
10e203: 74 56 je 10e25b <_Thread_queue_Enqueue_priority+0x13b>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
10e205: 8b 10 mov (%eax),%edx
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
10e207: 89 17 mov %edx,(%edi)
the_node->previous = search_node;
10e209: 89 47 04 mov %eax,0x4(%edi)
search_node->next = the_node;
10e20c: 89 38 mov %edi,(%eax)
next_node->previous = the_node;
10e20e: 89 7a 04 mov %edi,0x4(%edx)
the_thread->Wait.queue = the_thread_queue;
10e211: 89 4f 44 mov %ecx,0x44(%edi)
_ISR_Enable( level );
10e214: 56 push %esi
10e215: 9d popf
10e216: b8 01 00 00 00 mov $0x1,%eax
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
return the_thread_queue->sync_state;
}
10e21b: 83 c4 08 add $0x8,%esp
10e21e: 5b pop %ebx
10e21f: 5e pop %esi
10e220: 5f pop %edi
10e221: c9 leave
10e222: c3 ret
10e223: 90 nop
if ( priority >= search_priority )
break;
#endif
_ISR_Flash( level );
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
_ISR_Enable( level );
10e224: 57 push %edi
10e225: 9d popf
goto restart_reverse_search;
10e226: eb 93 jmp 10e1bb <_Thread_queue_Enqueue_priority+0x9b>
if ( priority <= search_priority )
break;
#endif
_ISR_Flash( level );
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
_ISR_Enable( level );
10e228: 56 push %esi <== NOT EXECUTED
10e229: 9d popf <== NOT EXECUTED
goto restart_forward_search;
10e22a: e9 34 ff ff ff jmp 10e163 <_Thread_queue_Enqueue_priority+0x43><== NOT EXECUTED
10e22f: 90 nop <== NOT EXECUTED
if ( the_thread_queue->sync_state !=
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
10e230: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx)
if ( priority == search_priority )
10e237: 3b 55 f0 cmp -0x10(%ebp),%edx
10e23a: 74 1f je 10e25b <_Thread_queue_Enqueue_priority+0x13b>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
previous_node = search_node->previous;
10e23c: 8b 50 04 mov 0x4(%eax),%edx
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
10e23f: 89 07 mov %eax,(%edi)
the_node->previous = previous_node;
10e241: 89 57 04 mov %edx,0x4(%edi)
previous_node->next = the_node;
10e244: 89 3a mov %edi,(%edx)
search_node->previous = the_node;
10e246: 89 78 04 mov %edi,0x4(%eax)
the_thread->Wait.queue = the_thread_queue;
10e249: 89 4f 44 mov %ecx,0x44(%edi)
_ISR_Enable( level );
10e24c: 56 push %esi
10e24d: 9d popf
10e24e: b8 01 00 00 00 mov $0x1,%eax
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
return the_thread_queue->sync_state;
}
10e253: 83 c4 08 add $0x8,%esp
10e256: 5b pop %ebx
10e257: 5e pop %esi
10e258: 5f pop %edi
10e259: c9 leave
10e25a: c3 ret
10e25b: 83 c0 3c add $0x3c,%eax
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
equal_priority: /* add at end of priority group */
search_node = _Chain_Tail( &search_thread->Wait.Block2n );
previous_node = search_node->previous;
10e25e: 8b 50 04 mov 0x4(%eax),%edx
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
10e261: 89 07 mov %eax,(%edi)
the_node->previous = previous_node;
10e263: 89 57 04 mov %edx,0x4(%edi)
previous_node->next = the_node;
10e266: 89 3a mov %edi,(%edx)
search_node->previous = the_node;
10e268: 89 78 04 mov %edi,0x4(%eax)
the_thread->Wait.queue = the_thread_queue;
10e26b: 8b 45 08 mov 0x8(%ebp),%eax
10e26e: 89 47 44 mov %eax,0x44(%edi)
_ISR_Enable( level );
10e271: 53 push %ebx
10e272: 9d popf
10e273: b8 01 00 00 00 mov $0x1,%eax
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
10e278: e9 30 ff ff ff jmp 10e1ad <_Thread_queue_Enqueue_priority+0x8d>
10e27d: 8b 7d ec mov -0x14(%ebp),%edi
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 ) ) {
10e280: 89 f3 mov %esi,%ebx
10e282: c7 45 f0 ff ff ff ff movl $0xffffffff,-0x10(%ebp)
10e289: e9 07 ff ff ff jmp 10e195 <_Thread_queue_Enqueue_priority+0x75>
00111db4 <_Thread_queue_Extract>:
void _Thread_queue_Extract(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
111db4: 55 push %ebp
111db5: 89 e5 mov %esp,%ebp
111db7: 83 ec 08 sub $0x8,%esp
111dba: 8b 45 08 mov 0x8(%ebp),%eax
111dbd: 8b 55 0c mov 0xc(%ebp),%edx
/*
* Can not use indirect function pointer here since Extract priority
* is a macro and the underlying methods do not have the same signature.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
111dc0: 83 78 34 01 cmpl $0x1,0x34(%eax)
111dc4: 74 0e je 111dd4 <_Thread_queue_Extract+0x20>
_Thread_queue_Extract_priority( the_thread_queue, the_thread );
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
_Thread_queue_Extract_fifo( the_thread_queue, the_thread );
111dc6: 89 55 0c mov %edx,0xc(%ebp)
111dc9: 89 45 08 mov %eax,0x8(%ebp)
}
111dcc: c9 leave
* is a macro and the underlying methods do not have the same signature.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
_Thread_queue_Extract_priority( the_thread_queue, the_thread );
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
_Thread_queue_Extract_fifo( the_thread_queue, the_thread );
111dcd: e9 46 1f 00 00 jmp 113d18 <_Thread_queue_Extract_fifo>
111dd2: 66 90 xchg %ax,%ax
/*
* Can not use indirect function pointer here since Extract priority
* is a macro and the underlying methods do not have the same signature.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
_Thread_queue_Extract_priority( the_thread_queue, the_thread );
111dd4: 51 push %ecx
111dd5: 6a 00 push $0x0
111dd7: 52 push %edx
111dd8: 50 push %eax
111dd9: e8 06 00 00 00 call 111de4 <_Thread_queue_Extract_priority_helper>
111dde: 83 c4 10 add $0x10,%esp
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
_Thread_queue_Extract_fifo( the_thread_queue, the_thread );
}
111de1: c9 leave
111de2: c3 ret
00113d18 <_Thread_queue_Extract_fifo>:
void _Thread_queue_Extract_fifo(
Thread_queue_Control *the_thread_queue __attribute__((unused)),
Thread_Control *the_thread
)
{
113d18: 55 push %ebp
113d19: 89 e5 mov %esp,%ebp
113d1b: 53 push %ebx
113d1c: 83 ec 04 sub $0x4,%esp
113d1f: 8b 5d 0c mov 0xc(%ebp),%ebx
ISR_Level level;
_ISR_Disable( level );
113d22: 9c pushf
113d23: fa cli
113d24: 58 pop %eax
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
113d25: f7 43 10 e0 be 03 00 testl $0x3bee0,0x10(%ebx)
113d2c: 74 2e je 113d5c <_Thread_queue_Extract_fifo+0x44>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
113d2e: 8b 0b mov (%ebx),%ecx
previous = the_node->previous;
113d30: 8b 53 04 mov 0x4(%ebx),%edx
next->previous = previous;
113d33: 89 51 04 mov %edx,0x4(%ecx)
previous->next = next;
113d36: 89 0a mov %ecx,(%edx)
return;
}
_Chain_Extract_unprotected( &the_thread->Object.Node );
the_thread->Wait.queue = NULL;
113d38: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx)
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
113d3f: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
113d43: 74 1f je 113d64 <_Thread_queue_Extract_fifo+0x4c>
_ISR_Enable( level );
113d45: 50 push %eax
113d46: 9d popf
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
113d47: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp)
113d4e: 89 5d 08 mov %ebx,0x8(%ebp)
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
113d51: 8b 5d fc mov -0x4(%ebp),%ebx
113d54: c9 leave
113d55: e9 8a 9a ff ff jmp 10d7e4 <_Thread_Clear_state>
113d5a: 66 90 xchg %ax,%ax
ISR_Level level;
_ISR_Disable( level );
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
_ISR_Enable( level );
113d5c: 50 push %eax
113d5d: 9d popf
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
113d5e: 8b 5d fc mov -0x4(%ebp),%ebx
113d61: c9 leave
113d62: c3 ret
113d63: 90 nop
113d64: c7 43 50 03 00 00 00 movl $0x3,0x50(%ebx)
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
_ISR_Enable( level );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
113d6b: 50 push %eax
113d6c: 9d popf
(void) _Watchdog_Remove( &the_thread->Timer );
113d6d: 83 ec 0c sub $0xc,%esp
113d70: 8d 43 48 lea 0x48(%ebx),%eax
113d73: 50 push %eax
113d74: e8 3b ae ff ff call 10ebb4 <_Watchdog_Remove>
113d79: 83 c4 10 add $0x10,%esp
113d7c: eb c9 jmp 113d47 <_Thread_queue_Extract_fifo+0x2f>
00111de4 <_Thread_queue_Extract_priority_helper>:
void _Thread_queue_Extract_priority_helper(
Thread_queue_Control *the_thread_queue __attribute__((unused)),
Thread_Control *the_thread,
bool requeuing
)
{
111de4: 55 push %ebp
111de5: 89 e5 mov %esp,%ebp
111de7: 57 push %edi
111de8: 56 push %esi
111de9: 53 push %ebx
111dea: 83 ec 1c sub $0x1c,%esp
111ded: 8b 5d 0c mov 0xc(%ebp),%ebx
111df0: 8a 45 10 mov 0x10(%ebp),%al
111df3: 88 45 e3 mov %al,-0x1d(%ebp)
Chain_Node *new_first_node;
Chain_Node *new_second_node;
Chain_Node *last_node;
the_node = (Chain_Node *) the_thread;
_ISR_Disable( level );
111df6: 9c pushf
111df7: fa cli
111df8: 8f 45 e4 popl -0x1c(%ebp)
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
111dfb: f7 43 10 e0 be 03 00 testl $0x3bee0,0x10(%ebx)
111e02: 74 60 je 111e64 <_Thread_queue_Extract_priority_helper+0x80>
/*
* The thread was actually waiting on a thread queue so let's remove it.
*/
next_node = the_node->next;
111e04: 8b 13 mov (%ebx),%edx
previous_node = the_node->previous;
111e06: 8b 4b 04 mov 0x4(%ebx),%ecx
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
111e09: 8b 43 38 mov 0x38(%ebx),%eax
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
111e0c: 8d 73 3c lea 0x3c(%ebx),%esi
111e0f: 39 f0 cmp %esi,%eax
111e11: 74 5d je 111e70 <_Thread_queue_Extract_priority_helper+0x8c>
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
new_first_node = the_thread->Wait.Block2n.first;
new_first_thread = (Thread_Control *) new_first_node;
last_node = the_thread->Wait.Block2n.last;
111e13: 8b 7b 40 mov 0x40(%ebx),%edi
new_second_node = new_first_node->next;
111e16: 8b 30 mov (%eax),%esi
previous_node->next = new_first_node;
111e18: 89 01 mov %eax,(%ecx)
next_node->previous = new_first_node;
111e1a: 89 42 04 mov %eax,0x4(%edx)
new_first_node->next = next_node;
111e1d: 89 10 mov %edx,(%eax)
new_first_node->previous = previous_node;
111e1f: 89 48 04 mov %ecx,0x4(%eax)
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
111e22: 8b 53 38 mov 0x38(%ebx),%edx
111e25: 3b 53 40 cmp 0x40(%ebx),%edx
111e28: 74 11 je 111e3b <_Thread_queue_Extract_priority_helper+0x57>
/* > two threads on 2-n */
new_second_node->previous =
111e2a: 8d 50 38 lea 0x38(%eax),%edx
111e2d: 89 56 04 mov %edx,0x4(%esi)
_Chain_Head( &new_first_thread->Wait.Block2n );
new_first_thread->Wait.Block2n.first = new_second_node;
111e30: 89 70 38 mov %esi,0x38(%eax)
new_first_thread->Wait.Block2n.last = last_node;
111e33: 89 78 40 mov %edi,0x40(%eax)
last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
111e36: 83 c0 3c add $0x3c,%eax
111e39: 89 07 mov %eax,(%edi)
/*
* If we are not supposed to touch timers or the thread's state, return.
*/
if ( requeuing ) {
111e3b: 80 7d e3 00 cmpb $0x0,-0x1d(%ebp)
111e3f: 75 23 jne 111e64 <_Thread_queue_Extract_priority_helper+0x80>
_ISR_Enable( level );
return;
}
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
111e41: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
111e45: 74 31 je 111e78 <_Thread_queue_Extract_priority_helper+0x94>
_ISR_Enable( level );
111e47: ff 75 e4 pushl -0x1c(%ebp)
111e4a: 9d popf
111e4b: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp)
111e52: 89 5d 08 mov %ebx,0x8(%ebp)
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
111e55: 8d 65 f4 lea -0xc(%ebp),%esp
111e58: 5b pop %ebx
111e59: 5e pop %esi
111e5a: 5f pop %edi
111e5b: c9 leave
111e5c: e9 83 b9 ff ff jmp 10d7e4 <_Thread_Clear_state>
111e61: 8d 76 00 lea 0x0(%esi),%esi
/*
* If we are not supposed to touch timers or the thread's state, return.
*/
if ( requeuing ) {
_ISR_Enable( level );
111e64: ff 75 e4 pushl -0x1c(%ebp)
111e67: 9d popf
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
111e68: 8d 65 f4 lea -0xc(%ebp),%esp
111e6b: 5b pop %ebx
111e6c: 5e pop %esi
111e6d: 5f pop %edi
111e6e: c9 leave
111e6f: c3 ret
new_first_thread->Wait.Block2n.last = last_node;
last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
}
} else {
previous_node->next = next_node;
111e70: 89 11 mov %edx,(%ecx)
next_node->previous = previous_node;
111e72: 89 4a 04 mov %ecx,0x4(%edx)
111e75: eb c4 jmp 111e3b <_Thread_queue_Extract_priority_helper+0x57>
111e77: 90 nop
111e78: c7 43 50 03 00 00 00 movl $0x3,0x50(%ebx)
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
_ISR_Enable( level );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
111e7f: ff 75 e4 pushl -0x1c(%ebp)
111e82: 9d popf
(void) _Watchdog_Remove( &the_thread->Timer );
111e83: 83 ec 0c sub $0xc,%esp
111e86: 8d 43 48 lea 0x48(%ebx),%eax
111e89: 50 push %eax
111e8a: e8 25 cd ff ff call 10ebb4 <_Watchdog_Remove>
111e8f: 83 c4 10 add $0x10,%esp
111e92: eb b7 jmp 111e4b <_Thread_queue_Extract_priority_helper+0x67>
0010e290 <_Thread_queue_Extract_with_proxy>:
*/
bool _Thread_queue_Extract_with_proxy(
Thread_Control *the_thread
)
{
10e290: 55 push %ebp
10e291: 89 e5 mov %esp,%ebp
10e293: 83 ec 08 sub $0x8,%esp
10e296: 8b 45 08 mov 0x8(%ebp),%eax
States_Control state;
state = the_thread->current_state;
10e299: f7 40 10 e0 be 03 00 testl $0x3bee0,0x10(%eax)
10e2a0: 75 06 jne 10e2a8 <_Thread_queue_Extract_with_proxy+0x18>
10e2a2: 31 c0 xor %eax,%eax
_Thread_queue_Extract( the_thread->Wait.queue, the_thread );
return true;
}
return false;
}
10e2a4: c9 leave
10e2a5: c3 ret
10e2a6: 66 90 xchg %ax,%ax
if ( proxy_extract_callout )
(*proxy_extract_callout)( the_thread );
}
#endif
_Thread_queue_Extract( the_thread->Wait.queue, the_thread );
10e2a8: 83 ec 08 sub $0x8,%esp
10e2ab: 50 push %eax
10e2ac: ff 70 44 pushl 0x44(%eax)
10e2af: e8 00 3b 00 00 call 111db4 <_Thread_queue_Extract>
10e2b4: b0 01 mov $0x1,%al
return true;
10e2b6: 83 c4 10 add $0x10,%esp
}
return false;
}
10e2b9: c9 leave
10e2ba: c3 ret
00120588 <_Thread_queue_First>:
*/
Thread_Control *_Thread_queue_First(
Thread_queue_Control *the_thread_queue
)
{
120588: 55 push %ebp
120589: 89 e5 mov %esp,%ebp
12058b: 83 ec 08 sub $0x8,%esp
12058e: 8b 45 08 mov 0x8(%ebp),%eax
Thread_Control * (*first_p)(Thread_queue_Control *);
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
120591: 83 78 34 01 cmpl $0x1,0x34(%eax)
120595: 74 0d je 1205a4 <_Thread_queue_First+0x1c>
120597: ba 9c 21 12 00 mov $0x12219c,%edx
first_p = _Thread_queue_First_priority;
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
first_p = _Thread_queue_First_fifo;
return (*first_p)( the_thread_queue );
12059c: 89 45 08 mov %eax,0x8(%ebp)
}
12059f: c9 leave
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
first_p = _Thread_queue_First_priority;
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
first_p = _Thread_queue_First_fifo;
return (*first_p)( the_thread_queue );
1205a0: ff e2 jmp *%edx
1205a2: 66 90 xchg %ax,%ax
Thread_queue_Control *the_thread_queue
)
{
Thread_Control * (*first_p)(Thread_queue_Control *);
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
1205a4: ba b0 05 12 00 mov $0x1205b0,%edx
first_p = _Thread_queue_First_priority;
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
first_p = _Thread_queue_First_fifo;
return (*first_p)( the_thread_queue );
1205a9: 89 45 08 mov %eax,0x8(%ebp)
}
1205ac: c9 leave
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
first_p = _Thread_queue_First_priority;
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
first_p = _Thread_queue_First_fifo;
return (*first_p)( the_thread_queue );
1205ad: ff e2 jmp *%edx
0012219c <_Thread_queue_First_fifo>:
*/
Thread_Control *_Thread_queue_First_fifo(
Thread_queue_Control *the_thread_queue
)
{
12219c: 55 push %ebp
12219d: 89 e5 mov %esp,%ebp
12219f: 8b 55 08 mov 0x8(%ebp),%edx
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
1221a2: 8b 02 mov (%edx),%eax
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
1221a4: 83 c2 04 add $0x4,%edx
1221a7: 39 d0 cmp %edx,%eax
1221a9: 74 05 je 1221b0 <_Thread_queue_First_fifo+0x14>
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) )
return (Thread_Control *) the_thread_queue->Queues.Fifo.first;
return NULL;
}
1221ab: c9 leave
1221ac: c3 ret
1221ad: 8d 76 00 lea 0x0(%esi),%esi
1221b0: 31 c0 xor %eax,%eax
1221b2: c9 leave
1221b3: c3 ret
0010e2bc <_Thread_queue_Flush>:
#else
Thread_queue_Flush_callout remote_extract_callout __attribute__((unused)),
#endif
uint32_t status
)
{
10e2bc: 55 push %ebp
10e2bd: 89 e5 mov %esp,%ebp
10e2bf: 56 push %esi
10e2c0: 53 push %ebx
10e2c1: 8b 5d 08 mov 0x8(%ebp),%ebx
10e2c4: 8b 75 10 mov 0x10(%ebp),%esi
Thread_Control *the_thread;
while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) {
10e2c7: eb 06 jmp 10e2cf <_Thread_queue_Flush+0x13>
10e2c9: 8d 76 00 lea 0x0(%esi),%esi
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
( *remote_extract_callout )( the_thread );
else
#endif
the_thread->Wait.return_code = status;
10e2cc: 89 70 34 mov %esi,0x34(%eax)
uint32_t status
)
{
Thread_Control *the_thread;
while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) {
10e2cf: 83 ec 0c sub $0xc,%esp
10e2d2: 53 push %ebx
10e2d3: e8 94 fc ff ff call 10df6c <_Thread_queue_Dequeue>
10e2d8: 83 c4 10 add $0x10,%esp
10e2db: 85 c0 test %eax,%eax
10e2dd: 75 ed jne 10e2cc <_Thread_queue_Flush+0x10>
( *remote_extract_callout )( the_thread );
else
#endif
the_thread->Wait.return_code = status;
}
}
10e2df: 8d 65 f8 lea -0x8(%ebp),%esp
10e2e2: 5b pop %ebx
10e2e3: 5e pop %esi
10e2e4: c9 leave
10e2e5: c3 ret
00111e94 <_Thread_queue_Process_timeout>:
#include <rtems/score/tqdata.h>
void _Thread_queue_Process_timeout(
Thread_Control *the_thread
)
{
111e94: 55 push %ebp
111e95: 89 e5 mov %esp,%ebp
111e97: 83 ec 08 sub $0x8,%esp
111e9a: 8b 45 08 mov 0x8(%ebp),%eax
Thread_queue_Control *the_thread_queue = the_thread->Wait.queue;
111e9d: 8b 50 44 mov 0x44(%eax),%edx
* If it is not satisfied, then it is "nothing happened" and
* this is the "timeout" transition. After a request is satisfied,
* a timeout is not allowed to occur.
*/
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
111ea0: 8b 4a 30 mov 0x30(%edx),%ecx
111ea3: 85 c9 test %ecx,%ecx
111ea5: 74 08 je 111eaf <_Thread_queue_Process_timeout+0x1b>
111ea7: 3b 05 18 74 12 00 cmp 0x127418,%eax
111ead: 74 19 je 111ec8 <_Thread_queue_Process_timeout+0x34><== ALWAYS TAKEN
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
}
} else {
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
111eaf: 8b 52 3c mov 0x3c(%edx),%edx
111eb2: 89 50 34 mov %edx,0x34(%eax)
_Thread_queue_Extract( the_thread->Wait.queue, the_thread );
111eb5: 83 ec 08 sub $0x8,%esp
111eb8: 50 push %eax
111eb9: ff 70 44 pushl 0x44(%eax)
111ebc: e8 f3 fe ff ff call 111db4 <_Thread_queue_Extract>
111ec1: 83 c4 10 add $0x10,%esp
}
}
111ec4: c9 leave
111ec5: c3 ret
111ec6: 66 90 xchg %ax,%ax
* a timeout is not allowed to occur.
*/
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
_Thread_Is_executing( the_thread ) ) {
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
111ec8: 83 f9 03 cmp $0x3,%ecx
111ecb: 74 f7 je 111ec4 <_Thread_queue_Process_timeout+0x30>
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
111ecd: 8b 4a 3c mov 0x3c(%edx),%ecx
111ed0: 89 48 34 mov %ecx,0x34(%eax)
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
111ed3: c7 42 30 02 00 00 00 movl $0x2,0x30(%edx)
}
} else {
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
_Thread_queue_Extract( the_thread->Wait.queue, the_thread );
}
}
111eda: c9 leave
111edb: c3 ret
0010e338 <_Thread_queue_Requeue>:
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
10e338: 55 push %ebp
10e339: 89 e5 mov %esp,%ebp
10e33b: 57 push %edi
10e33c: 56 push %esi
10e33d: 53 push %ebx
10e33e: 83 ec 1c sub $0x1c,%esp
10e341: 8b 75 08 mov 0x8(%ebp),%esi
10e344: 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 )
10e347: 85 f6 test %esi,%esi
10e349: 74 06 je 10e351 <_Thread_queue_Requeue+0x19><== 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 ) {
10e34b: 83 7e 34 01 cmpl $0x1,0x34(%esi)
10e34f: 74 0b je 10e35c <_Thread_queue_Requeue+0x24><== ALWAYS TAKEN
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
}
_ISR_Enable( level );
}
}
10e351: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10e354: 5b pop %ebx <== NOT EXECUTED
10e355: 5e pop %esi <== NOT EXECUTED
10e356: 5f pop %edi <== NOT EXECUTED
10e357: c9 leave <== NOT EXECUTED
10e358: c3 ret <== NOT EXECUTED
10e359: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) {
Thread_queue_Control *tq = the_thread_queue;
ISR_Level level;
ISR_Level level_ignored;
_ISR_Disable( level );
10e35c: 9c pushf
10e35d: fa cli
10e35e: 5b pop %ebx
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
10e35f: f7 47 10 e0 be 03 00 testl $0x3bee0,0x10(%edi)
10e366: 75 0c jne 10e374 <_Thread_queue_Requeue+0x3c><== ALWAYS TAKEN
_Thread_queue_Enter_critical_section( tq );
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
}
_ISR_Enable( level );
10e368: 53 push %ebx
10e369: 9d popf
}
}
10e36a: 8d 65 f4 lea -0xc(%ebp),%esp
10e36d: 5b pop %ebx
10e36e: 5e pop %esi
10e36f: 5f pop %edi
10e370: c9 leave
10e371: c3 ret
10e372: 66 90 xchg %ax,%ax
10e374: c7 46 30 01 00 00 00 movl $0x1,0x30(%esi)
ISR_Level level_ignored;
_ISR_Disable( level );
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
_Thread_queue_Enter_critical_section( tq );
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
10e37b: 50 push %eax
10e37c: 6a 01 push $0x1
10e37e: 57 push %edi
10e37f: 56 push %esi
10e380: e8 5f 3a 00 00 call 111de4 <_Thread_queue_Extract_priority_helper>
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
10e385: 83 c4 0c add $0xc,%esp
10e388: 8d 45 e4 lea -0x1c(%ebp),%eax
10e38b: 50 push %eax
10e38c: 57 push %edi
10e38d: 56 push %esi
10e38e: e8 8d fd ff ff call 10e120 <_Thread_queue_Enqueue_priority>
10e393: 83 c4 10 add $0x10,%esp
10e396: eb d0 jmp 10e368 <_Thread_queue_Requeue+0x30>
0010e398 <_Thread_queue_Timeout>:
void _Thread_queue_Timeout(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
10e398: 55 push %ebp
10e399: 89 e5 mov %esp,%ebp
10e39b: 83 ec 20 sub $0x20,%esp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
10e39e: 8d 45 f4 lea -0xc(%ebp),%eax
10e3a1: 50 push %eax
10e3a2: ff 75 08 pushl 0x8(%ebp)
10e3a5: e8 06 f8 ff ff call 10dbb0 <_Thread_Get>
switch ( location ) {
10e3aa: 83 c4 10 add $0x10,%esp
10e3ad: 8b 55 f4 mov -0xc(%ebp),%edx
10e3b0: 85 d2 test %edx,%edx
10e3b2: 75 17 jne 10e3cb <_Thread_queue_Timeout+0x33><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
10e3b4: 83 ec 0c sub $0xc,%esp
10e3b7: 50 push %eax
10e3b8: e8 d7 3a 00 00 call 111e94 <_Thread_queue_Process_timeout>
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
10e3bd: a1 58 73 12 00 mov 0x127358,%eax
10e3c2: 48 dec %eax
10e3c3: a3 58 73 12 00 mov %eax,0x127358
10e3c8: 83 c4 10 add $0x10,%esp
_Thread_Unnest_dispatch();
break;
}
}
10e3cb: c9 leave
10e3cc: 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
00119828 <_Timer_server_Body>:
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
119828: 55 push %ebp
119829: 89 e5 mov %esp,%ebp
11982b: 57 push %edi
11982c: 56 push %esi
11982d: 53 push %ebx
11982e: 83 ec 4c sub $0x4c,%esp
119831: 8b 5d 08 mov 0x8(%ebp),%ebx
119834: 8d 45 e0 lea -0x20(%ebp),%eax
119837: 89 45 b4 mov %eax,-0x4c(%ebp)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
11983a: 89 45 dc mov %eax,-0x24(%ebp)
the_chain->permanent_null = NULL;
11983d: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
the_chain->last = _Chain_Head(the_chain);
119844: 8d 4d dc lea -0x24(%ebp),%ecx
119847: 89 4d e4 mov %ecx,-0x1c(%ebp)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
11984a: 8d 7d d0 lea -0x30(%ebp),%edi
11984d: 8d 45 d4 lea -0x2c(%ebp),%eax
119850: 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);
119853: 89 45 d0 mov %eax,-0x30(%ebp)
the_chain->permanent_null = NULL;
119856: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp)
the_chain->last = _Chain_Head(the_chain);
11985d: 89 7d d8 mov %edi,-0x28(%ebp)
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
119860: 8d 73 30 lea 0x30(%ebx),%esi
/*
* 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 );
119863: 8d 4b 68 lea 0x68(%ebx),%ecx
119866: 89 4d c4 mov %ecx,-0x3c(%ebp)
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
119869: 8d 43 08 lea 0x8(%ebx),%eax
11986c: 89 45 bc mov %eax,-0x44(%ebp)
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
11986f: 8d 53 40 lea 0x40(%ebx),%edx
119872: 89 55 c0 mov %edx,-0x40(%ebp)
119875: 8d 76 00 lea 0x0(%esi),%esi
{
/*
* 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;
119878: 8d 4d dc lea -0x24(%ebp),%ecx
11987b: 89 4b 78 mov %ecx,0x78(%ebx)
11987e: 66 90 xchg %ax,%ax
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
119880: a1 e4 28 14 00 mov 0x1428e4,%eax
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
119885: 8b 53 3c mov 0x3c(%ebx),%edx
watchdogs->last_snapshot = snapshot;
119888: 89 43 3c mov %eax,0x3c(%ebx)
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
11988b: 51 push %ecx
11988c: 57 push %edi
11988d: 29 d0 sub %edx,%eax
11988f: 50 push %eax
119890: 56 push %esi
119891: e8 c2 3a 00 00 call 11d358 <_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();
119896: a1 0c 28 14 00 mov 0x14280c,%eax
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
11989b: 8b 53 74 mov 0x74(%ebx),%edx
/*
* 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 ) {
11989e: 83 c4 10 add $0x10,%esp
1198a1: 39 d0 cmp %edx,%eax
1198a3: 77 63 ja 119908 <_Timer_server_Body+0xe0>
* TOD has been set forward.
*/
delta = snapshot - last_snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
} else if ( snapshot < last_snapshot ) {
1198a5: 72 7d jb 119924 <_Timer_server_Body+0xfc>
*/
delta = last_snapshot - snapshot;
_Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta );
}
watchdogs->last_snapshot = snapshot;
1198a7: 89 43 74 mov %eax,0x74(%ebx)
1198aa: 66 90 xchg %ax,%ax
}
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{
while ( true ) {
Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
1198ac: 8b 43 78 mov 0x78(%ebx),%eax
1198af: 83 ec 0c sub $0xc,%esp
1198b2: 50 push %eax
1198b3: e8 28 08 00 00 call 11a0e0 <_Chain_Get>
if ( timer == NULL ) {
1198b8: 83 c4 10 add $0x10,%esp
1198bb: 85 c0 test %eax,%eax
1198bd: 74 35 je 1198f4 <_Timer_server_Body+0xcc><== ALWAYS TAKEN
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
1198bf: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED
1198c2: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED
1198c5: 74 19 je 1198e0 <_Timer_server_Body+0xb8><== NOT EXECUTED
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
1198c7: 83 fa 03 cmp $0x3,%edx <== NOT EXECUTED
1198ca: 75 e0 jne 1198ac <_Timer_server_Body+0x84><== NOT EXECUTED
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
1198cc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1198cf: 83 c0 10 add $0x10,%eax <== NOT EXECUTED
1198d2: 50 push %eax <== NOT EXECUTED
1198d3: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
1198d6: e8 15 3b 00 00 call 11d3f0 <_Watchdog_Insert> <== NOT EXECUTED
1198db: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1198de: eb cc jmp 1198ac <_Timer_server_Body+0x84><== NOT EXECUTED
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
1198e0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1198e3: 83 c0 10 add $0x10,%eax <== NOT EXECUTED
1198e6: 50 push %eax <== NOT EXECUTED
1198e7: 56 push %esi <== NOT EXECUTED
1198e8: e8 03 3b 00 00 call 11d3f0 <_Watchdog_Insert> <== NOT EXECUTED
1198ed: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1198f0: eb ba jmp 1198ac <_Timer_server_Body+0x84><== NOT EXECUTED
1198f2: 66 90 xchg %ax,%ax <== 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 );
1198f4: 9c pushf
1198f5: fa cli
1198f6: 58 pop %eax
if ( _Chain_Is_empty( insert_chain ) ) {
1198f7: 8b 55 b4 mov -0x4c(%ebp),%edx
1198fa: 3b 55 dc cmp -0x24(%ebp),%edx
1198fd: 74 41 je 119940 <_Timer_server_Body+0x118><== ALWAYS TAKEN
ts->insert_chain = NULL;
_ISR_Enable( level );
break;
} else {
_ISR_Enable( level );
1198ff: 50 push %eax <== NOT EXECUTED
119900: 9d popf <== NOT EXECUTED
119901: e9 7a ff ff ff jmp 119880 <_Timer_server_Body+0x58><== NOT EXECUTED
119906: 66 90 xchg %ax,%ax <== NOT EXECUTED
/*
* 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 );
119908: 51 push %ecx
119909: 57 push %edi
11990a: 89 c1 mov %eax,%ecx
11990c: 29 d1 sub %edx,%ecx
11990e: 51 push %ecx
11990f: ff 75 c4 pushl -0x3c(%ebp)
119912: 89 45 b8 mov %eax,-0x48(%ebp)
119915: e8 3e 3a 00 00 call 11d358 <_Watchdog_Adjust_to_chain>
11991a: 83 c4 10 add $0x10,%esp
11991d: 8b 45 b8 mov -0x48(%ebp),%eax
119920: eb 85 jmp 1198a7 <_Timer_server_Body+0x7f>
119922: 66 90 xchg %ax,%ax
/*
* 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 );
119924: 51 push %ecx
119925: 29 c2 sub %eax,%edx
119927: 52 push %edx
119928: 6a 01 push $0x1
11992a: ff 75 c4 pushl -0x3c(%ebp)
11992d: 89 45 b8 mov %eax,-0x48(%ebp)
119930: e8 ab 39 00 00 call 11d2e0 <_Watchdog_Adjust>
119935: 83 c4 10 add $0x10,%esp
119938: 8b 45 b8 mov -0x48(%ebp),%eax
11993b: e9 67 ff ff ff jmp 1198a7 <_Timer_server_Body+0x7f>
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
if ( _Chain_Is_empty( insert_chain ) ) {
ts->insert_chain = NULL;
119940: c7 43 78 00 00 00 00 movl $0x0,0x78(%ebx)
_ISR_Enable( level );
119947: 50 push %eax
119948: 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 ) ) {
119949: 8b 4d b0 mov -0x50(%ebp),%ecx
11994c: 3b 4d d0 cmp -0x30(%ebp),%ecx
11994f: 75 23 jne 119974 <_Timer_server_Body+0x14c>
119951: eb 33 jmp 119986 <_Timer_server_Body+0x15e>
119953: 90 nop
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
119954: 8b 10 mov (%eax),%edx
the_chain->first = new_first;
119956: 89 55 d0 mov %edx,-0x30(%ebp)
new_first->previous = _Chain_Head(the_chain);
119959: 89 7a 04 mov %edi,0x4(%edx)
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
watchdog->state = WATCHDOG_INACTIVE;
11995c: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
_ISR_Enable( level );
119963: 51 push %ecx
119964: 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 );
119965: 83 ec 08 sub $0x8,%esp
119968: ff 70 24 pushl 0x24(%eax)
11996b: ff 70 20 pushl 0x20(%eax)
11996e: ff 50 1c call *0x1c(%eax)
}
119971: 83 c4 10 add $0x10,%esp
/*
* It is essential that interrupts are disable here since an interrupt
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
119974: 9c pushf
119975: fa cli
119976: 59 pop %ecx
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
119977: 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))
11997a: 39 45 b0 cmp %eax,-0x50(%ebp)
11997d: 75 d5 jne 119954 <_Timer_server_Body+0x12c>
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
watchdog->state = WATCHDOG_INACTIVE;
_ISR_Enable( level );
} else {
_ISR_Enable( level );
11997f: 51 push %ecx
119980: 9d popf
119981: e9 f2 fe ff ff jmp 119878 <_Timer_server_Body+0x50>
* the active flag of the timer server is true.
*/
(*watchdog->routine)( watchdog->id, watchdog->user_data );
}
} else {
ts->active = false;
119986: c6 43 7c 00 movb $0x0,0x7c(%ebx)
11998a: a1 78 27 14 00 mov 0x142778,%eax
11998f: 40 inc %eax
119990: a3 78 27 14 00 mov %eax,0x142778
/*
* Block until there is something to do.
*/
_Thread_Disable_dispatch();
_Thread_Set_state( ts->thread, STATES_DELAYING );
119995: 83 ec 08 sub $0x8,%esp
119998: 6a 08 push $0x8
11999a: ff 33 pushl (%ebx)
11999c: e8 87 31 00 00 call 11cb28 <_Thread_Set_state>
_Timer_server_Reset_interval_system_watchdog( ts );
1199a1: 89 d8 mov %ebx,%eax
1199a3: e8 e0 fd ff ff call 119788 <_Timer_server_Reset_interval_system_watchdog>
_Timer_server_Reset_tod_system_watchdog( ts );
1199a8: 89 d8 mov %ebx,%eax
1199aa: e8 29 fe ff ff call 1197d8 <_Timer_server_Reset_tod_system_watchdog>
_Thread_Enable_dispatch();
1199af: e8 7c 27 00 00 call 11c130 <_Thread_Enable_dispatch>
ts->active = true;
1199b4: 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 );
1199b8: 58 pop %eax
1199b9: ff 75 bc pushl -0x44(%ebp)
1199bc: e8 57 3b 00 00 call 11d518 <_Watchdog_Remove>
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
1199c1: 59 pop %ecx
1199c2: ff 75 c0 pushl -0x40(%ebp)
1199c5: e8 4e 3b 00 00 call 11d518 <_Watchdog_Remove>
1199ca: 83 c4 10 add $0x10,%esp
1199cd: e9 a6 fe ff ff jmp 119878 <_Timer_server_Body+0x50>
001199d4 <_Timer_server_Schedule_operation_method>:
static void _Timer_server_Schedule_operation_method(
Timer_server_Control *ts,
Timer_Control *timer
)
{
1199d4: 55 push %ebp
1199d5: 89 e5 mov %esp,%ebp
1199d7: 57 push %edi
1199d8: 56 push %esi
1199d9: 53 push %ebx
1199da: 83 ec 2c sub $0x2c,%esp
1199dd: 8b 5d 08 mov 0x8(%ebp),%ebx
1199e0: 8b 45 0c mov 0xc(%ebp),%eax
if ( ts->insert_chain == NULL ) {
1199e3: 8b 53 78 mov 0x78(%ebx),%edx
1199e6: 85 d2 test %edx,%edx
1199e8: 74 16 je 119a00 <_Timer_server_Schedule_operation_method+0x2c><== ALWAYS TAKEN
* 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 );
1199ea: 8b 53 78 mov 0x78(%ebx),%edx <== NOT EXECUTED
1199ed: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED
1199f0: 89 55 08 mov %edx,0x8(%ebp) <== NOT EXECUTED
}
}
1199f3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1199f6: 5b pop %ebx <== NOT EXECUTED
1199f7: 5e pop %esi <== NOT EXECUTED
1199f8: 5f pop %edi <== NOT EXECUTED
1199f9: 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 );
1199fa: e9 a5 06 00 00 jmp 11a0a4 <_Chain_Append> <== NOT EXECUTED
1199ff: 90 nop <== NOT EXECUTED
119a00: 8b 15 78 27 14 00 mov 0x142778,%edx
119a06: 42 inc %edx
119a07: 89 15 78 27 14 00 mov %edx,0x142778
* being inserted. This could result in an integer overflow.
*/
_Thread_Disable_dispatch();
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
119a0d: 8b 50 38 mov 0x38(%eax),%edx
119a10: 83 fa 01 cmp $0x1,%edx
119a13: 74 77 je 119a8c <_Timer_server_Schedule_operation_method+0xb8>
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
if ( !ts->active ) {
_Timer_server_Reset_interval_system_watchdog( ts );
}
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
119a15: 83 fa 03 cmp $0x3,%edx
119a18: 74 0e je 119a28 <_Timer_server_Schedule_operation_method+0x54>
* 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 );
}
}
119a1a: 8d 65 f4 lea -0xc(%ebp),%esp
119a1d: 5b pop %ebx
119a1e: 5e pop %esi
119a1f: 5f pop %edi
119a20: c9 leave
if ( !ts->active ) {
_Timer_server_Reset_tod_system_watchdog( ts );
}
}
_Thread_Enable_dispatch();
119a21: e9 0a 27 00 00 jmp 11c130 <_Thread_Enable_dispatch>
119a26: 66 90 xchg %ax,%ax
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
/*
* We have to advance the last known seconds value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
119a28: 9c pushf
119a29: fa cli
119a2a: 8f 45 e4 popl -0x1c(%ebp)
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
119a2d: 8b 0d 0c 28 14 00 mov 0x14280c,%ecx
last_snapshot = ts->TOD_watchdogs.last_snapshot;
119a33: 8b 73 74 mov 0x74(%ebx),%esi
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
119a36: 8b 53 68 mov 0x68(%ebx),%edx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
119a39: 8d 7b 6c lea 0x6c(%ebx),%edi
119a3c: 39 fa cmp %edi,%edx
119a3e: 74 22 je 119a62 <_Timer_server_Schedule_operation_method+0x8e>
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );
delta_interval = first_watchdog->delta_interval;
119a40: 8b 7a 10 mov 0x10(%edx),%edi
119a43: 89 7d d4 mov %edi,-0x2c(%ebp)
if ( snapshot > last_snapshot ) {
119a46: 39 f1 cmp %esi,%ecx
119a48: 0f 86 9e 00 00 00 jbe 119aec <_Timer_server_Schedule_operation_method+0x118>
/*
* We advanced in time.
*/
delta = snapshot - last_snapshot;
119a4e: 89 cf mov %ecx,%edi
119a50: 29 f7 sub %esi,%edi
119a52: 89 fe mov %edi,%esi
if (delta_interval > delta) {
119a54: 39 7d d4 cmp %edi,-0x2c(%ebp)
119a57: 0f 87 9b 00 00 00 ja 119af8 <_Timer_server_Schedule_operation_method+0x124><== ALWAYS TAKEN
119a5d: 31 ff xor %edi,%edi <== NOT EXECUTED
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
delta_interval += delta;
}
first_watchdog->delta_interval = delta_interval;
119a5f: 89 7a 10 mov %edi,0x10(%edx)
}
ts->TOD_watchdogs.last_snapshot = snapshot;
119a62: 89 4b 74 mov %ecx,0x74(%ebx)
_ISR_Enable( level );
119a65: ff 75 e4 pushl -0x1c(%ebp)
119a68: 9d popf
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
119a69: 83 ec 08 sub $0x8,%esp
119a6c: 83 c0 10 add $0x10,%eax
119a6f: 50 push %eax
119a70: 8d 43 68 lea 0x68(%ebx),%eax
119a73: 50 push %eax
119a74: e8 77 39 00 00 call 11d3f0 <_Watchdog_Insert>
if ( !ts->active ) {
119a79: 8a 43 7c mov 0x7c(%ebx),%al
119a7c: 83 c4 10 add $0x10,%esp
119a7f: 84 c0 test %al,%al
119a81: 75 97 jne 119a1a <_Timer_server_Schedule_operation_method+0x46>
_Timer_server_Reset_tod_system_watchdog( ts );
119a83: 89 d8 mov %ebx,%eax
119a85: e8 4e fd ff ff call 1197d8 <_Timer_server_Reset_tod_system_watchdog>
119a8a: eb 8e jmp 119a1a <_Timer_server_Schedule_operation_method+0x46>
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
/*
* We have to advance the last known ticks value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
119a8c: 9c pushf
119a8d: fa cli
119a8e: 8f 45 e4 popl -0x1c(%ebp)
snapshot = _Watchdog_Ticks_since_boot;
119a91: 8b 0d e4 28 14 00 mov 0x1428e4,%ecx
last_snapshot = ts->Interval_watchdogs.last_snapshot;
119a97: 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));
119a9a: 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;
119a9d: 8d 7b 34 lea 0x34(%ebx),%edi
119aa0: 39 fa cmp %edi,%edx
119aa2: 74 12 je 119ab6 <_Timer_server_Schedule_operation_method+0xe2>
first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
/*
* We assume adequate unsigned arithmetic here.
*/
delta = snapshot - last_snapshot;
119aa4: 89 cf mov %ecx,%edi
119aa6: 29 f7 sub %esi,%edi
119aa8: 89 fe mov %edi,%esi
delta_interval = first_watchdog->delta_interval;
119aaa: 8b 7a 10 mov 0x10(%edx),%edi
if (delta_interval > delta) {
119aad: 39 fe cmp %edi,%esi
119aaf: 72 37 jb 119ae8 <_Timer_server_Schedule_operation_method+0x114>
119ab1: 31 ff xor %edi,%edi
delta_interval -= delta;
} else {
delta_interval = 0;
}
first_watchdog->delta_interval = delta_interval;
119ab3: 89 7a 10 mov %edi,0x10(%edx)
}
ts->Interval_watchdogs.last_snapshot = snapshot;
119ab6: 89 4b 3c mov %ecx,0x3c(%ebx)
_ISR_Enable( level );
119ab9: ff 75 e4 pushl -0x1c(%ebp)
119abc: 9d popf
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
119abd: 83 ec 08 sub $0x8,%esp
119ac0: 83 c0 10 add $0x10,%eax
119ac3: 50 push %eax
119ac4: 8d 43 30 lea 0x30(%ebx),%eax
119ac7: 50 push %eax
119ac8: e8 23 39 00 00 call 11d3f0 <_Watchdog_Insert>
if ( !ts->active ) {
119acd: 8a 43 7c mov 0x7c(%ebx),%al
119ad0: 83 c4 10 add $0x10,%esp
119ad3: 84 c0 test %al,%al
119ad5: 0f 85 3f ff ff ff jne 119a1a <_Timer_server_Schedule_operation_method+0x46>
_Timer_server_Reset_interval_system_watchdog( ts );
119adb: 89 d8 mov %ebx,%eax
119add: e8 a6 fc ff ff call 119788 <_Timer_server_Reset_interval_system_watchdog>
119ae2: e9 33 ff ff ff jmp 119a1a <_Timer_server_Schedule_operation_method+0x46>
119ae7: 90 nop
*/
delta = snapshot - last_snapshot;
delta_interval = first_watchdog->delta_interval;
if (delta_interval > delta) {
delta_interval -= delta;
119ae8: 29 f7 sub %esi,%edi
119aea: eb c7 jmp 119ab3 <_Timer_server_Schedule_operation_method+0xdf>
}
} else {
/*
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
119aec: 8b 7d d4 mov -0x2c(%ebp),%edi
119aef: 01 f7 add %esi,%edi
delta_interval += delta;
119af1: 29 cf sub %ecx,%edi
119af3: e9 67 ff ff ff jmp 119a5f <_Timer_server_Schedule_operation_method+0x8b>
/*
* We advanced in time.
*/
delta = snapshot - last_snapshot;
if (delta_interval > delta) {
delta_interval -= delta;
119af8: 8b 7d d4 mov -0x2c(%ebp),%edi
119afb: 29 f7 sub %esi,%edi
119afd: e9 5d ff ff ff jmp 119a5f <_Timer_server_Schedule_operation_method+0x8b>
00129c08 <_Timespec_Is_valid>:
#include <rtems/score/tod.h>
bool _Timespec_Is_valid(
const struct timespec *time
)
{
129c08: 55 push %ebp
129c09: 89 e5 mov %esp,%ebp
129c0b: 8b 45 08 mov 0x8(%ebp),%eax
if ( !time )
129c0e: 85 c0 test %eax,%eax
129c10: 74 1a je 129c2c <_Timespec_Is_valid+0x24>
return false;
if ( time->tv_sec < 0 )
129c12: 8b 10 mov (%eax),%edx
129c14: 85 d2 test %edx,%edx
129c16: 78 14 js 129c2c <_Timespec_Is_valid+0x24>
return false;
if ( time->tv_nsec < 0 )
129c18: 8b 40 04 mov 0x4(%eax),%eax
129c1b: 85 c0 test %eax,%eax
129c1d: 78 0d js 129c2c <_Timespec_Is_valid+0x24>
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Is_valid(
129c1f: 3d ff c9 9a 3b cmp $0x3b9ac9ff,%eax
129c24: 0f 96 c0 setbe %al
if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND )
return false;
return true;
}
129c27: c9 leave
129c28: c3 ret
129c29: 8d 76 00 lea 0x0(%esi),%esi
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Is_valid(
129c2c: 31 c0 xor %eax,%eax
if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND )
return false;
return true;
}
129c2e: c9 leave
129c2f: c3 ret
0010e934 <_User_extensions_Fatal>:
void _User_extensions_Fatal (
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
10e934: 55 push %ebp
10e935: 89 e5 mov %esp,%ebp
10e937: 57 push %edi
10e938: 56 push %esi
10e939: 53 push %ebx
10e93a: 83 ec 1c sub $0x1c,%esp
10e93d: 8b 75 08 mov 0x8(%ebp),%esi
10e940: 8b 7d 10 mov 0x10(%ebp),%edi
10e943: 8a 45 0c mov 0xc(%ebp),%al
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
10e946: 8b 1d b4 75 12 00 mov 0x1275b4,%ebx
10e94c: 81 fb ac 75 12 00 cmp $0x1275ac,%ebx
10e952: 74 25 je 10e979 <_User_extensions_Fatal+0x45><== NEVER TAKEN
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
10e954: 0f b6 c0 movzbl %al,%eax
10e957: 89 45 e4 mov %eax,-0x1c(%ebp)
10e95a: 66 90 xchg %ax,%ax
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
10e95c: 8b 43 30 mov 0x30(%ebx),%eax
10e95f: 85 c0 test %eax,%eax
10e961: 74 0b je 10e96e <_User_extensions_Fatal+0x3a>
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
10e963: 52 push %edx
10e964: 57 push %edi
10e965: ff 75 e4 pushl -0x1c(%ebp)
10e968: 56 push %esi
10e969: ff d0 call *%eax
10e96b: 83 c4 10 add $0x10,%esp
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 ) {
10e96e: 8b 5b 04 mov 0x4(%ebx),%ebx
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
10e971: 81 fb ac 75 12 00 cmp $0x1275ac,%ebx
10e977: 75 e3 jne 10e95c <_User_extensions_Fatal+0x28>
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
}
}
10e979: 8d 65 f4 lea -0xc(%ebp),%esp
10e97c: 5b pop %ebx
10e97d: 5e pop %esi
10e97e: 5f pop %edi
10e97f: c9 leave
10e980: c3 ret
0010e7f8 <_User_extensions_Handler_initialization>:
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
#include <string.h>
void _User_extensions_Handler_initialization(void)
{
10e7f8: 55 push %ebp
10e7f9: 89 e5 mov %esp,%ebp
10e7fb: 57 push %edi
10e7fc: 56 push %esi
10e7fd: 53 push %ebx
10e7fe: 83 ec 1c sub $0x1c,%esp
User_extensions_Control *extension;
uint32_t i;
uint32_t number_of_extensions;
User_extensions_Table *initial_extensions;
number_of_extensions = Configuration.number_of_initial_extensions;
10e801: a1 58 32 12 00 mov 0x123258,%eax
10e806: 89 45 dc mov %eax,-0x24(%ebp)
initial_extensions = Configuration.User_extension_table;
10e809: 8b 35 5c 32 12 00 mov 0x12325c,%esi
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10e80f: c7 05 ac 75 12 00 b0 movl $0x1275b0,0x1275ac
10e816: 75 12 00
the_chain->permanent_null = NULL;
10e819: c7 05 b0 75 12 00 00 movl $0x0,0x1275b0
10e820: 00 00 00
the_chain->last = _Chain_Head(the_chain);
10e823: c7 05 b4 75 12 00 ac movl $0x1275ac,0x1275b4
10e82a: 75 12 00
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
10e82d: c7 05 5c 73 12 00 60 movl $0x127360,0x12735c
10e834: 73 12 00
the_chain->permanent_null = NULL;
10e837: c7 05 60 73 12 00 00 movl $0x0,0x127360
10e83e: 00 00 00
the_chain->last = _Chain_Head(the_chain);
10e841: c7 05 64 73 12 00 5c movl $0x12735c,0x127364
10e848: 73 12 00
_Chain_Initialize_empty( &_User_extensions_List );
_Chain_Initialize_empty( &_User_extensions_Switches_list );
if ( initial_extensions ) {
10e84b: 85 f6 test %esi,%esi
10e84d: 74 64 je 10e8b3 <_User_extensions_Handler_initialization+0xbb>
extension = (User_extensions_Control *)
10e84f: 89 c2 mov %eax,%edx
10e851: 8d 04 40 lea (%eax,%eax,2),%eax
10e854: 8d 0c 82 lea (%edx,%eax,4),%ecx
10e857: c1 e1 02 shl $0x2,%ecx
10e85a: 83 ec 0c sub $0xc,%esp
10e85d: 51 push %ecx
10e85e: 89 4d d8 mov %ecx,-0x28(%ebp)
10e861: e8 26 04 00 00 call 10ec8c <_Workspace_Allocate_or_fatal_error>
10e866: 89 c3 mov %eax,%ebx
_Workspace_Allocate_or_fatal_error(
number_of_extensions * sizeof( User_extensions_Control )
);
memset (
10e868: 31 c0 xor %eax,%eax
10e86a: 8b 4d d8 mov -0x28(%ebp),%ecx
10e86d: 89 df mov %ebx,%edi
10e86f: f3 aa rep stos %al,%es:(%edi)
extension,
0,
number_of_extensions * sizeof( User_extensions_Control )
);
for ( i = 0 ; i < number_of_extensions ; i++ ) {
10e871: 83 c4 10 add $0x10,%esp
10e874: 8b 45 dc mov -0x24(%ebp),%eax
10e877: 85 c0 test %eax,%eax
10e879: 74 38 je 10e8b3 <_User_extensions_Handler_initialization+0xbb><== NEVER TAKEN
10e87b: 89 75 e4 mov %esi,-0x1c(%ebp)
10e87e: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
10e885: 8d 76 00 lea 0x0(%esi),%esi
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(
User_extensions_Control *extension,
const User_extensions_Table *extension_table
)
{
extension->Callouts = *extension_table;
10e888: 8d 7b 14 lea 0x14(%ebx),%edi
10e88b: 8b 75 e4 mov -0x1c(%ebp),%esi
10e88e: b9 08 00 00 00 mov $0x8,%ecx
10e893: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
_User_extensions_Add_set( extension );
10e895: 83 ec 0c sub $0xc,%esp
10e898: 53 push %ebx
10e899: e8 1a 38 00 00 call 1120b8 <_User_extensions_Add_set>
_User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
extension++;
10e89e: 83 c3 34 add $0x34,%ebx
extension,
0,
number_of_extensions * sizeof( User_extensions_Control )
);
for ( i = 0 ; i < number_of_extensions ; i++ ) {
10e8a1: ff 45 e0 incl -0x20(%ebp)
10e8a4: 83 45 e4 20 addl $0x20,-0x1c(%ebp)
10e8a8: 83 c4 10 add $0x10,%esp
10e8ab: 8b 45 e0 mov -0x20(%ebp),%eax
10e8ae: 39 45 dc cmp %eax,-0x24(%ebp)
10e8b1: 77 d5 ja 10e888 <_User_extensions_Handler_initialization+0x90>
_User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
extension++;
}
}
}
10e8b3: 8d 65 f4 lea -0xc(%ebp),%esp
10e8b6: 5b pop %ebx
10e8b7: 5e pop %esi
10e8b8: 5f pop %edi
10e8b9: c9 leave
10e8ba: c3 ret
00113628 <_User_extensions_Remove_set>:
#include <rtems/score/userext.h>
void _User_extensions_Remove_set (
User_extensions_Control *the_extension
)
{
113628: 55 push %ebp
113629: 89 e5 mov %esp,%ebp
11362b: 53 push %ebx
11362c: 83 ec 10 sub $0x10,%esp
11362f: 8b 5d 08 mov 0x8(%ebp),%ebx
_Chain_Extract( &the_extension->Node );
113632: 53 push %ebx
113633: e8 10 dc ff ff call 111248 <_Chain_Extract>
/*
* If a switch handler is present, remove it.
*/
if ( the_extension->Callouts.thread_switch != NULL )
113638: 83 c4 10 add $0x10,%esp
11363b: 8b 43 24 mov 0x24(%ebx),%eax
11363e: 85 c0 test %eax,%eax
113640: 74 12 je 113654 <_User_extensions_Remove_set+0x2c>
_Chain_Extract( &the_extension->Switch.Node );
113642: 83 c3 08 add $0x8,%ebx
113645: 89 5d 08 mov %ebx,0x8(%ebp)
}
113648: 8b 5d fc mov -0x4(%ebp),%ebx
11364b: c9 leave
/*
* If a switch handler is present, remove it.
*/
if ( the_extension->Callouts.thread_switch != NULL )
_Chain_Extract( &the_extension->Switch.Node );
11364c: e9 f7 db ff ff jmp 111248 <_Chain_Extract>
113651: 8d 76 00 lea 0x0(%esi),%esi
}
113654: 8b 5d fc mov -0x4(%ebp),%ebx
113657: c9 leave
113658: c3 ret
0010e8bc <_User_extensions_Thread_begin>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_begin (
Thread_Control *executing
)
{
10e8bc: 55 push %ebp
10e8bd: 89 e5 mov %esp,%ebp
10e8bf: 56 push %esi
10e8c0: 53 push %ebx
10e8c1: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
10e8c4: 8b 1d ac 75 12 00 mov 0x1275ac,%ebx
10e8ca: 81 fb b0 75 12 00 cmp $0x1275b0,%ebx
10e8d0: 74 1c je 10e8ee <_User_extensions_Thread_begin+0x32><== NEVER TAKEN
10e8d2: 66 90 xchg %ax,%ax
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_begin != NULL )
10e8d4: 8b 43 28 mov 0x28(%ebx),%eax
10e8d7: 85 c0 test %eax,%eax
10e8d9: 74 09 je 10e8e4 <_User_extensions_Thread_begin+0x28>
(*the_extension->Callouts.thread_begin)( executing );
10e8db: 83 ec 0c sub $0xc,%esp
10e8de: 56 push %esi
10e8df: ff d0 call *%eax
10e8e1: 83 c4 10 add $0x10,%esp
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
10e8e4: 8b 1b mov (%ebx),%ebx
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
10e8e6: 81 fb b0 75 12 00 cmp $0x1275b0,%ebx
10e8ec: 75 e6 jne 10e8d4 <_User_extensions_Thread_begin+0x18>
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_begin != NULL )
(*the_extension->Callouts.thread_begin)( executing );
}
}
10e8ee: 8d 65 f8 lea -0x8(%ebp),%esp
10e8f1: 5b pop %ebx
10e8f2: 5e pop %esi
10e8f3: c9 leave
10e8f4: c3 ret
0010e984 <_User_extensions_Thread_create>:
#include <rtems/score/userext.h>
bool _User_extensions_Thread_create (
Thread_Control *the_thread
)
{
10e984: 55 push %ebp
10e985: 89 e5 mov %esp,%ebp
10e987: 56 push %esi
10e988: 53 push %ebx
10e989: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
10e98c: 8b 1d ac 75 12 00 mov 0x1275ac,%ebx
10e992: 81 fb b0 75 12 00 cmp $0x1275b0,%ebx
10e998: 74 26 je 10e9c0 <_User_extensions_Thread_create+0x3c><== NEVER TAKEN
10e99a: 66 90 xchg %ax,%ax
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_create != NULL ) {
10e99c: 8b 43 14 mov 0x14(%ebx),%eax
10e99f: 85 c0 test %eax,%eax
10e9a1: 74 13 je 10e9b6 <_User_extensions_Thread_create+0x32>
status = (*the_extension->Callouts.thread_create)(
10e9a3: 83 ec 08 sub $0x8,%esp
10e9a6: 56 push %esi
10e9a7: ff 35 18 74 12 00 pushl 0x127418
10e9ad: ff d0 call *%eax
_Thread_Executing,
the_thread
);
if ( !status )
10e9af: 83 c4 10 add $0x10,%esp
10e9b2: 84 c0 test %al,%al
10e9b4: 74 0c je 10e9c2 <_User_extensions_Thread_create+0x3e>
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
10e9b6: 8b 1b mov (%ebx),%ebx
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
10e9b8: 81 fb b0 75 12 00 cmp $0x1275b0,%ebx
10e9be: 75 dc jne 10e99c <_User_extensions_Thread_create+0x18>
10e9c0: b0 01 mov $0x1,%al
return false;
}
}
return true;
}
10e9c2: 8d 65 f8 lea -0x8(%ebp),%esp
10e9c5: 5b pop %ebx
10e9c6: 5e pop %esi
10e9c7: c9 leave
10e9c8: c3 ret
0010e9cc <_User_extensions_Thread_delete>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_delete (
Thread_Control *the_thread
)
{
10e9cc: 55 push %ebp
10e9cd: 89 e5 mov %esp,%ebp
10e9cf: 56 push %esi
10e9d0: 53 push %ebx
10e9d1: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
10e9d4: 8b 1d b4 75 12 00 mov 0x1275b4,%ebx
10e9da: 81 fb ac 75 12 00 cmp $0x1275ac,%ebx
10e9e0: 74 23 je 10ea05 <_User_extensions_Thread_delete+0x39><== NEVER TAKEN
10e9e2: 66 90 xchg %ax,%ax
!_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_delete != NULL )
10e9e4: 8b 43 20 mov 0x20(%ebx),%eax
10e9e7: 85 c0 test %eax,%eax
10e9e9: 74 0f je 10e9fa <_User_extensions_Thread_delete+0x2e>
(*the_extension->Callouts.thread_delete)(
10e9eb: 83 ec 08 sub $0x8,%esp
10e9ee: 56 push %esi
10e9ef: ff 35 18 74 12 00 pushl 0x127418
10e9f5: ff d0 call *%eax
10e9f7: 83 c4 10 add $0x10,%esp
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 ) {
10e9fa: 8b 5b 04 mov 0x4(%ebx),%ebx
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
10e9fd: 81 fb ac 75 12 00 cmp $0x1275ac,%ebx
10ea03: 75 df jne 10e9e4 <_User_extensions_Thread_delete+0x18>
(*the_extension->Callouts.thread_delete)(
_Thread_Executing,
the_thread
);
}
}
10ea05: 8d 65 f8 lea -0x8(%ebp),%esp
10ea08: 5b pop %ebx
10ea09: 5e pop %esi
10ea0a: c9 leave
10ea0b: c3 ret
0010e8f8 <_User_extensions_Thread_exitted>:
void _User_extensions_Thread_exitted (
Thread_Control *executing
)
{
10e8f8: 55 push %ebp
10e8f9: 89 e5 mov %esp,%ebp
10e8fb: 56 push %esi
10e8fc: 53 push %ebx
10e8fd: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
10e900: 8b 1d b4 75 12 00 mov 0x1275b4,%ebx
10e906: 81 fb ac 75 12 00 cmp $0x1275ac,%ebx
10e90c: 74 1d je 10e92b <_User_extensions_Thread_exitted+0x33><== NEVER TAKEN
10e90e: 66 90 xchg %ax,%ax
!_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 )
10e910: 8b 43 2c mov 0x2c(%ebx),%eax
10e913: 85 c0 test %eax,%eax
10e915: 74 09 je 10e920 <_User_extensions_Thread_exitted+0x28>
(*the_extension->Callouts.thread_exitted)( executing );
10e917: 83 ec 0c sub $0xc,%esp
10e91a: 56 push %esi
10e91b: ff d0 call *%eax
10e91d: 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 ) {
10e920: 8b 5b 04 mov 0x4(%ebx),%ebx
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
10e923: 81 fb ac 75 12 00 cmp $0x1275ac,%ebx
10e929: 75 e5 jne 10e910 <_User_extensions_Thread_exitted+0x18>
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_exitted != NULL )
(*the_extension->Callouts.thread_exitted)( executing );
}
}
10e92b: 8d 65 f8 lea -0x8(%ebp),%esp
10e92e: 5b pop %ebx
10e92f: 5e pop %esi
10e930: c9 leave
10e931: c3 ret
0010f5c0 <_User_extensions_Thread_restart>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_restart (
Thread_Control *the_thread
)
{
10f5c0: 55 push %ebp
10f5c1: 89 e5 mov %esp,%ebp
10f5c3: 56 push %esi
10f5c4: 53 push %ebx
10f5c5: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
10f5c8: 8b 1d 0c 96 12 00 mov 0x12960c,%ebx
10f5ce: 81 fb 10 96 12 00 cmp $0x129610,%ebx
10f5d4: 74 22 je 10f5f8 <_User_extensions_Thread_restart+0x38><== NEVER TAKEN
10f5d6: 66 90 xchg %ax,%ax
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_restart != NULL )
10f5d8: 8b 43 1c mov 0x1c(%ebx),%eax
10f5db: 85 c0 test %eax,%eax
10f5dd: 74 0f je 10f5ee <_User_extensions_Thread_restart+0x2e>
(*the_extension->Callouts.thread_restart)(
10f5df: 83 ec 08 sub $0x8,%esp
10f5e2: 56 push %esi
10f5e3: ff 35 78 94 12 00 pushl 0x129478
10f5e9: ff d0 call *%eax
10f5eb: 83 c4 10 add $0x10,%esp
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
10f5ee: 8b 1b mov (%ebx),%ebx
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
10f5f0: 81 fb 10 96 12 00 cmp $0x129610,%ebx
10f5f6: 75 e0 jne 10f5d8 <_User_extensions_Thread_restart+0x18>
(*the_extension->Callouts.thread_restart)(
_Thread_Executing,
the_thread
);
}
}
10f5f8: 8d 65 f8 lea -0x8(%ebp),%esp
10f5fb: 5b pop %ebx
10f5fc: 5e pop %esi
10f5fd: c9 leave
10f5fe: c3 ret
0010ea0c <_User_extensions_Thread_start>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_start (
Thread_Control *the_thread
)
{
10ea0c: 55 push %ebp
10ea0d: 89 e5 mov %esp,%ebp
10ea0f: 56 push %esi
10ea10: 53 push %ebx
10ea11: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
10ea14: 8b 1d ac 75 12 00 mov 0x1275ac,%ebx
10ea1a: 81 fb b0 75 12 00 cmp $0x1275b0,%ebx
10ea20: 74 22 je 10ea44 <_User_extensions_Thread_start+0x38><== NEVER TAKEN
10ea22: 66 90 xchg %ax,%ax
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_start != NULL )
10ea24: 8b 43 18 mov 0x18(%ebx),%eax
10ea27: 85 c0 test %eax,%eax
10ea29: 74 0f je 10ea3a <_User_extensions_Thread_start+0x2e>
(*the_extension->Callouts.thread_start)(
10ea2b: 83 ec 08 sub $0x8,%esp
10ea2e: 56 push %esi
10ea2f: ff 35 18 74 12 00 pushl 0x127418
10ea35: ff d0 call *%eax
10ea37: 83 c4 10 add $0x10,%esp
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
10ea3a: 8b 1b mov (%ebx),%ebx
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
10ea3c: 81 fb b0 75 12 00 cmp $0x1275b0,%ebx
10ea42: 75 e0 jne 10ea24 <_User_extensions_Thread_start+0x18>
(*the_extension->Callouts.thread_start)(
_Thread_Executing,
the_thread
);
}
}
10ea44: 8d 65 f8 lea -0x8(%ebp),%esp
10ea47: 5b pop %ebx
10ea48: 5e pop %esi
10ea49: c9 leave
10ea4a: c3 ret
0010ea4c <_User_extensions_Thread_switch>:
void _User_extensions_Thread_switch (
Thread_Control *executing,
Thread_Control *heir
)
{
10ea4c: 55 push %ebp
10ea4d: 89 e5 mov %esp,%ebp
10ea4f: 57 push %edi
10ea50: 56 push %esi
10ea51: 53 push %ebx
10ea52: 83 ec 0c sub $0xc,%esp
10ea55: 8b 7d 08 mov 0x8(%ebp),%edi
10ea58: 8b 75 0c mov 0xc(%ebp),%esi
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _User_extensions_Switches_list.first ;
10ea5b: 8b 1d 5c 73 12 00 mov 0x12735c,%ebx
10ea61: 81 fb 60 73 12 00 cmp $0x127360,%ebx
10ea67: 74 18 je 10ea81 <_User_extensions_Thread_switch+0x35><== NEVER TAKEN
10ea69: 8d 76 00 lea 0x0(%esi),%esi
!_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
the_node = the_node->next ) {
the_extension_switch = (User_extensions_Switch_control *) the_node;
(*the_extension_switch->thread_switch)( executing, heir );
10ea6c: 83 ec 08 sub $0x8,%esp
10ea6f: 56 push %esi
10ea70: 57 push %edi
10ea71: ff 53 08 call *0x8(%ebx)
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _User_extensions_Switches_list.first ;
!_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
the_node = the_node->next ) {
10ea74: 8b 1b mov (%ebx),%ebx
)
{
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _User_extensions_Switches_list.first ;
10ea76: 83 c4 10 add $0x10,%esp
10ea79: 81 fb 60 73 12 00 cmp $0x127360,%ebx
10ea7f: 75 eb jne 10ea6c <_User_extensions_Thread_switch+0x20>
the_extension_switch = (User_extensions_Switch_control *) the_node;
(*the_extension_switch->thread_switch)( executing, heir );
}
}
10ea81: 8d 65 f4 lea -0xc(%ebp),%esp
10ea84: 5b pop %ebx
10ea85: 5e pop %esi
10ea86: 5f pop %edi
10ea87: c9 leave
10ea88: c3 ret
00110464 <_Watchdog_Adjust>:
void _Watchdog_Adjust(
Chain_Control *header,
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
110464: 55 push %ebp
110465: 89 e5 mov %esp,%ebp
110467: 57 push %edi
110468: 56 push %esi
110469: 53 push %ebx
11046a: 83 ec 1c sub $0x1c,%esp
11046d: 8b 75 08 mov 0x8(%ebp),%esi
110470: 8b 4d 0c mov 0xc(%ebp),%ecx
110473: 8b 5d 10 mov 0x10(%ebp),%ebx
ISR_Level level;
_ISR_Disable( level );
110476: 9c pushf
110477: fa cli
110478: 58 pop %eax
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
110479: 8b 16 mov (%esi),%edx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
11047b: 8d 7e 04 lea 0x4(%esi),%edi
11047e: 89 7d e4 mov %edi,-0x1c(%ebp)
* hence the compiler must not assume *header to remain
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
110481: 39 fa cmp %edi,%edx
110483: 74 3d je 1104c2 <_Watchdog_Adjust+0x5e>
switch ( direction ) {
110485: 85 c9 test %ecx,%ecx
110487: 75 43 jne 1104cc <_Watchdog_Adjust+0x68>
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
110489: 85 db test %ebx,%ebx
11048b: 74 35 je 1104c2 <_Watchdog_Adjust+0x5e> <== NEVER TAKEN
if ( units < _Watchdog_First( header )->delta_interval ) {
11048d: 8b 7a 10 mov 0x10(%edx),%edi
110490: 39 fb cmp %edi,%ebx
110492: 73 0f jae 1104a3 <_Watchdog_Adjust+0x3f> <== ALWAYS TAKEN
110494: eb 3e jmp 1104d4 <_Watchdog_Adjust+0x70> <== NOT EXECUTED
110496: 66 90 xchg %ax,%ax <== NOT EXECUTED
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
110498: 29 fb sub %edi,%ebx
11049a: 74 26 je 1104c2 <_Watchdog_Adjust+0x5e> <== NEVER TAKEN
if ( units < _Watchdog_First( header )->delta_interval ) {
11049c: 8b 7a 10 mov 0x10(%edx),%edi
11049f: 39 df cmp %ebx,%edi
1104a1: 77 31 ja 1104d4 <_Watchdog_Adjust+0x70>
_Watchdog_First( header )->delta_interval -= units;
break;
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
1104a3: c7 42 10 01 00 00 00 movl $0x1,0x10(%edx)
_ISR_Enable( level );
1104aa: 50 push %eax
1104ab: 9d popf
_Watchdog_Tickle( header );
1104ac: 83 ec 0c sub $0xc,%esp
1104af: 56 push %esi
1104b0: e8 bb 01 00 00 call 110670 <_Watchdog_Tickle>
_ISR_Disable( level );
1104b5: 9c pushf
1104b6: fa cli
1104b7: 58 pop %eax
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
1104b8: 8b 16 mov (%esi),%edx
if ( _Chain_Is_empty( header ) )
1104ba: 83 c4 10 add $0x10,%esp
1104bd: 39 55 e4 cmp %edx,-0x1c(%ebp)
1104c0: 75 d6 jne 110498 <_Watchdog_Adjust+0x34>
}
break;
}
}
_ISR_Enable( level );
1104c2: 50 push %eax
1104c3: 9d popf
}
1104c4: 8d 65 f4 lea -0xc(%ebp),%esp
1104c7: 5b pop %ebx
1104c8: 5e pop %esi
1104c9: 5f pop %edi
1104ca: c9 leave
1104cb: c3 ret
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
switch ( direction ) {
1104cc: 49 dec %ecx
1104cd: 75 f3 jne 1104c2 <_Watchdog_Adjust+0x5e> <== NEVER TAKEN
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
1104cf: 01 5a 10 add %ebx,0x10(%edx)
break;
1104d2: eb ee jmp 1104c2 <_Watchdog_Adjust+0x5e>
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
_Watchdog_First( header )->delta_interval -= units;
1104d4: 29 df sub %ebx,%edi
1104d6: 89 7a 10 mov %edi,0x10(%edx)
break;
1104d9: eb e7 jmp 1104c2 <_Watchdog_Adjust+0x5e>
0011d358 <_Watchdog_Adjust_to_chain>:
Chain_Control *header,
Watchdog_Interval units_arg,
Chain_Control *to_fire
)
{
11d358: 55 push %ebp
11d359: 89 e5 mov %esp,%ebp
11d35b: 57 push %edi
11d35c: 56 push %esi
11d35d: 53 push %ebx
11d35e: 83 ec 0c sub $0xc,%esp
11d361: 8b 75 08 mov 0x8(%ebp),%esi
11d364: 8b 55 0c mov 0xc(%ebp),%edx
11d367: 8b 5d 10 mov 0x10(%ebp),%ebx
Watchdog_Interval units = units_arg;
ISR_Level level;
Watchdog_Control *first;
if ( units <= 0 ) {
11d36a: 85 d2 test %edx,%edx
11d36c: 74 63 je 11d3d1 <_Watchdog_Adjust_to_chain+0x79>
return;
}
_ISR_Disable( level );
11d36e: 9c pushf
11d36f: fa cli
11d370: 8f 45 ec popl -0x14(%ebp)
11d373: 8b 06 mov (%esi),%eax
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
11d375: 8d 4e 04 lea 0x4(%esi),%ecx
11d378: 89 4d f0 mov %ecx,-0x10(%ebp)
11d37b: 8d 7b 04 lea 0x4(%ebx),%edi
11d37e: 89 55 e8 mov %edx,-0x18(%ebp)
11d381: 8d 76 00 lea 0x0(%esi),%esi
while ( 1 ) {
if ( units <= 0 ) {
break;
}
if ( _Chain_Is_empty( header ) ) {
11d384: 39 45 f0 cmp %eax,-0x10(%ebp)
11d387: 74 44 je 11d3cd <_Watchdog_Adjust_to_chain+0x75>
/*
* If it is longer than "units" until the first element on the chain
* fires, then bump it and quit.
*/
if ( units < first->delta_interval ) {
11d389: 8b 50 10 mov 0x10(%eax),%edx
11d38c: 3b 55 e8 cmp -0x18(%ebp),%edx
11d38f: 77 57 ja 11d3e8 <_Watchdog_Adjust_to_chain+0x90>
/*
* The first set happens in less than units, so take all of them
* off the chain and adjust units to reflect this.
*/
units -= first->delta_interval;
11d391: 29 55 e8 sub %edx,-0x18(%ebp)
first->delta_interval = 0;
11d394: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax)
11d39b: 90 nop
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
11d39c: 8b 08 mov (%eax),%ecx
previous = the_node->previous;
11d39e: 8b 50 04 mov 0x4(%eax),%edx
next->previous = previous;
11d3a1: 89 51 04 mov %edx,0x4(%ecx)
previous->next = next;
11d3a4: 89 0a mov %ecx,(%edx)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
11d3a6: 89 38 mov %edi,(%eax)
old_last_node = the_chain->last;
11d3a8: 8b 53 08 mov 0x8(%ebx),%edx
the_chain->last = the_node;
11d3ab: 89 43 08 mov %eax,0x8(%ebx)
old_last_node->next = the_node;
11d3ae: 89 02 mov %eax,(%edx)
the_node->previous = old_last_node;
11d3b0: 89 50 04 mov %edx,0x4(%eax)
while ( 1 ) {
_Chain_Extract_unprotected( &first->Node );
_Chain_Append_unprotected( to_fire, &first->Node );
_ISR_Flash( level );
11d3b3: ff 75 ec pushl -0x14(%ebp)
11d3b6: 9d popf
11d3b7: fa cli
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
11d3b8: 8b 06 mov (%esi),%eax
if ( _Chain_Is_empty( header ) )
11d3ba: 39 45 f0 cmp %eax,-0x10(%ebp)
11d3bd: 74 1d je 11d3dc <_Watchdog_Adjust_to_chain+0x84>
break;
first = _Watchdog_First( header );
if ( first->delta_interval != 0 )
11d3bf: 8b 50 10 mov 0x10(%eax),%edx
11d3c2: 85 d2 test %edx,%edx
11d3c4: 74 d6 je 11d39c <_Watchdog_Adjust_to_chain+0x44>
}
_ISR_Disable( level );
while ( 1 ) {
if ( units <= 0 ) {
11d3c6: 8b 4d e8 mov -0x18(%ebp),%ecx
11d3c9: 85 c9 test %ecx,%ecx
11d3cb: 75 b7 jne 11d384 <_Watchdog_Adjust_to_chain+0x2c>
if ( first->delta_interval != 0 )
break;
}
}
_ISR_Enable( level );
11d3cd: ff 75 ec pushl -0x14(%ebp)
11d3d0: 9d popf
}
11d3d1: 83 c4 0c add $0xc,%esp
11d3d4: 5b pop %ebx
11d3d5: 5e pop %esi
11d3d6: 5f pop %edi
11d3d7: c9 leave
11d3d8: c3 ret
11d3d9: 8d 76 00 lea 0x0(%esi),%esi
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
11d3dc: 8b 45 f0 mov -0x10(%ebp),%eax
}
_ISR_Disable( level );
while ( 1 ) {
if ( units <= 0 ) {
11d3df: 8b 4d e8 mov -0x18(%ebp),%ecx
11d3e2: 85 c9 test %ecx,%ecx
11d3e4: 75 9e jne 11d384 <_Watchdog_Adjust_to_chain+0x2c>
11d3e6: eb e5 jmp 11d3cd <_Watchdog_Adjust_to_chain+0x75>
/*
* If it is longer than "units" until the first element on the chain
* fires, then bump it and quit.
*/
if ( units < first->delta_interval ) {
first->delta_interval -= units;
11d3e8: 2b 55 e8 sub -0x18(%ebp),%edx
11d3eb: 89 50 10 mov %edx,0x10(%eax)
break;
11d3ee: eb dd jmp 11d3cd <_Watchdog_Adjust_to_chain+0x75>
0010ea8c <_Watchdog_Insert>:
void _Watchdog_Insert(
Chain_Control *header,
Watchdog_Control *the_watchdog
)
{
10ea8c: 55 push %ebp
10ea8d: 89 e5 mov %esp,%ebp
10ea8f: 57 push %edi
10ea90: 56 push %esi
10ea91: 53 push %ebx
10ea92: 83 ec 04 sub $0x4,%esp
10ea95: 8b 5d 0c mov 0xc(%ebp),%ebx
Watchdog_Control *after;
uint32_t insert_isr_nest_level;
Watchdog_Interval delta_interval;
insert_isr_nest_level = _ISR_Nest_level;
10ea98: 8b 3d f4 73 12 00 mov 0x1273f4,%edi
_ISR_Disable( level );
10ea9e: 9c pushf
10ea9f: fa cli
10eaa0: 8f 45 f0 popl -0x10(%ebp)
/*
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_watchdog->state != WATCHDOG_INACTIVE ) {
10eaa3: 8b 43 08 mov 0x8(%ebx),%eax
10eaa6: 85 c0 test %eax,%eax
10eaa8: 75 69 jne 10eb13 <_Watchdog_Insert+0x87>
_ISR_Enable( level );
return;
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
10eaaa: c7 43 08 01 00 00 00 movl $0x1,0x8(%ebx)
_Watchdog_Sync_count++;
10eab1: a1 c0 74 12 00 mov 0x1274c0,%eax
10eab6: 40 inc %eax
10eab7: a3 c0 74 12 00 mov %eax,0x1274c0
restart:
delta_interval = the_watchdog->initial;
10eabc: 8b 43 0c mov 0xc(%ebx),%eax
* cache *header!!
*
* Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc)
*
*/
for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ;
10eabf: 8b 4d 08 mov 0x8(%ebp),%ecx
10eac2: 8b 11 mov (%ecx),%edx
;
after = _Watchdog_Next( after ) ) {
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
10eac4: 85 c0 test %eax,%eax
10eac6: 74 5d je 10eb25 <_Watchdog_Insert+0x99>
10eac8: 8b 32 mov (%edx),%esi
10eaca: 85 f6 test %esi,%esi
10eacc: 74 57 je 10eb25 <_Watchdog_Insert+0x99>
break;
if ( delta_interval < after->delta_interval ) {
10eace: 8b 4a 10 mov 0x10(%edx),%ecx
10ead1: 39 c8 cmp %ecx,%eax
10ead3: 73 22 jae 10eaf7 <_Watchdog_Insert+0x6b>
10ead5: eb 49 jmp 10eb20 <_Watchdog_Insert+0x94>
10ead7: 90 nop
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
10ead8: 8b 35 14 74 12 00 mov 0x127414,%esi
10eade: 39 f7 cmp %esi,%edi
10eae0: 72 66 jb 10eb48 <_Watchdog_Insert+0xbc>
if ( delta_interval < after->delta_interval ) {
after->delta_interval -= delta_interval;
break;
}
delta_interval -= after->delta_interval;
10eae2: 29 c8 sub %ecx,%eax
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next(
Watchdog_Control *the_watchdog
)
{
return ( (Watchdog_Control *) the_watchdog->Node.next );
10eae4: 8b 12 mov (%edx),%edx
*/
for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ;
;
after = _Watchdog_Next( after ) ) {
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
10eae6: 85 c0 test %eax,%eax
10eae8: 74 3b je 10eb25 <_Watchdog_Insert+0x99>
10eaea: 8b 0a mov (%edx),%ecx
10eaec: 85 c9 test %ecx,%ecx
10eaee: 74 35 je 10eb25 <_Watchdog_Insert+0x99>
break;
if ( delta_interval < after->delta_interval ) {
10eaf0: 8b 4a 10 mov 0x10(%edx),%ecx
10eaf3: 39 c1 cmp %eax,%ecx
10eaf5: 77 29 ja 10eb20 <_Watchdog_Insert+0x94>
* used around this flash point allowed interrupts to execute
* which violated the design assumptions. The critical section
* mechanism used here WAS redesigned to address this.
*/
_ISR_Flash( level );
10eaf7: ff 75 f0 pushl -0x10(%ebp)
10eafa: 9d popf
10eafb: fa cli
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
10eafc: 83 7b 08 01 cmpl $0x1,0x8(%ebx)
10eb00: 74 d6 je 10ead8 <_Watchdog_Insert+0x4c>
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
the_watchdog->start_time = _Watchdog_Ticks_since_boot;
exit_insert:
_Watchdog_Sync_level = insert_isr_nest_level;
10eb02: 89 3d 14 74 12 00 mov %edi,0x127414
_Watchdog_Sync_count--;
10eb08: a1 c0 74 12 00 mov 0x1274c0,%eax
10eb0d: 48 dec %eax
10eb0e: a3 c0 74 12 00 mov %eax,0x1274c0
_ISR_Enable( level );
10eb13: ff 75 f0 pushl -0x10(%ebp)
10eb16: 9d popf
}
10eb17: 58 pop %eax
10eb18: 5b pop %ebx
10eb19: 5e pop %esi
10eb1a: 5f pop %edi
10eb1b: c9 leave
10eb1c: c3 ret
10eb1d: 8d 76 00 lea 0x0(%esi),%esi
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
break;
if ( delta_interval < after->delta_interval ) {
after->delta_interval -= delta_interval;
10eb20: 29 c1 sub %eax,%ecx
10eb22: 89 4a 10 mov %ecx,0x10(%edx)
RTEMS_INLINE_ROUTINE void _Watchdog_Activate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_ACTIVE;
10eb25: c7 43 08 02 00 00 00 movl $0x2,0x8(%ebx)
}
}
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
10eb2c: 89 43 10 mov %eax,0x10(%ebx)
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
10eb2f: 8b 42 04 mov 0x4(%edx),%eax
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
10eb32: 89 43 04 mov %eax,0x4(%ebx)
before_node = after_node->next;
10eb35: 8b 10 mov (%eax),%edx
after_node->next = the_node;
10eb37: 89 18 mov %ebx,(%eax)
the_node->next = before_node;
10eb39: 89 13 mov %edx,(%ebx)
before_node->previous = the_node;
10eb3b: 89 5a 04 mov %ebx,0x4(%edx)
the_watchdog->start_time = _Watchdog_Ticks_since_boot;
10eb3e: a1 c4 74 12 00 mov 0x1274c4,%eax
10eb43: 89 43 14 mov %eax,0x14(%ebx)
10eb46: eb ba jmp 10eb02 <_Watchdog_Insert+0x76>
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
_Watchdog_Sync_level = insert_isr_nest_level;
10eb48: 89 3d 14 74 12 00 mov %edi,0x127414
goto restart;
10eb4e: e9 69 ff ff ff jmp 10eabc <_Watchdog_Insert+0x30>
0010ebb4 <_Watchdog_Remove>:
*/
Watchdog_States _Watchdog_Remove(
Watchdog_Control *the_watchdog
)
{
10ebb4: 55 push %ebp
10ebb5: 89 e5 mov %esp,%ebp
10ebb7: 56 push %esi
10ebb8: 53 push %ebx
10ebb9: 8b 55 08 mov 0x8(%ebp),%edx
ISR_Level level;
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
10ebbc: 9c pushf
10ebbd: fa cli
10ebbe: 59 pop %ecx
previous_state = the_watchdog->state;
10ebbf: 8b 42 08 mov 0x8(%edx),%eax
switch ( previous_state ) {
10ebc2: 83 f8 01 cmp $0x1,%eax
10ebc5: 74 4d je 10ec14 <_Watchdog_Remove+0x60>
10ebc7: 73 0f jae 10ebd8 <_Watchdog_Remove+0x24>
_Watchdog_Sync_level = _ISR_Nest_level;
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
10ebc9: 8b 1d c4 74 12 00 mov 0x1274c4,%ebx
10ebcf: 89 5a 18 mov %ebx,0x18(%edx)
_ISR_Enable( level );
10ebd2: 51 push %ecx
10ebd3: 9d popf
return( previous_state );
}
10ebd4: 5b pop %ebx
10ebd5: 5e pop %esi
10ebd6: c9 leave
10ebd7: c3 ret
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
previous_state = the_watchdog->state;
switch ( previous_state ) {
10ebd8: 83 f8 03 cmp $0x3,%eax
10ebdb: 77 ec ja 10ebc9 <_Watchdog_Remove+0x15> <== NEVER TAKEN
break;
case WATCHDOG_ACTIVE:
case WATCHDOG_REMOVE_IT:
the_watchdog->state = WATCHDOG_INACTIVE;
10ebdd: 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 );
10ebe4: 8b 1a mov (%edx),%ebx
next_watchdog = _Watchdog_Next( the_watchdog );
if ( _Watchdog_Next(next_watchdog) )
10ebe6: 8b 33 mov (%ebx),%esi
10ebe8: 85 f6 test %esi,%esi
10ebea: 74 06 je 10ebf2 <_Watchdog_Remove+0x3e>
next_watchdog->delta_interval += the_watchdog->delta_interval;
10ebec: 8b 72 10 mov 0x10(%edx),%esi
10ebef: 01 73 10 add %esi,0x10(%ebx)
if ( _Watchdog_Sync_count )
10ebf2: 8b 35 c0 74 12 00 mov 0x1274c0,%esi
10ebf8: 85 f6 test %esi,%esi
10ebfa: 74 0c je 10ec08 <_Watchdog_Remove+0x54>
_Watchdog_Sync_level = _ISR_Nest_level;
10ebfc: 8b 35 f4 73 12 00 mov 0x1273f4,%esi
10ec02: 89 35 14 74 12 00 mov %esi,0x127414
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
10ec08: 8b 72 04 mov 0x4(%edx),%esi
next->previous = previous;
10ec0b: 89 73 04 mov %esi,0x4(%ebx)
previous->next = next;
10ec0e: 89 1e mov %ebx,(%esi)
10ec10: eb b7 jmp 10ebc9 <_Watchdog_Remove+0x15>
10ec12: 66 90 xchg %ax,%ax
/*
* 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;
10ec14: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx)
break;
10ec1b: eb ac jmp 10ebc9 <_Watchdog_Remove+0x15>
00110018 <_Watchdog_Report>:
void _Watchdog_Report(
const char *name,
Watchdog_Control *watch
)
{
110018: 55 push %ebp
110019: 89 e5 mov %esp,%ebp
11001b: 57 push %edi
11001c: 56 push %esi
11001d: 53 push %ebx
11001e: 83 ec 2c sub $0x2c,%esp
110021: 8b 55 08 mov 0x8(%ebp),%edx
110024: 8b 45 0c mov 0xc(%ebp),%eax
printk(
110027: 8b 78 24 mov 0x24(%eax),%edi
11002a: 8b 70 20 mov 0x20(%eax),%esi
11002d: 8b 58 1c mov 0x1c(%eax),%ebx
110030: 8b 48 0c mov 0xc(%eax),%ecx
110033: 89 4d d4 mov %ecx,-0x2c(%ebp)
110036: 8b 48 10 mov 0x10(%eax),%ecx
110039: 89 4d e0 mov %ecx,-0x20(%ebp)
11003c: 85 d2 test %edx,%edx
11003e: 74 2c je 11006c <_Watchdog_Report+0x54>
110040: b9 23 36 12 00 mov $0x123623,%ecx
110045: 83 ec 0c sub $0xc,%esp
110048: 57 push %edi
110049: 56 push %esi
11004a: 53 push %ebx
11004b: 50 push %eax
11004c: ff 75 d4 pushl -0x2c(%ebp)
11004f: ff 75 e0 pushl -0x20(%ebp)
110052: 51 push %ecx
110053: 52 push %edx
110054: 68 26 40 12 00 push $0x124026
110059: e8 62 9f ff ff call 109fc0 <printk>
11005e: 83 c4 30 add $0x30,%esp
watch,
watch->routine,
watch->id,
watch->user_data
);
}
110061: 8d 65 f4 lea -0xc(%ebp),%esp
110064: 5b pop %ebx
110065: 5e pop %esi
110066: 5f pop %edi
110067: c9 leave
110068: c3 ret
110069: 8d 76 00 lea 0x0(%esi),%esi
void _Watchdog_Report(
const char *name,
Watchdog_Control *watch
)
{
printk(
11006c: b9 75 3e 12 00 mov $0x123e75,%ecx
110071: 89 ca mov %ecx,%edx
110073: eb d0 jmp 110045 <_Watchdog_Report+0x2d>
0010ffa8 <_Watchdog_Report_chain>:
void _Watchdog_Report_chain(
const char *name,
Chain_Control *header
)
{
10ffa8: 55 push %ebp
10ffa9: 89 e5 mov %esp,%ebp
10ffab: 57 push %edi
10ffac: 56 push %esi
10ffad: 53 push %ebx
10ffae: 83 ec 20 sub $0x20,%esp
10ffb1: 8b 7d 08 mov 0x8(%ebp),%edi
10ffb4: 8b 75 0c mov 0xc(%ebp),%esi
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
10ffb7: 9c pushf
10ffb8: fa cli
10ffb9: 8f 45 e4 popl -0x1c(%ebp)
printk( "Watchdog Chain: %s %p\n", name, header );
10ffbc: 56 push %esi
10ffbd: 57 push %edi
10ffbe: 68 f0 3f 12 00 push $0x123ff0
10ffc3: e8 f8 9f ff ff call 109fc0 <printk>
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
10ffc8: 8b 1e mov (%esi),%ebx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10ffca: 83 c6 04 add $0x4,%esi
if ( !_Chain_Is_empty( header ) ) {
10ffcd: 83 c4 10 add $0x10,%esp
10ffd0: 39 f3 cmp %esi,%ebx
10ffd2: 74 31 je 110005 <_Watchdog_Report_chain+0x5d><== NEVER TAKEN
node != _Chain_Tail(header) ;
node = node->next )
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
10ffd4: 83 ec 08 sub $0x8,%esp
10ffd7: 53 push %ebx
10ffd8: 6a 00 push $0x0
10ffda: e8 39 00 00 00 call 110018 <_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 )
10ffdf: 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 ;
10ffe1: 83 c4 10 add $0x10,%esp
10ffe4: 39 f3 cmp %esi,%ebx
10ffe6: 75 ec jne 10ffd4 <_Watchdog_Report_chain+0x2c><== NEVER TAKEN
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
10ffe8: 83 ec 08 sub $0x8,%esp
10ffeb: 57 push %edi
10ffec: 68 07 40 12 00 push $0x124007
10fff1: e8 ca 9f ff ff call 109fc0 <printk>
10fff6: 83 c4 10 add $0x10,%esp
} else {
printk( "Chain is empty\n" );
}
_ISR_Enable( level );
10fff9: ff 75 e4 pushl -0x1c(%ebp)
10fffc: 9d popf
}
10fffd: 8d 65 f4 lea -0xc(%ebp),%esp
110000: 5b pop %ebx
110001: 5e pop %esi
110002: 5f pop %edi
110003: c9 leave
110004: c3 ret
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
} else {
printk( "Chain is empty\n" );
110005: 83 ec 0c sub $0xc,%esp
110008: 68 16 40 12 00 push $0x124016
11000d: e8 ae 9f ff ff call 109fc0 <printk>
110012: 83 c4 10 add $0x10,%esp
110015: eb e2 jmp 10fff9 <_Watchdog_Report_chain+0x51>
0010ec20 <_Watchdog_Tickle>:
*/
void _Watchdog_Tickle(
Chain_Control *header
)
{
10ec20: 55 push %ebp
10ec21: 89 e5 mov %esp,%ebp
10ec23: 57 push %edi
10ec24: 56 push %esi
10ec25: 53 push %ebx
10ec26: 83 ec 1c sub $0x1c,%esp
10ec29: 8b 7d 08 mov 0x8(%ebp),%edi
* See the comment in watchdoginsert.c and watchdogadjust.c
* about why it's safe not to declare header a pointer to
* volatile data - till, 2003/7
*/
_ISR_Disable( level );
10ec2c: 9c pushf
10ec2d: fa cli
10ec2e: 5e pop %esi
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
10ec2f: 8b 1f mov (%edi),%ebx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
10ec31: 8d 47 04 lea 0x4(%edi),%eax
10ec34: 89 45 e4 mov %eax,-0x1c(%ebp)
if ( _Chain_Is_empty( header ) )
10ec37: 39 c3 cmp %eax,%ebx
10ec39: 74 11 je 10ec4c <_Watchdog_Tickle+0x2c>
* to be inserted has already had its delta_interval adjusted to 0, and
* so is added to the head of the chain with a delta_interval of 0.
*
* Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc)
*/
if (the_watchdog->delta_interval != 0) {
10ec3b: 8b 43 10 mov 0x10(%ebx),%eax
10ec3e: 85 c0 test %eax,%eax
10ec40: 74 34 je 10ec76 <_Watchdog_Tickle+0x56>
the_watchdog->delta_interval--;
10ec42: 48 dec %eax
10ec43: 89 43 10 mov %eax,0x10(%ebx)
if ( the_watchdog->delta_interval != 0 )
10ec46: 85 c0 test %eax,%eax
10ec48: 74 2c je 10ec76 <_Watchdog_Tickle+0x56>
10ec4a: 66 90 xchg %ax,%ax
the_watchdog = _Watchdog_First( header );
} while ( !_Chain_Is_empty( header ) &&
(the_watchdog->delta_interval == 0) );
leave:
_ISR_Enable(level);
10ec4c: 56 push %esi
10ec4d: 9d popf
}
10ec4e: 8d 65 f4 lea -0xc(%ebp),%esp
10ec51: 5b pop %ebx
10ec52: 5e pop %esi
10ec53: 5f pop %edi
10ec54: c9 leave
10ec55: c3 ret
_ISR_Enable( level );
switch( watchdog_state ) {
case WATCHDOG_ACTIVE:
(*the_watchdog->routine)(
10ec56: 83 ec 08 sub $0x8,%esp
10ec59: ff 73 24 pushl 0x24(%ebx)
10ec5c: ff 73 20 pushl 0x20(%ebx)
10ec5f: ff 53 1c call *0x1c(%ebx)
10ec62: 83 c4 10 add $0x10,%esp
case WATCHDOG_REMOVE_IT:
break;
}
_ISR_Disable( level );
10ec65: 9c pushf
10ec66: fa cli
10ec67: 5e pop %esi
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(
Chain_Control *header
)
{
return ( (Watchdog_Control *) header->first );
10ec68: 8b 1f mov (%edi),%ebx
the_watchdog = _Watchdog_First( header );
} while ( !_Chain_Is_empty( header ) &&
(the_watchdog->delta_interval == 0) );
10ec6a: 39 5d e4 cmp %ebx,-0x1c(%ebp)
10ec6d: 74 dd je 10ec4c <_Watchdog_Tickle+0x2c>
10ec6f: 8b 43 10 mov 0x10(%ebx),%eax
10ec72: 85 c0 test %eax,%eax
10ec74: 75 d6 jne 10ec4c <_Watchdog_Tickle+0x2c>
if ( the_watchdog->delta_interval != 0 )
goto leave;
}
do {
watchdog_state = _Watchdog_Remove( the_watchdog );
10ec76: 83 ec 0c sub $0xc,%esp
10ec79: 53 push %ebx
10ec7a: e8 35 ff ff ff call 10ebb4 <_Watchdog_Remove>
_ISR_Enable( level );
10ec7f: 56 push %esi
10ec80: 9d popf
switch( watchdog_state ) {
10ec81: 83 c4 10 add $0x10,%esp
10ec84: 83 f8 02 cmp $0x2,%eax
10ec87: 75 dc jne 10ec65 <_Watchdog_Tickle+0x45> <== NEVER TAKEN
10ec89: eb cb jmp 10ec56 <_Watchdog_Tickle+0x36>
0010ecec <_Workspace_Handler_initialization>:
/*
* _Workspace_Handler_initialization
*/
void _Workspace_Handler_initialization(void)
{
10ecec: 55 push %ebp
10eced: 89 e5 mov %esp,%ebp
10ecef: 57 push %edi
10ecf0: 53 push %ebx
uintptr_t memory_available = 0;
void *starting_address = Configuration.work_space_start;
10ecf1: 8b 1d 20 32 12 00 mov 0x123220,%ebx
uintptr_t size = Configuration.work_space_size;
10ecf7: 8b 15 24 32 12 00 mov 0x123224,%edx
if ( Configuration.do_zero_of_workspace )
10ecfd: 80 3d 48 32 12 00 00 cmpb $0x0,0x123248
10ed04: 75 1e jne 10ed24 <_Workspace_Handler_initialization+0x38>
memset( starting_address, 0, size );
memory_available = _Heap_Initialize(
10ed06: 6a 04 push $0x4
10ed08: 52 push %edx
10ed09: 53 push %ebx
10ed0a: 68 80 73 12 00 push $0x127380
10ed0f: e8 c4 dd ff ff call 10cad8 <_Heap_Initialize>
starting_address,
size,
CPU_HEAP_ALIGNMENT
);
if ( memory_available == 0 )
10ed14: 83 c4 10 add $0x10,%esp
10ed17: 85 c0 test %eax,%eax
10ed19: 74 13 je 10ed2e <_Workspace_Handler_initialization+0x42>
_Internal_error_Occurred(
INTERNAL_ERROR_CORE,
true,
INTERNAL_ERROR_TOO_LITTLE_WORKSPACE
);
}
10ed1b: 8d 65 f8 lea -0x8(%ebp),%esp
10ed1e: 5b pop %ebx
10ed1f: 5f pop %edi
10ed20: c9 leave
10ed21: c3 ret
10ed22: 66 90 xchg %ax,%ax
uintptr_t memory_available = 0;
void *starting_address = Configuration.work_space_start;
uintptr_t size = Configuration.work_space_size;
if ( Configuration.do_zero_of_workspace )
memset( starting_address, 0, size );
10ed24: 31 c0 xor %eax,%eax
10ed26: 89 df mov %ebx,%edi
10ed28: 89 d1 mov %edx,%ecx
10ed2a: f3 aa rep stos %al,%es:(%edi)
10ed2c: eb d8 jmp 10ed06 <_Workspace_Handler_initialization+0x1a>
size,
CPU_HEAP_ALIGNMENT
);
if ( memory_available == 0 )
_Internal_error_Occurred(
10ed2e: 52 push %edx
10ed2f: 6a 03 push $0x3
10ed31: 6a 01 push $0x1
10ed33: 6a 00 push $0x0
10ed35: e8 c2 e0 ff ff call 10cdfc <_Internal_error_Occurred>
001249d8 <__kill>:
#endif
int __kill( pid_t pid, int sig )
{
1249d8: 55 push %ebp <== NOT EXECUTED
1249d9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
1249db: 31 c0 xor %eax,%eax <== NOT EXECUTED
1249dd: c9 leave <== NOT EXECUTED
1249de: c3 ret <== NOT EXECUTED
0011f5f4 <_exit>:
/*
* If the toolset uses init/fini sections, then we need to
* run the global destructors now.
*/
#if defined(__USE_INIT_FINI__)
FINI_SYMBOL();
11f5f4: 55 push %ebp
11f5f5: 89 e5 mov %esp,%ebp
11f5f7: 83 ec 08 sub $0x8,%esp
11f5fa: e8 be 06 00 00 call 11fcbd <_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();
11f5ff: e8 88 ff ff ff call 11f58c <libc_wrapup>
rtems_shutdown_executive(status);
11f604: 83 ec 0c sub $0xc,%esp
11f607: ff 75 08 pushl 0x8(%ebp)
11f60a: e8 fd 00 00 00 call 11f70c <rtems_shutdown_executive>
11f60f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11f612: eb fe jmp 11f612 <_exit+0x1e> <== NOT EXECUTED
0012bc84 <_fat_block_read>:
uint32_t start,
uint32_t offset,
uint32_t count,
void *buff
)
{
12bc84: 55 push %ebp <== NOT EXECUTED
12bc85: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12bc87: 57 push %edi <== NOT EXECUTED
12bc88: 56 push %esi <== NOT EXECUTED
12bc89: 53 push %ebx <== NOT EXECUTED
12bc8a: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
int rc = RC_OK;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
12bc8d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12bc90: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
12bc93: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while (count > 0)
12bc96: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
12bc99: 85 c9 test %ecx,%ecx <== NOT EXECUTED
12bc9b: 74 6c je 12bd09 <_fat_block_read+0x85> <== NOT EXECUTED
int rc = RC_OK;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
ssize_t cmpltd = 0;
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
12bc9d: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
12bca4: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
12bca7: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12bcaa: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
12bcad: 31 db xor %ebx,%ebx <== NOT EXECUTED
12bcaf: eb 31 jmp 12bce2 <_fat_block_read+0x5e> <== NOT EXECUTED
12bcb1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
if (rc != RC_OK)
return -1;
c = MIN(count, (fs_info->vol.bps - ofs));
12bcb4: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
12bcb7: 0f b7 02 movzwl (%edx),%eax <== NOT EXECUTED
12bcba: 29 f0 sub %esi,%eax <== NOT EXECUTED
12bcbc: 3b 45 14 cmp 0x14(%ebp),%eax <== NOT EXECUTED
12bcbf: 76 03 jbe 12bcc4 <_fat_block_read+0x40> <== NOT EXECUTED
12bcc1: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
memcpy((buff + cmpltd), (block->buffer + ofs), c);
12bcc4: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
12bcc7: 01 da add %ebx,%edx <== NOT EXECUTED
12bcc9: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
12bccc: 03 71 20 add 0x20(%ecx),%esi <== NOT EXECUTED
12bccf: 89 d7 mov %edx,%edi <== NOT EXECUTED
12bcd1: 89 c1 mov %eax,%ecx <== NOT EXECUTED
12bcd3: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
count -= c;
cmpltd += c;
12bcd5: 8d 1c 18 lea (%eax,%ebx,1),%ebx <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while (count > 0)
12bcd8: 29 45 14 sub %eax,0x14(%ebp) <== NOT EXECUTED
12bcdb: 74 22 je 12bcff <_fat_block_read+0x7b> <== NOT EXECUTED
c = MIN(count, (fs_info->vol.bps - ofs));
memcpy((buff + cmpltd), (block->buffer + ofs), c);
count -= c;
cmpltd += c;
blk++;
12bcdd: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
12bce0: 31 f6 xor %esi,%esi <== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while (count > 0)
{
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
12bce2: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
12bce5: 52 push %edx <== NOT EXECUTED
12bce6: 6a 01 push $0x1 <== NOT EXECUTED
12bce8: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
12bceb: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
12bcee: e8 09 fa ff ff call 12b6fc <fat_buf_access> <== NOT EXECUTED
if (rc != RC_OK)
12bcf3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bcf6: 85 c0 test %eax,%eax <== NOT EXECUTED
12bcf8: 74 ba je 12bcb4 <_fat_block_read+0x30> <== NOT EXECUTED
c = MIN(count, (fs_info->vol.bps - ofs));
memcpy((buff + cmpltd), (block->buffer + ofs), c);
count -= c;
cmpltd += c;
blk++;
12bcfa: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
ofs = 0;
}
return cmpltd;
}
12bcff: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12bd01: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12bd04: 5b pop %ebx <== NOT EXECUTED
12bd05: 5e pop %esi <== NOT EXECUTED
12bd06: 5f pop %edi <== NOT EXECUTED
12bd07: c9 leave <== NOT EXECUTED
12bd08: c3 ret <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while (count > 0)
12bd09: 31 db xor %ebx,%ebx <== NOT EXECUTED
12bd0b: eb f2 jmp 12bcff <_fat_block_read+0x7b> <== NOT EXECUTED
0012b6e4 <_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)
{
12b6e4: 55 push %ebp <== NOT EXECUTED
12b6e5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12b6e7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
12b6ea: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12b6ed: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
12b6f0: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
12b6f3: 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);
12b6f4: e9 93 fe ff ff jmp 12b58c <fat_buf_release> <== NOT EXECUTED
0012b938 <_fat_block_write>:
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t start,
uint32_t offset,
uint32_t count,
const void *buff)
{
12b938: 55 push %ebp <== NOT EXECUTED
12b939: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12b93b: 57 push %edi <== NOT EXECUTED
12b93c: 56 push %esi <== NOT EXECUTED
12b93d: 53 push %ebx <== NOT EXECUTED
12b93e: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
12b941: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12b944: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while(count > 0)
12b947: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
12b94a: 85 c0 test %eax,%eax <== NOT EXECUTED
12b94c: 0f 84 8c 00 00 00 je 12b9de <_fat_block_write+0xa6> <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
ssize_t cmpltd = 0;
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
12b952: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
12b959: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
12b95c: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12b95f: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
12b962: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
12b969: eb 45 jmp 12b9b0 <_fat_block_write+0x78> <== NOT EXECUTED
12b96b: 90 nop <== NOT EXECUTED
c = MIN(count, (fs_info->vol.bps - ofs));
if (c == fs_info->vol.bps)
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block);
else
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
12b96c: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12b96f: 50 push %eax <== NOT EXECUTED
12b970: 6a 01 push $0x1 <== NOT EXECUTED
12b972: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
12b975: 53 push %ebx <== NOT EXECUTED
12b976: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
12b979: e8 7e fd ff ff call 12b6fc <fat_buf_access> <== NOT EXECUTED
12b97e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b981: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
if (rc != RC_OK)
12b984: 85 c0 test %eax,%eax <== NOT EXECUTED
12b986: 75 44 jne 12b9cc <_fat_block_write+0x94> <== NOT EXECUTED
return -1;
memcpy((block->buffer + ofs), (buff + cmpltd), c);
12b988: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12b98b: 03 70 20 add 0x20(%eax),%esi <== NOT EXECUTED
12b98e: 89 f0 mov %esi,%eax <== NOT EXECUTED
12b990: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
12b993: 03 75 d4 add -0x2c(%ebp),%esi <== NOT EXECUTED
12b996: 89 c7 mov %eax,%edi <== NOT EXECUTED
12b998: 89 d1 mov %edx,%ecx <== NOT EXECUTED
12b99a: 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;
12b99c: c6 83 80 00 00 00 01 movb $0x1,0x80(%ebx) <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
count -= c;
cmpltd +=c;
12b9a3: 01 55 d4 add %edx,-0x2c(%ebp) <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while(count > 0)
12b9a6: 29 55 14 sub %edx,0x14(%ebp) <== NOT EXECUTED
12b9a9: 74 28 je 12b9d3 <_fat_block_write+0x9b> <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
count -= c;
cmpltd +=c;
blk++;
12b9ab: ff 45 d0 incl -0x30(%ebp) <== NOT EXECUTED
12b9ae: 31 f6 xor %esi,%esi <== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while(count > 0)
{
c = MIN(count, (fs_info->vol.bps - ofs));
12b9b0: 0f b7 03 movzwl (%ebx),%eax <== NOT EXECUTED
12b9b3: 89 c2 mov %eax,%edx <== NOT EXECUTED
12b9b5: 29 f2 sub %esi,%edx <== NOT EXECUTED
12b9b7: 3b 55 14 cmp 0x14(%ebp),%edx <== NOT EXECUTED
12b9ba: 76 03 jbe 12b9bf <_fat_block_write+0x87> <== NOT EXECUTED
12b9bc: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
if (c == fs_info->vol.bps)
12b9bf: 39 d0 cmp %edx,%eax <== NOT EXECUTED
12b9c1: 75 a9 jne 12b96c <_fat_block_write+0x34> <== NOT EXECUTED
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block);
12b9c3: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12b9c6: 50 push %eax <== NOT EXECUTED
12b9c7: 6a 02 push $0x2 <== NOT EXECUTED
12b9c9: eb a7 jmp 12b972 <_fat_block_write+0x3a> <== NOT EXECUTED
12b9cb: 90 nop <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
count -= c;
cmpltd +=c;
blk++;
12b9cc: c7 45 d4 ff ff ff ff movl $0xffffffff,-0x2c(%ebp) <== NOT EXECUTED
ofs = 0;
}
return cmpltd;
}
12b9d3: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
12b9d6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12b9d9: 5b pop %ebx <== NOT EXECUTED
12b9da: 5e pop %esi <== NOT EXECUTED
12b9db: 5f pop %edi <== NOT EXECUTED
12b9dc: c9 leave <== NOT EXECUTED
12b9dd: c3 ret <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while(count > 0)
12b9de: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
12b9e5: eb ec jmp 12b9d3 <_fat_block_write+0x9b> <== NOT EXECUTED
001435e4 <_fcntl_r>:
struct _reent *ptr __attribute__((unused)),
int fd,
int cmd,
int arg
)
{
1435e4: 55 push %ebp <== NOT EXECUTED
1435e5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1435e7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1435ea: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1435ed: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
return fcntl( fd, cmd, arg );
1435f0: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
1435f3: 89 4d 10 mov %ecx,0x10(%ebp) <== NOT EXECUTED
1435f6: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
1435f9: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
1435fc: c9 leave <== NOT EXECUTED
int fd,
int cmd,
int arg
)
{
return fcntl( fd, cmd, arg );
1435fd: e9 4a fe ff ff jmp 14344c <fcntl> <== NOT EXECUTED
001249a8 <_getpid_r>:
#include <reent.h>
pid_t _getpid_r(
struct _reent *ptr __attribute__((unused))
)
{
1249a8: 55 push %ebp <== NOT EXECUTED
1249a9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return getpid();
}
1249ab: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
1249b0: c9 leave <== NOT EXECUTED
1249b1: c3 ret <== NOT EXECUTED
001086c4 <_gettimeofday>:
int _gettimeofday(
struct timeval *tp,
struct timezone *tzp
)
{
1086c4: 55 push %ebp <== NOT EXECUTED
1086c5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1086c7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
return gettimeofday( tp, tzp );
}
1086ca: c9 leave <== NOT EXECUTED
int _gettimeofday(
struct timeval *tp,
struct timezone *tzp
)
{
return gettimeofday( tp, tzp );
1086cb: e9 90 ff ff ff jmp 108660 <gettimeofday> <== NOT EXECUTED
001249d0 <_kill_r>:
#if defined(RTEMS_NEWLIB)
#include <reent.h>
int _kill_r( struct _reent *ptr, pid_t pid, int sig )
{
1249d0: 55 push %ebp <== NOT EXECUTED
1249d1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
1249d3: 31 c0 xor %eax,%eax <== NOT EXECUTED
1249d5: c9 leave <== NOT EXECUTED
1249d6: c3 ret <== NOT EXECUTED
0012ef18 <_link_r>:
int _link_r(
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)
{
12ef18: 55 push %ebp <== NOT EXECUTED
12ef19: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12ef1b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12ef1e: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return link( existing, new );
12ef21: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
12ef24: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
12ef27: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
12ef2a: c9 leave <== NOT EXECUTED
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)
{
return link( existing, new );
12ef2b: e9 30 fe ff ff jmp 12ed60 <link> <== NOT EXECUTED
0012f134 <_lstat_r>:
int _STAT_R_NAME(
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
12f134: 55 push %ebp <== NOT EXECUTED
12f135: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12f137: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12f13a: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return _STAT_NAME( path, buf );
12f13d: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
12f140: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
12f143: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
12f146: c9 leave <== NOT EXECUTED
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
12f147: e9 18 ff ff ff jmp 12f064 <lstat> <== NOT EXECUTED
0011f6d4 <_realloc_r>:
void *_realloc_r(
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
11f6d4: 55 push %ebp <== NOT EXECUTED
11f6d5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11f6d7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
11f6da: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return realloc( ptr, size );
11f6dd: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
11f6e0: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
11f6e3: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
11f6e6: c9 leave <== NOT EXECUTED
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
return realloc( ptr, size );
11f6e7: e9 48 00 00 00 jmp 11f734 <realloc> <== NOT EXECUTED
0015c77c <_rename_r>:
int _rename_r(
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)
{
15c77c: 55 push %ebp
15c77d: 89 e5 mov %esp,%ebp
15c77f: 57 push %edi
15c780: 56 push %esi
15c781: 53 push %ebx
15c782: 83 ec 78 sub $0x78,%esp
15c785: 8b 5d 0c mov 0xc(%ebp),%ebx
/*
* Get the parent node of the old path to be renamed. Find the parent path.
*/
old_parent_pathlen = rtems_filesystem_dirname ( old );
15c788: 53 push %ebx
15c789: e8 4e 1f fb ff call 10e6dc <rtems_filesystem_dirname>
if ( old_parent_pathlen == 0 )
15c78e: 83 c4 10 add $0x10,%esp
15c791: 85 c0 test %eax,%eax
15c793: 0f 85 b7 01 00 00 jne 15c950 <_rename_r+0x1d4> <== NEVER TAKEN
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
15c799: 56 push %esi
15c79a: 8d 45 b8 lea -0x48(%ebp),%eax
15c79d: 89 45 94 mov %eax,-0x6c(%ebp)
15c7a0: 50 push %eax
15c7a1: 8d 45 e4 lea -0x1c(%ebp),%eax
15c7a4: 50 push %eax
15c7a5: 53 push %ebx
15c7a6: e8 bd 37 fb ff call 10ff68 <rtems_filesystem_get_start_loc>
15c7ab: 31 d2 xor %edx,%edx
15c7ad: c6 45 93 00 movb $0x0,-0x6d(%ebp)
15c7b1: 83 c4 10 add $0x10,%esp
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
15c7b4: 8d 7d cc lea -0x34(%ebp),%edi
15c7b7: b9 05 00 00 00 mov $0x5,%ecx
15c7bc: 8b 75 94 mov -0x6c(%ebp),%esi
15c7bf: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
name = old + old_parent_pathlen;
15c7c1: 01 d3 add %edx,%ebx
15c7c3: 89 5d e0 mov %ebx,-0x20(%ebp)
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
15c7c6: be ff ff ff ff mov $0xffffffff,%esi
15c7cb: 89 f1 mov %esi,%ecx
15c7cd: 89 df mov %ebx,%edi
15c7cf: 31 c0 xor %eax,%eax
15c7d1: f2 ae repnz scas %es:(%edi),%al
15c7d3: f7 d1 not %ecx
15c7d5: 49 dec %ecx
15c7d6: 83 ec 08 sub $0x8,%esp
15c7d9: 51 push %ecx
15c7da: 53 push %ebx
15c7db: e8 ac 1e fb ff call 10e68c <rtems_filesystem_prefix_separators>
15c7e0: 01 c3 add %eax,%ebx
15c7e2: 89 5d e0 mov %ebx,-0x20(%ebp)
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
15c7e5: 89 f1 mov %esi,%ecx
15c7e7: 89 df mov %ebx,%edi
15c7e9: 31 c0 xor %eax,%eax
15c7eb: f2 ae repnz scas %es:(%edi),%al
15c7ed: 89 ce mov %ecx,%esi
15c7ef: f7 d6 not %esi
15c7f1: 4e dec %esi
15c7f2: c7 04 24 00 00 00 00 movl $0x0,(%esp)
15c7f9: 8d 7d cc lea -0x34(%ebp),%edi
15c7fc: 57 push %edi
15c7fd: 6a 00 push $0x0
15c7ff: 56 push %esi
15c800: 53 push %ebx
15c801: e8 1e 1f fb ff call 10e724 <rtems_filesystem_evaluate_relative_path>
0, &old_loc, false );
if ( result != 0 ) {
15c806: 83 c4 20 add $0x20,%esp
15c809: 85 c0 test %eax,%eax
15c80b: 0f 85 23 01 00 00 jne 15c934 <_rename_r+0x1b8>
/*
* Get the parent of the new node we are renaming to.
*/
rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );
15c811: 51 push %ecx
15c812: 8d 5d a4 lea -0x5c(%ebp),%ebx
15c815: 53 push %ebx
15c816: 8d 45 e4 lea -0x1c(%ebp),%eax
15c819: 50 push %eax
15c81a: ff 75 10 pushl 0x10(%ebp)
15c81d: e8 46 37 fb ff call 10ff68 <rtems_filesystem_get_start_loc>
if ( !new_parent_loc.ops->evalformake_h ) {
15c822: 8b 45 b0 mov -0x50(%ebp),%eax
15c825: 8b 40 04 mov 0x4(%eax),%eax
15c828: 83 c4 10 add $0x10,%esp
15c82b: 85 c0 test %eax,%eax
15c82d: 0f 84 b5 01 00 00 je 15c9e8 <_rename_r+0x26c>
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 );
15c833: 52 push %edx
15c834: 8d 55 e0 lea -0x20(%ebp),%edx
15c837: 52 push %edx
15c838: 53 push %ebx
15c839: 8b 55 10 mov 0x10(%ebp),%edx
15c83c: 03 55 e4 add -0x1c(%ebp),%edx
15c83f: 52 push %edx
15c840: ff d0 call *%eax
if ( result != 0 ) {
15c842: 83 c4 10 add $0x10,%esp
15c845: 85 c0 test %eax,%eax
15c847: 0f 85 2f 01 00 00 jne 15c97c <_rename_r+0x200>
/*
* 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 ) {
15c84d: 8b 45 c8 mov -0x38(%ebp),%eax
15c850: 3b 45 b4 cmp -0x4c(%ebp),%eax
15c853: 75 77 jne 15c8cc <_rename_r+0x150>
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !new_parent_loc.ops->rename_h ) {
15c855: 8b 55 b0 mov -0x50(%ebp),%edx
15c858: 8b 42 40 mov 0x40(%edx),%eax
15c85b: 85 c0 test %eax,%eax
15c85d: 0f 84 75 01 00 00 je 15c9d8 <_rename_r+0x25c>
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
15c863: ff 75 e0 pushl -0x20(%ebp)
15c866: 53 push %ebx
15c867: 57 push %edi
15c868: ff 75 94 pushl -0x6c(%ebp)
15c86b: ff d0 call *%eax
15c86d: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &new_parent_loc );
15c86f: 8b 45 b0 mov -0x50(%ebp),%eax
15c872: 83 c4 10 add $0x10,%esp
15c875: 85 c0 test %eax,%eax
15c877: 74 10 je 15c889 <_rename_r+0x10d> <== NEVER TAKEN
15c879: 8b 40 1c mov 0x1c(%eax),%eax
15c87c: 85 c0 test %eax,%eax
15c87e: 74 09 je 15c889 <_rename_r+0x10d> <== NEVER TAKEN
15c880: 83 ec 0c sub $0xc,%esp
15c883: 53 push %ebx
15c884: ff d0 call *%eax
15c886: 83 c4 10 add $0x10,%esp
if ( free_old_parentloc )
15c889: 80 7d 93 00 cmpb $0x0,-0x6d(%ebp)
15c88d: 74 19 je 15c8a8 <_rename_r+0x12c>
rtems_filesystem_freenode( &old_parent_loc );
15c88f: 8b 45 c4 mov -0x3c(%ebp),%eax
15c892: 85 c0 test %eax,%eax
15c894: 74 12 je 15c8a8 <_rename_r+0x12c> <== NEVER TAKEN
15c896: 8b 40 1c mov 0x1c(%eax),%eax
15c899: 85 c0 test %eax,%eax
15c89b: 74 0b je 15c8a8 <_rename_r+0x12c> <== NEVER TAKEN
15c89d: 83 ec 0c sub $0xc,%esp
15c8a0: ff 75 94 pushl -0x6c(%ebp)
15c8a3: ff d0 call *%eax
15c8a5: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &old_loc );
15c8a8: 8b 45 d8 mov -0x28(%ebp),%eax
15c8ab: 85 c0 test %eax,%eax
15c8ad: 74 10 je 15c8bf <_rename_r+0x143> <== NEVER TAKEN
15c8af: 8b 40 1c mov 0x1c(%eax),%eax
15c8b2: 85 c0 test %eax,%eax
15c8b4: 74 09 je 15c8bf <_rename_r+0x143> <== NEVER TAKEN
15c8b6: 83 ec 0c sub $0xc,%esp
15c8b9: 57 push %edi
15c8ba: ff d0 call *%eax
15c8bc: 83 c4 10 add $0x10,%esp
return result;
}
15c8bf: 89 f0 mov %esi,%eax
15c8c1: 8d 65 f4 lea -0xc(%ebp),%esp
15c8c4: 5b pop %ebx
15c8c5: 5e pop %esi
15c8c6: 5f pop %edi
15c8c7: c9 leave
15c8c8: c3 ret
15c8c9: 8d 76 00 lea 0x0(%esi),%esi
* Check to see if the caller is trying to rename across file system
* boundaries.
*/
if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) {
rtems_filesystem_freenode( &new_parent_loc );
15c8cc: 8b 45 b0 mov -0x50(%ebp),%eax
15c8cf: 85 c0 test %eax,%eax
15c8d1: 74 10 je 15c8e3 <_rename_r+0x167> <== NEVER TAKEN
15c8d3: 8b 40 1c mov 0x1c(%eax),%eax
15c8d6: 85 c0 test %eax,%eax
15c8d8: 74 09 je 15c8e3 <_rename_r+0x167> <== NEVER TAKEN
15c8da: 83 ec 0c sub $0xc,%esp
15c8dd: 53 push %ebx
15c8de: ff d0 call *%eax
15c8e0: 83 c4 10 add $0x10,%esp
if ( free_old_parentloc )
15c8e3: 80 7d 93 00 cmpb $0x0,-0x6d(%ebp)
15c8e7: 74 19 je 15c902 <_rename_r+0x186>
rtems_filesystem_freenode( &old_parent_loc );
15c8e9: 8b 45 c4 mov -0x3c(%ebp),%eax
15c8ec: 85 c0 test %eax,%eax
15c8ee: 74 12 je 15c902 <_rename_r+0x186> <== NEVER TAKEN
15c8f0: 8b 40 1c mov 0x1c(%eax),%eax
15c8f3: 85 c0 test %eax,%eax
15c8f5: 74 0b je 15c902 <_rename_r+0x186> <== NEVER TAKEN
15c8f7: 83 ec 0c sub $0xc,%esp
15c8fa: ff 75 94 pushl -0x6c(%ebp)
15c8fd: ff d0 call *%eax
15c8ff: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &old_loc );
15c902: 8b 45 d8 mov -0x28(%ebp),%eax
15c905: 85 c0 test %eax,%eax
15c907: 74 10 je 15c919 <_rename_r+0x19d> <== NEVER TAKEN
15c909: 8b 40 1c mov 0x1c(%eax),%eax
15c90c: 85 c0 test %eax,%eax
15c90e: 74 09 je 15c919 <_rename_r+0x19d> <== NEVER TAKEN
15c910: 83 ec 0c sub $0xc,%esp
15c913: 57 push %edi
15c914: ff d0 call *%eax
15c916: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EXDEV );
15c919: e8 6e 9e fe ff call 14678c <__errno>
15c91e: c7 00 12 00 00 00 movl $0x12,(%eax)
15c924: be ff ff ff ff mov $0xffffffff,%esi
if ( free_old_parentloc )
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
return result;
}
15c929: 89 f0 mov %esi,%eax
15c92b: 8d 65 f4 lea -0xc(%ebp),%esp
15c92e: 5b pop %ebx
15c92f: 5e pop %esi
15c930: 5f pop %edi
15c931: c9 leave
15c932: c3 ret
15c933: 90 nop
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &old_loc, false );
if ( result != 0 ) {
if ( free_old_parentloc )
15c934: 80 7d 93 00 cmpb $0x0,-0x6d(%ebp)
15c938: 0f 85 f5 00 00 00 jne 15ca33 <_rename_r+0x2b7> <== ALWAYS TAKEN
result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
rtems_filesystem_freenode( &new_parent_loc );
if ( free_old_parentloc )
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
15c93e: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
return result;
}
15c943: 89 f0 mov %esi,%eax <== NOT EXECUTED
15c945: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
15c948: 5b pop %ebx <== NOT EXECUTED
15c949: 5e pop %esi <== NOT EXECUTED
15c94a: 5f pop %edi <== NOT EXECUTED
15c94b: c9 leave <== NOT EXECUTED
15c94c: c3 ret <== NOT EXECUTED
15c94d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
old_parent_pathlen = rtems_filesystem_dirname ( old );
if ( old_parent_pathlen == 0 )
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
else {
result = rtems_filesystem_evaluate_path( old, old_parent_pathlen,
15c950: 83 ec 0c sub $0xc,%esp
15c953: 6a 00 push $0x0
15c955: 8d 4d b8 lea -0x48(%ebp),%ecx
15c958: 89 4d 94 mov %ecx,-0x6c(%ebp)
15c95b: 51 push %ecx
15c95c: 6a 02 push $0x2
15c95e: 50 push %eax
15c95f: 53 push %ebx
15c960: 89 45 8c mov %eax,-0x74(%ebp)
15c963: e8 90 1e fb ff call 10e7f8 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&old_parent_loc,
false );
if ( result != 0 )
15c968: 83 c4 20 add $0x20,%esp
15c96b: 85 c0 test %eax,%eax
15c96d: 8b 55 8c mov -0x74(%ebp),%edx
15c970: 75 cc jne 15c93e <_rename_r+0x1c2> <== NEVER TAKEN
15c972: c6 45 93 01 movb $0x1,-0x6d(%ebp)
15c976: e9 39 fe ff ff jmp 15c7b4 <_rename_r+0x38>
15c97b: 90 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
if ( result != 0 ) {
rtems_filesystem_freenode( &new_parent_loc );
15c97c: 8b 45 b0 mov -0x50(%ebp),%eax
15c97f: 85 c0 test %eax,%eax
15c981: 74 10 je 15c993 <_rename_r+0x217> <== NEVER TAKEN
15c983: 8b 40 1c mov 0x1c(%eax),%eax
15c986: 85 c0 test %eax,%eax
15c988: 74 09 je 15c993 <_rename_r+0x217> <== NEVER TAKEN
15c98a: 83 ec 0c sub $0xc,%esp
15c98d: 53 push %ebx
15c98e: ff d0 call *%eax
15c990: 83 c4 10 add $0x10,%esp
if ( free_old_parentloc )
15c993: 80 7d 93 00 cmpb $0x0,-0x6d(%ebp)
15c997: 74 19 je 15c9b2 <_rename_r+0x236> <== NEVER TAKEN
rtems_filesystem_freenode( &old_parent_loc );
15c999: 8b 45 c4 mov -0x3c(%ebp),%eax
15c99c: 85 c0 test %eax,%eax
15c99e: 74 12 je 15c9b2 <_rename_r+0x236> <== NEVER TAKEN
15c9a0: 8b 40 1c mov 0x1c(%eax),%eax
15c9a3: 85 c0 test %eax,%eax
15c9a5: 74 0b je 15c9b2 <_rename_r+0x236> <== NEVER TAKEN
15c9a7: 83 ec 0c sub $0xc,%esp
15c9aa: ff 75 94 pushl -0x6c(%ebp)
15c9ad: ff d0 call *%eax
15c9af: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &old_loc );
15c9b2: 8b 45 d8 mov -0x28(%ebp),%eax
15c9b5: 85 c0 test %eax,%eax
15c9b7: 74 85 je 15c93e <_rename_r+0x1c2> <== NEVER TAKEN
15c9b9: 8b 40 1c mov 0x1c(%eax),%eax
15c9bc: 85 c0 test %eax,%eax
15c9be: 0f 84 7a ff ff ff je 15c93e <_rename_r+0x1c2> <== NEVER TAKEN
15c9c4: 83 ec 0c sub $0xc,%esp
15c9c7: 57 push %edi
15c9c8: ff d0 call *%eax
15c9ca: 83 ce ff or $0xffffffff,%esi
15c9cd: 83 c4 10 add $0x10,%esp
15c9d0: e9 ea fe ff ff jmp 15c8bf <_rename_r+0x143>
15c9d5: 8d 76 00 lea 0x0(%esi),%esi
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !new_parent_loc.ops->rename_h ) {
rtems_filesystem_freenode( &new_parent_loc );
15c9d8: 8b 42 1c mov 0x1c(%edx),%eax
15c9db: 85 c0 test %eax,%eax
15c9dd: 74 09 je 15c9e8 <_rename_r+0x26c> <== NEVER TAKEN
15c9df: 83 ec 0c sub $0xc,%esp
15c9e2: 53 push %ebx
15c9e3: ff d0 call *%eax
15c9e5: 83 c4 10 add $0x10,%esp
if ( free_old_parentloc )
15c9e8: 80 7d 93 00 cmpb $0x0,-0x6d(%ebp)
15c9ec: 74 19 je 15ca07 <_rename_r+0x28b> <== NEVER TAKEN
rtems_filesystem_freenode( &old_parent_loc );
15c9ee: 8b 45 c4 mov -0x3c(%ebp),%eax
15c9f1: 85 c0 test %eax,%eax
15c9f3: 74 12 je 15ca07 <_rename_r+0x28b> <== NEVER TAKEN
15c9f5: 8b 40 1c mov 0x1c(%eax),%eax
15c9f8: 85 c0 test %eax,%eax
15c9fa: 74 0b je 15ca07 <_rename_r+0x28b> <== NEVER TAKEN
15c9fc: 83 ec 0c sub $0xc,%esp
15c9ff: ff 75 94 pushl -0x6c(%ebp)
15ca02: ff d0 call *%eax
15ca04: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &old_loc );
15ca07: 8b 45 d8 mov -0x28(%ebp),%eax
15ca0a: 85 c0 test %eax,%eax
15ca0c: 74 10 je 15ca1e <_rename_r+0x2a2> <== NEVER TAKEN
15ca0e: 8b 40 1c mov 0x1c(%eax),%eax
15ca11: 85 c0 test %eax,%eax
15ca13: 74 09 je 15ca1e <_rename_r+0x2a2> <== NEVER TAKEN
15ca15: 83 ec 0c sub $0xc,%esp
15ca18: 57 push %edi
15ca19: ff d0 call *%eax
15ca1b: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( ENOTSUP );
15ca1e: e8 69 9d fe ff call 14678c <__errno>
15ca23: c7 00 86 00 00 00 movl $0x86,(%eax)
15ca29: be ff ff ff ff mov $0xffffffff,%esi
15ca2e: e9 8c fe ff ff jmp 15c8bf <_rename_r+0x143>
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &old_loc, false );
if ( result != 0 ) {
if ( free_old_parentloc )
rtems_filesystem_freenode( &old_parent_loc );
15ca33: 8b 45 c4 mov -0x3c(%ebp),%eax
15ca36: 85 c0 test %eax,%eax
15ca38: 0f 84 00 ff ff ff je 15c93e <_rename_r+0x1c2> <== NEVER TAKEN
15ca3e: 8b 40 1c mov 0x1c(%eax),%eax
15ca41: 85 c0 test %eax,%eax
15ca43: 0f 84 f5 fe ff ff je 15c93e <_rename_r+0x1c2> <== NEVER TAKEN
15ca49: 83 ec 0c sub $0xc,%esp
15ca4c: ff 75 94 pushl -0x6c(%ebp)
15ca4f: ff d0 call *%eax
15ca51: 83 ce ff or $0xffffffff,%esi
15ca54: 83 c4 10 add $0x10,%esp
15ca57: e9 63 fe ff ff jmp 15c8bf <_rename_r+0x143>
0010ff50 <_stat_r>:
int _STAT_R_NAME(
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
10ff50: 55 push %ebp <== NOT EXECUTED
10ff51: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10ff53: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10ff56: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return _STAT_NAME( path, buf );
10ff59: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
10ff5c: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
10ff5f: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
10ff62: c9 leave <== NOT EXECUTED
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
10ff63: e9 18 ff ff ff jmp 10fe80 <stat> <== NOT EXECUTED
00113950 <_unlink_r>:
int _unlink_r(
struct _reent *ptr __attribute__((unused)),
const char *path
)
{
113950: 55 push %ebp <== NOT EXECUTED
113951: 89 e5 mov %esp,%ebp <== NOT EXECUTED
113953: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
return unlink( path );
113956: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
113959: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
11395c: c9 leave <== NOT EXECUTED
int _unlink_r(
struct _reent *ptr __attribute__((unused)),
const char *path
)
{
return unlink( path );
11395d: e9 fa fd ff ff jmp 11375c <unlink> <== NOT EXECUTED
0012ddb8 <access>:
int access(
const char *path,
int amode
)
{
12ddb8: 55 push %ebp
12ddb9: 89 e5 mov %esp,%ebp
12ddbb: 53 push %ebx
12ddbc: 83 ec 5c sub $0x5c,%esp
12ddbf: 8b 5d 0c mov 0xc(%ebp),%ebx
struct stat statbuf;
if ( stat(path, &statbuf) )
12ddc2: 8d 45 b0 lea -0x50(%ebp),%eax
12ddc5: 50 push %eax
12ddc6: ff 75 08 pushl 0x8(%ebp)
12ddc9: e8 b2 20 fe ff call 10fe80 <stat>
12ddce: 83 c4 10 add $0x10,%esp
12ddd1: 85 c0 test %eax,%eax
12ddd3: 75 1f jne 12ddf4 <access+0x3c>
return -1;
if ( amode & R_OK ) {
12ddd5: f6 c3 04 test $0x4,%bl
12ddd8: 75 12 jne 12ddec <access+0x34>
if (!( statbuf.st_mode & S_IREAD ))
return -1;
}
if ( amode & W_OK ) {
12ddda: f6 c3 02 test $0x2,%bl
12dddd: 75 29 jne 12de08 <access+0x50>
if ( !( statbuf.st_mode & S_IWRITE ) )
return -1;
}
if ( amode & X_OK ) {
12dddf: 83 e3 01 and $0x1,%ebx
12dde2: 75 1c jne 12de00 <access+0x48>
if ( !( statbuf.st_mode & S_IEXEC ) )
12dde4: 31 c0 xor %eax,%eax
return -1;
}
return 0;
}
12dde6: 8b 5d fc mov -0x4(%ebp),%ebx
12dde9: c9 leave
12ddea: c3 ret
12ddeb: 90 nop
if ( stat(path, &statbuf) )
return -1;
if ( amode & R_OK ) {
if (!( statbuf.st_mode & S_IREAD ))
12ddec: f6 45 bd 01 testb $0x1,-0x43(%ebp)
12ddf0: 75 e8 jne 12ddda <access+0x22>
12ddf2: 66 90 xchg %ax,%ax
if ( !( statbuf.st_mode & S_IWRITE ) )
return -1;
}
if ( amode & X_OK ) {
if ( !( statbuf.st_mode & S_IEXEC ) )
12ddf4: b8 ff ff ff ff mov $0xffffffff,%eax
return -1;
}
return 0;
}
12ddf9: 8b 5d fc mov -0x4(%ebp),%ebx
12ddfc: c9 leave
12ddfd: c3 ret
12ddfe: 66 90 xchg %ax,%ax
if ( !( statbuf.st_mode & S_IWRITE ) )
return -1;
}
if ( amode & X_OK ) {
if ( !( statbuf.st_mode & S_IEXEC ) )
12de00: f6 45 bc 40 testb $0x40,-0x44(%ebp)
12de04: 75 de jne 12dde4 <access+0x2c>
12de06: eb ec jmp 12ddf4 <access+0x3c>
if (!( statbuf.st_mode & S_IREAD ))
return -1;
}
if ( amode & W_OK ) {
if ( !( statbuf.st_mode & S_IWRITE ) )
12de08: 80 7d bc 00 cmpb $0x0,-0x44(%ebp)
12de0c: 78 d1 js 12dddf <access+0x27>
12de0e: eb e4 jmp 12ddf4 <access+0x3c>
001083cc <calloc>:
)
{
register char *cptr;
size_t length;
MSBUMP(calloc_calls, 1);
1083cc: 55 push %ebp
1083cd: 89 e5 mov %esp,%ebp
1083cf: 57 push %edi
1083d0: 53 push %ebx
1083d1: 8b 5d 0c mov 0xc(%ebp),%ebx
1083d4: ff 05 14 72 12 00 incl 0x127214
length = nelem * elsize;
1083da: 0f af 5d 08 imul 0x8(%ebp),%ebx
cptr = malloc( length );
1083de: 83 ec 0c sub $0xc,%esp
1083e1: 53 push %ebx
1083e2: e8 d5 04 00 00 call 1088bc <malloc>
1083e7: 89 c2 mov %eax,%edx
if ( cptr )
1083e9: 83 c4 10 add $0x10,%esp
1083ec: 85 c0 test %eax,%eax
1083ee: 74 08 je 1083f8 <calloc+0x2c> <== NEVER TAKEN
memset( cptr, '\0', length );
1083f0: 31 c0 xor %eax,%eax
1083f2: 89 d7 mov %edx,%edi
1083f4: 89 d9 mov %ebx,%ecx
1083f6: f3 aa rep stos %al,%es:(%edi)
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
1083f8: ff 0d 04 72 12 00 decl 0x127204
return cptr;
}
1083fe: 89 d0 mov %edx,%eax
108400: 8d 65 f8 lea -0x8(%ebp),%esp
108403: 5b pop %ebx
108404: 5f pop %edi
108405: c9 leave
108406: c3 ret
0012df60 <chdir>:
#include <rtems/seterr.h>
int chdir(
const char *pathname
)
{
12df60: 55 push %ebp
12df61: 89 e5 mov %esp,%ebp
12df63: 57 push %edi
12df64: 56 push %esi
12df65: 83 ec 20 sub $0x20,%esp
12df68: 8b 55 08 mov 0x8(%ebp),%edx
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
12df6b: 85 d2 test %edx,%edx
12df6d: 0f 84 9d 00 00 00 je 12e010 <chdir+0xb0>
rtems_set_errno_and_return_minus_one( EFAULT );
/*
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
12df73: 31 c0 xor %eax,%eax
12df75: b9 ff ff ff ff mov $0xffffffff,%ecx
12df7a: 89 d7 mov %edx,%edi
12df7c: f2 ae repnz scas %es:(%edi),%al
12df7e: f7 d1 not %ecx
12df80: 49 dec %ecx
12df81: 83 ec 0c sub $0xc,%esp
12df84: 6a 01 push $0x1
12df86: 8d 75 e4 lea -0x1c(%ebp),%esi
12df89: 56 push %esi
12df8a: 6a 01 push $0x1
12df8c: 51 push %ecx
12df8d: 52 push %edx
12df8e: e8 65 08 fe ff call 10e7f8 <rtems_filesystem_evaluate_path>
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
if ( result != 0 )
12df93: 83 c4 20 add $0x20,%esp
12df96: 85 c0 test %eax,%eax
12df98: 75 6a jne 12e004 <chdir+0xa4>
return -1;
/*
* Verify you can change directory into this node.
*/
if ( !loc.ops->node_type_h ) {
12df9a: 8b 55 f0 mov -0x10(%ebp),%edx
12df9d: 8b 42 10 mov 0x10(%edx),%eax
12dfa0: 85 c0 test %eax,%eax
12dfa2: 74 45 je 12dfe9 <chdir+0x89> <== NEVER TAKEN
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
12dfa4: 83 ec 0c sub $0xc,%esp
12dfa7: 56 push %esi
12dfa8: ff d0 call *%eax
12dfaa: 83 c4 10 add $0x10,%esp
12dfad: 48 dec %eax
12dfae: 75 78 jne 12e028 <chdir+0xc8>
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTDIR );
}
rtems_filesystem_freenode( &rtems_filesystem_current );
12dfb0: 8b 3d 20 d3 16 00 mov 0x16d320,%edi
12dfb6: 8b 47 10 mov 0x10(%edi),%eax
12dfb9: 85 c0 test %eax,%eax
12dfbb: 74 19 je 12dfd6 <chdir+0x76> <== NEVER TAKEN
12dfbd: 8b 40 1c mov 0x1c(%eax),%eax
12dfc0: 85 c0 test %eax,%eax
12dfc2: 74 12 je 12dfd6 <chdir+0x76> <== NEVER TAKEN
12dfc4: 83 ec 0c sub $0xc,%esp
12dfc7: 83 c7 04 add $0x4,%edi
12dfca: 57 push %edi
12dfcb: ff d0 call *%eax
12dfcd: 8b 3d 20 d3 16 00 mov 0x16d320,%edi
12dfd3: 83 c4 10 add $0x10,%esp
rtems_filesystem_current = loc;
12dfd6: 83 c7 04 add $0x4,%edi
12dfd9: b9 05 00 00 00 mov $0x5,%ecx
12dfde: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
12dfe0: 31 c0 xor %eax,%eax
return 0;
}
12dfe2: 8d 65 f8 lea -0x8(%ebp),%esp
12dfe5: 5e pop %esi
12dfe6: 5f pop %edi
12dfe7: c9 leave
12dfe8: c3 ret
/*
* Verify you can change directory into this node.
*/
if ( !loc.ops->node_type_h ) {
rtems_filesystem_freenode( &loc );
12dfe9: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
12dfec: 85 c0 test %eax,%eax <== NOT EXECUTED
12dfee: 74 09 je 12dff9 <chdir+0x99> <== NOT EXECUTED
12dff0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12dff3: 56 push %esi <== NOT EXECUTED
12dff4: ff d0 call *%eax <== NOT EXECUTED
12dff6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12dff9: e8 8e 87 01 00 call 14678c <__errno> <== NOT EXECUTED
12dffe: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12e004: b8 ff ff ff ff mov $0xffffffff,%eax
rtems_filesystem_freenode( &rtems_filesystem_current );
rtems_filesystem_current = loc;
return 0;
}
12e009: 8d 65 f8 lea -0x8(%ebp),%esp
12e00c: 5e pop %esi
12e00d: 5f pop %edi
12e00e: c9 leave
12e00f: c3 ret
{
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
rtems_set_errno_and_return_minus_one( EFAULT );
12e010: e8 77 87 01 00 call 14678c <__errno>
12e015: c7 00 0e 00 00 00 movl $0xe,(%eax)
12e01b: b8 ff ff ff ff mov $0xffffffff,%eax
rtems_filesystem_freenode( &rtems_filesystem_current );
rtems_filesystem_current = loc;
return 0;
}
12e020: 8d 65 f8 lea -0x8(%ebp),%esp
12e023: 5e pop %esi
12e024: 5f pop %edi
12e025: c9 leave
12e026: c3 ret
12e027: 90 nop
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_filesystem_freenode( &loc );
12e028: 8b 45 f0 mov -0x10(%ebp),%eax
12e02b: 85 c0 test %eax,%eax
12e02d: 74 10 je 12e03f <chdir+0xdf> <== NEVER TAKEN
12e02f: 8b 40 1c mov 0x1c(%eax),%eax
12e032: 85 c0 test %eax,%eax
12e034: 74 09 je 12e03f <chdir+0xdf> <== NEVER TAKEN
12e036: 83 ec 0c sub $0xc,%esp
12e039: 56 push %esi
12e03a: ff d0 call *%eax
12e03c: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( ENOTDIR );
12e03f: e8 48 87 01 00 call 14678c <__errno>
12e044: c7 00 14 00 00 00 movl $0x14,(%eax)
12e04a: b8 ff ff ff ff mov $0xffffffff,%eax
12e04f: eb 91 jmp 12dfe2 <chdir+0x82>
0010e348 <chmod>:
int chmod(
const char *path,
mode_t mode
)
{
10e348: 55 push %ebp
10e349: 89 e5 mov %esp,%ebp
10e34b: 57 push %edi
10e34c: 56 push %esi
10e34d: 53 push %ebx
10e34e: 83 ec 38 sub $0x38,%esp
10e351: 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 );
10e354: 31 c0 xor %eax,%eax
10e356: b9 ff ff ff ff mov $0xffffffff,%ecx
10e35b: 89 d7 mov %edx,%edi
10e35d: f2 ae repnz scas %es:(%edi),%al
10e35f: f7 d1 not %ecx
10e361: 49 dec %ecx
10e362: 6a 01 push $0x1
10e364: 8d 5d d4 lea -0x2c(%ebp),%ebx
10e367: 53 push %ebx
10e368: 6a 00 push $0x0
10e36a: 51 push %ecx
10e36b: 52 push %edx
10e36c: e8 87 04 00 00 call 10e7f8 <rtems_filesystem_evaluate_path>
if ( status != 0 )
10e371: 83 c4 20 add $0x20,%esp
10e374: 85 c0 test %eax,%eax
10e376: 75 60 jne 10e3d8 <chmod+0x90>
return -1;
if ( !loc.handlers ){
10e378: 8b 45 dc mov -0x24(%ebp),%eax
10e37b: 85 c0 test %eax,%eax
10e37d: 74 36 je 10e3b5 <chmod+0x6d> <== NEVER TAKEN
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( EBADF );
}
if ( !loc.handlers->fchmod_h ){
10e37f: 8b 40 1c mov 0x1c(%eax),%eax
10e382: 85 c0 test %eax,%eax
10e384: 74 62 je 10e3e8 <chmod+0xa0> <== NEVER TAKEN
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.handlers->fchmod_h)( &loc, mode );
10e386: 83 ec 08 sub $0x8,%esp
10e389: ff 75 0c pushl 0xc(%ebp)
10e38c: 53 push %ebx
10e38d: ff d0 call *%eax
10e38f: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
10e391: 8b 45 e0 mov -0x20(%ebp),%eax
10e394: 83 c4 10 add $0x10,%esp
10e397: 85 c0 test %eax,%eax
10e399: 74 10 je 10e3ab <chmod+0x63> <== NEVER TAKEN
10e39b: 8b 40 1c mov 0x1c(%eax),%eax
10e39e: 85 c0 test %eax,%eax
10e3a0: 74 09 je 10e3ab <chmod+0x63> <== NEVER TAKEN
10e3a2: 83 ec 0c sub $0xc,%esp
10e3a5: 53 push %ebx
10e3a6: ff d0 call *%eax
10e3a8: 83 c4 10 add $0x10,%esp
return result;
}
10e3ab: 89 f0 mov %esi,%eax
10e3ad: 8d 65 f4 lea -0xc(%ebp),%esp
10e3b0: 5b pop %ebx
10e3b1: 5e pop %esi
10e3b2: 5f pop %edi
10e3b3: c9 leave
10e3b4: c3 ret
status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true );
if ( status != 0 )
return -1;
if ( !loc.handlers ){
rtems_filesystem_freenode( &loc );
10e3b5: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10e3b8: 85 c0 test %eax,%eax <== NOT EXECUTED
10e3ba: 74 10 je 10e3cc <chmod+0x84> <== NOT EXECUTED
10e3bc: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
10e3bf: 85 c0 test %eax,%eax <== NOT EXECUTED
10e3c1: 74 09 je 10e3cc <chmod+0x84> <== NOT EXECUTED
10e3c3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e3c6: 53 push %ebx <== NOT EXECUTED
10e3c7: ff d0 call *%eax <== NOT EXECUTED
10e3c9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBADF );
10e3cc: e8 bb 83 03 00 call 14678c <__errno> <== NOT EXECUTED
10e3d1: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
10e3d7: 90 nop <== NOT EXECUTED
10e3d8: be ff ff ff ff mov $0xffffffff,%esi
result = (*loc.handlers->fchmod_h)( &loc, mode );
rtems_filesystem_freenode( &loc );
return result;
}
10e3dd: 89 f0 mov %esi,%eax
10e3df: 8d 65 f4 lea -0xc(%ebp),%esp
10e3e2: 5b pop %ebx
10e3e3: 5e pop %esi
10e3e4: 5f pop %edi
10e3e5: c9 leave
10e3e6: c3 ret
10e3e7: 90 nop
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( EBADF );
}
if ( !loc.handlers->fchmod_h ){
rtems_filesystem_freenode( &loc );
10e3e8: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10e3eb: 85 c0 test %eax,%eax <== NOT EXECUTED
10e3ed: 74 10 je 10e3ff <chmod+0xb7> <== NOT EXECUTED
10e3ef: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
10e3f2: 85 c0 test %eax,%eax <== NOT EXECUTED
10e3f4: 74 09 je 10e3ff <chmod+0xb7> <== NOT EXECUTED
10e3f6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10e3f9: 53 push %ebx <== NOT EXECUTED
10e3fa: ff d0 call *%eax <== NOT EXECUTED
10e3fc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
10e3ff: e8 88 83 03 00 call 14678c <__errno> <== NOT EXECUTED
10e404: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10e40a: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
10e40f: eb 9a jmp 10e3ab <chmod+0x63> <== NOT EXECUTED
0012e054 <chown>:
int chown(
const char *path,
uid_t owner,
gid_t group
)
{
12e054: 55 push %ebp
12e055: 89 e5 mov %esp,%ebp
12e057: 57 push %edi
12e058: 56 push %esi
12e059: 53 push %ebx
12e05a: 83 ec 38 sub $0x38,%esp
12e05d: 8b 55 08 mov 0x8(%ebp),%edx
12e060: 8b 75 0c mov 0xc(%ebp),%esi
12e063: 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 ) )
12e066: 31 c0 xor %eax,%eax
12e068: b9 ff ff ff ff mov $0xffffffff,%ecx
12e06d: 89 d7 mov %edx,%edi
12e06f: f2 ae repnz scas %es:(%edi),%al
12e071: f7 d1 not %ecx
12e073: 49 dec %ecx
12e074: 6a 01 push $0x1
12e076: 8d 7d d4 lea -0x2c(%ebp),%edi
12e079: 57 push %edi
12e07a: 6a 00 push $0x0
12e07c: 51 push %ecx
12e07d: 52 push %edx
12e07e: e8 75 07 fe ff call 10e7f8 <rtems_filesystem_evaluate_path>
12e083: 83 c4 20 add $0x20,%esp
12e086: 85 c0 test %eax,%eax
12e088: 75 5a jne 12e0e4 <chown+0x90> <== NEVER TAKEN
return -1;
if ( !loc.ops->chown_h ) {
12e08a: 8b 55 e0 mov -0x20(%ebp),%edx
12e08d: 8b 42 18 mov 0x18(%edx),%eax
12e090: 85 c0 test %eax,%eax
12e092: 74 34 je 12e0c8 <chown+0x74> <== NEVER TAKEN
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->chown_h)( &loc, owner, group );
12e094: 52 push %edx
12e095: 0f b7 db movzwl %bx,%ebx
12e098: 53 push %ebx
12e099: 0f b7 f6 movzwl %si,%esi
12e09c: 56 push %esi
12e09d: 57 push %edi
12e09e: ff d0 call *%eax
12e0a0: 89 c3 mov %eax,%ebx
rtems_filesystem_freenode( &loc );
12e0a2: 8b 45 e0 mov -0x20(%ebp),%eax
12e0a5: 83 c4 10 add $0x10,%esp
12e0a8: 85 c0 test %eax,%eax
12e0aa: 74 10 je 12e0bc <chown+0x68> <== NEVER TAKEN
12e0ac: 8b 40 1c mov 0x1c(%eax),%eax
12e0af: 85 c0 test %eax,%eax
12e0b1: 74 09 je 12e0bc <chown+0x68> <== NEVER TAKEN
12e0b3: 83 ec 0c sub $0xc,%esp
12e0b6: 57 push %edi
12e0b7: ff d0 call *%eax
12e0b9: 83 c4 10 add $0x10,%esp
return result;
}
12e0bc: 89 d8 mov %ebx,%eax
12e0be: 8d 65 f4 lea -0xc(%ebp),%esp
12e0c1: 5b pop %ebx
12e0c2: 5e pop %esi
12e0c3: 5f pop %edi
12e0c4: c9 leave
12e0c5: c3 ret
12e0c6: 66 90 xchg %ax,%ax
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) )
return -1;
if ( !loc.ops->chown_h ) {
rtems_filesystem_freenode( &loc );
12e0c8: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
12e0cb: 85 c0 test %eax,%eax <== NOT EXECUTED
12e0cd: 74 09 je 12e0d8 <chown+0x84> <== NOT EXECUTED
12e0cf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12e0d2: 57 push %edi <== NOT EXECUTED
12e0d3: ff d0 call *%eax <== NOT EXECUTED
12e0d5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12e0d8: e8 af 86 01 00 call 14678c <__errno> <== NOT EXECUTED
12e0dd: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12e0e3: 90 nop <== NOT EXECUTED
12e0e4: bb ff ff ff ff mov $0xffffffff,%ebx
result = (*loc.ops->chown_h)( &loc, owner, group );
rtems_filesystem_freenode( &loc );
return result;
}
12e0e9: 89 d8 mov %ebx,%eax
12e0eb: 8d 65 f4 lea -0xc(%ebp),%esp
12e0ee: 5b pop %ebx
12e0ef: 5e pop %esi
12e0f0: 5f pop %edi
12e0f1: c9 leave
12e0f2: c3 ret
0012e0f4 <chroot>:
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
12e0f4: 55 push %ebp
12e0f5: 89 e5 mov %esp,%ebp
12e0f7: 57 push %edi
12e0f8: 56 push %esi
12e0f9: 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) {
12e0fc: 81 3d 20 d3 16 00 a0 cmpl $0x172da0,0x16d320
12e103: 2d 17 00
12e106: 74 6c je 12e174 <chroot+0x80> <== ALWAYS TAKEN
rtems_libio_set_private_env(); /* try to set a new private env*/
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = chdir(pathname);
12e108: 83 ec 0c sub $0xc,%esp
12e10b: ff 75 08 pushl 0x8(%ebp)
12e10e: e8 4d fe ff ff call 12df60 <chdir>
if (result) {
12e113: 83 c4 10 add $0x10,%esp
12e116: 85 c0 test %eax,%eax
12e118: 75 7e jne 12e198 <chroot+0xa4> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( errno );
}
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
12e11a: 83 ec 0c sub $0xc,%esp
12e11d: 6a 00 push $0x0
12e11f: 8d 75 e4 lea -0x1c(%ebp),%esi
12e122: 56 push %esi
12e123: 6a 00 push $0x0
12e125: 6a 01 push $0x1
12e127: 68 f8 07 16 00 push $0x1607f8
12e12c: e8 c7 06 fe ff call 10e7f8 <rtems_filesystem_evaluate_path>
12e131: 83 c4 20 add $0x20,%esp
12e134: 85 c0 test %eax,%eax
12e136: 75 60 jne 12e198 <chroot+0xa4> <== 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);
12e138: 8b 3d 20 d3 16 00 mov 0x16d320,%edi
12e13e: 8b 47 24 mov 0x24(%edi),%eax
12e141: 85 c0 test %eax,%eax
12e143: 74 19 je 12e15e <chroot+0x6a> <== NEVER TAKEN
12e145: 8b 40 1c mov 0x1c(%eax),%eax
12e148: 85 c0 test %eax,%eax
12e14a: 74 12 je 12e15e <chroot+0x6a> <== NEVER TAKEN
12e14c: 83 ec 0c sub $0xc,%esp
12e14f: 83 c7 18 add $0x18,%edi
12e152: 57 push %edi
12e153: ff d0 call *%eax
12e155: 8b 3d 20 d3 16 00 mov 0x16d320,%edi
12e15b: 83 c4 10 add $0x10,%esp
rtems_filesystem_root = loc;
12e15e: 83 c7 18 add $0x18,%edi
12e161: b9 05 00 00 00 mov $0x5,%ecx
12e166: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
12e168: 31 c0 xor %eax,%eax
return 0;
}
12e16a: 8d 65 f8 lea -0x8(%ebp),%esp
12e16d: 5e pop %esi
12e16e: 5f pop %edi
12e16f: c9 leave
12e170: c3 ret
12e171: 8d 76 00 lea 0x0(%esi),%esi
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) {
rtems_libio_set_private_env(); /* try to set a new private env*/
12e174: e8 93 14 00 00 call 12f60c <rtems_libio_set_private_env>
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
12e179: 81 3d 20 d3 16 00 a0 cmpl $0x172da0,0x16d320
12e180: 2d 17 00
12e183: 75 83 jne 12e108 <chroot+0x14> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
12e185: e8 02 86 01 00 call 14678c <__errno> <== NOT EXECUTED
12e18a: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12e190: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
12e193: eb d5 jmp 12e16a <chroot+0x76> <== NOT EXECUTED
12e195: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
/* our cwd has changed, though - but there is no easy way of return :-( */
rtems_set_errno_and_return_minus_one( errno );
12e198: e8 ef 85 01 00 call 14678c <__errno> <== NOT EXECUTED
12e19d: 89 c6 mov %eax,%esi <== NOT EXECUTED
12e19f: e8 e8 85 01 00 call 14678c <__errno> <== NOT EXECUTED
12e1a4: 8b 00 mov (%eax),%eax <== NOT EXECUTED
12e1a6: 89 06 mov %eax,(%esi) <== NOT EXECUTED
12e1a8: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12e1ad: eb bb jmp 12e16a <chroot+0x76> <== NOT EXECUTED
00110aa8 <close>:
#include <rtems/libio_.h>
int close(
int fd
)
{
110aa8: 55 push %ebp
110aa9: 89 e5 mov %esp,%ebp
110aab: 56 push %esi
110aac: 53 push %ebx
110aad: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_libio_t *iop;
rtems_status_code rc;
rtems_libio_check_fd(fd);
110ab0: 3b 1d 4c 31 12 00 cmp 0x12314c,%ebx
110ab6: 73 58 jae 110b10 <close+0x68>
iop = rtems_libio_iop(fd);
110ab8: c1 e3 06 shl $0x6,%ebx
110abb: 03 1d e0 71 12 00 add 0x1271e0,%ebx
rtems_libio_check_is_open(iop);
110ac1: f6 43 15 01 testb $0x1,0x15(%ebx)
110ac5: 74 49 je 110b10 <close+0x68>
rc = RTEMS_SUCCESSFUL;
if ( iop->handlers->close_h )
110ac7: 8b 43 3c mov 0x3c(%ebx),%eax
110aca: 8b 40 04 mov 0x4(%eax),%eax
110acd: 85 c0 test %eax,%eax
110acf: 74 3b je 110b0c <close+0x64> <== NEVER TAKEN
rc = (*iop->handlers->close_h)( iop );
110ad1: 83 ec 0c sub $0xc,%esp
110ad4: 53 push %ebx
110ad5: ff d0 call *%eax
110ad7: 89 c6 mov %eax,%esi
110ad9: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &iop->pathinfo );
110adc: 8b 43 24 mov 0x24(%ebx),%eax
110adf: 85 c0 test %eax,%eax
110ae1: 74 13 je 110af6 <close+0x4e> <== NEVER TAKEN
110ae3: 8b 40 1c mov 0x1c(%eax),%eax
110ae6: 85 c0 test %eax,%eax
110ae8: 74 0c je 110af6 <close+0x4e>
110aea: 83 ec 0c sub $0xc,%esp
110aed: 8d 53 18 lea 0x18(%ebx),%edx
110af0: 52 push %edx
110af1: ff d0 call *%eax
110af3: 83 c4 10 add $0x10,%esp
rtems_libio_free( iop );
110af6: 83 ec 0c sub $0xc,%esp
110af9: 53 push %ebx
110afa: e8 0d 02 00 00 call 110d0c <rtems_libio_free>
return rc;
110aff: 83 c4 10 add $0x10,%esp
}
110b02: 89 f0 mov %esi,%eax
110b04: 8d 65 f8 lea -0x8(%ebp),%esp
110b07: 5b pop %ebx
110b08: 5e pop %esi
110b09: c9 leave
110b0a: c3 ret
110b0b: 90 nop
rtems_libio_check_fd(fd);
iop = rtems_libio_iop(fd);
rtems_libio_check_is_open(iop);
rc = RTEMS_SUCCESSFUL;
if ( iop->handlers->close_h )
110b0c: 31 f6 xor %esi,%esi
110b0e: eb cc jmp 110adc <close+0x34> <== NOT EXECUTED
rtems_libio_t *iop;
rtems_status_code rc;
rtems_libio_check_fd(fd);
iop = rtems_libio_iop(fd);
rtems_libio_check_is_open(iop);
110b10: e8 2b 33 00 00 call 113e40 <__errno>
110b15: c7 00 09 00 00 00 movl $0x9,(%eax)
110b1b: be ff ff ff ff mov $0xffffffff,%esi
110b20: eb e0 jmp 110b02 <close+0x5a>
0010873c <create_disk>:
return disktab [major].minor + minor;
}
static rtems_status_code
create_disk(dev_t dev, const char *name, rtems_disk_device **dd_ptr)
{
10873c: 55 push %ebp
10873d: 89 e5 mov %esp,%ebp
10873f: 57 push %edi
108740: 56 push %esi
108741: 53 push %ebx
108742: 83 ec 2c sub $0x2c,%esp
108745: 89 c3 mov %eax,%ebx
108747: 89 d6 mov %edx,%esi
108749: 89 4d d8 mov %ecx,-0x28(%ebp)
)
{
union __rtems_dev_t temp;
temp.device = device;
return temp.__overlay.major;
10874c: 89 c2 mov %eax,%edx
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
10874e: 89 75 e4 mov %esi,-0x1c(%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) {
108751: 8b 3d 04 af 12 00 mov 0x12af04,%edi
108757: 39 f8 cmp %edi,%eax
108759: 0f 83 41 01 00 00 jae 1088a0 <create_disk+0x164>
10875f: a1 00 af 12 00 mov 0x12af00,%eax
108764: 89 45 e0 mov %eax,-0x20(%ebp)
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
disktab = table;
disktab_size = new_size;
}
if (disktab [major].minor == NULL || minor >= disktab[major].size) {
108767: c1 e2 03 shl $0x3,%edx
10876a: 89 55 dc mov %edx,-0x24(%ebp)
10876d: 8b 45 e0 mov -0x20(%ebp),%eax
108770: 01 d0 add %edx,%eax
108772: 8b 10 mov (%eax),%edx
108774: 85 d2 test %edx,%edx
108776: 0f 84 bc 00 00 00 je 108838 <create_disk+0xfc>
10877c: 8b 78 04 mov 0x4(%eax),%edi
10877f: 39 7d e4 cmp %edi,-0x1c(%ebp)
108782: 0f 83 b4 00 00 00 jae 10883c <create_disk+0x100> <== NEVER TAKEN
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
disktab [major].minor = table;
disktab [major].size = new_size;
}
return disktab [major].minor + minor;
108788: 8b 45 e4 mov -0x1c(%ebp),%eax
10878b: 8d 3c 82 lea (%edx,%eax,4),%edi
{
rtems_disk_device **dd_entry = create_disk_table_entry(dev);
rtems_disk_device *dd = NULL;
char *alloc_name = NULL;
if (dd_entry == NULL) {
10878e: 85 ff test %edi,%edi
108790: 0f 84 6a 01 00 00 je 108900 <create_disk+0x1c4> <== NEVER TAKEN
return RTEMS_NO_MEMORY;
}
if (*dd_entry != NULL) {
108796: 8b 07 mov (%edi),%eax
108798: 85 c0 test %eax,%eax
10879a: 74 10 je 1087ac <create_disk+0x70>
10879c: b8 0c 00 00 00 mov $0xc,%eax
*dd_entry = dd;
*dd_ptr = dd;
return RTEMS_SUCCESSFUL;
}
1087a1: 8d 65 f4 lea -0xc(%ebp),%esp
1087a4: 5b pop %ebx
1087a5: 5e pop %esi
1087a6: 5f pop %edi
1087a7: c9 leave
1087a8: c3 ret
1087a9: 8d 76 00 lea 0x0(%esi),%esi
if (*dd_entry != NULL) {
return RTEMS_RESOURCE_IN_USE;
}
dd = malloc(sizeof(*dd));
1087ac: 83 ec 0c sub $0xc,%esp
1087af: 6a 34 push $0x34
1087b1: e8 ae 0f 00 00 call 109764 <malloc>
1087b6: 89 c2 mov %eax,%edx
if (dd == NULL) {
1087b8: 83 c4 10 add $0x10,%esp
1087bb: 85 c0 test %eax,%eax
1087bd: 0f 84 3d 01 00 00 je 108900 <create_disk+0x1c4> <== NEVER TAKEN
return RTEMS_NO_MEMORY;
}
if (name != NULL) {
1087c3: 8b 4d d8 mov -0x28(%ebp),%ecx
1087c6: 85 c9 test %ecx,%ecx
1087c8: 0f 84 6e 01 00 00 je 10893c <create_disk+0x200>
alloc_name = strdup(name);
1087ce: 83 ec 0c sub $0xc,%esp
1087d1: ff 75 d8 pushl -0x28(%ebp)
1087d4: 89 45 d0 mov %eax,-0x30(%ebp)
1087d7: e8 38 fd 00 00 call 118514 <strdup>
1087dc: 89 45 e4 mov %eax,-0x1c(%ebp)
if (alloc_name == NULL) {
1087df: 83 c4 10 add $0x10,%esp
1087e2: 85 c0 test %eax,%eax
1087e4: 8b 55 d0 mov -0x30(%ebp),%edx
1087e7: 0f 84 5b 01 00 00 je 108948 <create_disk+0x20c> <== NEVER TAKEN
return RTEMS_NO_MEMORY;
}
}
if (name != NULL) {
if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {
1087ed: 56 push %esi
1087ee: 53 push %ebx
1087ef: 68 ff 61 00 00 push $0x61ff
1087f4: 50 push %eax
1087f5: 89 55 d0 mov %edx,-0x30(%ebp)
1087f8: 89 45 cc mov %eax,-0x34(%ebp)
1087fb: e8 40 10 00 00 call 109840 <mknod>
108800: 83 c4 10 add $0x10,%esp
108803: 85 c0 test %eax,%eax
108805: 8b 55 d0 mov -0x30(%ebp),%edx
108808: 8b 4d cc mov -0x34(%ebp),%ecx
10880b: 0f 88 07 01 00 00 js 108918 <create_disk+0x1dc> <== NEVER TAKEN
free(dd);
return RTEMS_UNSATISFIED;
}
}
dd->dev = dev;
108811: 89 1a mov %ebx,(%edx)
108813: 89 72 04 mov %esi,0x4(%edx)
dd->name = alloc_name;
108816: 8b 4d e4 mov -0x1c(%ebp),%ecx
108819: 89 4a 10 mov %ecx,0x10(%edx)
dd->uses = 0;
10881c: c7 42 14 00 00 00 00 movl $0x0,0x14(%edx)
dd->deleted = false;
108823: c6 42 30 00 movb $0x0,0x30(%edx)
*dd_entry = dd;
108827: 89 17 mov %edx,(%edi)
*dd_ptr = dd;
108829: 8b 45 08 mov 0x8(%ebp),%eax
10882c: 89 10 mov %edx,(%eax)
10882e: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
108830: e9 6c ff ff ff jmp 1087a1 <create_disk+0x65>
108835: 8d 76 00 lea 0x0(%esi),%esi
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
disktab = table;
disktab_size = new_size;
}
if (disktab [major].minor == NULL || minor >= disktab[major].size) {
108838: 8b 78 04 mov 0x4(%eax),%edi
10883b: 90 nop
rtems_disk_device **table = disktab [major].minor;
rtems_device_minor_number old_size = disktab [major].size;
rtems_device_minor_number new_size = 0;
if (old_size == 0) {
10883c: 85 ff test %edi,%edi
10883e: 0f 85 c8 00 00 00 jne 10890c <create_disk+0x1d0> <== NEVER TAKEN
108844: c7 45 e0 08 00 00 00 movl $0x8,-0x20(%ebp)
new_size = DISKTAB_INITIAL_SIZE;
} else {
new_size = 2 * old_size;
}
if (minor >= new_size) {
10884b: 8b 45 e0 mov -0x20(%ebp),%eax
10884e: 39 45 e4 cmp %eax,-0x1c(%ebp)
108851: 72 07 jb 10885a <create_disk+0x11e>
new_size = minor + 1;
108853: 8b 4d e4 mov -0x1c(%ebp),%ecx
108856: 41 inc %ecx
108857: 89 4d e0 mov %ecx,-0x20(%ebp)
}
table = realloc(table, new_size * sizeof(*table));
10885a: 83 ec 08 sub $0x8,%esp
10885d: 8b 45 e0 mov -0x20(%ebp),%eax
108860: c1 e0 02 shl $0x2,%eax
108863: 50 push %eax
108864: 52 push %edx
108865: e8 86 1a 00 00 call 10a2f0 <realloc>
10886a: 89 c2 mov %eax,%edx
if (table == NULL) {
10886c: 83 c4 10 add $0x10,%esp
10886f: 85 c0 test %eax,%eax
108871: 0f 84 89 00 00 00 je 108900 <create_disk+0x1c4>
return NULL;
}
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
108877: 8b 4d e0 mov -0x20(%ebp),%ecx
10887a: 29 f9 sub %edi,%ecx
10887c: c1 e1 02 shl $0x2,%ecx
10887f: 8d 3c b8 lea (%eax,%edi,4),%edi
108882: 89 7d d4 mov %edi,-0x2c(%ebp)
108885: 31 c0 xor %eax,%eax
108887: f3 aa rep stos %al,%es:(%edi)
disktab [major].minor = table;
108889: 8b 45 dc mov -0x24(%ebp),%eax
10888c: 03 05 00 af 12 00 add 0x12af00,%eax
108892: 89 10 mov %edx,(%eax)
disktab [major].size = new_size;
108894: 8b 4d e0 mov -0x20(%ebp),%ecx
108897: 89 48 04 mov %ecx,0x4(%eax)
10889a: e9 e9 fe ff ff jmp 108788 <create_disk+0x4c>
10889f: 90 nop
rtems_device_minor_number minor = 0;
rtems_filesystem_split_dev_t(dev, major, minor);
if (major >= disktab_size) {
rtems_disk_device_table *table = disktab;
1088a0: 8b 0d 00 af 12 00 mov 0x12af00,%ecx
rtems_device_major_number old_size = disktab_size;
rtems_device_major_number new_size = 2 * old_size;
1088a6: 8d 04 3f lea (%edi,%edi,1),%eax
1088a9: 89 45 dc mov %eax,-0x24(%ebp)
if (major >= new_size) {
1088ac: 39 c3 cmp %eax,%ebx
1088ae: 72 06 jb 1088b6 <create_disk+0x17a> <== NEVER TAKEN
new_size = major + 1;
1088b0: 8d 43 01 lea 0x1(%ebx),%eax
1088b3: 89 45 dc mov %eax,-0x24(%ebp)
}
table = realloc(table, new_size * sizeof(*table));
1088b6: 83 ec 08 sub $0x8,%esp
1088b9: 8b 45 dc mov -0x24(%ebp),%eax
1088bc: c1 e0 03 shl $0x3,%eax
1088bf: 50 push %eax
1088c0: 51 push %ecx
1088c1: 89 55 d0 mov %edx,-0x30(%ebp)
1088c4: e8 27 1a 00 00 call 10a2f0 <realloc>
1088c9: 89 45 e0 mov %eax,-0x20(%ebp)
if (table == NULL) {
1088cc: 83 c4 10 add $0x10,%esp
1088cf: 85 c0 test %eax,%eax
1088d1: 8b 55 d0 mov -0x30(%ebp),%edx
1088d4: 74 2a je 108900 <create_disk+0x1c4> <== ALWAYS TAKEN
return NULL;
}
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
1088d6: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
1088d9: 29 f9 sub %edi,%ecx <== NOT EXECUTED
1088db: c1 e1 03 shl $0x3,%ecx <== NOT EXECUTED
1088de: 8d 3c f8 lea (%eax,%edi,8),%edi <== NOT EXECUTED
1088e1: 89 7d d4 mov %edi,-0x2c(%ebp) <== NOT EXECUTED
1088e4: 31 c0 xor %eax,%eax <== NOT EXECUTED
1088e6: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
disktab = table;
1088e8: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
1088eb: 89 0d 00 af 12 00 mov %ecx,0x12af00 <== NOT EXECUTED
disktab_size = new_size;
1088f1: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1088f4: a3 04 af 12 00 mov %eax,0x12af04 <== NOT EXECUTED
1088f9: e9 69 fe ff ff jmp 108767 <create_disk+0x2b> <== NOT EXECUTED
1088fe: 66 90 xchg %ax,%ax <== NOT EXECUTED
dd->deleted = false;
*dd_entry = dd;
*dd_ptr = dd;
return RTEMS_SUCCESSFUL;
108900: b8 1a 00 00 00 mov $0x1a,%eax
108905: e9 97 fe ff ff jmp 1087a1 <create_disk+0x65>
10890a: 66 90 xchg %ax,%ax
rtems_device_minor_number new_size = 0;
if (old_size == 0) {
new_size = DISKTAB_INITIAL_SIZE;
} else {
new_size = 2 * old_size;
10890c: 8d 0c 3f lea (%edi,%edi,1),%ecx <== NOT EXECUTED
10890f: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
108912: e9 34 ff ff ff jmp 10884b <create_disk+0x10f> <== NOT EXECUTED
108917: 90 nop <== NOT EXECUTED
}
}
if (name != NULL) {
if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {
free(alloc_name);
108918: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10891b: 51 push %ecx <== NOT EXECUTED
10891c: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
10891f: e8 68 0b 00 00 call 10948c <free> <== NOT EXECUTED
free(dd);
108924: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
108927: 89 14 24 mov %edx,(%esp) <== NOT EXECUTED
10892a: e8 5d 0b 00 00 call 10948c <free> <== NOT EXECUTED
10892f: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_UNSATISFIED;
108934: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108937: e9 65 fe ff ff jmp 1087a1 <create_disk+0x65> <== NOT EXECUTED
10893c: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
108943: e9 c9 fe ff ff jmp 108811 <create_disk+0xd5>
if (name != NULL) {
alloc_name = strdup(name);
if (alloc_name == NULL) {
free(dd);
108948: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10894b: 52 push %edx <== NOT EXECUTED
10894c: e8 3b 0b 00 00 call 10948c <free> <== NOT EXECUTED
108951: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
return RTEMS_NO_MEMORY;
108956: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108959: e9 43 fe ff ff jmp 1087a1 <create_disk+0x65> <== NOT EXECUTED
0010eec0 <devFS_close>:
#include "devfs.h"
int devFS_close(
rtems_libio_t *iop
)
{
10eec0: 55 push %ebp
10eec1: 89 e5 mov %esp,%ebp
10eec3: 83 ec 1c sub $0x1c,%esp
10eec6: 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;
10eec9: 8b 42 38 mov 0x38(%edx),%eax
args.iop = iop;
10eecc: 89 55 ec mov %edx,-0x14(%ebp)
args.flags = 0;
10eecf: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
args.mode = 0;
10eed6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_close(
10eedd: 8d 55 ec lea -0x14(%ebp),%edx
10eee0: 52 push %edx
10eee1: ff 70 0c pushl 0xc(%eax)
10eee4: ff 70 08 pushl 0x8(%eax)
10eee7: e8 9c 0a 00 00 call 10f988 <rtems_io_close>
np->major,
np->minor,
(void *) &args
);
if ( status ) {
10eeec: 83 c4 10 add $0x10,%esp
10eeef: 85 c0 test %eax,%eax
10eef1: 75 05 jne 10eef8 <devFS_close+0x38> <== NEVER TAKEN
return rtems_deviceio_errno(status);
}
return 0;
}
10eef3: c9 leave
10eef4: c3 ret
10eef5: 8d 76 00 lea 0x0(%esi),%esi
np->major,
np->minor,
(void *) &args
);
if ( status ) {
return rtems_deviceio_errno(status);
10eef8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10eefb: 50 push %eax <== NOT EXECUTED
10eefc: e8 e7 00 00 00 call 10efe8 <rtems_deviceio_errno> <== NOT EXECUTED
10ef01: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
10ef04: c9 leave <== NOT EXECUTED
10ef05: c3 ret <== NOT EXECUTED
0010ef18 <devFS_evaluate_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
10ef18: 55 push %ebp
10ef19: 89 e5 mov %esp,%ebp
10ef1b: 57 push %edi
10ef1c: 56 push %esi
10ef1d: 53 push %ebx
10ef1e: 83 ec 1c sub $0x1c,%esp
int i;
rtems_device_name_t *device_name_table;
/* see if 'flags' is valid */
if ( !rtems_libio_is_valid_perms( flags ) )
10ef21: f7 45 10 f8 ff ff ff testl $0xfffffff8,0x10(%ebp)
10ef28: 0f 85 96 00 00 00 jne 10efc4 <devFS_evaluate_path+0xac><== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EPERM );
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
10ef2e: 8b 45 14 mov 0x14(%ebp),%eax
10ef31: 8b 00 mov (%eax),%eax
10ef33: 89 45 e4 mov %eax,-0x1c(%ebp)
if (!device_name_table)
10ef36: 85 c0 test %eax,%eax
10ef38: 0f 84 98 00 00 00 je 10efd6 <devFS_evaluate_path+0xbe><== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EFAULT );
for (i = 0; i < rtems_device_table_size; i++) {
10ef3e: 8b 15 50 f1 11 00 mov 0x11f150,%edx
10ef44: 89 55 e0 mov %edx,-0x20(%ebp)
10ef47: 85 d2 test %edx,%edx
10ef49: 74 38 je 10ef83 <devFS_evaluate_path+0x6b><== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EPERM );
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
10ef4b: 31 c0 xor %eax,%eax
10ef4d: 31 db xor %ebx,%ebx
for (i = 0; i < rtems_device_table_size; i++) {
if (!device_name_table[i].device_name)
10ef4f: 8d 04 80 lea (%eax,%eax,4),%eax
10ef52: 8b 55 e4 mov -0x1c(%ebp),%edx
10ef55: 8d 3c 82 lea (%edx,%eax,4),%edi
10ef58: 8b 37 mov (%edi),%esi
10ef5a: 85 f6 test %esi,%esi
10ef5c: 74 1d je 10ef7b <devFS_evaluate_path+0x63>
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
10ef5e: 50 push %eax
10ef5f: ff 75 0c pushl 0xc(%ebp)
10ef62: 56 push %esi
10ef63: ff 75 08 pushl 0x8(%ebp)
10ef66: e8 e1 23 00 00 call 11134c <strncmp>
10ef6b: 83 c4 10 add $0x10,%esp
10ef6e: 85 c0 test %eax,%eax
10ef70: 75 09 jne 10ef7b <devFS_evaluate_path+0x63><== NEVER TAKEN
continue;
if (device_name_table[i].device_name[pathnamelen] != '\0')
10ef72: 8b 45 0c mov 0xc(%ebp),%eax
10ef75: 80 3c 06 00 cmpb $0x0,(%esi,%eax,1)
10ef79: 74 21 je 10ef9c <devFS_evaluate_path+0x84><== ALWAYS TAKEN
/* 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++) {
10ef7b: 43 inc %ebx
10ef7c: 89 d8 mov %ebx,%eax
10ef7e: 39 5d e0 cmp %ebx,-0x20(%ebp)
10ef81: 77 cc ja 10ef4f <devFS_evaluate_path+0x37>
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
return 0;
}
/* no such file or directory */
rtems_set_errno_and_return_minus_one( ENOENT );
10ef83: e8 10 18 00 00 call 110798 <__errno>
10ef88: c7 00 02 00 00 00 movl $0x2,(%eax)
10ef8e: b8 ff ff ff ff mov $0xffffffff,%eax
}
10ef93: 8d 65 f4 lea -0xc(%ebp),%esp
10ef96: 5b pop %ebx
10ef97: 5e pop %esi
10ef98: 5f pop %edi
10ef99: c9 leave
10ef9a: c3 ret
10ef9b: 90 nop
if (device_name_table[i].device_name[pathnamelen] != '\0')
continue;
/* find the device, set proper values */
pathloc->node_access = (void *)&device_name_table[i];
10ef9c: 8b 55 14 mov 0x14(%ebp),%edx
10ef9f: 89 3a mov %edi,(%edx)
pathloc->handlers = &devFS_file_handlers;
10efa1: c7 42 08 80 10 12 00 movl $0x121080,0x8(%edx)
pathloc->ops = &devFS_ops;
10efa8: c7 42 0c 20 10 12 00 movl $0x121020,0xc(%edx)
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
10efaf: a1 d8 10 12 00 mov 0x1210d8,%eax
10efb4: 8b 40 28 mov 0x28(%eax),%eax
10efb7: 89 42 10 mov %eax,0x10(%edx)
10efba: 31 c0 xor %eax,%eax
return 0;
}
/* no such file or directory */
rtems_set_errno_and_return_minus_one( ENOENT );
}
10efbc: 8d 65 f4 lea -0xc(%ebp),%esp
10efbf: 5b pop %ebx
10efc0: 5e pop %esi
10efc1: 5f pop %edi
10efc2: c9 leave
10efc3: c3 ret
int i;
rtems_device_name_t *device_name_table;
/* see if 'flags' is valid */
if ( !rtems_libio_is_valid_perms( flags ) )
rtems_set_errno_and_return_minus_one( EPERM );
10efc4: e8 cf 17 00 00 call 110798 <__errno> <== NOT EXECUTED
10efc9: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED
10efcf: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
10efd4: eb e6 jmp 10efbc <devFS_evaluate_path+0xa4><== NOT EXECUTED
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
10efd6: e8 bd 17 00 00 call 110798 <__errno> <== NOT EXECUTED
10efdb: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
10efe1: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
10efe4: eb d6 jmp 10efbc <devFS_evaluate_path+0xa4><== NOT EXECUTED
00107bec <devFS_initialize>:
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry,
const void *data
)
{
107bec: 55 push %ebp
107bed: 89 e5 mov %esp,%ebp
107bef: 57 push %edi
107bf0: 53 push %ebx
107bf1: 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(
107bf4: 83 ec 0c sub $0xc,%esp
107bf7: a1 50 f1 11 00 mov 0x11f150,%eax
107bfc: 8d 04 80 lea (%eax,%eax,4),%eax
107bff: c1 e0 02 shl $0x2,%eax
107c02: 50 push %eax
107c03: e8 34 6e 00 00 call 10ea3c <_Workspace_Allocate>
107c08: 89 c2 mov %eax,%edx
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* no memory for device filesystem */
if (!device_name_table)
107c0a: 83 c4 10 add $0x10,%esp
107c0d: 85 c0 test %eax,%eax
107c0f: 74 2b je 107c3c <devFS_initialize+0x50> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOMEM );
memset(
107c11: a1 50 f1 11 00 mov 0x11f150,%eax
107c16: 8d 0c 80 lea (%eax,%eax,4),%ecx
107c19: c1 e1 02 shl $0x2,%ecx
107c1c: 31 c0 xor %eax,%eax
107c1e: 89 d7 mov %edx,%edi
107c20: 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;
107c22: c7 43 24 80 10 12 00 movl $0x121080,0x24(%ebx)
temp_mt_entry->mt_fs_root.ops = &devFS_ops;
107c29: c7 43 28 20 10 12 00 movl $0x121020,0x28(%ebx)
/* Set the node_access to device name table */
temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table;
107c30: 89 53 1c mov %edx,0x1c(%ebx)
107c33: 31 c0 xor %eax,%eax
return 0;
}
107c35: 8d 65 f8 lea -0x8(%ebp),%esp
107c38: 5b pop %ebx
107c39: 5f pop %edi
107c3a: c9 leave
107c3b: c3 ret
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* no memory for device filesystem */
if (!device_name_table)
rtems_set_errno_and_return_minus_one( ENOMEM );
107c3c: e8 57 8b 00 00 call 110798 <__errno> <== NOT EXECUTED
107c41: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
107c47: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
107c4c: eb e7 jmp 107c35 <devFS_initialize+0x49> <== NOT EXECUTED
00107da8 <devFS_ioctl>:
int devFS_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
107da8: 55 push %ebp
107da9: 89 e5 mov %esp,%ebp
107dab: 83 ec 1c sub $0x1c,%esp
107dae: 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;
107db1: 8b 42 38 mov 0x38(%edx),%eax
args.iop = iop;
107db4: 89 55 e8 mov %edx,-0x18(%ebp)
args.command = command;
107db7: 8b 55 0c mov 0xc(%ebp),%edx
107dba: 89 55 ec mov %edx,-0x14(%ebp)
args.buffer = buffer;
107dbd: 8b 55 10 mov 0x10(%ebp),%edx
107dc0: 89 55 f0 mov %edx,-0x10(%ebp)
status = rtems_io_control(
107dc3: 8d 55 e8 lea -0x18(%ebp),%edx
107dc6: 52 push %edx
107dc7: ff 70 0c pushl 0xc(%eax)
107dca: ff 70 08 pushl 0x8(%eax)
107dcd: e8 fa 41 00 00 call 10bfcc <rtems_io_control>
np->major,
np->minor,
(void *) &args
);
if ( status )
107dd2: 83 c4 10 add $0x10,%esp
107dd5: 85 c0 test %eax,%eax
107dd7: 75 07 jne 107de0 <devFS_ioctl+0x38> <== NEVER TAKEN
return rtems_deviceio_errno(status);
return args.ioctl_return;
107dd9: 8b 45 f4 mov -0xc(%ebp),%eax
}
107ddc: c9 leave
107ddd: c3 ret
107dde: 66 90 xchg %ax,%ax
np->minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
107de0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107de3: 50 push %eax <== NOT EXECUTED
107de4: e8 ff 71 00 00 call 10efe8 <rtems_deviceio_errno> <== NOT EXECUTED
107de9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return args.ioctl_return;
}
107dec: c9 leave <== NOT EXECUTED
107ded: c3 ret <== NOT EXECUTED
00107c50 <devFS_mknod>:
const char *path,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
107c50: 55 push %ebp
107c51: 89 e5 mov %esp,%ebp
107c53: 57 push %edi
107c54: 56 push %esi
107c55: 53 push %ebx
107c56: 83 ec 1c sub $0x1c,%esp
107c59: 8b 7d 08 mov 0x8(%ebp),%edi
107c5c: 8b 4d 10 mov 0x10(%ebp),%ecx
107c5f: 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') &&
107c62: 80 3f 64 cmpb $0x64,(%edi)
107c65: 0f 84 dd 00 00 00 je 107d48 <devFS_mknod+0xf8> <== ALWAYS TAKEN
(path[2] == 'v') && (path[3] == '\0'))
return 0;
/* must be a character device or a block device */
if (!S_ISBLK(mode) && !S_ISCHR(mode))
107c6b: 8b 45 0c mov 0xc(%ebp),%eax
107c6e: 25 00 f0 00 00 and $0xf000,%eax
107c73: 3d 00 60 00 00 cmp $0x6000,%eax
107c78: 74 0b je 107c85 <devFS_mknod+0x35> <== NEVER TAKEN
107c7a: 3d 00 20 00 00 cmp $0x2000,%eax
107c7f: 0f 85 e3 00 00 00 jne 107d68 <devFS_mknod+0x118> <== NEVER TAKEN
)
{
union __rtems_dev_t temp;
temp.device = device;
return temp.__overlay.major;
107c85: 89 4d d8 mov %ecx,-0x28(%ebp)
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
107c88: 89 55 dc mov %edx,-0x24(%ebp)
rtems_set_errno_and_return_minus_one( EINVAL );
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;
107c8b: 8b 45 18 mov 0x18(%ebp),%eax
107c8e: 8b 30 mov (%eax),%esi
if (!device_name_table)
107c90: 85 f6 test %esi,%esi
107c92: 0f 84 f2 00 00 00 je 107d8a <devFS_mknod+0x13a> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EFAULT );
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
107c98: 8b 15 50 f1 11 00 mov 0x11f150,%edx
107c9e: 85 d2 test %edx,%edx
107ca0: 0f 84 d4 00 00 00 je 107d7a <devFS_mknod+0x12a> <== NEVER TAKEN
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;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
107ca6: 31 c0 xor %eax,%eax
107ca8: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp)
107caf: 31 db xor %ebx,%ebx
107cb1: 89 7d e4 mov %edi,-0x1c(%ebp)
107cb4: 89 d7 mov %edx,%edi
107cb6: eb 1a jmp 107cd2 <devFS_mknod+0x82>
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
if (device_name_table[i].device_name == NULL)
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
107cb8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
107cbb: 50 push %eax <== NOT EXECUTED
107cbc: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
107cbf: e8 60 95 00 00 call 111224 <strcmp> <== NOT EXECUTED
107cc4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
107cc7: 85 c0 test %eax,%eax <== NOT EXECUTED
107cc9: 74 65 je 107d30 <devFS_mknod+0xe0> <== NOT EXECUTED
/* 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++){
107ccb: 43 inc %ebx <== NOT EXECUTED
107ccc: 89 d8 mov %ebx,%eax <== NOT EXECUTED
107cce: 39 fb cmp %edi,%ebx <== NOT EXECUTED
107cd0: 73 16 jae 107ce8 <devFS_mknod+0x98> <== NOT EXECUTED
if (device_name_table[i].device_name == NULL)
107cd2: 8d 04 80 lea (%eax,%eax,4),%eax
107cd5: 8b 04 86 mov (%esi,%eax,4),%eax
107cd8: 85 c0 test %eax,%eax
107cda: 75 dc jne 107cb8 <devFS_mknod+0x68> <== NEVER TAKEN
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
107cdc: 89 5d e0 mov %ebx,-0x20(%ebp)
/* 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++){
107cdf: 43 inc %ebx
107ce0: 89 d8 mov %ebx,%eax
107ce2: 39 fb cmp %edi,%ebx
107ce4: 72 ec jb 107cd2 <devFS_mknod+0x82>
107ce6: 66 90 xchg %ax,%ax
107ce8: 8b 7d e4 mov -0x1c(%ebp),%edi
else
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
}
if (slot == -1)
107ceb: 83 7d e0 ff cmpl $0xffffffff,-0x20(%ebp)
107cef: 0f 84 85 00 00 00 je 107d7a <devFS_mknod+0x12a> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOMEM );
_ISR_Disable(level);
107cf5: 9c pushf
107cf6: fa cli
107cf7: 5b pop %ebx
device_name_table[slot].device_name = (char *)path;
107cf8: 8b 55 e0 mov -0x20(%ebp),%edx
107cfb: 8d 04 92 lea (%edx,%edx,4),%eax
107cfe: 8d 14 86 lea (%esi,%eax,4),%edx
107d01: 89 3a mov %edi,(%edx)
device_name_table[slot].device_name_length = strlen(path);
107d03: 31 c0 xor %eax,%eax
107d05: b9 ff ff ff ff mov $0xffffffff,%ecx
107d0a: f2 ae repnz scas %es:(%edi),%al
107d0c: f7 d1 not %ecx
107d0e: 49 dec %ecx
107d0f: 89 4a 04 mov %ecx,0x4(%edx)
device_name_table[slot].major = major;
107d12: 8b 45 d8 mov -0x28(%ebp),%eax
107d15: 89 42 08 mov %eax,0x8(%edx)
device_name_table[slot].minor = minor;
107d18: 8b 45 dc mov -0x24(%ebp),%eax
107d1b: 89 42 0c mov %eax,0xc(%edx)
device_name_table[slot].mode = mode;
107d1e: 8b 45 0c mov 0xc(%ebp),%eax
107d21: 89 42 10 mov %eax,0x10(%edx)
_ISR_Enable(level);
107d24: 53 push %ebx
107d25: 9d popf
107d26: 31 c0 xor %eax,%eax
return 0;
}
107d28: 8d 65 f4 lea -0xc(%ebp),%esp
107d2b: 5b pop %ebx
107d2c: 5e pop %esi
107d2d: 5f pop %edi
107d2e: c9 leave
107d2f: c3 ret
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
if (device_name_table[i].device_name == NULL)
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
107d30: e8 63 8a 00 00 call 110798 <__errno> <== NOT EXECUTED
107d35: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED
107d3b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
device_name_table[slot].minor = minor;
device_name_table[slot].mode = mode;
_ISR_Enable(level);
return 0;
}
107d40: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
107d43: 5b pop %ebx <== NOT EXECUTED
107d44: 5e pop %esi <== NOT EXECUTED
107d45: 5f pop %edi <== NOT EXECUTED
107d46: c9 leave <== NOT EXECUTED
107d47: c3 ret <== NOT EXECUTED
* 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') &&
107d48: 80 7f 01 65 cmpb $0x65,0x1(%edi)
107d4c: 0f 85 19 ff ff ff jne 107c6b <devFS_mknod+0x1b> <== NEVER TAKEN
(path[2] == 'v') && (path[3] == '\0'))
107d52: 80 7f 02 76 cmpb $0x76,0x2(%edi)
107d56: 0f 85 0f ff ff ff jne 107c6b <devFS_mknod+0x1b> <== NEVER TAKEN
107d5c: 80 7f 03 00 cmpb $0x0,0x3(%edi)
107d60: 0f 85 05 ff ff ff jne 107c6b <devFS_mknod+0x1b>
107d66: eb be jmp 107d26 <devFS_mknod+0xd6>
return 0;
/* must be a character device or a block device */
if (!S_ISBLK(mode) && !S_ISCHR(mode))
rtems_set_errno_and_return_minus_one( EINVAL );
107d68: e8 2b 8a 00 00 call 110798 <__errno> <== NOT EXECUTED
107d6d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
107d73: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
107d78: eb ae jmp 107d28 <devFS_mknod+0xd8> <== NOT EXECUTED
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
}
if (slot == -1)
rtems_set_errno_and_return_minus_one( ENOMEM );
107d7a: e8 19 8a 00 00 call 110798 <__errno> <== NOT EXECUTED
107d7f: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
107d85: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
107d88: eb 9e jmp 107d28 <devFS_mknod+0xd8> <== NOT EXECUTED
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;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
107d8a: e8 09 8a 00 00 call 110798 <__errno> <== NOT EXECUTED
107d8f: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
107d95: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
107d98: eb 8e jmp 107d28 <devFS_mknod+0xd8> <== NOT EXECUTED
00107df0 <devFS_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
107df0: 55 push %ebp
107df1: 89 e5 mov %esp,%ebp
107df3: 83 ec 1c sub $0x1c,%esp
107df6: 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;
107df9: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
107dfc: 89 45 ec mov %eax,-0x14(%ebp)
args.flags = iop->flags;
107dff: 8b 40 14 mov 0x14(%eax),%eax
107e02: 89 45 f0 mov %eax,-0x10(%ebp)
args.mode = mode;
107e05: 8b 45 14 mov 0x14(%ebp),%eax
107e08: 89 45 f4 mov %eax,-0xc(%ebp)
status = rtems_io_open(
107e0b: 8d 45 ec lea -0x14(%ebp),%eax
107e0e: 50 push %eax
107e0f: ff 72 0c pushl 0xc(%edx)
107e12: ff 72 08 pushl 0x8(%edx)
107e15: e8 c6 42 00 00 call 10c0e0 <rtems_io_open>
np->major,
np->minor,
(void *) &args
);
if ( status )
107e1a: 83 c4 10 add $0x10,%esp
107e1d: 85 c0 test %eax,%eax
107e1f: 75 03 jne 107e24 <devFS_open+0x34> <== NEVER TAKEN
return rtems_deviceio_errno(status);
return 0;
}
107e21: c9 leave
107e22: c3 ret
107e23: 90 nop
np->major,
np->minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
107e24: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107e27: 50 push %eax <== NOT EXECUTED
107e28: e8 bb 71 00 00 call 10efe8 <rtems_deviceio_errno> <== NOT EXECUTED
107e2d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0;
}
107e30: c9 leave <== NOT EXECUTED
107e31: c3 ret <== NOT EXECUTED
00107e34 <devFS_read>:
ssize_t devFS_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
107e34: 55 push %ebp <== NOT EXECUTED
107e35: 89 e5 mov %esp,%ebp <== NOT EXECUTED
107e37: 53 push %ebx <== NOT EXECUTED
107e38: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED
107e3b: 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;
107e3e: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED
args.iop = iop;
107e41: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
args.offset = iop->offset;
107e44: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
107e47: 8b 58 10 mov 0x10(%eax),%ebx <== NOT EXECUTED
107e4a: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
107e4d: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED
args.buffer = buffer;
107e50: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
107e53: 89 4d e8 mov %ecx,-0x18(%ebp) <== NOT EXECUTED
args.count = count;
107e56: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
107e59: 89 4d ec mov %ecx,-0x14(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
107e5c: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED
107e5f: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
args.bytes_moved = 0;
107e62: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_read(
107e69: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
107e6c: 50 push %eax <== NOT EXECUTED
107e6d: ff 72 0c pushl 0xc(%edx) <== NOT EXECUTED
107e70: ff 72 08 pushl 0x8(%edx) <== NOT EXECUTED
107e73: e8 b4 42 00 00 call 10c12c <rtems_io_read> <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
if ( status )
107e78: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
107e7b: 85 c0 test %eax,%eax <== NOT EXECUTED
107e7d: 75 09 jne 107e88 <devFS_read+0x54> <== NOT EXECUTED
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
107e7f: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
107e82: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
107e85: c9 leave <== NOT EXECUTED
107e86: c3 ret <== NOT EXECUTED
107e87: 90 nop <== NOT EXECUTED
np->minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
107e88: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107e8b: 50 push %eax <== NOT EXECUTED
107e8c: e8 57 71 00 00 call 10efe8 <rtems_deviceio_errno> <== NOT EXECUTED
107e91: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
107e94: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
107e97: c9 leave <== NOT EXECUTED
107e98: c3 ret <== NOT EXECUTED
00107e9c <devFS_stat>:
int devFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
107e9c: 55 push %ebp
107e9d: 89 e5 mov %esp,%ebp
107e9f: 53 push %ebx
107ea0: 83 ec 04 sub $0x4,%esp
107ea3: 8b 55 0c mov 0xc(%ebp),%edx
rtems_device_name_t *the_dev;
the_dev = (rtems_device_name_t *)loc->node_access;
107ea6: 8b 45 08 mov 0x8(%ebp),%eax
107ea9: 8b 00 mov (%eax),%eax
if (!the_dev)
107eab: 85 c0 test %eax,%eax
107ead: 74 18 je 107ec7 <devFS_stat+0x2b> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EFAULT );
buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
107eaf: 8b 48 0c mov 0xc(%eax),%ecx
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
107eb2: 8b 58 08 mov 0x8(%eax),%ebx
107eb5: 89 5a 18 mov %ebx,0x18(%edx)
107eb8: 89 4a 1c mov %ecx,0x1c(%edx)
buf->st_mode = the_dev->mode;
107ebb: 8b 40 10 mov 0x10(%eax),%eax
107ebe: 89 42 0c mov %eax,0xc(%edx)
107ec1: 31 c0 xor %eax,%eax
return 0;
}
107ec3: 5a pop %edx
107ec4: 5b pop %ebx
107ec5: c9 leave
107ec6: c3 ret
{
rtems_device_name_t *the_dev;
the_dev = (rtems_device_name_t *)loc->node_access;
if (!the_dev)
rtems_set_errno_and_return_minus_one( EFAULT );
107ec7: e8 cc 88 00 00 call 110798 <__errno> <== NOT EXECUTED
107ecc: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
107ed2: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
107ed7: eb ea jmp 107ec3 <devFS_stat+0x27> <== NOT EXECUTED
00107edc <devFS_write>:
ssize_t devFS_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
107edc: 55 push %ebp
107edd: 89 e5 mov %esp,%ebp
107edf: 53 push %ebx
107ee0: 83 ec 28 sub $0x28,%esp
107ee3: 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;
107ee6: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
107ee9: 89 45 dc mov %eax,-0x24(%ebp)
args.offset = iop->offset;
107eec: 8b 48 0c mov 0xc(%eax),%ecx
107eef: 8b 58 10 mov 0x10(%eax),%ebx
107ef2: 89 4d e0 mov %ecx,-0x20(%ebp)
107ef5: 89 5d e4 mov %ebx,-0x1c(%ebp)
args.buffer = (void *) buffer;
107ef8: 8b 4d 0c mov 0xc(%ebp),%ecx
107efb: 89 4d e8 mov %ecx,-0x18(%ebp)
args.count = count;
107efe: 8b 4d 10 mov 0x10(%ebp),%ecx
107f01: 89 4d ec mov %ecx,-0x14(%ebp)
args.flags = iop->flags;
107f04: 8b 40 14 mov 0x14(%eax),%eax
107f07: 89 45 f0 mov %eax,-0x10(%ebp)
args.bytes_moved = 0;
107f0a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_write(
107f11: 8d 45 dc lea -0x24(%ebp),%eax
107f14: 50 push %eax
107f15: ff 72 0c pushl 0xc(%edx)
107f18: ff 72 08 pushl 0x8(%edx)
107f1b: e8 58 42 00 00 call 10c178 <rtems_io_write>
np->major,
np->minor,
(void *) &args
);
if ( status )
107f20: 83 c4 10 add $0x10,%esp
107f23: 85 c0 test %eax,%eax
107f25: 75 09 jne 107f30 <devFS_write+0x54> <== NEVER TAKEN
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
107f27: 8b 45 f4 mov -0xc(%ebp),%eax
}
107f2a: 8b 5d fc mov -0x4(%ebp),%ebx
107f2d: c9 leave
107f2e: c3 ret
107f2f: 90 nop
np->minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
107f30: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
107f33: 50 push %eax <== NOT EXECUTED
107f34: e8 af 70 00 00 call 10efe8 <rtems_deviceio_errno> <== NOT EXECUTED
107f39: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
107f3c: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
107f3f: c9 leave <== NOT EXECUTED
107f40: c3 ret <== NOT EXECUTED
00113200 <device_close>:
*/
int device_close(
rtems_libio_t *iop
)
{
113200: 55 push %ebp
113201: 89 e5 mov %esp,%ebp
113203: 83 ec 1c sub $0x1c,%esp
113206: 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;
113209: 8b 42 38 mov 0x38(%edx),%eax
args.iop = iop;
11320c: 89 55 ec mov %edx,-0x14(%ebp)
args.flags = 0;
11320f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
args.mode = 0;
113216: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_close(
11321d: 8d 55 ec lea -0x14(%ebp),%edx
113220: 52 push %edx
113221: ff 70 54 pushl 0x54(%eax)
113224: ff 70 50 pushl 0x50(%eax)
113227: e8 88 08 00 00 call 113ab4 <rtems_io_close>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status ) {
11322c: 83 c4 10 add $0x10,%esp
11322f: 85 c0 test %eax,%eax
113231: 75 05 jne 113238 <device_close+0x38> <== NEVER TAKEN
return rtems_deviceio_errno(status);
}
return 0;
}
113233: c9 leave
113234: c3 ret
113235: 8d 76 00 lea 0x0(%esi),%esi
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status ) {
return rtems_deviceio_errno(status);
113238: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11323b: 50 push %eax <== NOT EXECUTED
11323c: e8 3f 0b 00 00 call 113d80 <rtems_deviceio_errno> <== NOT EXECUTED
113241: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
113244: c9 leave <== NOT EXECUTED
113245: c3 ret <== NOT EXECUTED
001130e8 <device_ioctl>:
int device_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
1130e8: 55 push %ebp
1130e9: 89 e5 mov %esp,%ebp
1130eb: 83 ec 1c sub $0x1c,%esp
1130ee: 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;
1130f1: 89 45 e8 mov %eax,-0x18(%ebp)
args.command = command;
1130f4: 8b 55 0c mov 0xc(%ebp),%edx
1130f7: 89 55 ec mov %edx,-0x14(%ebp)
args.buffer = buffer;
1130fa: 8b 55 10 mov 0x10(%ebp),%edx
1130fd: 89 55 f0 mov %edx,-0x10(%ebp)
the_jnode = iop->file_info;
113100: 8b 40 38 mov 0x38(%eax),%eax
status = rtems_io_control(
113103: 8d 55 e8 lea -0x18(%ebp),%edx
113106: 52 push %edx
113107: ff 70 54 pushl 0x54(%eax)
11310a: ff 70 50 pushl 0x50(%eax)
11310d: e8 ee 09 00 00 call 113b00 <rtems_io_control>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
113112: 83 c4 10 add $0x10,%esp
113115: 85 c0 test %eax,%eax
113117: 75 07 jne 113120 <device_ioctl+0x38> <== NEVER TAKEN
return rtems_deviceio_errno(status);
return args.ioctl_return;
113119: 8b 45 f4 mov -0xc(%ebp),%eax
}
11311c: c9 leave
11311d: c3 ret
11311e: 66 90 xchg %ax,%ax
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
113120: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
113123: 50 push %eax <== NOT EXECUTED
113124: e8 57 0c 00 00 call 113d80 <rtems_deviceio_errno> <== NOT EXECUTED
113129: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return args.ioctl_return;
}
11312c: c9 leave <== NOT EXECUTED
11312d: c3 ret <== NOT EXECUTED
00113248 <device_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
113248: 55 push %ebp
113249: 89 e5 mov %esp,%ebp
11324b: 83 ec 1c sub $0x1c,%esp
11324e: 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;
113251: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
113254: 89 45 ec mov %eax,-0x14(%ebp)
args.flags = iop->flags;
113257: 8b 40 14 mov 0x14(%eax),%eax
11325a: 89 45 f0 mov %eax,-0x10(%ebp)
args.mode = mode;
11325d: 8b 45 14 mov 0x14(%ebp),%eax
113260: 89 45 f4 mov %eax,-0xc(%ebp)
status = rtems_io_open(
113263: 8d 45 ec lea -0x14(%ebp),%eax
113266: 50 push %eax
113267: ff 72 54 pushl 0x54(%edx)
11326a: ff 72 50 pushl 0x50(%edx)
11326d: e8 da 08 00 00 call 113b4c <rtems_io_open>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
113272: 83 c4 10 add $0x10,%esp
113275: 85 c0 test %eax,%eax
113277: 75 03 jne 11327c <device_open+0x34> <== NEVER TAKEN
return rtems_deviceio_errno(status);
return 0;
}
113279: c9 leave
11327a: c3 ret
11327b: 90 nop
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
11327c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11327f: 50 push %eax <== NOT EXECUTED
113280: e8 fb 0a 00 00 call 113d80 <rtems_deviceio_errno> <== NOT EXECUTED
113285: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0;
}
113288: c9 leave <== NOT EXECUTED
113289: c3 ret <== NOT EXECUTED
00113198 <device_read>:
ssize_t device_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
113198: 55 push %ebp
113199: 89 e5 mov %esp,%ebp
11319b: 53 push %ebx
11319c: 83 ec 28 sub $0x28,%esp
11319f: 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;
1131a2: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
1131a5: 89 45 dc mov %eax,-0x24(%ebp)
args.offset = iop->offset;
1131a8: 8b 48 0c mov 0xc(%eax),%ecx
1131ab: 8b 58 10 mov 0x10(%eax),%ebx
1131ae: 89 4d e0 mov %ecx,-0x20(%ebp)
1131b1: 89 5d e4 mov %ebx,-0x1c(%ebp)
args.buffer = buffer;
1131b4: 8b 4d 0c mov 0xc(%ebp),%ecx
1131b7: 89 4d e8 mov %ecx,-0x18(%ebp)
args.count = count;
1131ba: 8b 4d 10 mov 0x10(%ebp),%ecx
1131bd: 89 4d ec mov %ecx,-0x14(%ebp)
args.flags = iop->flags;
1131c0: 8b 40 14 mov 0x14(%eax),%eax
1131c3: 89 45 f0 mov %eax,-0x10(%ebp)
args.bytes_moved = 0;
1131c6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_read(
1131cd: 8d 45 dc lea -0x24(%ebp),%eax
1131d0: 50 push %eax
1131d1: ff 72 54 pushl 0x54(%edx)
1131d4: ff 72 50 pushl 0x50(%edx)
1131d7: e8 bc 09 00 00 call 113b98 <rtems_io_read>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
1131dc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1131df: 85 c0 test %eax,%eax <== NOT EXECUTED
1131e1: 75 09 jne 1131ec <device_read+0x54> <== NOT EXECUTED
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
1131e3: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
1131e6: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1131e9: c9 leave <== NOT EXECUTED
1131ea: c3 ret <== NOT EXECUTED
1131eb: 90 nop <== NOT EXECUTED
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
1131ec: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1131ef: 50 push %eax <== NOT EXECUTED
1131f0: e8 8b 0b 00 00 call 113d80 <rtems_deviceio_errno> <== NOT EXECUTED
1131f5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
1131f8: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1131fb: c9 leave <== NOT EXECUTED
1131fc: c3 ret <== NOT EXECUTED
00113130 <device_write>:
ssize_t device_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
113130: 55 push %ebp
113131: 89 e5 mov %esp,%ebp
113133: 53 push %ebx
113134: 83 ec 28 sub $0x28,%esp
113137: 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;
11313a: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
11313d: 89 45 dc mov %eax,-0x24(%ebp)
args.offset = iop->offset;
113140: 8b 48 0c mov 0xc(%eax),%ecx
113143: 8b 58 10 mov 0x10(%eax),%ebx
113146: 89 4d e0 mov %ecx,-0x20(%ebp)
113149: 89 5d e4 mov %ebx,-0x1c(%ebp)
args.buffer = (void *) buffer;
11314c: 8b 4d 0c mov 0xc(%ebp),%ecx
11314f: 89 4d e8 mov %ecx,-0x18(%ebp)
args.count = count;
113152: 8b 4d 10 mov 0x10(%ebp),%ecx
113155: 89 4d ec mov %ecx,-0x14(%ebp)
args.flags = iop->flags;
113158: 8b 40 14 mov 0x14(%eax),%eax
11315b: 89 45 f0 mov %eax,-0x10(%ebp)
args.bytes_moved = 0;
11315e: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_write(
113165: 8d 45 dc lea -0x24(%ebp),%eax
113168: 50 push %eax
113169: ff 72 54 pushl 0x54(%edx)
11316c: ff 72 50 pushl 0x50(%edx)
11316f: e8 70 0a 00 00 call 113be4 <rtems_io_write>
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
113174: 83 c4 10 add $0x10,%esp
113177: 85 c0 test %eax,%eax
113179: 75 09 jne 113184 <device_write+0x54> <== NEVER TAKEN
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
11317b: 8b 45 f4 mov -0xc(%ebp),%eax
}
11317e: 8b 5d fc mov -0x4(%ebp),%ebx
113181: c9 leave
113182: c3 ret
113183: 90 nop
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
return rtems_deviceio_errno(status);
113184: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
113187: 50 push %eax <== NOT EXECUTED
113188: e8 f3 0b 00 00 call 113d80 <rtems_deviceio_errno> <== NOT EXECUTED
11318d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
113190: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
113193: c9 leave <== NOT EXECUTED
113194: c3 ret <== NOT EXECUTED
001083fc <disk_lock>:
*/
static volatile bool diskdevs_protected;
static rtems_status_code
disk_lock(void)
{
1083fc: 55 push %ebp
1083fd: 89 e5 mov %esp,%ebp
1083ff: 83 ec 0c sub $0xc,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
108402: 6a 00 push $0x0
108404: 6a 00 push $0x0
108406: ff 35 08 af 12 00 pushl 0x12af08
10840c: e8 73 4a 00 00 call 10ce84 <rtems_semaphore_obtain>
if (sc == RTEMS_SUCCESSFUL) {
108411: 83 c4 10 add $0x10,%esp
108414: 85 c0 test %eax,%eax
108416: 75 0c jne 108424 <disk_lock+0x28> <== NEVER TAKEN
diskdevs_protected = true;
108418: c6 05 0c af 12 00 01 movb $0x1,0x12af0c
10841f: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
} else {
return RTEMS_NOT_CONFIGURED;
}
}
108421: c9 leave
108422: c3 ret
108423: 90 nop
disk_lock(void)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc == RTEMS_SUCCESSFUL) {
108424: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
} else {
return RTEMS_NOT_CONFIGURED;
}
}
108429: c9 leave <== NOT EXECUTED
10842a: c3 ret <== NOT EXECUTED
0010842c <disk_unlock>:
static void
disk_unlock(void)
{
10842c: 55 push %ebp
10842d: 89 e5 mov %esp,%ebp
10842f: 83 ec 14 sub $0x14,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
diskdevs_protected = false;
108432: c6 05 0c af 12 00 00 movb $0x0,0x12af0c
sc = rtems_semaphore_release(diskdevs_mutex);
108439: ff 35 08 af 12 00 pushl 0x12af08
10843f: e8 3c 4b 00 00 call 10cf80 <rtems_semaphore_release>
if (sc != RTEMS_SUCCESSFUL) {
108444: 83 c4 10 add $0x10,%esp
108447: 85 c0 test %eax,%eax
108449: 75 02 jne 10844d <disk_unlock+0x21> <== NEVER TAKEN
/* FIXME: Error number */
rtems_fatal_error_occurred(0xdeadbeef);
}
}
10844b: c9 leave
10844c: c3 ret
diskdevs_protected = false;
sc = rtems_semaphore_release(diskdevs_mutex);
if (sc != RTEMS_SUCCESSFUL) {
/* FIXME: Error number */
rtems_fatal_error_occurred(0xdeadbeef);
10844d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108450: 68 ef be ad de push $0xdeadbeef <== NOT EXECUTED
108455: e8 f6 4f 00 00 call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
0010a324 <drainOutput>:
/*
* Drain output queue
*/
static void
drainOutput (struct rtems_termios_tty *tty)
{
10a324: 55 push %ebp
10a325: 89 e5 mov %esp,%ebp
10a327: 53 push %ebx
10a328: 83 ec 04 sub $0x4,%esp
10a32b: 89 c3 mov %eax,%ebx
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
10a32d: 8b 90 b4 00 00 00 mov 0xb4(%eax),%edx
10a333: 85 d2 test %edx,%edx
10a335: 75 28 jne 10a35f <drainOutput+0x3b>
10a337: eb 3b jmp 10a374 <drainOutput+0x50>
10a339: 8d 76 00 lea 0x0(%esi),%esi
rtems_interrupt_disable (level);
while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
tty->rawOutBufState = rob_wait;
10a33c: c7 83 94 00 00 00 02 movl $0x2,0x94(%ebx)
10a343: 00 00 00
rtems_interrupt_enable (level);
10a346: 50 push %eax
10a347: 9d popf
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
10a348: 50 push %eax
10a349: 6a 00 push $0x0
10a34b: 6a 00 push $0x0
10a34d: ff b3 8c 00 00 00 pushl 0x8c(%ebx)
10a353: e8 8c 19 00 00 call 10bce4 <rtems_semaphore_obtain>
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
10a358: 83 c4 10 add $0x10,%esp
10a35b: 85 c0 test %eax,%eax
10a35d: 75 1a jne 10a379 <drainOutput+0x55> <== NEVER TAKEN
{
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
rtems_interrupt_disable (level);
10a35f: 9c pushf
10a360: fa cli
10a361: 58 pop %eax
while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
10a362: 8b 8b 84 00 00 00 mov 0x84(%ebx),%ecx
10a368: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx
10a36e: 39 d1 cmp %edx,%ecx
10a370: 75 ca jne 10a33c <drainOutput+0x18>
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
rtems_interrupt_enable (level);
10a372: 50 push %eax
10a373: 9d popf
}
}
10a374: 8b 5d fc mov -0x4(%ebp),%ebx
10a377: c9 leave
10a378: c3 ret
rtems_interrupt_enable (level);
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
10a379: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10a37c: 50 push %eax <== NOT EXECUTED
10a37d: e8 72 1f 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
00108d68 <dup2>:
int dup2(
int fildes,
int fildes2
)
{
108d68: 55 push %ebp
108d69: 89 e5 mov %esp,%ebp
108d6b: 57 push %edi
108d6c: 56 push %esi
108d6d: 53 push %ebx
108d6e: 83 ec 64 sub $0x64,%esp
108d71: 8b 75 08 mov 0x8(%ebp),%esi
108d74: 8b 7d 0c mov 0xc(%ebp),%edi
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
108d77: 8d 5d a0 lea -0x60(%ebp),%ebx
108d7a: 53 push %ebx
108d7b: 56 push %esi
108d7c: e8 73 05 00 00 call 1092f4 <fstat>
if ( status == -1 )
108d81: 83 c4 10 add $0x10,%esp
108d84: 40 inc %eax
108d85: 75 0d jne 108d94 <dup2+0x2c> <== ALWAYS TAKEN
/*
* This fcntl handles everything else.
*/
return fcntl( fildes, F_DUPFD, fildes2 );
108d87: b8 ff ff ff ff mov $0xffffffff,%eax
}
108d8c: 8d 65 f4 lea -0xc(%ebp),%esp
108d8f: 5b pop %ebx
108d90: 5e pop %esi
108d91: 5f pop %edi
108d92: c9 leave
108d93: c3 ret
/*
* If fildes2 is not valid, then we should not do anything either.
*/
status = fstat( fildes2, &buf );
108d94: 83 ec 08 sub $0x8,%esp
108d97: 53 push %ebx
108d98: 57 push %edi
108d99: e8 56 05 00 00 call 1092f4 <fstat>
if ( status == -1 )
108d9e: 83 c4 10 add $0x10,%esp
108da1: 40 inc %eax
108da2: 74 e3 je 108d87 <dup2+0x1f> <== ALWAYS TAKEN
/*
* This fcntl handles everything else.
*/
return fcntl( fildes, F_DUPFD, fildes2 );
108da4: 50 push %eax <== NOT EXECUTED
108da5: 57 push %edi <== NOT EXECUTED
108da6: 6a 00 push $0x0 <== NOT EXECUTED
108da8: 56 push %esi <== NOT EXECUTED
108da9: e8 f6 01 00 00 call 108fa4 <fcntl> <== NOT EXECUTED
108dae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108db1: eb d9 jmp 108d8c <dup2+0x24> <== NOT EXECUTED
00109e98 <echo>:
/*
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
109e98: 55 push %ebp <== NOT EXECUTED
109e99: 89 e5 mov %esp,%ebp <== NOT EXECUTED
109e9b: 53 push %ebx <== NOT EXECUTED
109e9c: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
109e9f: f6 42 3d 02 testb $0x2,0x3d(%edx) <== NOT EXECUTED
109ea3: 74 1b je 109ec0 <echo+0x28> <== NOT EXECUTED
109ea5: 0f b6 c8 movzbl %al,%ecx <== NOT EXECUTED
109ea8: 8b 1d c4 50 12 00 mov 0x1250c4,%ebx <== NOT EXECUTED
109eae: f6 44 0b 01 20 testb $0x20,0x1(%ebx,%ecx,1) <== NOT EXECUTED
109eb3: 74 0b je 109ec0 <echo+0x28> <== NOT EXECUTED
109eb5: 3c 09 cmp $0x9,%al <== NOT EXECUTED
109eb7: 74 07 je 109ec0 <echo+0x28> <== NOT EXECUTED
109eb9: 3c 0a cmp $0xa,%al <== NOT EXECUTED
109ebb: 75 13 jne 109ed0 <echo+0x38> <== NOT EXECUTED
109ebd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
rtems_termios_puts (echobuf, 2, tty);
tty->column += 2;
}
else {
oproc (c, tty);
109ec0: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
109ec3: e8 94 fe ff ff call 109d5c <oproc> <== NOT EXECUTED
}
}
109ec8: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
109ecb: c9 leave <== NOT EXECUTED
109ecc: c3 ret <== NOT EXECUTED
109ecd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
echo (unsigned char c, struct rtems_termios_tty *tty)
{
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
char echobuf[2];
echobuf[0] = '^';
109ed0: c6 45 f6 5e movb $0x5e,-0xa(%ebp) <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
109ed4: 83 f0 40 xor $0x40,%eax <== NOT EXECUTED
109ed7: 88 45 f7 mov %al,-0x9(%ebp) <== NOT EXECUTED
rtems_termios_puts (echobuf, 2, tty);
109eda: 50 push %eax <== NOT EXECUTED
109edb: 52 push %edx <== NOT EXECUTED
109edc: 6a 02 push $0x2 <== NOT EXECUTED
109ede: 8d 45 f6 lea -0xa(%ebp),%eax <== NOT EXECUTED
109ee1: 50 push %eax <== NOT EXECUTED
109ee2: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
109ee5: e8 3e fd ff ff call 109c28 <rtems_termios_puts> <== NOT EXECUTED
tty->column += 2;
109eea: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
109eed: 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')) {
109ef1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
tty->column += 2;
}
else {
oproc (c, tty);
}
}
109ef4: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
109ef7: c9 leave <== NOT EXECUTED
109ef8: c3 ret <== NOT EXECUTED
0012e490 <endgrent>:
fclose(group_fp);
group_fp = fopen("/etc/group", "r");
}
void endgrent(void)
{
12e490: 55 push %ebp <== NOT EXECUTED
12e491: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12e493: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (group_fp != NULL)
12e496: a1 24 29 17 00 mov 0x172924,%eax <== NOT EXECUTED
12e49b: 85 c0 test %eax,%eax <== NOT EXECUTED
12e49d: 74 0c je 12e4ab <endgrent+0x1b> <== NOT EXECUTED
fclose(group_fp);
12e49f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12e4a2: 50 push %eax <== NOT EXECUTED
12e4a3: e8 30 84 01 00 call 1468d8 <fclose> <== NOT EXECUTED
12e4a8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12e4ab: c9 leave <== NOT EXECUTED
12e4ac: c3 ret <== NOT EXECUTED
0012e4b0 <endpwent>:
fclose(passwd_fp);
passwd_fp = fopen("/etc/passwd", "r");
}
void endpwent(void)
{
12e4b0: 55 push %ebp <== NOT EXECUTED
12e4b1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12e4b3: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (passwd_fp != NULL)
12e4b6: a1 24 28 17 00 mov 0x172824,%eax <== NOT EXECUTED
12e4bb: 85 c0 test %eax,%eax <== NOT EXECUTED
12e4bd: 74 0c je 12e4cb <endpwent+0x1b> <== NOT EXECUTED
fclose(passwd_fp);
12e4bf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12e4c2: 50 push %eax <== NOT EXECUTED
12e4c3: e8 10 84 01 00 call 1468d8 <fclose> <== NOT EXECUTED
12e4c8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12e4cb: c9 leave <== NOT EXECUTED
12e4cc: c3 ret <== NOT EXECUTED
00109efc <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)
{
109efc: 55 push %ebp <== NOT EXECUTED
109efd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
109eff: 57 push %edi <== NOT EXECUTED
109f00: 56 push %esi <== NOT EXECUTED
109f01: 53 push %ebx <== NOT EXECUTED
109f02: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
109f05: 89 c3 mov %eax,%ebx <== NOT EXECUTED
109f07: 89 d7 mov %edx,%edi <== NOT EXECUTED
if (tty->ccount == 0)
109f09: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
109f0c: 85 c9 test %ecx,%ecx <== NOT EXECUTED
109f0e: 0f 84 84 00 00 00 je 109f98 <erase+0x9c> <== NOT EXECUTED
return;
if (lineFlag) {
109f14: 85 d2 test %edx,%edx <== NOT EXECUTED
109f16: 0f 85 84 00 00 00 jne 109fa0 <erase+0xa4> <== NOT EXECUTED
109f1c: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED
109f1f: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
109f22: eb 1d jmp 109f41 <erase+0x45> <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
109f24: 80 e6 02 and $0x2,%dh <== NOT EXECUTED
109f27: 0f 85 37 01 00 00 jne 10a064 <erase+0x168> <== NOT EXECUTED
109f2d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (tty->column)
tty->column--;
}
}
}
if (!lineFlag)
109f30: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
109f33: 85 d2 test %edx,%edx <== NOT EXECUTED
109f35: 74 61 je 109f98 <erase+0x9c> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
echo ('\n', tty);
return;
}
}
while (tty->ccount) {
109f37: 8b 4b 20 mov 0x20(%ebx),%ecx <== NOT EXECUTED
109f3a: 85 c9 test %ecx,%ecx <== NOT EXECUTED
109f3c: 74 5a je 109f98 <erase+0x9c> <== NOT EXECUTED
109f3e: 8b 53 3c mov 0x3c(%ebx),%edx <== NOT EXECUTED
unsigned char c = tty->cbuf[--tty->ccount];
109f41: 8b 7b 1c mov 0x1c(%ebx),%edi <== NOT EXECUTED
109f44: 49 dec %ecx <== NOT EXECUTED
109f45: 89 4b 20 mov %ecx,0x20(%ebx) <== NOT EXECUTED
109f48: 8a 04 0f mov (%edi,%ecx,1),%al <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
109f4b: f6 c2 08 test $0x8,%dl <== NOT EXECUTED
109f4e: 74 e0 je 109f30 <erase+0x34> <== NOT EXECUTED
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
109f50: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
109f53: 85 f6 test %esi,%esi <== NOT EXECUTED
109f55: 75 09 jne 109f60 <erase+0x64> <== NOT EXECUTED
109f57: f6 c2 10 test $0x10,%dl <== NOT EXECUTED
109f5a: 0f 84 f0 00 00 00 je 10a050 <erase+0x154> <== NOT EXECUTED
echo (tty->termios.c_cc[VERASE], tty);
}
else if (c == '\t') {
109f60: 3c 09 cmp $0x9,%al <== NOT EXECUTED
109f62: 74 58 je 109fbc <erase+0xc0> <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
109f64: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
109f67: 8d 70 01 lea 0x1(%eax),%esi <== NOT EXECUTED
109f6a: a1 c4 50 12 00 mov 0x1250c4,%eax <== NOT EXECUTED
109f6f: f6 04 30 20 testb $0x20,(%eax,%esi,1) <== NOT EXECUTED
109f73: 75 af jne 109f24 <erase+0x28> <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
if (tty->column)
tty->column--;
}
if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {
rtems_termios_puts ("\b \b", 3, tty);
109f75: 51 push %ecx <== NOT EXECUTED
109f76: 53 push %ebx <== NOT EXECUTED
109f77: 6a 03 push $0x3 <== NOT EXECUTED
109f79: 68 72 18 12 00 push $0x121872 <== NOT EXECUTED
109f7e: e8 a5 fc ff ff call 109c28 <rtems_termios_puts> <== NOT EXECUTED
if (tty->column)
109f83: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
109f86: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109f89: 85 c0 test %eax,%eax <== NOT EXECUTED
109f8b: 74 a3 je 109f30 <erase+0x34> <== NOT EXECUTED
tty->column--;
109f8d: 48 dec %eax <== NOT EXECUTED
109f8e: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
}
}
}
if (!lineFlag)
109f91: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
109f94: 85 d2 test %edx,%edx <== NOT EXECUTED
109f96: 75 9f jne 109f37 <erase+0x3b> <== NOT EXECUTED
break;
}
}
109f98: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
109f9b: 5b pop %ebx <== NOT EXECUTED
109f9c: 5e pop %esi <== NOT EXECUTED
109f9d: 5f pop %edi <== NOT EXECUTED
109f9e: c9 leave <== NOT EXECUTED
109f9f: c3 ret <== NOT EXECUTED
erase (struct rtems_termios_tty *tty, int lineFlag)
{
if (tty->ccount == 0)
return;
if (lineFlag) {
if (!(tty->termios.c_lflag & ECHO)) {
109fa0: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED
109fa3: f6 c2 08 test $0x8,%dl <== NOT EXECUTED
109fa6: 0f 84 94 00 00 00 je 10a040 <erase+0x144> <== NOT EXECUTED
tty->ccount = 0;
return;
}
if (!(tty->termios.c_lflag & ECHOE)) {
109fac: f6 c2 10 test $0x10,%dl <== NOT EXECUTED
109faf: 0f 84 eb 00 00 00 je 10a0a0 <erase+0x1a4> <== NOT EXECUTED
109fb5: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
109fb8: eb 87 jmp 109f41 <erase+0x45> <== NOT EXECUTED
109fba: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
echo (tty->termios.c_cc[VERASE], tty);
}
else if (c == '\t') {
int col = tty->read_start_column;
109fbc: 8b 73 2c mov 0x2c(%ebx),%esi <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
109fbf: 85 c9 test %ecx,%ecx <== NOT EXECUTED
109fc1: 74 46 je 10a009 <erase+0x10d> <== NOT EXECUTED
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
109fc3: a1 c4 50 12 00 mov 0x1250c4,%eax <== NOT EXECUTED
109fc8: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
109fcb: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOCTL)
109fcd: 81 e2 00 02 00 00 and $0x200,%edx <== NOT EXECUTED
109fd3: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
109fd6: 89 5d d8 mov %ebx,-0x28(%ebp) <== NOT EXECUTED
109fd9: 8b 5d dc mov -0x24(%ebp),%ebx <== NOT EXECUTED
109fdc: eb 10 jmp 109fee <erase+0xf2> <== NOT EXECUTED
109fde: 66 90 xchg %ax,%ax <== NOT EXECUTED
109fe0: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
109fe3: 85 d2 test %edx,%edx <== NOT EXECUTED
109fe5: 74 03 je 109fea <erase+0xee> <== NOT EXECUTED
col += 2;
109fe7: 83 c6 02 add $0x2,%esi <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
109fea: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
109fec: 74 18 je 10a006 <erase+0x10a> <== NOT EXECUTED
c = tty->cbuf[i++];
109fee: 8a 14 07 mov (%edi,%eax,1),%dl <== NOT EXECUTED
109ff1: 40 inc %eax <== NOT EXECUTED
if (c == '\t') {
109ff2: 80 fa 09 cmp $0x9,%dl <== NOT EXECUTED
109ff5: 74 41 je 10a038 <erase+0x13c> <== NOT EXECUTED
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
109ff7: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
109ffa: f6 44 13 01 20 testb $0x20,0x1(%ebx,%edx,1) <== NOT EXECUTED
109fff: 75 df jne 109fe0 <erase+0xe4> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOCTL)
col += 2;
}
else {
col++;
10a001: 46 inc %esi <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
10a002: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
10a004: 75 e8 jne 109fee <erase+0xf2> <== NOT EXECUTED
10a006: 8b 5d d8 mov -0x28(%ebp),%ebx <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
10a009: 3b 73 28 cmp 0x28(%ebx),%esi <== NOT EXECUTED
10a00c: 0f 8d 1e ff ff ff jge 109f30 <erase+0x34> <== NOT EXECUTED
10a012: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
10a014: 50 push %eax <== NOT EXECUTED
10a015: 53 push %ebx <== NOT EXECUTED
10a016: 6a 01 push $0x1 <== NOT EXECUTED
10a018: 68 74 18 12 00 push $0x121874 <== NOT EXECUTED
10a01d: e8 06 fc ff ff call 109c28 <rtems_termios_puts> <== NOT EXECUTED
tty->column--;
10a022: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
10a025: 48 dec %eax <== NOT EXECUTED
10a026: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
10a029: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10a02c: 39 c6 cmp %eax,%esi <== NOT EXECUTED
10a02e: 7c e4 jl 10a014 <erase+0x118> <== NOT EXECUTED
10a030: e9 fb fe ff ff jmp 109f30 <erase+0x34> <== NOT EXECUTED
10a035: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* Find the character before the tab
*/
while (i != tty->ccount) {
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
10a038: 83 ce 07 or $0x7,%esi <== NOT EXECUTED
10a03b: 46 inc %esi <== NOT EXECUTED
10a03c: eb ac jmp 109fea <erase+0xee> <== NOT EXECUTED
10a03e: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
if (tty->ccount == 0)
return;
if (lineFlag) {
if (!(tty->termios.c_lflag & ECHO)) {
tty->ccount = 0;
10a040: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) <== NOT EXECUTED
}
}
if (!lineFlag)
break;
}
}
10a047: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10a04a: 5b pop %ebx <== NOT EXECUTED
10a04b: 5e pop %esi <== NOT EXECUTED
10a04c: 5f pop %edi <== NOT EXECUTED
10a04d: c9 leave <== NOT EXECUTED
10a04e: c3 ret <== NOT EXECUTED
10a04f: 90 nop <== 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);
10a050: 0f b6 43 43 movzbl 0x43(%ebx),%eax <== NOT EXECUTED
10a054: 89 da mov %ebx,%edx <== NOT EXECUTED
}
}
if (!lineFlag)
break;
}
}
10a056: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10a059: 5b pop %ebx <== NOT EXECUTED
10a05a: 5e pop %esi <== NOT EXECUTED
10a05b: 5f pop %edi <== NOT EXECUTED
10a05c: 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);
10a05d: e9 36 fe ff ff jmp 109e98 <echo> <== NOT EXECUTED
10a062: 66 90 xchg %ax,%ax <== NOT EXECUTED
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
rtems_termios_puts ("\b \b", 3, tty);
10a064: 57 push %edi <== NOT EXECUTED
10a065: 53 push %ebx <== NOT EXECUTED
10a066: 6a 03 push $0x3 <== NOT EXECUTED
10a068: 68 72 18 12 00 push $0x121872 <== NOT EXECUTED
10a06d: e8 b6 fb ff ff call 109c28 <rtems_termios_puts> <== NOT EXECUTED
if (tty->column)
10a072: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
10a075: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10a078: 85 c0 test %eax,%eax <== NOT EXECUTED
10a07a: 74 04 je 10a080 <erase+0x184> <== NOT EXECUTED
tty->column--;
10a07c: 48 dec %eax <== NOT EXECUTED
10a07d: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
}
if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {
10a080: a1 c4 50 12 00 mov 0x1250c4,%eax <== NOT EXECUTED
10a085: f6 04 30 20 testb $0x20,(%eax,%esi,1) <== NOT EXECUTED
10a089: 0f 84 e6 fe ff ff je 109f75 <erase+0x79> <== NOT EXECUTED
10a08f: f6 43 3d 02 testb $0x2,0x3d(%ebx) <== NOT EXECUTED
10a093: 0f 85 dc fe ff ff jne 109f75 <erase+0x79> <== NOT EXECUTED
10a099: e9 92 fe ff ff jmp 109f30 <erase+0x34> <== NOT EXECUTED
10a09e: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (!(tty->termios.c_lflag & ECHO)) {
tty->ccount = 0;
return;
}
if (!(tty->termios.c_lflag & ECHOE)) {
tty->ccount = 0;
10a0a0: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) <== NOT EXECUTED
echo (tty->termios.c_cc[VKILL], tty);
10a0a7: 0f b6 40 44 movzbl 0x44(%eax),%eax <== NOT EXECUTED
10a0ab: 89 da mov %ebx,%edx <== NOT EXECUTED
10a0ad: e8 e6 fd ff ff call 109e98 <echo> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
10a0b2: f6 43 3c 20 testb $0x20,0x3c(%ebx) <== NOT EXECUTED
10a0b6: 0f 84 dc fe ff ff je 109f98 <erase+0x9c> <== NOT EXECUTED
echo ('\n', tty);
10a0bc: 89 da mov %ebx,%edx <== NOT EXECUTED
10a0be: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED
10a0c3: eb 91 jmp 10a056 <erase+0x15a> <== NOT EXECUTED
0012b6fc <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)
{
12b6fc: 55 push %ebp <== NOT EXECUTED
12b6fd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12b6ff: 57 push %edi <== NOT EXECUTED
12b700: 56 push %esi <== NOT EXECUTED
12b701: 53 push %ebx <== NOT EXECUTED
12b702: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
12b705: 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)
12b708: 80 bb 81 00 00 00 00 cmpb $0x0,0x81(%ebx) <== NOT EXECUTED
12b70f: 0f 84 bf 00 00 00 je 12b7d4 <fat_buf_access+0xd8> <== NOT EXECUTED
12b715: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
fs_info->c.blk_num = blk;
fs_info->c.modified = 0;
fs_info->c.state = FAT_CACHE_ACTUAL;
}
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
12b718: 0f b7 53 14 movzwl 0x14(%ebx),%edx <== NOT EXECUTED
12b71c: 39 c2 cmp %eax,%edx <== NOT EXECUTED
12b71e: 0f 86 f9 00 00 00 jbe 12b81d <fat_buf_access+0x121> <== NOT EXECUTED
12b724: 31 d2 xor %edx,%edx <== NOT EXECUTED
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.blk_num != blk)
12b726: 39 45 0c cmp %eax,0xc(%ebp) <== NOT EXECUTED
12b729: 0f 84 8d 00 00 00 je 12b7bc <fat_buf_access+0xc0> <== NOT EXECUTED
{
if (fs_info->c.modified)
12b72f: 80 bb 80 00 00 00 00 cmpb $0x0,0x80(%ebx) <== NOT EXECUTED
12b736: 0f 84 ec 00 00 00 je 12b828 <fat_buf_access+0x12c> <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
12b73c: 84 d2 test %dl,%dl <== NOT EXECUTED
12b73e: 74 0a je 12b74a <fat_buf_access+0x4e> <== NOT EXECUTED
12b740: 80 7b 48 00 cmpb $0x0,0x48(%ebx) <== NOT EXECUTED
12b744: 0f 84 b2 01 00 00 je 12b8fc <fat_buf_access+0x200> <== NOT EXECUTED
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer,
fs_info->vol.bps);
sc = rtems_bdbuf_release_modified(fs_info->c.buf);
12b74a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b74d: ff b3 84 00 00 00 pushl 0x84(%ebx) <== NOT EXECUTED
12b753: 88 55 d0 mov %dl,-0x30(%ebp) <== NOT EXECUTED
12b756: e8 a1 fc fd ff call 10b3fc <rtems_bdbuf_release_modified><== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
12b75b: c6 83 81 00 00 00 00 movb $0x0,0x81(%ebx) <== NOT EXECUTED
fs_info->c.modified = 0;
12b762: c6 83 80 00 00 00 00 movb $0x0,0x80(%ebx) <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12b769: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b76c: 85 c0 test %eax,%eax <== NOT EXECUTED
12b76e: 8a 55 d0 mov -0x30(%ebp),%dl <== NOT EXECUTED
12b771: 0f 85 d1 00 00 00 jne 12b848 <fat_buf_access+0x14c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
if (sec_of_fat && !fs_info->vol.mirror)
12b777: 84 d2 test %dl,%dl <== NOT EXECUTED
12b779: 74 0a je 12b785 <fat_buf_access+0x89> <== NOT EXECUTED
12b77b: 80 7b 48 00 cmpb $0x0,0x48(%ebx) <== NOT EXECUTED
12b77f: 0f 84 fb 00 00 00 je 12b880 <fat_buf_access+0x184> <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
}
if (op_type == FAT_OP_TYPE_READ)
12b785: 83 7d 10 01 cmpl $0x1,0x10(%ebp) <== NOT EXECUTED
12b789: 0f 84 89 01 00 00 je 12b918 <fat_buf_access+0x21c> <== NOT EXECUTED
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
12b78f: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax <== NOT EXECUTED
12b795: 50 push %eax <== NOT EXECUTED
12b796: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12b799: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
12b79c: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
12b79f: e8 84 0c fe ff call 10c428 <rtems_bdbuf_get> <== NOT EXECUTED
12b7a4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12b7a7: 85 c0 test %eax,%eax <== NOT EXECUTED
12b7a9: 0f 85 99 00 00 00 jne 12b848 <fat_buf_access+0x14c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.blk_num = blk;
12b7af: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12b7b2: 89 43 7c mov %eax,0x7c(%ebx) <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_ACTUAL;
12b7b5: c6 83 81 00 00 00 01 movb $0x1,0x81(%ebx) <== NOT EXECUTED
}
*buf = fs_info->c.buf;
12b7bc: 8b 93 84 00 00 00 mov 0x84(%ebx),%edx <== NOT EXECUTED
12b7c2: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
12b7c5: 89 10 mov %edx,(%eax) <== NOT EXECUTED
12b7c7: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
}
12b7c9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12b7cc: 5b pop %ebx <== NOT EXECUTED
12b7cd: 5e pop %esi <== NOT EXECUTED
12b7ce: 5f pop %edi <== NOT EXECUTED
12b7cf: c9 leave <== NOT EXECUTED
12b7d0: c3 ret <== NOT EXECUTED
12b7d1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
bool sec_of_fat;
if (fs_info->c.state == FAT_CACHE_EMPTY)
{
if (op_type == FAT_OP_TYPE_READ)
12b7d4: 83 7d 10 01 cmpl $0x1,0x10(%ebp) <== NOT EXECUTED
12b7d8: 0f 84 82 00 00 00 je 12b860 <fat_buf_access+0x164> <== NOT EXECUTED
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
12b7de: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax <== NOT EXECUTED
12b7e4: 50 push %eax <== NOT EXECUTED
12b7e5: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12b7e8: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
12b7eb: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
12b7ee: e8 35 0c fe ff call 10c428 <rtems_bdbuf_get> <== NOT EXECUTED
12b7f3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12b7f6: 85 c0 test %eax,%eax <== NOT EXECUTED
12b7f8: 75 4e jne 12b848 <fat_buf_access+0x14c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.blk_num = blk;
12b7fa: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12b7fd: 89 43 7c mov %eax,0x7c(%ebx) <== NOT EXECUTED
fs_info->c.modified = 0;
12b800: c6 83 80 00 00 00 00 movb $0x0,0x80(%ebx) <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_ACTUAL;
12b807: c6 83 81 00 00 00 01 movb $0x1,0x81(%ebx) <== NOT EXECUTED
12b80e: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
}
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
12b811: 0f b7 53 14 movzwl 0x14(%ebx),%edx <== NOT EXECUTED
12b815: 39 c2 cmp %eax,%edx <== NOT EXECUTED
12b817: 0f 87 07 ff ff ff ja 12b724 <fat_buf_access+0x28> <== NOT EXECUTED
12b81d: 39 43 1c cmp %eax,0x1c(%ebx) <== NOT EXECUTED
12b820: 0f 97 c2 seta %dl <== NOT EXECUTED
12b823: e9 fe fe ff ff jmp 12b726 <fat_buf_access+0x2a> <== NOT EXECUTED
}
}
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
12b828: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b82b: ff b3 84 00 00 00 pushl 0x84(%ebx) <== NOT EXECUTED
12b831: e8 42 fc fd ff call 10b478 <rtems_bdbuf_release> <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
12b836: c6 83 81 00 00 00 00 movb $0x0,0x81(%ebx) <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12b83d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b840: 85 c0 test %eax,%eax <== NOT EXECUTED
12b842: 0f 84 3d ff ff ff je 12b785 <fat_buf_access+0x89> <== NOT EXECUTED
if (op_type == FAT_OP_TYPE_READ)
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
12b848: e8 3f af 01 00 call 14678c <__errno> <== NOT EXECUTED
12b84d: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
12b853: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12b858: e9 6c ff ff ff jmp 12b7c9 <fat_buf_access+0xcd> <== NOT EXECUTED
12b85d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (fs_info->c.state == FAT_CACHE_EMPTY)
{
if (op_type == FAT_OP_TYPE_READ)
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
12b860: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax <== NOT EXECUTED
12b866: 50 push %eax <== NOT EXECUTED
12b867: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12b86a: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
12b86d: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
12b870: e8 7f 0c fe ff call 10c4f4 <rtems_bdbuf_read> <== NOT EXECUTED
12b875: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b878: e9 79 ff ff ff jmp 12b7f6 <fat_buf_access+0xfa> <== NOT EXECUTED
12b87d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (sec_of_fat && !fs_info->vol.mirror)
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
12b880: 80 7b 09 01 cmpb $0x1,0x9(%ebx) <== NOT EXECUTED
12b884: 0f 86 fb fe ff ff jbe 12b785 <fat_buf_access+0x89> <== NOT EXECUTED
12b88a: c6 45 d7 01 movb $0x1,-0x29(%ebp) <== NOT EXECUTED
12b88e: eb 34 jmp 12b8c4 <fat_buf_access+0x1c8> <== NOT EXECUTED
fs_info->c.blk_num +
fs_info->vol.fat_length * i,
&b);
if ( sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(ENOMEM);
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
12b890: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12b893: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
12b896: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
12b899: 8b b3 88 00 00 00 mov 0x88(%ebx),%esi <== NOT EXECUTED
12b89f: 89 c7 mov %eax,%edi <== NOT EXECUTED
12b8a1: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(b);
12b8a3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b8a6: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12b8a9: e8 4e fb fd ff call 10b3fc <rtems_bdbuf_release_modified><== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL)
12b8ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b8b1: 85 c0 test %eax,%eax <== NOT EXECUTED
12b8b3: 75 31 jne 12b8e6 <fat_buf_access+0x1ea> <== NOT EXECUTED
if (sec_of_fat && !fs_info->vol.mirror)
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
12b8b5: fe 45 d7 incb -0x29(%ebp) <== NOT EXECUTED
12b8b8: 8a 45 d7 mov -0x29(%ebp),%al <== NOT EXECUTED
12b8bb: 38 43 09 cmp %al,0x9(%ebx) <== NOT EXECUTED
12b8be: 0f 86 c1 fe ff ff jbe 12b785 <fat_buf_access+0x89> <== NOT EXECUTED
{
sc = rtems_bdbuf_get(fs_info->vol.dev,
12b8c4: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12b8c7: 50 push %eax <== NOT EXECUTED
12b8c8: 0f b6 45 d7 movzbl -0x29(%ebp),%eax <== NOT EXECUTED
12b8cc: 0f af 43 18 imul 0x18(%ebx),%eax <== NOT EXECUTED
12b8d0: 03 43 7c add 0x7c(%ebx),%eax <== NOT EXECUTED
12b8d3: 50 push %eax <== NOT EXECUTED
12b8d4: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
12b8d7: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
12b8da: e8 49 0b fe ff call 10c428 <rtems_bdbuf_get> <== NOT EXECUTED
fs_info->c.blk_num +
fs_info->vol.fat_length * i,
&b);
if ( sc != RTEMS_SUCCESSFUL)
12b8df: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b8e2: 85 c0 test %eax,%eax <== NOT EXECUTED
12b8e4: 74 aa je 12b890 <fat_buf_access+0x194> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
sc = rtems_bdbuf_release_modified(b);
if ( sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(ENOMEM);
12b8e6: e8 a1 ae 01 00 call 14678c <__errno> <== NOT EXECUTED
12b8eb: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
12b8f1: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12b8f6: e9 ce fe ff ff jmp 12b7c9 <fat_buf_access+0xcd> <== NOT EXECUTED
12b8fb: 90 nop <== NOT EXECUTED
if (fs_info->c.blk_num != blk)
{
if (fs_info->c.modified)
{
if (sec_of_fat && !fs_info->vol.mirror)
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer,
12b8fc: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
12b8ff: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax <== NOT EXECUTED
12b905: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
12b908: 8b bb 88 00 00 00 mov 0x88(%ebx),%edi <== NOT EXECUTED
12b90e: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
12b910: e9 35 fe ff ff jmp 12b74a <fat_buf_access+0x4e> <== NOT EXECUTED
12b915: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
}
if (op_type == FAT_OP_TYPE_READ)
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
12b918: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax <== NOT EXECUTED
12b91e: 50 push %eax <== NOT EXECUTED
12b91f: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12b922: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
12b925: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
12b928: e8 c7 0b fe ff call 10c4f4 <rtems_bdbuf_read> <== NOT EXECUTED
12b92d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b930: e9 72 fe ff ff jmp 12b7a7 <fat_buf_access+0xab> <== NOT EXECUTED
0012b58c <fat_buf_release>:
return RC_OK;
}
int
fat_buf_release(fat_fs_info_t *fs_info)
{
12b58c: 55 push %ebp <== NOT EXECUTED
12b58d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12b58f: 57 push %edi <== NOT EXECUTED
12b590: 56 push %esi <== NOT EXECUTED
12b591: 53 push %ebx <== NOT EXECUTED
12b592: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
12b595: 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)
12b598: 80 bb 81 00 00 00 00 cmpb $0x0,0x81(%ebx) <== NOT EXECUTED
12b59f: 0f 84 f7 00 00 00 je 12b69c <fat_buf_release+0x110> <== NOT EXECUTED
return RC_OK;
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
12b5a5: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
12b5a8: 0f b7 53 14 movzwl 0x14(%ebx),%edx <== NOT EXECUTED
12b5ac: 39 d0 cmp %edx,%eax <== NOT EXECUTED
12b5ae: 0f 83 f4 00 00 00 jae 12b6a8 <fat_buf_release+0x11c> <== NOT EXECUTED
12b5b4: 31 d2 xor %edx,%edx <== NOT EXECUTED
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.modified)
12b5b6: 80 bb 80 00 00 00 00 cmpb $0x0,0x80(%ebx) <== NOT EXECUTED
12b5bd: 0f 84 bd 00 00 00 je 12b680 <fat_buf_release+0xf4> <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
12b5c3: 84 d2 test %dl,%dl <== NOT EXECUTED
12b5c5: 74 0a je 12b5d1 <fat_buf_release+0x45> <== NOT EXECUTED
12b5c7: 80 7b 48 00 cmpb $0x0,0x48(%ebx) <== NOT EXECUTED
12b5cb: 0f 84 e3 00 00 00 je 12b6b4 <fat_buf_release+0x128> <== NOT EXECUTED
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps);
sc = rtems_bdbuf_release_modified(fs_info->c.buf);
12b5d1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b5d4: ff b3 84 00 00 00 pushl 0x84(%ebx) <== NOT EXECUTED
12b5da: 88 55 d0 mov %dl,-0x30(%ebp) <== NOT EXECUTED
12b5dd: e8 1a fe fd ff call 10b3fc <rtems_bdbuf_release_modified><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12b5e2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b5e5: 85 c0 test %eax,%eax <== NOT EXECUTED
12b5e7: 8a 55 d0 mov -0x30(%ebp),%dl <== NOT EXECUTED
12b5ea: 0f 85 df 00 00 00 jne 12b6cf <fat_buf_release+0x143> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.modified = 0;
12b5f0: c6 83 80 00 00 00 00 movb $0x0,0x80(%ebx) <== NOT EXECUTED
if (sec_of_fat && !fs_info->vol.mirror)
12b5f7: 84 d2 test %dl,%dl <== NOT EXECUTED
12b5f9: 0f 84 96 00 00 00 je 12b695 <fat_buf_release+0x109> <== NOT EXECUTED
12b5ff: 80 7b 48 00 cmpb $0x0,0x48(%ebx) <== NOT EXECUTED
12b603: 0f 85 8c 00 00 00 jne 12b695 <fat_buf_release+0x109> <== NOT EXECUTED
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
12b609: 80 7b 09 01 cmpb $0x1,0x9(%ebx) <== NOT EXECUTED
12b60d: 0f 86 82 00 00 00 jbe 12b695 <fat_buf_release+0x109> <== NOT EXECUTED
12b613: c6 45 d7 01 movb $0x1,-0x29(%ebp) <== NOT EXECUTED
12b617: eb 33 jmp 12b64c <fat_buf_release+0xc0> <== NOT EXECUTED
12b619: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
fs_info->c.blk_num +
fs_info->vol.fat_length * i,
&b);
if ( sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(ENOMEM);
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
12b61c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12b61f: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
12b622: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
12b625: 8b b3 88 00 00 00 mov 0x88(%ebx),%esi <== NOT EXECUTED
12b62b: 89 c7 mov %eax,%edi <== NOT EXECUTED
12b62d: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(b);
12b62f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b632: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12b635: e8 c2 fd fd ff call 10b3fc <rtems_bdbuf_release_modified><== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL)
12b63a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b63d: 85 c0 test %eax,%eax <== NOT EXECUTED
12b63f: 75 2d jne 12b66e <fat_buf_release+0xe2> <== NOT EXECUTED
if (sec_of_fat && !fs_info->vol.mirror)
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
12b641: fe 45 d7 incb -0x29(%ebp) <== NOT EXECUTED
12b644: 8a 45 d7 mov -0x29(%ebp),%al <== NOT EXECUTED
12b647: 38 43 09 cmp %al,0x9(%ebx) <== NOT EXECUTED
12b64a: 76 49 jbe 12b695 <fat_buf_release+0x109> <== NOT EXECUTED
{
sc = rtems_bdbuf_get(fs_info->vol.dev,
12b64c: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12b64f: 50 push %eax <== NOT EXECUTED
12b650: 0f b6 45 d7 movzbl -0x29(%ebp),%eax <== NOT EXECUTED
12b654: 0f af 43 18 imul 0x18(%ebx),%eax <== NOT EXECUTED
12b658: 03 43 7c add 0x7c(%ebx),%eax <== NOT EXECUTED
12b65b: 50 push %eax <== NOT EXECUTED
12b65c: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
12b65f: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
12b662: e8 c1 0d fe ff call 10c428 <rtems_bdbuf_get> <== NOT EXECUTED
fs_info->c.blk_num +
fs_info->vol.fat_length * i,
&b);
if ( sc != RTEMS_SUCCESSFUL)
12b667: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b66a: 85 c0 test %eax,%eax <== NOT EXECUTED
12b66c: 74 ae je 12b61c <fat_buf_release+0x90> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
sc = rtems_bdbuf_release_modified(b);
if ( sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(ENOMEM);
12b66e: e8 19 b1 01 00 call 14678c <__errno> <== NOT EXECUTED
12b673: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
12b679: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12b67e: eb 1e jmp 12b69e <fat_buf_release+0x112> <== NOT EXECUTED
}
}
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
12b680: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b683: ff b3 84 00 00 00 pushl 0x84(%ebx) <== NOT EXECUTED
12b689: e8 ea fd fd ff call 10b478 <rtems_bdbuf_release> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12b68e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b691: 85 c0 test %eax,%eax <== NOT EXECUTED
12b693: 75 3a jne 12b6cf <fat_buf_release+0x143> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
}
fs_info->c.state = FAT_CACHE_EMPTY;
12b695: c6 83 81 00 00 00 00 movb $0x0,0x81(%ebx) <== NOT EXECUTED
12b69c: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
}
12b69e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12b6a1: 5b pop %ebx <== NOT EXECUTED
12b6a2: 5e pop %esi <== NOT EXECUTED
12b6a3: 5f pop %edi <== NOT EXECUTED
12b6a4: c9 leave <== NOT EXECUTED
12b6a5: c3 ret <== NOT EXECUTED
12b6a6: 66 90 xchg %ax,%ax <== NOT EXECUTED
*buf = fs_info->c.buf;
return RC_OK;
}
int
fat_buf_release(fat_fs_info_t *fs_info)
12b6a8: 3b 43 1c cmp 0x1c(%ebx),%eax <== NOT EXECUTED
12b6ab: 0f 92 c2 setb %dl <== NOT EXECUTED
12b6ae: e9 03 ff ff ff jmp 12b5b6 <fat_buf_release+0x2a> <== NOT EXECUTED
12b6b3: 90 nop <== NOT EXECUTED
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.modified)
{
if (sec_of_fat && !fs_info->vol.mirror)
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps);
12b6b4: 8b 83 88 00 00 00 mov 0x88(%ebx),%eax <== NOT EXECUTED
12b6ba: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
12b6bd: 8b b3 84 00 00 00 mov 0x84(%ebx),%esi <== NOT EXECUTED
12b6c3: 8b 76 20 mov 0x20(%esi),%esi <== NOT EXECUTED
12b6c6: 89 c7 mov %eax,%edi <== NOT EXECUTED
12b6c8: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
12b6ca: e9 02 ff ff ff jmp 12b5d1 <fat_buf_release+0x45> <== NOT EXECUTED
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
12b6cf: e8 b8 b0 01 00 call 14678c <__errno> <== NOT EXECUTED
12b6d4: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
12b6da: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12b6df: eb bd jmp 12b69e <fat_buf_release+0x112> <== NOT EXECUTED
0012c400 <fat_cluster_read>:
fat_cluster_read(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
void *buff
)
{
12c400: 55 push %ebp <== NOT EXECUTED
12c401: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12c403: 56 push %esi <== NOT EXECUTED
12c404: 53 push %ebx <== NOT EXECUTED
12c405: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
12c408: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
12c40b: 8b 46 34 mov 0x34(%esi),%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)) )
12c40e: 85 d2 test %edx,%edx <== NOT EXECUTED
12c410: 75 06 jne 12c418 <fat_cluster_read+0x18> <== NOT EXECUTED
12c412: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
12c416: 75 30 jne 12c448 <fat_cluster_read+0x48> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12c418: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
12c41b: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
12c41f: d3 e2 shl %cl,%edx <== NOT EXECUTED
12c421: 03 50 30 add 0x30(%eax),%edx <== NOT EXECUTED
uint32_t fsec = 0;
fsec = fat_cluster_num_to_sector_num(mt_entry, cln);
return _fat_block_read(mt_entry, fsec, 0,
12c424: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12c427: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
12c42a: 0f b6 58 04 movzbl 0x4(%eax),%ebx <== NOT EXECUTED
12c42e: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
12c432: d3 e3 shl %cl,%ebx <== NOT EXECUTED
12c434: 53 push %ebx <== NOT EXECUTED
12c435: 6a 00 push $0x0 <== NOT EXECUTED
12c437: 52 push %edx <== NOT EXECUTED
12c438: 56 push %esi <== NOT EXECUTED
12c439: e8 46 f8 ff ff call 12bc84 <_fat_block_read> <== NOT EXECUTED
fs_info->vol.spc << fs_info->vol.sec_log2, buff);
}
12c43e: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
12c441: 5b pop %ebx <== NOT EXECUTED
12c442: 5e pop %esi <== NOT EXECUTED
12c443: c9 leave <== NOT EXECUTED
12c444: c3 ret <== NOT EXECUTED
12c445: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
return fs_info->vol.rdir_loc;
12c448: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
12c44b: eb d7 jmp 12c424 <fat_cluster_read+0x24> <== NOT EXECUTED
0012bb78 <fat_cluster_write>:
fat_cluster_write(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
const void *buff
)
{
12bb78: 55 push %ebp <== NOT EXECUTED
12bb79: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12bb7b: 56 push %esi <== NOT EXECUTED
12bb7c: 53 push %ebx <== NOT EXECUTED
12bb7d: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
12bb80: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
12bb83: 8b 46 34 mov 0x34(%esi),%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)) )
12bb86: 85 d2 test %edx,%edx <== NOT EXECUTED
12bb88: 75 06 jne 12bb90 <fat_cluster_write+0x18><== NOT EXECUTED
12bb8a: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
12bb8e: 75 30 jne 12bbc0 <fat_cluster_write+0x48><== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12bb90: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
12bb93: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
12bb97: d3 e2 shl %cl,%edx <== NOT EXECUTED
12bb99: 03 50 30 add 0x30(%eax),%edx <== NOT EXECUTED
uint32_t fsec = 0;
fsec = fat_cluster_num_to_sector_num(mt_entry, cln);
return _fat_block_write(mt_entry, fsec, 0,
12bb9c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12bb9f: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
12bba2: 0f b6 58 04 movzbl 0x4(%eax),%ebx <== NOT EXECUTED
12bba6: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
12bbaa: d3 e3 shl %cl,%ebx <== NOT EXECUTED
12bbac: 53 push %ebx <== NOT EXECUTED
12bbad: 6a 00 push $0x0 <== NOT EXECUTED
12bbaf: 52 push %edx <== NOT EXECUTED
12bbb0: 56 push %esi <== NOT EXECUTED
12bbb1: e8 82 fd ff ff call 12b938 <_fat_block_write> <== NOT EXECUTED
fs_info->vol.spc << fs_info->vol.sec_log2, buff);
}
12bbb6: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
12bbb9: 5b pop %ebx <== NOT EXECUTED
12bbba: 5e pop %esi <== NOT EXECUTED
12bbbb: c9 leave <== NOT EXECUTED
12bbbc: c3 ret <== NOT EXECUTED
12bbbd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
return fs_info->vol.rdir_loc;
12bbc0: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
12bbc3: eb d7 jmp 12bb9c <fat_cluster_write+0x24><== NOT EXECUTED
0012b9e8 <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
)
{
12b9e8: 55 push %ebp <== NOT EXECUTED
12b9e9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12b9eb: 57 push %edi <== NOT EXECUTED
12b9ec: 56 push %esi <== NOT EXECUTED
12b9ed: 53 push %ebx <== NOT EXECUTED
12b9ee: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED
12b9f1: 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;
12b9f4: 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);
12b9f7: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12b9fa: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
le_next_free = CT_LE_L(next_free);
12b9fd: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
12ba00: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry,
12ba03: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12ba06: 50 push %eax <== NOT EXECUTED
12ba07: 6a 04 push $0x4 <== NOT EXECUTED
12ba09: 68 e8 01 00 00 push $0x1e8 <== NOT EXECUTED
12ba0e: 0f b7 46 3c movzwl 0x3c(%esi),%eax <== NOT EXECUTED
12ba12: 50 push %eax <== NOT EXECUTED
12ba13: 53 push %ebx <== NOT EXECUTED
12ba14: e8 1f ff ff ff call 12b938 <_fat_block_write> <== NOT EXECUTED
12ba19: 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,
12ba1b: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
12ba1e: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
12ba21: 50 push %eax <== NOT EXECUTED
12ba22: 6a 04 push $0x4 <== NOT EXECUTED
12ba24: 68 ec 01 00 00 push $0x1ec <== NOT EXECUTED
12ba29: 0f b7 46 3c movzwl 0x3c(%esi),%eax <== NOT EXECUTED
12ba2d: 50 push %eax <== NOT EXECUTED
12ba2e: 53 push %ebx <== NOT EXECUTED
12ba2f: e8 04 ff ff ff call 12b938 <_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) )
12ba34: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12ba37: 85 ff test %edi,%edi <== NOT EXECUTED
12ba39: 79 0d jns 12ba48 <fat_fat32_update_fsinfo_sector+0x60><== NOT EXECUTED
12ba3b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
return RC_OK;
}
12ba40: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12ba43: 5b pop %ebx <== NOT EXECUTED
12ba44: 5e pop %esi <== NOT EXECUTED
12ba45: 5f pop %edi <== NOT EXECUTED
12ba46: c9 leave <== NOT EXECUTED
12ba47: c3 ret <== NOT EXECUTED
fs_info->vol.info_sec,
FAT_FSINFO_NEXT_FREE_CLUSTER_OFFSET,
4,
(char *)(&le_next_free));
if ( (ret1 < 0) || (ret2 < 0) )
12ba48: 85 c0 test %eax,%eax <== NOT EXECUTED
12ba4a: 78 ef js 12ba3b <fat_fat32_update_fsinfo_sector+0x53><== NOT EXECUTED
12ba4c: 31 c0 xor %eax,%eax <== NOT EXECUTED
12ba4e: eb f0 jmp 12ba40 <fat_fat32_update_fsinfo_sector+0x58><== NOT EXECUTED
0012b198 <fat_file_close>:
int
fat_file_close(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
12b198: 55 push %ebp <== NOT EXECUTED
12b199: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12b19b: 57 push %edi <== NOT EXECUTED
12b19c: 56 push %esi <== NOT EXECUTED
12b19d: 53 push %ebx <== NOT EXECUTED
12b19e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b1a1: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
12b1a4: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
12b1a7: 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)
12b1aa: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
12b1ad: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
12b1b0: 76 0e jbe 12b1c0 <fat_file_close+0x28> <== NOT EXECUTED
{
fat_fd->links_num--;
12b1b2: 48 dec %eax <== NOT EXECUTED
12b1b3: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
12b1b6: 31 c0 xor %eax,%eax <== NOT EXECUTED
* flush any modified "cached" buffer back to disk
*/
rc = fat_buf_release(fs_info);
return rc;
}
12b1b8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12b1bb: 5b pop %ebx <== NOT EXECUTED
12b1bc: 5e pop %esi <== NOT EXECUTED
12b1bd: 5f pop %edi <== NOT EXECUTED
12b1be: c9 leave <== NOT EXECUTED
12b1bf: c3 ret <== NOT EXECUTED
return rc;
}
key = fat_construct_key(mt_entry, &fat_fd->dir_pos.sname);
if (fat_fd->flags & FAT_FILE_REMOVED)
12b1c0: f6 43 30 01 testb $0x1,0x30(%ebx) <== NOT EXECUTED
12b1c4: 74 3a je 12b200 <fat_file_close+0x68> <== NOT EXECUTED
{
rc = fat_file_truncate(mt_entry, fat_fd, 0);
12b1c6: 51 push %ecx <== NOT EXECUTED
12b1c7: 6a 00 push $0x0 <== NOT EXECUTED
12b1c9: 53 push %ebx <== NOT EXECUTED
12b1ca: 56 push %esi <== NOT EXECUTED
12b1cb: e8 a4 f8 ff ff call 12aa74 <fat_file_truncate> <== NOT EXECUTED
if ( rc != RC_OK )
12b1d0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b1d3: 85 c0 test %eax,%eax <== NOT EXECUTED
12b1d5: 75 e1 jne 12b1b8 <fat_file_close+0x20> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
12b1d7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b1da: 53 push %ebx <== NOT EXECUTED
12b1db: e8 54 88 fe ff call 113a34 <_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) )
12b1e0: 58 pop %eax <== NOT EXECUTED
12b1e1: 5a pop %edx <== NOT EXECUTED
12b1e2: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
12b1e5: 56 push %esi <== NOT EXECUTED
12b1e6: e8 bd 02 00 00 call 12b4a8 <fat_ino_is_unique> <== NOT EXECUTED
12b1eb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b1ee: 84 c0 test %al,%al <== NOT EXECUTED
12b1f0: 75 52 jne 12b244 <fat_file_close+0xac> <== NOT EXECUTED
fat_free_unique_ino(mt_entry, fat_fd->ino);
free(fat_fd);
12b1f2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b1f5: 53 push %ebx <== NOT EXECUTED
12b1f6: e8 6d 36 fe ff call 10e868 <free> <== NOT EXECUTED
12b1fb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b1fe: eb 1a jmp 12b21a <fat_file_close+0x82> <== NOT EXECUTED
}
else
{
if (fat_ino_is_unique(mt_entry, fat_fd->ino))
12b200: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12b203: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
12b206: 56 push %esi <== NOT EXECUTED
12b207: e8 9c 02 00 00 call 12b4a8 <fat_ino_is_unique> <== NOT EXECUTED
12b20c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b20f: 84 c0 test %al,%al <== NOT EXECUTED
12b211: 74 19 je 12b22c <fat_file_close+0x94> <== NOT EXECUTED
{
fat_fd->links_num = 0;
12b213: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
}
}
/*
* flush any modified "cached" buffer back to disk
*/
rc = fat_buf_release(fs_info);
12b21a: 89 7d 08 mov %edi,0x8(%ebp) <== NOT EXECUTED
return rc;
}
12b21d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12b220: 5b pop %ebx <== NOT EXECUTED
12b221: 5e pop %esi <== NOT EXECUTED
12b222: 5f pop %edi <== NOT EXECUTED
12b223: c9 leave <== NOT EXECUTED
}
}
/*
* flush any modified "cached" buffer back to disk
*/
rc = fat_buf_release(fs_info);
12b224: e9 63 03 00 00 jmp 12b58c <fat_buf_release> <== NOT EXECUTED
12b229: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
12b22c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b22f: 53 push %ebx <== NOT EXECUTED
12b230: e8 ff 87 fe ff call 113a34 <_Chain_Extract> <== NOT EXECUTED
fat_fd->links_num = 0;
}
else
{
_hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);
free(fat_fd);
12b235: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
12b238: e8 2b 36 fe ff call 10e868 <free> <== NOT EXECUTED
12b23d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b240: eb d8 jmp 12b21a <fat_file_close+0x82> <== NOT EXECUTED
12b242: 66 90 xchg %ax,%ax <== 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) )
fat_free_unique_ino(mt_entry, fat_fd->ino);
12b244: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12b247: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
12b24a: 56 push %esi <== NOT EXECUTED
12b24b: e8 30 02 00 00 call 12b480 <fat_free_unique_ino> <== NOT EXECUTED
12b250: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b253: eb 9d jmp 12b1f2 <fat_file_close+0x5a> <== NOT EXECUTED
0012a874 <fat_file_datasync>:
int
fat_file_datasync(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
12a874: 55 push %ebp <== NOT EXECUTED
12a875: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12a877: 57 push %edi <== NOT EXECUTED
12a878: 56 push %esi <== NOT EXECUTED
12a879: 53 push %ebx <== NOT EXECUTED
12a87a: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
12a87d: 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;
12a880: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
12a883: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
uint32_t cur_cln = fat_fd->cln;
12a886: 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)
12a889: 8b 78 18 mov 0x18(%eax),%edi <== NOT EXECUTED
12a88c: 85 ff test %edi,%edi <== NOT EXECUTED
12a88e: 75 0c jne 12a89c <fat_file_datasync+0x28><== NOT EXECUTED
12a890: 31 c0 xor %eax,%eax <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
if ( rc != RC_OK )
return rc;
}
return rc;
}
12a892: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a895: 5b pop %ebx <== NOT EXECUTED
12a896: 5e pop %esi <== NOT EXECUTED
12a897: 5f pop %edi <== NOT EXECUTED
12a898: c9 leave <== NOT EXECUTED
12a899: c3 ret <== NOT EXECUTED
12a89a: 66 90 xchg %ax,%ax <== 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;
12a89c: 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;
12a8a3: 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);
12a8a6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12a8a9: 53 push %ebx <== NOT EXECUTED
12a8aa: e8 dd 0c 00 00 call 12b58c <fat_buf_release> <== NOT EXECUTED
12a8af: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
if (rc != RC_OK)
12a8b2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12a8b5: 85 c0 test %eax,%eax <== NOT EXECUTED
12a8b7: 0f 85 97 00 00 00 jne 12a954 <fat_file_datasync+0xe0><== NOT EXECUTED
12a8bd: 8d 7d e0 lea -0x20(%ebp),%edi <== NOT EXECUTED
return rc;
/* for each cluster of the file ... */
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
12a8c0: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12a8c3: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
12a8c6: 21 c2 and %eax,%edx <== NOT EXECUTED
12a8c8: 3b 53 10 cmp 0x10(%ebx),%edx <== NOT EXECUTED
12a8cb: 0f 83 83 00 00 00 jae 12a954 <fat_file_datasync+0xe0><== 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;
12a8d1: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
12a8d4: 8b 51 34 mov 0x34(%ecx),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
12a8d7: 85 c0 test %eax,%eax <== NOT EXECUTED
12a8d9: 74 6d je 12a948 <fat_file_datasync+0xd4><== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12a8db: 8d 70 fe lea -0x2(%eax),%esi <== NOT EXECUTED
12a8de: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
12a8e2: d3 e6 shl %cl,%esi <== NOT EXECUTED
12a8e4: 03 72 30 add 0x30(%edx),%esi <== NOT EXECUTED
{
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++ )
12a8e7: 80 7b 04 00 cmpb $0x0,0x4(%ebx) <== NOT EXECUTED
12a8eb: 74 76 je 12a963 <fat_file_datasync+0xef><== NOT EXECUTED
12a8ed: 31 c0 xor %eax,%eax <== NOT EXECUTED
12a8ef: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
12a8f2: 89 c6 mov %eax,%esi <== NOT EXECUTED
12a8f4: eb 1d jmp 12a913 <fat_file_datasync+0x9f><== NOT EXECUTED
12a8f6: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* ... sync it */
sc = rtems_bdbuf_read(fs_info->vol.dev, (sec + i), &block);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one( EIO );
sc = rtems_bdbuf_sync(block);
12a8f8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12a8fb: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
12a8fe: e8 7d 14 fe ff call 10bd80 <rtems_bdbuf_sync> <== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL )
12a903: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12a906: 85 c0 test %eax,%eax <== NOT EXECUTED
12a908: 75 23 jne 12a92d <fat_file_datasync+0xb9><== 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++ )
12a90a: 46 inc %esi <== NOT EXECUTED
12a90b: 0f b6 43 04 movzbl 0x4(%ebx),%eax <== NOT EXECUTED
12a90f: 39 f0 cmp %esi,%eax <== NOT EXECUTED
12a911: 76 4d jbe 12a960 <fat_file_datasync+0xec><== NOT EXECUTED
{
/* ... sync it */
sc = rtems_bdbuf_read(fs_info->vol.dev, (sec + i), &block);
12a913: 57 push %edi <== NOT EXECUTED
12a914: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
12a917: 8d 04 16 lea (%esi,%edx,1),%eax <== NOT EXECUTED
12a91a: 50 push %eax <== NOT EXECUTED
12a91b: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED
12a91e: ff 73 54 pushl 0x54(%ebx) <== NOT EXECUTED
12a921: e8 ce 1b fe ff call 10c4f4 <rtems_bdbuf_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12a926: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12a929: 85 c0 test %eax,%eax <== NOT EXECUTED
12a92b: 74 cb je 12a8f8 <fat_file_datasync+0x84><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
sc = rtems_bdbuf_sync(block);
if ( sc != RTEMS_SUCCESSFUL )
rtems_set_errno_and_return_minus_one( EIO );
12a92d: e8 5a be 01 00 call 14678c <__errno> <== NOT EXECUTED
12a932: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
12a938: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
if ( rc != RC_OK )
return rc;
}
return rc;
}
12a93d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a940: 5b pop %ebx <== NOT EXECUTED
12a941: 5e pop %esi <== NOT EXECUTED
12a942: 5f pop %edi <== NOT EXECUTED
12a943: c9 leave <== NOT EXECUTED
12a944: c3 ret <== NOT EXECUTED
12a945: 8d 76 00 lea 0x0(%esi),%esi <== 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)) )
12a948: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
12a94c: 74 8d je 12a8db <fat_file_datasync+0x67><== NOT EXECUTED
return fs_info->vol.rdir_loc;
12a94e: 8b 72 1c mov 0x1c(%edx),%esi <== NOT EXECUTED
12a951: eb 94 jmp 12a8e7 <fat_file_datasync+0x73><== NOT EXECUTED
12a953: 90 nop <== 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)
12a954: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
if ( rc != RC_OK )
return rc;
}
return rc;
}
12a957: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a95a: 5b pop %ebx <== NOT EXECUTED
12a95b: 5e pop %esi <== NOT EXECUTED
12a95c: 5f pop %edi <== NOT EXECUTED
12a95d: c9 leave <== NOT EXECUTED
12a95e: c3 ret <== NOT EXECUTED
12a95f: 90 nop <== 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++ )
12a960: 8b 45 e4 mov -0x1c(%ebp),%eax <== 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);
12a963: 56 push %esi <== NOT EXECUTED
12a964: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
12a967: 51 push %ecx <== NOT EXECUTED
12a968: 50 push %eax <== NOT EXECUTED
12a969: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12a96c: e8 73 81 01 00 call 142ae4 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
12a971: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12a974: 85 c0 test %eax,%eax <== NOT EXECUTED
12a976: 0f 84 44 ff ff ff je 12a8c0 <fat_file_datasync+0x4c><== NOT EXECUTED
12a97c: e9 11 ff ff ff jmp 12a892 <fat_file_datasync+0x1e><== NOT EXECUTED
0012ab54 <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
)
{
12ab54: 55 push %ebp <== NOT EXECUTED
12ab55: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12ab57: 57 push %edi <== NOT EXECUTED
12ab58: 56 push %esi <== NOT EXECUTED
12ab59: 53 push %ebx <== NOT EXECUTED
12ab5a: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
12ab5d: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
12ab60: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
12ab63: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12ab66: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
uint32_t chain = 0;
12ab69: 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;
12ab70: 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;
12ab77: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
12ab7a: 89 39 mov %edi,(%ecx) <== NOT EXECUTED
if (new_length <= fat_fd->fat_file_size)
12ab7c: 8b 43 18 mov 0x18(%ebx),%eax <== NOT EXECUTED
12ab7f: 39 c7 cmp %eax,%edi <== NOT EXECUTED
12ab81: 0f 86 d5 00 00 00 jbe 12ac5c <fat_file_extend+0x108> <== NOT EXECUTED
return RC_OK;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
12ab87: 83 7b 20 01 cmpl $0x1,0x20(%ebx) <== NOT EXECUTED
12ab8b: 0f 84 d7 00 00 00 je 12ac68 <fat_file_extend+0x114> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
rtems_set_errno_and_return_minus_one( ENOSPC );
bytes_remain = (fs_info->vol.bpc -
(fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) &
12ab91: 0f b7 56 06 movzwl 0x6(%esi),%edx <== NOT EXECUTED
12ab95: 8d 4a ff lea -0x1(%edx),%ecx <== NOT EXECUTED
12ab98: 89 4d c4 mov %ecx,-0x3c(%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 -
12ab9b: 21 c1 and %eax,%ecx <== NOT EXECUTED
12ab9d: 29 ca sub %ecx,%edx <== NOT EXECUTED
12ab9f: 23 55 c4 and -0x3c(%ebp),%edx <== 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;
12aba2: 89 f9 mov %edi,%ecx <== NOT EXECUTED
12aba4: 29 c1 sub %eax,%ecx <== NOT EXECUTED
12aba6: 89 c8 mov %ecx,%eax <== NOT EXECUTED
if (bytes2add > bytes_remain)
12aba8: 39 ca cmp %ecx,%edx <== NOT EXECUTED
12abaa: 0f 83 ac 00 00 00 jae 12ac5c <fat_file_extend+0x108> <== 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)
12abb0: 29 d0 sub %edx,%eax <== NOT EXECUTED
12abb2: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
12abb5: 0f 84 a1 00 00 00 je 12ac5c <fat_file_extend+0x108> <== NOT EXECUTED
return RC_OK;
cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;
12abbb: 48 dec %eax <== NOT EXECUTED
12abbc: 0f b6 4e 08 movzbl 0x8(%esi),%ecx <== NOT EXECUTED
12abc0: d3 e8 shr %cl,%eax <== NOT EXECUTED
12abc2: 8d 48 01 lea 0x1(%eax),%ecx <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
12abc5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12abc8: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
12abcb: 50 push %eax <== NOT EXECUTED
12abcc: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
12abcf: 50 push %eax <== NOT EXECUTED
12abd0: 51 push %ecx <== NOT EXECUTED
12abd1: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12abd4: 50 push %eax <== NOT EXECUTED
12abd5: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12abd8: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
12abdb: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
12abde: e8 61 81 01 00 call 142d44 <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)
12abe3: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12abe6: 85 c0 test %eax,%eax <== NOT EXECUTED
12abe8: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
12abeb: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
12abee: 0f 85 9c 00 00 00 jne 12ac90 <fat_file_extend+0x13c> <== NOT EXECUTED
return rc;
/* this means that no space left on device */
if ((cls_added == 0) && (bytes_remain == 0))
12abf4: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
12abf7: 85 c0 test %eax,%eax <== NOT EXECUTED
12abf9: 75 04 jne 12abff <fat_file_extend+0xab> <== NOT EXECUTED
12abfb: 85 d2 test %edx,%edx <== NOT EXECUTED
12abfd: 74 7e je 12ac7d <fat_file_extend+0x129> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOSPC);
/* check wether we satisfied request for 'cls2add' clusters */
if (cls2add != cls_added)
12abff: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
12ac01: 74 1d je 12ac20 <fat_file_extend+0xcc> <== NOT EXECUTED
*a_length = new_length -
12ac03: f7 d0 not %eax <== NOT EXECUTED
12ac05: 01 c8 add %ecx,%eax <== NOT EXECUTED
12ac07: 0f b6 4e 08 movzbl 0x8(%esi),%ecx <== NOT EXECUTED
12ac0b: d3 e0 shl %cl,%eax <== NOT EXECUTED
12ac0d: 89 f9 mov %edi,%ecx <== NOT EXECUTED
12ac0f: 29 c1 sub %eax,%ecx <== NOT EXECUTED
12ac11: 0f b7 46 06 movzwl 0x6(%esi),%eax <== NOT EXECUTED
12ac15: 48 dec %eax <== NOT EXECUTED
12ac16: 23 45 d4 and -0x2c(%ebp),%eax <== NOT EXECUTED
12ac19: 29 c1 sub %eax,%ecx <== NOT EXECUTED
12ac1b: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
12ac1e: 89 08 mov %ecx,(%eax) <== 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 )
12ac20: 8b 43 18 mov 0x18(%ebx),%eax <== NOT EXECUTED
12ac23: 85 c0 test %eax,%eax <== NOT EXECUTED
12ac25: 75 6d jne 12ac94 <fat_file_extend+0x140> <== NOT EXECUTED
{
fat_fd->map.disk_cln = fat_fd->cln = chain;
12ac27: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12ac2a: 89 43 1c mov %eax,0x1c(%ebx) <== NOT EXECUTED
12ac2d: 89 43 38 mov %eax,0x38(%ebx) <== NOT EXECUTED
fat_fd->map.file_cln = 0;
12ac30: c7 43 34 00 00 00 00 movl $0x0,0x34(%ebx) <== NOT EXECUTED
}
fat_buf_release(fs_info);
}
/* update number of the last cluster of the file if it changed */
if (cls_added != 0)
12ac37: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
12ac3a: 85 d2 test %edx,%edx <== NOT EXECUTED
12ac3c: 74 0c je 12ac4a <fat_file_extend+0xf6> <== NOT EXECUTED
{
fat_fd->map.last_cln = last_cl;
12ac3e: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
12ac41: 89 43 3c mov %eax,0x3c(%ebx) <== NOT EXECUTED
if (fat_fd->fat_file_type == FAT_DIRECTORY)
12ac44: 83 7b 10 01 cmpl $0x1,0x10(%ebx) <== NOT EXECUTED
12ac48: 74 7c je 12acc6 <fat_file_extend+0x172> <== NOT EXECUTED
return rc;
}
}
}
fat_fd->fat_file_size = new_length;
12ac4a: 89 7b 18 mov %edi,0x18(%ebx) <== NOT EXECUTED
12ac4d: 31 d2 xor %edx,%edx <== NOT EXECUTED
return RC_OK;
}
12ac4f: 89 d0 mov %edx,%eax <== NOT EXECUTED
12ac51: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12ac54: 5b pop %ebx <== NOT EXECUTED
12ac55: 5e pop %esi <== NOT EXECUTED
12ac56: 5f pop %edi <== NOT EXECUTED
12ac57: c9 leave <== NOT EXECUTED
12ac58: c3 ret <== NOT EXECUTED
12ac59: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
}
fat_fd->fat_file_size = new_length;
return RC_OK;
12ac5c: 31 d2 xor %edx,%edx <== NOT EXECUTED
}
12ac5e: 89 d0 mov %edx,%eax <== NOT EXECUTED
12ac60: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12ac63: 5b pop %ebx <== NOT EXECUTED
12ac64: 5e pop %esi <== NOT EXECUTED
12ac65: 5f pop %edi <== NOT EXECUTED
12ac66: c9 leave <== NOT EXECUTED
12ac67: c3 ret <== NOT EXECUTED
*a_length = new_length;
if (new_length <= fat_fd->fat_file_size)
return RC_OK;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
12ac68: 8b 53 24 mov 0x24(%ebx),%edx <== NOT EXECUTED
12ac6b: 85 d2 test %edx,%edx <== NOT EXECUTED
12ac6d: 0f 85 1e ff ff ff jne 12ab91 <fat_file_extend+0x3d> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
12ac73: f6 46 0a 03 testb $0x3,0xa(%esi) <== NOT EXECUTED
12ac77: 0f 84 14 ff ff ff je 12ab91 <fat_file_extend+0x3d> <== NOT EXECUTED
if (rc != RC_OK)
return rc;
/* this means that no space left on device */
if ((cls_added == 0) && (bytes_remain == 0))
rtems_set_errno_and_return_minus_one(ENOSPC);
12ac7d: e8 0a bb 01 00 call 14678c <__errno> <== NOT EXECUTED
12ac82: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED
12ac88: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
12ac8d: eb cf jmp 12ac5e <fat_file_extend+0x10a> <== NOT EXECUTED
12ac8f: 90 nop <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
&cls_added, &last_cl);
/* this means that low level I/O error occured */
if (rc != RC_OK)
12ac90: 89 c2 mov %eax,%edx <== NOT EXECUTED
12ac92: eb ca jmp 12ac5e <fat_file_extend+0x10a> <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln = chain;
fat_fd->map.file_cln = 0;
}
else
{
if (fat_fd->map.last_cln != FAT_UNDEFINED_VALUE)
12ac94: 8b 53 3c mov 0x3c(%ebx),%edx <== NOT EXECUTED
12ac97: 83 fa ff cmp $0xffffffff,%edx <== NOT EXECUTED
12ac9a: 74 64 je 12ad00 <fat_file_extend+0x1ac> <== NOT EXECUTED
{
old_last_cl = fat_fd->map.last_cln;
12ac9c: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
fat_free_fat_clusters_chain(mt_entry, chain);
return rc;
}
}
rc = fat_set_fat_cluster(mt_entry, old_last_cl, chain);
12ac9f: 51 push %ecx <== NOT EXECUTED
12aca0: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12aca3: 52 push %edx <== NOT EXECUTED
12aca4: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12aca7: e8 10 7c 01 00 call 1428bc <fat_set_fat_cluster> <== NOT EXECUTED
12acac: 89 c2 mov %eax,%edx <== NOT EXECUTED
if ( rc != RC_OK )
12acae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12acb1: 85 c0 test %eax,%eax <== NOT EXECUTED
12acb3: 75 2f jne 12ace4 <fat_file_extend+0x190> <== NOT EXECUTED
{
fat_free_fat_clusters_chain(mt_entry, chain);
return rc;
}
fat_buf_release(fs_info);
12acb5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12acb8: 56 push %esi <== NOT EXECUTED
12acb9: e8 ce 08 00 00 call 12b58c <fat_buf_release> <== NOT EXECUTED
12acbe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12acc1: e9 71 ff ff ff jmp 12ac37 <fat_file_extend+0xe3> <== NOT EXECUTED
if (cls_added != 0)
{
fat_fd->map.last_cln = last_cl;
if (fat_fd->fat_file_type == FAT_DIRECTORY)
{
rc = fat_init_clusters_chain(mt_entry, chain);
12acc6: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12acc9: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12accc: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12accf: e8 f4 0e 00 00 call 12bbc8 <fat_init_clusters_chain><== NOT EXECUTED
12acd4: 89 c2 mov %eax,%edx <== NOT EXECUTED
if ( rc != RC_OK )
12acd6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12acd9: 85 c0 test %eax,%eax <== NOT EXECUTED
12acdb: 0f 84 69 ff ff ff je 12ac4a <fat_file_extend+0xf6> <== NOT EXECUTED
12ace1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
fat_free_fat_clusters_chain(mt_entry, chain);
12ace4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12ace7: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12acea: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12aced: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
12acf0: e8 73 7f 01 00 call 142c68 <fat_free_fat_clusters_chain><== NOT EXECUTED
return rc;
12acf5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12acf8: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
12acfb: e9 5e ff ff ff jmp 12ac5e <fat_file_extend+0x10a> <== NOT EXECUTED
{
old_last_cl = fat_fd->map.last_cln;
}
else
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
12ad00: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12ad03: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
12ad06: 52 push %edx <== NOT EXECUTED
12ad07: 48 dec %eax <== NOT EXECUTED
12ad08: 50 push %eax <== NOT EXECUTED
12ad09: 6a 01 push $0x1 <== NOT EXECUTED
12ad0b: 53 push %ebx <== NOT EXECUTED
12ad0c: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12ad0f: e8 c4 fc ff ff call 12a9d8 <fat_file_ioctl> <== NOT EXECUTED
12ad14: 89 c2 mov %eax,%edx <== NOT EXECUTED
(fat_fd->fat_file_size - 1), &old_last_cl);
if ( rc != RC_OK )
12ad16: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12ad19: 85 c0 test %eax,%eax <== NOT EXECUTED
12ad1b: 75 c7 jne 12ace4 <fat_file_extend+0x190> <== NOT EXECUTED
{
fat_free_fat_clusters_chain(mt_entry, chain);
return rc;
12ad1d: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
12ad20: e9 7a ff ff ff jmp 12ac9f <fat_file_extend+0x14b> <== NOT EXECUTED
0012a9d8 <fat_file_ioctl>:
fat_file_ioctl(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
int cmd,
...)
{
12a9d8: 55 push %ebp <== NOT EXECUTED
12a9d9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12a9db: 56 push %esi <== NOT EXECUTED
12a9dc: 53 push %ebx <== NOT EXECUTED
12a9dd: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
12a9e0: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12a9e3: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
12a9e6: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
uint32_t cur_cln = 0;
12a9e9: 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)
12a9f0: 83 7d 10 01 cmpl $0x1,0x10(%ebp) <== NOT EXECUTED
12a9f4: 74 1a je 12aa10 <fat_file_ioctl+0x38> <== NOT EXECUTED
*ret = cur_cln;
break;
default:
errno = EINVAL;
12a9f6: e8 91 bd 01 00 call 14678c <__errno> <== NOT EXECUTED
12a9fb: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
12aa01: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
rc = -1;
break;
}
return rc;
}
12aa06: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
12aa09: 5b pop %ebx <== NOT EXECUTED
12aa0a: 5e pop %esi <== NOT EXECUTED
12aa0b: c9 leave <== NOT EXECUTED
12aa0c: c3 ret <== NOT EXECUTED
12aa0d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
va_start(ap, cmd);
switch (cmd)
{
case F_CLU_NUM:
pos = va_arg(ap, uint32_t );
12aa10: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
ret = va_arg(ap, uint32_t *);
12aa13: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
/* sanity check */
if ( pos >= fat_fd->fat_file_size )
12aa16: 3b 72 18 cmp 0x18(%edx),%esi <== NOT EXECUTED
12aa19: 73 45 jae 12aa60 <fat_file_ioctl+0x88> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
12aa1b: 83 7a 20 01 cmpl $0x1,0x20(%edx) <== NOT EXECUTED
12aa1f: 74 27 je 12aa48 <fat_file_ioctl+0x70> <== NOT EXECUTED
return RC_OK;
}
cl_start = pos >> fs_info->vol.bpc_log2;
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
12aa21: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12aa24: 0f b6 49 08 movzbl 0x8(%ecx),%ecx <== NOT EXECUTED
12aa28: d3 ee shr %cl,%esi <== NOT EXECUTED
12aa2a: 89 f1 mov %esi,%ecx <== NOT EXECUTED
12aa2c: 8d 75 f4 lea -0xc(%ebp),%esi <== NOT EXECUTED
12aa2f: 56 push %esi <== NOT EXECUTED
12aa30: e8 a3 fd ff ff call 12a7d8 <fat_file_lseek> <== NOT EXECUTED
if ( rc != RC_OK )
12aa35: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12aa38: 85 c0 test %eax,%eax <== NOT EXECUTED
12aa3a: 75 ca jne 12aa06 <fat_file_ioctl+0x2e> <== NOT EXECUTED
return rc;
*ret = cur_cln;
12aa3c: 8b 55 f4 mov -0xc(%ebp),%edx <== NOT EXECUTED
12aa3f: 89 13 mov %edx,(%ebx) <== NOT EXECUTED
errno = EINVAL;
rc = -1;
break;
}
return rc;
}
12aa41: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
12aa44: 5b pop %ebx <== NOT EXECUTED
12aa45: 5e pop %esi <== NOT EXECUTED
12aa46: c9 leave <== NOT EXECUTED
12aa47: c3 ret <== NOT EXECUTED
/* sanity check */
if ( pos >= fat_fd->fat_file_size )
rtems_set_errno_and_return_minus_one( EIO );
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
12aa48: 83 7a 24 00 cmpl $0x0,0x24(%edx) <== NOT EXECUTED
12aa4c: 75 d3 jne 12aa21 <fat_file_ioctl+0x49> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
12aa4e: f6 41 0a 03 testb $0x3,0xa(%ecx) <== NOT EXECUTED
12aa52: 74 cd je 12aa21 <fat_file_ioctl+0x49> <== NOT EXECUTED
{
/* cluster 0 (zero) reserved for root dir */
*ret = 0;
12aa54: c7 03 00 00 00 00 movl $0x0,(%ebx) <== NOT EXECUTED
12aa5a: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
12aa5c: eb a8 jmp 12aa06 <fat_file_ioctl+0x2e> <== NOT EXECUTED
12aa5e: 66 90 xchg %ax,%ax <== NOT EXECUTED
pos = va_arg(ap, uint32_t );
ret = va_arg(ap, uint32_t *);
/* sanity check */
if ( pos >= fat_fd->fat_file_size )
rtems_set_errno_and_return_minus_one( EIO );
12aa60: e8 27 bd 01 00 call 14678c <__errno> <== NOT EXECUTED
12aa65: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
12aa6b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12aa70: eb 94 jmp 12aa06 <fat_file_ioctl+0x2e> <== NOT EXECUTED
0012a7d8 <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
)
{
12a7d8: 55 push %ebp <== NOT EXECUTED
12a7d9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12a7db: 57 push %edi <== NOT EXECUTED
12a7dc: 56 push %esi <== NOT EXECUTED
12a7dd: 53 push %ebx <== NOT EXECUTED
12a7de: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
12a7e1: 89 c3 mov %eax,%ebx <== NOT EXECUTED
12a7e3: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
12a7e6: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
int rc = RC_OK;
if (file_cln == fat_fd->map.file_cln)
12a7e9: 8b 7a 34 mov 0x34(%edx),%edi <== NOT EXECUTED
12a7ec: 39 cf cmp %ecx,%edi <== NOT EXECUTED
12a7ee: 74 70 je 12a860 <fat_file_lseek+0x88> <== NOT EXECUTED
{
uint32_t cur_cln;
uint32_t count;
uint32_t i;
if (file_cln > fat_fd->map.file_cln)
12a7f0: 72 3a jb 12a82c <fat_file_lseek+0x54> <== NOT EXECUTED
cur_cln = fat_fd->map.disk_cln;
count = file_cln - fat_fd->map.file_cln;
}
else
{
cur_cln = fat_fd->cln;
12a7f2: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
12a7f5: 8b 41 1c mov 0x1c(%ecx),%eax <== NOT EXECUTED
12a7f8: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
12a7fb: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
count = file_cln;
}
/* skip over the clusters */
for (i = 0; i < count; i++)
12a7fe: 85 ff test %edi,%edi <== NOT EXECUTED
12a800: 74 41 je 12a843 <fat_file_lseek+0x6b> <== NOT EXECUTED
12a802: 31 f6 xor %esi,%esi <== NOT EXECUTED
12a804: eb 0a jmp 12a810 <fat_file_lseek+0x38> <== NOT EXECUTED
12a806: 66 90 xchg %ax,%ax <== NOT EXECUTED
12a808: 46 inc %esi <== NOT EXECUTED
12a809: 39 f7 cmp %esi,%edi <== NOT EXECUTED
12a80b: 76 33 jbe 12a840 <fat_file_lseek+0x68> <== NOT EXECUTED
12a80d: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
12a810: 51 push %ecx <== NOT EXECUTED
12a811: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
12a814: 52 push %edx <== NOT EXECUTED
12a815: 50 push %eax <== NOT EXECUTED
12a816: 53 push %ebx <== NOT EXECUTED
12a817: e8 c8 82 01 00 call 142ae4 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
12a81c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12a81f: 85 c0 test %eax,%eax <== NOT EXECUTED
12a821: 74 e5 je 12a808 <fat_file_lseek+0x30> <== NOT EXECUTED
return rc;
12a823: 99 cltd <== NOT EXECUTED
fat_fd->map.disk_cln = cur_cln;
*disk_cln = cur_cln;
}
return RC_OK;
}
12a824: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a827: 5b pop %ebx <== NOT EXECUTED
12a828: 5e pop %esi <== NOT EXECUTED
12a829: 5f pop %edi <== NOT EXECUTED
12a82a: c9 leave <== NOT EXECUTED
12a82b: c3 ret <== NOT EXECUTED
uint32_t count;
uint32_t i;
if (file_cln > fat_fd->map.file_cln)
{
cur_cln = fat_fd->map.disk_cln;
12a82c: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
12a82f: 8b 41 38 mov 0x38(%ecx),%eax <== NOT EXECUTED
12a832: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
count = file_cln - fat_fd->map.file_cln;
12a835: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
12a838: 29 fa sub %edi,%edx <== NOT EXECUTED
12a83a: 89 d7 mov %edx,%edi <== NOT EXECUTED
12a83c: eb c0 jmp 12a7fe <fat_file_lseek+0x26> <== NOT EXECUTED
12a83e: 66 90 xchg %ax,%ax <== NOT EXECUTED
cur_cln = fat_fd->cln;
count = file_cln;
}
/* skip over the clusters */
for (i = 0; i < count; i++)
12a840: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
if ( rc != RC_OK )
return rc;
}
/* update cache */
fat_fd->map.file_cln = file_cln;
12a843: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
12a846: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
12a849: 89 51 34 mov %edx,0x34(%ecx) <== NOT EXECUTED
fat_fd->map.disk_cln = cur_cln;
12a84c: 89 41 38 mov %eax,0x38(%ecx) <== NOT EXECUTED
*disk_cln = cur_cln;
12a84f: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
12a852: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
12a854: 31 c0 xor %eax,%eax <== NOT EXECUTED
12a856: 31 d2 xor %edx,%edx <== NOT EXECUTED
}
return RC_OK;
}
12a858: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a85b: 5b pop %ebx <== NOT EXECUTED
12a85c: 5e pop %esi <== NOT EXECUTED
12a85d: 5f pop %edi <== NOT EXECUTED
12a85e: c9 leave <== NOT EXECUTED
12a85f: c3 ret <== NOT EXECUTED
)
{
int rc = RC_OK;
if (file_cln == fat_fd->map.file_cln)
*disk_cln = fat_fd->map.disk_cln;
12a860: 8b 42 38 mov 0x38(%edx),%eax <== NOT EXECUTED
12a863: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
12a866: 89 02 mov %eax,(%edx) <== NOT EXECUTED
12a868: 31 c0 xor %eax,%eax <== NOT EXECUTED
12a86a: 31 d2 xor %edx,%edx <== NOT EXECUTED
fat_fd->map.disk_cln = cur_cln;
*disk_cln = cur_cln;
}
return RC_OK;
}
12a86c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a86f: 5b pop %ebx <== NOT EXECUTED
12a870: 5e pop %esi <== NOT EXECUTED
12a871: 5f pop %edi <== NOT EXECUTED
12a872: c9 leave <== NOT EXECUTED
12a873: c3 ret <== NOT EXECUTED
0012a984 <fat_file_mark_removed>:
void
fat_file_mark_removed(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
12a984: 55 push %ebp <== NOT EXECUTED
12a985: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12a987: 57 push %edi <== NOT EXECUTED
12a988: 56 push %esi <== NOT EXECUTED
12a989: 53 push %ebx <== NOT EXECUTED
12a98a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12a98d: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
12a990: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12a993: 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) +
12a996: 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)
12a999: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
12a99c: 74 02 je 12a9a0 <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)) )
12a99e: 85 c0 test %eax,%eax <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
12a9a0: 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 );
12a9a3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12a9a6: 53 push %ebx <== NOT EXECUTED
12a9a7: e8 88 90 fe ff call 113a34 <_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 );
12a9ac: 58 pop %eax <== NOT EXECUTED
12a9ad: 5a pop %edx <== NOT EXECUTED
12a9ae: 53 push %ebx <== NOT EXECUTED
12a9af: 89 f8 mov %edi,%eax <== NOT EXECUTED
12a9b1: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
12a9b4: 83 e0 01 and $0x1,%eax <== NOT EXECUTED
12a9b7: 8d 14 00 lea (%eax,%eax,1),%edx <== NOT EXECUTED
12a9ba: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
12a9bd: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
12a9c0: 03 46 68 add 0x68(%esi),%eax <== NOT EXECUTED
12a9c3: 50 push %eax <== NOT EXECUTED
12a9c4: e8 47 90 fe ff call 113a10 <_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;
12a9c9: 80 4b 30 01 orb $0x1,0x30(%ebx) <== NOT EXECUTED
12a9cd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12a9d0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a9d3: 5b pop %ebx <== NOT EXECUTED
12a9d4: 5e pop %esi <== NOT EXECUTED
12a9d5: 5f pop %edi <== NOT EXECUTED
12a9d6: c9 leave <== NOT EXECUTED
12a9d7: c3 ret <== NOT EXECUTED
0012b258 <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
)
{
12b258: 55 push %ebp <== NOT EXECUTED
12b259: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12b25b: 57 push %edi <== NOT EXECUTED
12b25c: 56 push %esi <== NOT EXECUTED
12b25d: 53 push %ebx <== NOT EXECUTED
12b25e: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
12b261: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12b264: 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) +
12b267: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
12b26a: 8b 02 mov (%edx),%eax <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
12b26c: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
12b26f: 74 1a je 12b28b <fat_file_open+0x33> <== 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)) )
12b271: 85 c0 test %eax,%eax <== NOT EXECUTED
12b273: 0f 84 97 01 00 00 je 12b410 <fat_file_open+0x1b8> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12b279: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
12b27c: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
12b280: d3 e0 shl %cl,%eax <== NOT EXECUTED
12b282: 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) <<
12b285: 0f b6 4b 03 movzbl 0x3(%ebx),%ecx <== NOT EXECUTED
12b289: d3 e0 shl %cl,%eax <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
12b28b: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
12b28e: 8b 51 04 mov 0x4(%ecx),%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) +
12b291: 89 d6 mov %edx,%esi <== NOT EXECUTED
12b293: c1 ee 09 shr $0x9,%esi <== NOT EXECUTED
12b296: 01 f0 add %esi,%eax <== NOT EXECUTED
12b298: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
12b29b: c1 ea 05 shr $0x5,%edx <== NOT EXECUTED
12b29e: 83 e2 0f and $0xf,%edx <== NOT EXECUTED
12b2a1: 8d 14 10 lea (%eax,%edx,1),%edx <== 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;
12b2a4: 89 d0 mov %edx,%eax <== NOT EXECUTED
12b2a6: 83 e0 01 and $0x1,%eax <== NOT EXECUTED
12b2a9: 8d 0c 00 lea (%eax,%eax,1),%ecx <== NOT EXECUTED
12b2ac: 8d 04 01 lea (%ecx,%eax,1),%eax <== NOT EXECUTED
12b2af: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
12b2b2: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
12b2b5: 8b 4b 64 mov 0x64(%ebx),%ecx <== NOT EXECUTED
12b2b8: 01 c1 add %eax,%ecx <== NOT EXECUTED
12b2ba: 8b 01 mov (%ecx),%eax <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
12b2bc: 83 c1 04 add $0x4,%ecx <== NOT EXECUTED
12b2bf: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )
12b2c2: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
12b2c4: 75 35 jne 12b2fb <fat_file_open+0xa3> <== NOT EXECUTED
12b2c6: eb 50 jmp 12b318 <fat_file_open+0xc0> <== 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)) )
12b2c8: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
12b2cc: 74 39 je 12b307 <fat_file_open+0xaf> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
12b2ce: 8b 73 1c mov 0x1c(%ebx),%esi <== 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) <<
12b2d1: 0f b6 4b 03 movzbl 0x3(%ebx),%ecx <== NOT EXECUTED
12b2d5: d3 e6 shl %cl,%esi <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
12b2d7: 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)
12b2da: 89 f9 mov %edi,%ecx <== NOT EXECUTED
12b2dc: c1 e9 09 shr $0x9,%ecx <== NOT EXECUTED
12b2df: 01 ce add %ecx,%esi <== NOT EXECUTED
12b2e1: c1 e6 04 shl $0x4,%esi <== NOT EXECUTED
12b2e4: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
12b2e7: 83 e7 0f and $0xf,%edi <== NOT EXECUTED
12b2ea: 01 fe add %edi,%esi <== NOT EXECUTED
12b2ec: 39 f2 cmp %esi,%edx <== NOT EXECUTED
12b2ee: 0f 84 30 01 00 00 je 12b424 <fat_file_open+0x1cc> <== NOT EXECUTED
{
*ret = (void *)the_node;
return 0;
}
}
the_node = the_node->next;
12b2f4: 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) ; )
12b2f6: 39 45 e4 cmp %eax,-0x1c(%ebp) <== NOT EXECUTED
12b2f9: 74 1d je 12b318 <fat_file_open+0xc0> <== 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) +
12b2fb: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
12b2fe: 83 fe 01 cmp $0x1,%esi <== NOT EXECUTED
12b301: 74 d4 je 12b2d7 <fat_file_open+0x7f> <== 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)) )
12b303: 85 f6 test %esi,%esi <== NOT EXECUTED
12b305: 74 c1 je 12b2c8 <fat_file_open+0x70> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12b307: 83 ee 02 sub $0x2,%esi <== NOT EXECUTED
12b30a: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
12b30e: d3 e6 shl %cl,%esi <== NOT EXECUTED
12b310: 03 73 30 add 0x30(%ebx),%esi <== NOT EXECUTED
12b313: eb bc jmp 12b2d1 <fat_file_open+0x79> <== NOT EXECUTED
12b315: 8d 76 00 lea 0x0(%esi),%esi <== 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;
12b318: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
12b31b: 03 4b 68 add 0x68(%ebx),%ecx <== NOT EXECUTED
12b31e: 8b 01 mov (%ecx),%eax <== NOT EXECUTED
12b320: 83 c1 04 add $0x4,%ecx <== NOT EXECUTED
12b323: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )
12b326: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
12b328: 75 3d jne 12b367 <fat_file_open+0x10f> <== NOT EXECUTED
12b32a: 66 90 xchg %ax,%ax <== NOT EXECUTED
12b32c: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
12b333: eb 5f jmp 12b394 <fat_file_open+0x13c> <== NOT EXECUTED
12b335: 8d 76 00 lea 0x0(%esi),%esi <== 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)) )
12b338: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
12b33c: 74 35 je 12b373 <fat_file_open+0x11b> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
12b33e: 8b 73 1c mov 0x1c(%ebx),%esi <== 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) <<
12b341: 0f b6 4b 03 movzbl 0x3(%ebx),%ecx <== NOT EXECUTED
12b345: d3 e6 shl %cl,%esi <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
12b347: 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)
12b34a: 89 f9 mov %edi,%ecx <== NOT EXECUTED
12b34c: c1 e9 09 shr $0x9,%ecx <== NOT EXECUTED
12b34f: 01 ce add %ecx,%esi <== NOT EXECUTED
12b351: c1 e6 04 shl $0x4,%esi <== NOT EXECUTED
12b354: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
12b357: 83 e7 0f and $0xf,%edi <== NOT EXECUTED
12b35a: 01 fe add %edi,%esi <== NOT EXECUTED
12b35c: 39 f2 cmp %esi,%edx <== NOT EXECUTED
12b35e: 74 24 je 12b384 <fat_file_open+0x12c> <== NOT EXECUTED
{
*ret = (void *)the_node;
return 0;
}
}
the_node = the_node->next;
12b360: 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) ; )
12b362: 39 45 e4 cmp %eax,-0x1c(%ebp) <== NOT EXECUTED
12b365: 74 c5 je 12b32c <fat_file_open+0xd4> <== 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) +
12b367: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
12b36a: 83 fe 01 cmp $0x1,%esi <== NOT EXECUTED
12b36d: 74 d8 je 12b347 <fat_file_open+0xef> <== 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)) )
12b36f: 85 f6 test %esi,%esi <== NOT EXECUTED
12b371: 74 c5 je 12b338 <fat_file_open+0xe0> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12b373: 83 ee 02 sub $0x2,%esi <== NOT EXECUTED
12b376: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
12b37a: d3 e6 shl %cl,%esi <== NOT EXECUTED
12b37c: 03 73 30 add 0x30(%ebx),%esi <== NOT EXECUTED
12b37f: eb c0 jmp 12b341 <fat_file_open+0xe9> <== NOT EXECUTED
12b381: 8d 76 00 lea 0x0(%esi),%esi <== 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)
{
if ( ((key2) == 0) || ((key2) == ffd->ino) )
12b384: 85 d2 test %edx,%edx <== NOT EXECUTED
12b386: 74 05 je 12b38d <fat_file_open+0x135> <== NOT EXECUTED
12b388: 3b 50 0c cmp 0xc(%eax),%edx <== NOT EXECUTED
12b38b: 75 d3 jne 12b360 <fat_file_open+0x108> <== 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) ; )
12b38d: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%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));
12b394: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b397: 6a 44 push $0x44 <== NOT EXECUTED
12b399: 89 55 d8 mov %edx,-0x28(%ebp) <== NOT EXECUTED
12b39c: e8 67 3a fe ff call 10ee08 <malloc> <== NOT EXECUTED
12b3a1: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
12b3a4: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
12b3a7: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
if ( lfat_fd == NULL )
12b3a9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b3ac: 85 c0 test %eax,%eax <== NOT EXECUTED
12b3ae: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
12b3b1: 0f 84 b9 00 00 00 je 12b470 <fat_file_open+0x218> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
memset(lfat_fd, 0, sizeof(fat_file_fd_t));
12b3b7: b9 44 00 00 00 mov $0x44,%ecx <== NOT EXECUTED
12b3bc: 31 c0 xor %eax,%eax <== NOT EXECUTED
12b3be: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
12b3c1: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
lfat_fd->links_num = 1;
12b3c3: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12b3c6: c7 40 08 01 00 00 00 movl $0x1,0x8(%eax) <== NOT EXECUTED
lfat_fd->flags &= ~FAT_FILE_REMOVED;
12b3cd: 80 60 30 fe andb $0xfe,0x30(%eax) <== NOT EXECUTED
lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
12b3d1: c7 40 3c ff ff ff ff movl $0xffffffff,0x3c(%eax) <== NOT EXECUTED
lfat_fd->dir_pos = *dir_pos;
12b3d8: 89 c7 mov %eax,%edi <== NOT EXECUTED
12b3da: 83 c7 20 add $0x20,%edi <== NOT EXECUTED
12b3dd: b1 04 mov $0x4,%cl <== NOT EXECUTED
12b3df: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
12b3e2: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
if ( rc != RC_OK )
12b3e4: 8b 75 dc mov -0x24(%ebp),%esi <== NOT EXECUTED
12b3e7: 85 f6 test %esi,%esi <== NOT EXECUTED
12b3e9: 74 4d je 12b438 <fat_file_open+0x1e0> <== NOT EXECUTED
lfat_fd->ino = key;
12b3eb: 89 50 0c mov %edx,0xc(%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 );
12b3ee: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12b3f1: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12b3f4: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12b3f7: 03 43 64 add 0x64(%ebx),%eax <== NOT EXECUTED
12b3fa: 50 push %eax <== NOT EXECUTED
12b3fb: e8 10 86 fe ff call 113a10 <_Chain_Append> <== NOT EXECUTED
12b400: 31 c0 xor %eax,%eax <== NOT EXECUTED
/*
* other fields of fat-file descriptor will be initialized on upper
* level
*/
return RC_OK;
12b402: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12b405: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12b408: 5b pop %ebx <== NOT EXECUTED
12b409: 5e pop %esi <== NOT EXECUTED
12b40a: 5f pop %edi <== NOT EXECUTED
12b40b: c9 leave <== NOT EXECUTED
12b40c: c3 ret <== NOT EXECUTED
12b40d: 8d 76 00 lea 0x0(%esi),%esi <== 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)) )
12b410: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
12b414: 0f 84 5f fe ff ff je 12b279 <fat_file_open+0x21> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
12b41a: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
12b41d: e9 63 fe ff ff jmp 12b285 <fat_file_open+0x2d> <== NOT EXECUTED
12b422: 66 90 xchg %ax,%ax <== 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;
12b424: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
12b427: 89 02 mov %eax,(%edx) <== NOT EXECUTED
lfat_fd->links_num++;
12b429: ff 40 08 incl 0x8(%eax) <== NOT EXECUTED
12b42c: 31 c0 xor %eax,%eax <== NOT EXECUTED
* other fields of fat-file descriptor will be initialized on upper
* level
*/
return RC_OK;
}
12b42e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12b431: 5b pop %ebx <== NOT EXECUTED
12b432: 5e pop %esi <== NOT EXECUTED
12b433: 5f pop %edi <== NOT EXECUTED
12b434: c9 leave <== NOT EXECUTED
12b435: c3 ret <== NOT EXECUTED
12b436: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( rc != RC_OK )
lfat_fd->ino = key;
else
{
lfat_fd->ino = fat_get_unique_ino(mt_entry);
12b438: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b43b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12b43e: e8 79 00 00 00 call 12b4bc <fat_get_unique_ino> <== NOT EXECUTED
12b443: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
12b446: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
if ( lfat_fd->ino == 0 )
12b449: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b44c: 85 c0 test %eax,%eax <== NOT EXECUTED
12b44e: 75 9e jne 12b3ee <fat_file_open+0x196> <== NOT EXECUTED
{
free((*fat_fd));
12b450: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b453: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
12b456: ff 31 pushl (%ecx) <== NOT EXECUTED
12b458: e8 0b 34 fe ff call 10e868 <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 );
12b45d: e8 2a b3 01 00 call 14678c <__errno> <== NOT EXECUTED
12b462: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
12b468: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
12b46b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b46e: eb 95 jmp 12b405 <fat_file_open+0x1ad> <== 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));
if ( lfat_fd == NULL )
rtems_set_errno_and_return_minus_one( ENOMEM );
12b470: e8 17 b3 01 00 call 14678c <__errno> <== NOT EXECUTED
12b475: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
12b47b: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
12b47e: eb 85 jmp 12b405 <fat_file_open+0x1ad> <== NOT EXECUTED
0012af94 <fat_file_read>:
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
uint8_t *buf
)
{
12af94: 55 push %ebp <== NOT EXECUTED
12af95: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12af97: 57 push %edi <== NOT EXECUTED
12af98: 56 push %esi <== NOT EXECUTED
12af99: 53 push %ebx <== NOT EXECUTED
12af9a: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
12af9d: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
int rc = RC_OK;
ssize_t ret = 0;
fat_fs_info_t *fs_info = mt_entry->fs_info;
12afa0: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12afa3: 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)
12afa6: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
12afa9: 85 c9 test %ecx,%ecx <== NOT EXECUTED
12afab: 0f 84 33 01 00 00 je 12b0e4 <fat_file_read+0x150> <== NOT EXECUTED
/*
* >= because start is offset and computed from 0 and file_size
* computed from 1
*/
if ( start >= fat_fd->fat_file_size )
12afb1: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
12afb4: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED
12afb7: 39 f8 cmp %edi,%eax <== NOT EXECUTED
12afb9: 0f 86 25 01 00 00 jbe 12b0e4 <fat_file_read+0x150> <== NOT EXECUTED
return FAT_EOF;
if ((count > fat_fd->fat_file_size) ||
12afbf: 39 45 14 cmp %eax,0x14(%ebp) <== NOT EXECUTED
12afc2: 0f 86 28 01 00 00 jbe 12b0f0 <fat_file_read+0x15c> <== NOT EXECUTED
(start > fat_fd->fat_file_size - count))
count = fat_fd->fat_file_size - start;
12afc8: 29 f8 sub %edi,%eax <== NOT EXECUTED
12afca: 89 45 14 mov %eax,0x14(%ebp) <== 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;
12afcd: 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)) &&
12afd4: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
12afd7: 83 79 20 01 cmpl $0x1,0x20(%ecx) <== NOT EXECUTED
12afdb: 0f 84 23 01 00 00 je 12b104 <fat_file_read+0x170> <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
12afe1: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
12afe5: 89 fe mov %edi,%esi <== NOT EXECUTED
12afe7: d3 ee shr %cl,%esi <== NOT EXECUTED
12afe9: 89 75 c4 mov %esi,-0x3c(%ebp) <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
12afec: 66 8b 73 06 mov 0x6(%ebx),%si <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
12aff0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12aff3: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12aff6: 50 push %eax <== NOT EXECUTED
12aff7: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
12affa: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
12affd: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12b000: e8 d3 f7 ff ff call 12a7d8 <fat_file_lseek> <== NOT EXECUTED
if (rc != RC_OK)
12b005: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b008: 85 c0 test %eax,%eax <== NOT EXECUTED
12b00a: 0f 85 d6 00 00 00 jne 12b0e6 <fat_file_read+0x152> <== NOT EXECUTED
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
12b010: 0f b7 f6 movzwl %si,%esi <== NOT EXECUTED
12b013: 4e dec %esi <== NOT EXECUTED
12b014: 21 fe and %edi,%esi <== NOT EXECUTED
12b016: 89 75 c8 mov %esi,-0x38(%ebp) <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
12b019: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
12b01c: 85 f6 test %esi,%esi <== NOT EXECUTED
12b01e: 0f 84 58 01 00 00 je 12b17c <fat_file_read+0x1e8> <== NOT EXECUTED
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
12b024: 8a 53 02 mov 0x2(%ebx),%dl <== NOT EXECUTED
12b027: 88 55 cf mov %dl,-0x31(%ebp) <== NOT EXECUTED
12b02a: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
12b02c: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
12b02f: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
12b032: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
12b039: 89 df mov %ebx,%edi <== NOT EXECUTED
12b03b: eb 74 jmp 12b0b1 <fat_file_read+0x11d> <== NOT EXECUTED
12b03d: 8d 76 00 lea 0x0(%esi),%esi <== 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)) )
12b040: f6 46 0a 03 testb $0x3,0xa(%esi) <== NOT EXECUTED
12b044: 0f 84 87 00 00 00 je 12b0d1 <fat_file_read+0x13d> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
12b04a: 8b 46 1c mov 0x1c(%esi),%eax <== 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_read(mt_entry, sec, byte, c, buf + cmpltd);
12b04d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b050: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
12b053: 03 4d d0 add -0x30(%ebp),%ecx <== NOT EXECUTED
12b056: 51 push %ecx <== NOT EXECUTED
12b057: 53 push %ebx <== NOT EXECUTED
12b058: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
12b05b: 4a dec %edx <== NOT EXECUTED
12b05c: 23 55 d4 and -0x2c(%ebp),%edx <== NOT EXECUTED
12b05f: 52 push %edx <== NOT EXECUTED
12b060: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
12b063: 8a 4d cf mov -0x31(%ebp),%cl <== NOT EXECUTED
12b066: d3 ea shr %cl,%edx <== NOT EXECUTED
12b068: 01 d0 add %edx,%eax <== NOT EXECUTED
12b06a: 50 push %eax <== NOT EXECUTED
12b06b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12b06e: e8 11 0c 00 00 call 12bc84 <_fat_block_read> <== NOT EXECUTED
if ( ret < 0 )
12b073: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12b076: 85 c0 test %eax,%eax <== NOT EXECUTED
12b078: 0f 88 ce 00 00 00 js 12b14c <fat_file_read+0x1b8> <== NOT EXECUTED
return -1;
count -= c;
cmpltd += c;
save_cln = cur_cln;
12b07e: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
12b081: 50 push %eax <== NOT EXECUTED
12b082: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12b085: 50 push %eax <== NOT EXECUTED
12b086: 56 push %esi <== NOT EXECUTED
12b087: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12b08a: e8 55 7a 01 00 call 142ae4 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
12b08f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b092: 85 c0 test %eax,%eax <== NOT EXECUTED
12b094: 75 50 jne 12b0e6 <fat_file_read+0x152> <== NOT EXECUTED
ret = _fat_block_read(mt_entry, sec, byte, c, buf + cmpltd);
if ( ret < 0 )
return -1;
count -= c;
cmpltd += c;
12b096: 01 5d d0 add %ebx,-0x30(%ebp) <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
12b099: 29 5d 14 sub %ebx,0x14(%ebp) <== NOT EXECUTED
12b09c: 0f 84 b2 00 00 00 je 12b154 <fat_file_read+0x1c0> <== NOT EXECUTED
12b0a2: 8a 57 02 mov 0x2(%edi),%dl <== NOT EXECUTED
12b0a5: 88 55 cf mov %dl,-0x31(%ebp) <== NOT EXECUTED
12b0a8: 8b 17 mov (%edi),%edx <== NOT EXECUTED
12b0aa: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
{
c = MIN(count, (fs_info->vol.bpc - ofs));
12b0b1: 0f b7 5f 06 movzwl 0x6(%edi),%ebx <== NOT EXECUTED
12b0b5: 2b 5d d4 sub -0x2c(%ebp),%ebx <== NOT EXECUTED
12b0b8: 3b 5d 14 cmp 0x14(%ebp),%ebx <== NOT EXECUTED
12b0bb: 76 03 jbe 12b0c0 <fat_file_read+0x12c> <== NOT EXECUTED
12b0bd: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
12b0c0: 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;
12b0c3: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
12b0c6: 8b 71 34 mov 0x34(%ecx),%esi <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
12b0c9: 85 c0 test %eax,%eax <== NOT EXECUTED
12b0cb: 0f 84 6f ff ff ff je 12b040 <fat_file_read+0xac> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12b0d1: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
12b0d4: 0f b6 4e 05 movzbl 0x5(%esi),%ecx <== NOT EXECUTED
12b0d8: d3 e0 shl %cl,%eax <== NOT EXECUTED
12b0da: 03 46 30 add 0x30(%esi),%eax <== NOT EXECUTED
12b0dd: e9 6b ff ff ff jmp 12b04d <fat_file_read+0xb9> <== NOT EXECUTED
12b0e2: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
return cmpltd;
12b0e4: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
12b0e6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12b0e9: 5b pop %ebx <== NOT EXECUTED
12b0ea: 5e pop %esi <== NOT EXECUTED
12b0eb: 5f pop %edi <== NOT EXECUTED
12b0ec: c9 leave <== NOT EXECUTED
12b0ed: c3 ret <== NOT EXECUTED
12b0ee: 66 90 xchg %ax,%ax <== NOT EXECUTED
* computed from 1
*/
if ( start >= fat_fd->fat_file_size )
return FAT_EOF;
if ((count > fat_fd->fat_file_size) ||
12b0f0: 89 c2 mov %eax,%edx <== NOT EXECUTED
12b0f2: 2b 55 14 sub 0x14(%ebp),%edx <== NOT EXECUTED
12b0f5: 39 d7 cmp %edx,%edi <== NOT EXECUTED
12b0f7: 0f 86 d0 fe ff ff jbe 12afcd <fat_file_read+0x39> <== NOT EXECUTED
12b0fd: e9 c6 fe ff ff jmp 12afc8 <fat_file_read+0x34> <== NOT EXECUTED
12b102: 66 90 xchg %ax,%ax <== NOT EXECUTED
(start > fat_fd->fat_file_size - count))
count = fat_fd->fat_file_size - start;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
12b104: 8b 51 24 mov 0x24(%ecx),%edx <== NOT EXECUTED
12b107: 85 d2 test %edx,%edx <== NOT EXECUTED
12b109: 0f 85 d2 fe ff ff jne 12afe1 <fat_file_read+0x4d> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
12b10f: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
12b113: 0f 84 c8 fe ff ff je 12afe1 <fat_file_read+0x4d> <== NOT EXECUTED
{
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln);
12b119: 8b 41 1c mov 0x1c(%ecx),%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)) )
12b11c: 85 c0 test %eax,%eax <== NOT EXECUTED
12b11e: 75 69 jne 12b189 <fat_file_read+0x1f5> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
12b120: 8b 43 1c mov 0x1c(%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);
12b123: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12b126: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
12b129: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
12b12c: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
12b12f: 4a dec %edx <== NOT EXECUTED
12b130: 21 fa and %edi,%edx <== NOT EXECUTED
12b132: 52 push %edx <== NOT EXECUTED
12b133: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
12b137: d3 ef shr %cl,%edi <== NOT EXECUTED
12b139: 01 f8 add %edi,%eax <== NOT EXECUTED
12b13b: 50 push %eax <== NOT EXECUTED
12b13c: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12b13f: e8 40 0b 00 00 call 12bc84 <_fat_block_read> <== NOT EXECUTED
if ( ret < 0 )
12b144: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12b147: 85 c0 test %eax,%eax <== NOT EXECUTED
12b149: 79 9b jns 12b0e6 <fat_file_read+0x152> <== NOT EXECUTED
12b14b: 90 nop <== NOT EXECUTED
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
return cmpltd;
12b14c: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12b151: eb 93 jmp 12b0e6 <fat_file_read+0x152> <== NOT EXECUTED
12b153: 90 nop <== NOT EXECUTED
12b154: 89 fb mov %edi,%ebx <== NOT EXECUTED
12b156: 89 f7 mov %esi,%edi <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
12b158: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
ofs = 0;
}
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
12b15b: 8b 75 c8 mov -0x38(%ebp),%esi <== NOT EXECUTED
12b15e: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
12b161: 8d 54 0e ff lea -0x1(%esi,%ecx,1),%edx <== NOT EXECUTED
12b165: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
12b169: d3 ea shr %cl,%edx <== NOT EXECUTED
12b16b: 03 55 c4 add -0x3c(%ebp),%edx <== NOT EXECUTED
12b16e: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
12b171: 89 51 34 mov %edx,0x34(%ecx) <== NOT EXECUTED
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
12b174: 89 79 38 mov %edi,0x38(%ecx) <== NOT EXECUTED
return cmpltd;
12b177: e9 6a ff ff ff jmp 12b0e6 <fat_file_read+0x152> <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
12b17c: 31 c0 xor %eax,%eax <== NOT EXECUTED
12b17e: 31 ff xor %edi,%edi <== NOT EXECUTED
12b180: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
12b187: eb d2 jmp 12b15b <fat_file_read+0x1c7> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12b189: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
12b18c: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
12b190: d3 e0 shl %cl,%eax <== NOT EXECUTED
12b192: 03 43 30 add 0x30(%ebx),%eax <== NOT EXECUTED
12b195: eb 8c jmp 12b123 <fat_file_read+0x18f> <== NOT EXECUTED
0012a734 <fat_file_reopen>:
* RETURNS:
* RC_OK
*/
int
fat_file_reopen(fat_file_fd_t *fat_fd)
{
12a734: 55 push %ebp <== NOT EXECUTED
12a735: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12a737: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
fat_fd->links_num++;
12a73a: ff 40 08 incl 0x8(%eax) <== NOT EXECUTED
return RC_OK;
}
12a73d: 31 c0 xor %eax,%eax <== NOT EXECUTED
12a73f: c9 leave <== NOT EXECUTED
12a740: c3 ret <== NOT EXECUTED
0012a744 <fat_file_size>:
int
fat_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
12a744: 55 push %ebp <== NOT EXECUTED
12a745: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12a747: 57 push %edi <== NOT EXECUTED
12a748: 56 push %esi <== NOT EXECUTED
12a749: 53 push %ebx <== NOT EXECUTED
12a74a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
12a74d: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
12a750: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12a753: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
uint32_t cur_cln = fat_fd->cln;
12a756: 8b 7e 1c mov 0x1c(%esi),%edi <== NOT EXECUTED
uint32_t save_cln = 0;
/* Have we requested root dir size for FAT12/16? */
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
12a759: 83 7e 20 01 cmpl $0x1,0x20(%esi) <== NOT EXECUTED
12a75d: 74 61 je 12a7c0 <fat_file_size+0x7c> <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->vol.rdir_size;
return rc;
}
fat_fd->fat_file_size = 0;
12a75f: c7 46 18 00 00 00 00 movl $0x0,0x18(%esi) <== NOT EXECUTED
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
12a766: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
12a769: 21 f8 and %edi,%eax <== NOT EXECUTED
12a76b: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
12a76e: 73 3b jae 12a7ab <fat_file_size+0x67> <== 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;
12a770: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
12a773: eb 19 jmp 12a78e <fat_file_size+0x4a> <== NOT EXECUTED
12a775: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
if ( rc != RC_OK )
return rc;
fat_fd->fat_file_size += fs_info->vol.bpc;
12a778: 0f b7 43 06 movzwl 0x6(%ebx),%eax <== NOT EXECUTED
12a77c: 01 46 18 add %eax,0x18(%esi) <== NOT EXECUTED
return rc;
}
fat_fd->fat_file_size = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
12a77f: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12a782: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
12a785: 21 c2 and %eax,%edx <== NOT EXECUTED
12a787: 3b 53 10 cmp 0x10(%ebx),%edx <== NOT EXECUTED
12a78a: 73 24 jae 12a7b0 <fat_file_size+0x6c> <== NOT EXECUTED
12a78c: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
12a78e: 50 push %eax <== NOT EXECUTED
12a78f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12a792: 50 push %eax <== NOT EXECUTED
12a793: 57 push %edi <== NOT EXECUTED
12a794: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12a797: e8 48 83 01 00 call 142ae4 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
12a79c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12a79f: 85 c0 test %eax,%eax <== NOT EXECUTED
12a7a1: 74 d5 je 12a778 <fat_file_size+0x34> <== NOT EXECUTED
fat_fd->fat_file_size += fs_info->vol.bpc;
}
fat_fd->map.last_cln = save_cln;
return rc;
}
12a7a3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a7a6: 5b pop %ebx <== NOT EXECUTED
12a7a7: 5e pop %esi <== NOT EXECUTED
12a7a8: 5f pop %edi <== NOT EXECUTED
12a7a9: c9 leave <== NOT EXECUTED
12a7aa: c3 ret <== NOT EXECUTED
return rc;
}
fat_fd->fat_file_size = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
12a7ab: 31 ff xor %edi,%edi <== NOT EXECUTED
12a7ad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if ( rc != RC_OK )
return rc;
fat_fd->fat_file_size += fs_info->vol.bpc;
}
fat_fd->map.last_cln = save_cln;
12a7b0: 89 7e 3c mov %edi,0x3c(%esi) <== NOT EXECUTED
12a7b3: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rc;
}
12a7b5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a7b8: 5b pop %ebx <== NOT EXECUTED
12a7b9: 5e pop %esi <== NOT EXECUTED
12a7ba: 5f pop %edi <== NOT EXECUTED
12a7bb: c9 leave <== NOT EXECUTED
12a7bc: c3 ret <== NOT EXECUTED
12a7bd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = fat_fd->cln;
uint32_t save_cln = 0;
/* Have we requested root dir size for FAT12/16? */
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
12a7c0: 8b 56 24 mov 0x24(%esi),%edx <== NOT EXECUTED
12a7c3: 85 d2 test %edx,%edx <== NOT EXECUTED
12a7c5: 75 98 jne 12a75f <fat_file_size+0x1b> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
12a7c7: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
12a7cb: 74 92 je 12a75f <fat_file_size+0x1b> <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->vol.rdir_size;
12a7cd: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
12a7d0: 89 46 18 mov %eax,0x18(%esi) <== NOT EXECUTED
12a7d3: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rc;
12a7d5: eb cc jmp 12a7a3 <fat_file_size+0x5f> <== NOT EXECUTED
0012aa74 <fat_file_truncate>:
fat_file_truncate(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
uint32_t new_length
)
{
12aa74: 55 push %ebp <== NOT EXECUTED
12aa75: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12aa77: 57 push %edi <== NOT EXECUTED
12aa78: 56 push %esi <== NOT EXECUTED
12aa79: 53 push %ebx <== NOT EXECUTED
12aa7a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
12aa7d: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
12aa80: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
12aa83: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
12aa86: 8b 5e 34 mov 0x34(%esi),%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 )
12aa89: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
12aa8c: 39 d0 cmp %edx,%eax <== NOT EXECUTED
12aa8e: 0f 86 9c 00 00 00 jbe 12ab30 <fat_file_truncate+0xbc><== 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;
12aa94: 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;
12aa9b: 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);
12aaa2: 85 c0 test %eax,%eax <== NOT EXECUTED
12aaa4: 0f 84 90 00 00 00 je 12ab3a <fat_file_truncate+0xc6><== NOT EXECUTED
cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2;
12aaaa: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
12aaae: 0f b7 5b 06 movzwl 0x6(%ebx),%ebx <== NOT EXECUTED
12aab2: 8d 5c 1a ff lea -0x1(%edx,%ebx,1),%ebx <== NOT EXECUTED
12aab6: d3 eb shr %cl,%ebx <== NOT EXECUTED
if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size)
12aab8: 89 da mov %ebx,%edx <== NOT EXECUTED
12aaba: d3 e2 shl %cl,%edx <== NOT EXECUTED
12aabc: 39 d0 cmp %edx,%eax <== NOT EXECUTED
12aabe: 76 70 jbe 12ab30 <fat_file_truncate+0xbc><== NOT EXECUTED
return RC_OK;
if (cl_start != 0)
12aac0: 85 db test %ebx,%ebx <== NOT EXECUTED
12aac2: 74 1a je 12aade <fat_file_truncate+0x6a><== NOT EXECUTED
{
rc = fat_file_lseek(mt_entry, fat_fd, cl_start - 1, &new_last_cln);
12aac4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12aac7: 8d 4b ff lea -0x1(%ebx),%ecx <== NOT EXECUTED
12aaca: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
12aacd: 50 push %eax <== NOT EXECUTED
12aace: 89 fa mov %edi,%edx <== NOT EXECUTED
12aad0: 89 f0 mov %esi,%eax <== NOT EXECUTED
12aad2: e8 01 fd ff ff call 12a7d8 <fat_file_lseek> <== NOT EXECUTED
if (rc != RC_OK)
12aad7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12aada: 85 c0 test %eax,%eax <== NOT EXECUTED
12aadc: 75 54 jne 12ab32 <fat_file_truncate+0xbe><== NOT EXECUTED
return rc;
}
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
12aade: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12aae1: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12aae4: 50 push %eax <== NOT EXECUTED
12aae5: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
12aae7: 89 fa mov %edi,%edx <== NOT EXECUTED
12aae9: 89 f0 mov %esi,%eax <== NOT EXECUTED
12aaeb: e8 e8 fc ff ff call 12a7d8 <fat_file_lseek> <== NOT EXECUTED
if (rc != RC_OK)
12aaf0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12aaf3: 85 c0 test %eax,%eax <== NOT EXECUTED
12aaf5: 75 3b jne 12ab32 <fat_file_truncate+0xbe><== NOT EXECUTED
return rc;
rc = fat_free_fat_clusters_chain(mt_entry, cur_cln);
12aaf7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12aafa: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12aafd: 56 push %esi <== NOT EXECUTED
12aafe: e8 65 81 01 00 call 142c68 <fat_free_fat_clusters_chain><== NOT EXECUTED
if (rc != RC_OK)
12ab03: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12ab06: 85 c0 test %eax,%eax <== NOT EXECUTED
12ab08: 75 28 jne 12ab32 <fat_file_truncate+0xbe><== NOT EXECUTED
return rc;
if (cl_start != 0)
12ab0a: 85 db test %ebx,%ebx <== NOT EXECUTED
12ab0c: 74 24 je 12ab32 <fat_file_truncate+0xbe><== NOT EXECUTED
{
rc = fat_set_fat_cluster(mt_entry, new_last_cln, FAT_GENFAT_EOC);
12ab0e: 50 push %eax <== NOT EXECUTED
12ab0f: 6a ff push $0xffffffff <== NOT EXECUTED
12ab11: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
12ab14: 56 push %esi <== NOT EXECUTED
12ab15: e8 a2 7d 01 00 call 1428bc <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
12ab1a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12ab1d: 85 c0 test %eax,%eax <== NOT EXECUTED
12ab1f: 75 11 jne 12ab32 <fat_file_truncate+0xbe><== NOT EXECUTED
return rc;
fat_fd->map.file_cln = cl_start - 1;
12ab21: 4b dec %ebx <== NOT EXECUTED
12ab22: 89 5f 34 mov %ebx,0x34(%edi) <== NOT EXECUTED
fat_fd->map.disk_cln = new_last_cln;
12ab25: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
12ab28: 89 57 38 mov %edx,0x38(%edi) <== NOT EXECUTED
fat_fd->map.last_cln = new_last_cln;
12ab2b: 89 57 3c mov %edx,0x3c(%edi) <== NOT EXECUTED
12ab2e: eb 02 jmp 12ab32 <fat_file_truncate+0xbe><== NOT EXECUTED
12ab30: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return RC_OK;
}
12ab32: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12ab35: 5b pop %ebx <== NOT EXECUTED
12ab36: 5e pop %esi <== NOT EXECUTED
12ab37: 5f pop %edi <== NOT EXECUTED
12ab38: c9 leave <== NOT EXECUTED
12ab39: c3 ret <== NOT EXECUTED
if ( new_length >= fat_fd->fat_file_size )
return rc;
assert(fat_fd->fat_file_size);
12ab3a: 68 cb 43 16 00 push $0x1643cb <== NOT EXECUTED
12ab3f: 68 33 44 16 00 push $0x164433 <== NOT EXECUTED
12ab44: 68 6d 02 00 00 push $0x26d <== NOT EXECUTED
12ab49: 68 e4 43 16 00 push $0x1643e4 <== NOT EXECUTED
12ab4e: e8 91 36 fe ff call 10e1e4 <__assert_func> <== NOT EXECUTED
0012ad28 <fat_file_write>:
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
const uint8_t *buf
)
{
12ad28: 55 push %ebp <== NOT EXECUTED
12ad29: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12ad2b: 57 push %edi <== NOT EXECUTED
12ad2c: 56 push %esi <== NOT EXECUTED
12ad2d: 53 push %ebx <== NOT EXECUTED
12ad2e: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
12ad31: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
12ad34: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
int rc = 0;
ssize_t ret = 0;
fat_fs_info_t *fs_info = mt_entry->fs_info;
12ad37: 8b 5e 34 mov 0x34(%esi),%ebx <== NOT EXECUTED
uint32_t save_ofs;
uint32_t sec = 0;
uint32_t byte = 0;
uint32_t c = 0;
if ( count == 0 )
12ad3a: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
12ad3d: 85 c9 test %ecx,%ecx <== NOT EXECUTED
12ad3f: 0f 84 eb 01 00 00 je 12af30 <fat_file_write+0x208> <== 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;
12ad45: 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;
12ad4c: 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 )
12ad53: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12ad56: 39 78 18 cmp %edi,0x18(%eax) <== NOT EXECUTED
12ad59: 0f 82 dd 01 00 00 jb 12af3c <fat_file_write+0x214> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
if ((count > fat_fd->size_limit) ||
12ad5f: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
12ad62: 8b 42 14 mov 0x14(%edx),%eax <== NOT EXECUTED
12ad65: 39 45 14 cmp %eax,0x14(%ebp) <== NOT EXECUTED
12ad68: 0f 87 ce 01 00 00 ja 12af3c <fat_file_write+0x214> <== NOT EXECUTED
12ad6e: 2b 45 14 sub 0x14(%ebp),%eax <== NOT EXECUTED
12ad71: 39 c7 cmp %eax,%edi <== NOT EXECUTED
12ad73: 0f 87 c3 01 00 00 ja 12af3c <fat_file_write+0x214> <== NOT EXECUTED
(start > fat_fd->size_limit - count))
rtems_set_errno_and_return_minus_one( EIO );
rc = fat_file_extend(mt_entry, fat_fd, start + count, &c);
12ad79: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
12ad7c: 01 fa add %edi,%edx <== NOT EXECUTED
12ad7e: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
12ad81: 50 push %eax <== NOT EXECUTED
12ad82: 52 push %edx <== NOT EXECUTED
12ad83: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
12ad86: 56 push %esi <== NOT EXECUTED
12ad87: 89 55 bc mov %edx,-0x44(%ebp) <== NOT EXECUTED
12ad8a: e8 c5 fd ff ff call 12ab54 <fat_file_extend> <== NOT EXECUTED
if (rc != RC_OK)
12ad8f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12ad92: 85 c0 test %eax,%eax <== NOT EXECUTED
12ad94: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
12ad97: 0f 85 8b 01 00 00 jne 12af28 <fat_file_write+0x200> <== NOT EXECUTED
/*
* check whether there was enough room on device to locate
* file of 'start + count' bytes
*/
if (c != (start + count))
12ad9d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12ada0: 39 c2 cmp %eax,%edx <== NOT EXECUTED
12ada2: 74 05 je 12ada9 <fat_file_write+0x81> <== NOT EXECUTED
count = c - start;
12ada4: 29 f8 sub %edi,%eax <== NOT EXECUTED
12ada6: 89 45 14 mov %eax,0x14(%ebp) <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
12ada9: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
12adac: 83 79 20 01 cmpl $0x1,0x20(%ecx) <== NOT EXECUTED
12adb0: 0f 84 12 01 00 00 je 12aec8 <fat_file_write+0x1a0> <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
12adb6: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
12adba: 89 f8 mov %edi,%eax <== NOT EXECUTED
12adbc: d3 e8 shr %cl,%eax <== NOT EXECUTED
12adbe: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
12adc1: 66 8b 53 06 mov 0x6(%ebx),%dx <== NOT EXECUTED
12adc5: 66 89 55 d4 mov %dx,-0x2c(%ebp) <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
12adc9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12adcc: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
12adcf: 51 push %ecx <== NOT EXECUTED
12add0: 89 c1 mov %eax,%ecx <== NOT EXECUTED
12add2: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
12add5: 89 f0 mov %esi,%eax <== NOT EXECUTED
12add7: e8 fc f9 ff ff call 12a7d8 <fat_file_lseek> <== NOT EXECUTED
if (rc != RC_OK)
12addc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12addf: 85 c0 test %eax,%eax <== NOT EXECUTED
12ade1: 0f 85 41 01 00 00 jne 12af28 <fat_file_write+0x200> <== NOT EXECUTED
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
12ade7: 0f b7 55 d4 movzwl -0x2c(%ebp),%edx <== NOT EXECUTED
12adeb: 4a dec %edx <== NOT EXECUTED
12adec: 21 fa and %edi,%edx <== NOT EXECUTED
12adee: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
12adf1: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
12adf4: 85 c9 test %ecx,%ecx <== NOT EXECUTED
12adf6: 0f 84 7a 01 00 00 je 12af76 <fat_file_write+0x24e> <== NOT EXECUTED
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
12adfc: 8a 43 02 mov 0x2(%ebx),%al <== NOT EXECUTED
12adff: 88 45 cb mov %al,-0x35(%ebp) <== NOT EXECUTED
12ae02: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
12ae04: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
12ae07: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
12ae0a: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
12ae11: 89 5d cc mov %ebx,-0x34(%ebp) <== NOT EXECUTED
12ae14: 89 f7 mov %esi,%edi <== NOT EXECUTED
12ae16: eb 7d jmp 12ae95 <fat_file_write+0x16d> <== NOT EXECUTED
12ae18: f6 46 0a 03 testb $0x3,0xa(%esi) <== NOT EXECUTED
12ae1c: 0f 84 93 00 00 00 je 12aeb5 <fat_file_write+0x18d> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
12ae22: 8b 5e 1c mov 0x1c(%esi),%ebx <== NOT EXECUTED
return rc;
while (count > 0)
{
c = MIN(count, (fs_info->vol.bpc - ofs));
12ae25: 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);
12ae28: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12ae2b: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
12ae2e: 03 4d d0 add -0x30(%ebp),%ecx <== NOT EXECUTED
12ae31: 51 push %ecx <== NOT EXECUTED
12ae32: 50 push %eax <== NOT EXECUTED
12ae33: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
12ae36: 4a dec %edx <== NOT EXECUTED
12ae37: 23 55 d4 and -0x2c(%ebp),%edx <== NOT EXECUTED
12ae3a: 52 push %edx <== NOT EXECUTED
12ae3b: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
12ae3e: 8a 4d cb mov -0x35(%ebp),%cl <== NOT EXECUTED
12ae41: d3 e8 shr %cl,%eax <== NOT EXECUTED
12ae43: 01 c3 add %eax,%ebx <== NOT EXECUTED
12ae45: 53 push %ebx <== NOT EXECUTED
12ae46: 57 push %edi <== NOT EXECUTED
12ae47: e8 ec 0a 00 00 call 12b938 <_fat_block_write> <== NOT EXECUTED
if ( ret < 0 )
12ae4c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12ae4f: 85 c0 test %eax,%eax <== NOT EXECUTED
12ae51: 0f 88 c9 00 00 00 js 12af20 <fat_file_write+0x1f8> <== NOT EXECUTED
return -1;
count -= c;
12ae57: 8b 5d e0 mov -0x20(%ebp),%ebx <== NOT EXECUTED
cmpltd += c;
save_cln = cur_cln;
12ae5a: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
12ae5d: 50 push %eax <== NOT EXECUTED
12ae5e: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12ae61: 50 push %eax <== NOT EXECUTED
12ae62: 56 push %esi <== NOT EXECUTED
12ae63: 57 push %edi <== NOT EXECUTED
12ae64: e8 7b 7c 01 00 call 142ae4 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
12ae69: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12ae6c: 85 c0 test %eax,%eax <== NOT EXECUTED
12ae6e: 0f 85 b4 00 00 00 jne 12af28 <fat_file_write+0x200> <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd);
if ( ret < 0 )
return -1;
count -= c;
cmpltd += c;
12ae74: 01 5d d0 add %ebx,-0x30(%ebp) <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
12ae77: 29 5d 14 sub %ebx,0x14(%ebp) <== NOT EXECUTED
12ae7a: 0f 84 d0 00 00 00 je 12af50 <fat_file_write+0x228> <== NOT EXECUTED
12ae80: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
12ae83: 8a 52 02 mov 0x2(%edx),%dl <== NOT EXECUTED
12ae86: 88 55 cb mov %dl,-0x35(%ebp) <== NOT EXECUTED
12ae89: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
12ae8c: 8b 11 mov (%ecx),%edx <== NOT EXECUTED
12ae8e: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
{
c = MIN(count, (fs_info->vol.bpc - ofs));
12ae95: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
12ae98: 0f b7 41 06 movzwl 0x6(%ecx),%eax <== NOT EXECUTED
12ae9c: 2b 45 d4 sub -0x2c(%ebp),%eax <== NOT EXECUTED
12ae9f: 3b 45 14 cmp 0x14(%ebp),%eax <== NOT EXECUTED
12aea2: 76 03 jbe 12aea7 <fat_file_write+0x17f> <== NOT EXECUTED
12aea4: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
12aea7: 8b 5d e4 mov -0x1c(%ebp),%ebx <== 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;
12aeaa: 8b 77 34 mov 0x34(%edi),%esi <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
12aead: 85 db test %ebx,%ebx <== NOT EXECUTED
12aeaf: 0f 84 63 ff ff ff je 12ae18 <fat_file_write+0xf0> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12aeb5: 83 eb 02 sub $0x2,%ebx <== NOT EXECUTED
12aeb8: 0f b6 4e 05 movzbl 0x5(%esi),%ecx <== NOT EXECUTED
12aebc: d3 e3 shl %cl,%ebx <== NOT EXECUTED
12aebe: 03 5e 30 add 0x30(%esi),%ebx <== NOT EXECUTED
12aec1: e9 5f ff ff ff jmp 12ae25 <fat_file_write+0xfd> <== NOT EXECUTED
12aec6: 66 90 xchg %ax,%ax <== NOT EXECUTED
* file of 'start + count' bytes
*/
if (c != (start + count))
count = c - start;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
12aec8: 8b 51 24 mov 0x24(%ecx),%edx <== NOT EXECUTED
12aecb: 85 d2 test %edx,%edx <== NOT EXECUTED
12aecd: 0f 85 e3 fe ff ff jne 12adb6 <fat_file_write+0x8e> <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
12aed3: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
12aed7: 0f 84 d9 fe ff ff je 12adb6 <fat_file_write+0x8e> <== NOT EXECUTED
{
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln);
12aedd: 8b 41 1c mov 0x1c(%ecx),%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;
12aee0: 8b 56 34 mov 0x34(%esi),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
12aee3: 85 c0 test %eax,%eax <== NOT EXECUTED
12aee5: 0f 85 96 00 00 00 jne 12af81 <fat_file_write+0x259> <== NOT EXECUTED
12aeeb: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
12aeef: 0f 84 8c 00 00 00 je 12af81 <fat_file_write+0x259> <== NOT EXECUTED
return fs_info->vol.rdir_loc;
12aef5: 8b 42 1c mov 0x1c(%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);
12aef8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12aefb: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
12aefe: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
12af01: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
12af04: 4a dec %edx <== NOT EXECUTED
12af05: 21 fa and %edi,%edx <== NOT EXECUTED
12af07: 52 push %edx <== NOT EXECUTED
12af08: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
12af0c: d3 ef shr %cl,%edi <== NOT EXECUTED
12af0e: 01 f8 add %edi,%eax <== NOT EXECUTED
12af10: 50 push %eax <== NOT EXECUTED
12af11: 56 push %esi <== NOT EXECUTED
12af12: e8 21 0a 00 00 call 12b938 <_fat_block_write> <== NOT EXECUTED
if ( ret < 0 )
12af17: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12af1a: 85 c0 test %eax,%eax <== NOT EXECUTED
12af1c: 79 0a jns 12af28 <fat_file_write+0x200> <== NOT EXECUTED
12af1e: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
return cmpltd;
12af20: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12af25: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
12af28: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12af2b: 5b pop %ebx <== NOT EXECUTED
12af2c: 5e pop %esi <== NOT EXECUTED
12af2d: 5f pop %edi <== NOT EXECUTED
12af2e: c9 leave <== NOT EXECUTED
12af2f: c3 ret <== NOT EXECUTED
uint32_t save_ofs;
uint32_t sec = 0;
uint32_t byte = 0;
uint32_t c = 0;
if ( count == 0 )
12af30: 31 c0 xor %eax,%eax <== NOT EXECUTED
fat_fd->map.file_cln = cl_start +
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
return cmpltd;
}
12af32: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12af35: 5b pop %ebx <== NOT EXECUTED
12af36: 5e pop %esi <== NOT EXECUTED
12af37: 5f pop %edi <== NOT EXECUTED
12af38: c9 leave <== NOT EXECUTED
12af39: c3 ret <== NOT EXECUTED
12af3a: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( start > fat_fd->fat_file_size )
rtems_set_errno_and_return_minus_one( EIO );
if ((count > fat_fd->size_limit) ||
(start > fat_fd->size_limit - count))
rtems_set_errno_and_return_minus_one( EIO );
12af3c: e8 4b b8 01 00 call 14678c <__errno> <== NOT EXECUTED
12af41: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
12af47: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12af4c: eb da jmp 12af28 <fat_file_write+0x200> <== NOT EXECUTED
12af4e: 66 90 xchg %ax,%ax <== NOT EXECUTED
12af50: 89 f2 mov %esi,%edx <== NOT EXECUTED
12af52: 8b 5d cc mov -0x34(%ebp),%ebx <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
12af55: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
ofs = 0;
}
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
12af58: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
12af5b: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
12af5e: 8d 74 39 ff lea -0x1(%ecx,%edi,1),%esi <== NOT EXECUTED
12af62: 0f b6 4b 08 movzbl 0x8(%ebx),%ecx <== NOT EXECUTED
12af66: d3 ee shr %cl,%esi <== NOT EXECUTED
12af68: 03 75 c0 add -0x40(%ebp),%esi <== NOT EXECUTED
12af6b: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
12af6e: 89 77 34 mov %esi,0x34(%edi) <== NOT EXECUTED
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
12af71: 89 57 38 mov %edx,0x38(%edi) <== NOT EXECUTED
return cmpltd;
12af74: eb b2 jmp 12af28 <fat_file_write+0x200> <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
12af76: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
12af7d: 31 d2 xor %edx,%edx <== NOT EXECUTED
12af7f: eb d7 jmp 12af58 <fat_file_write+0x230> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
12af81: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
12af84: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
12af88: d3 e0 shl %cl,%eax <== NOT EXECUTED
12af8a: 03 42 30 add 0x30(%edx),%eax <== NOT EXECUTED
12af8d: e9 66 ff ff ff jmp 12aef8 <fat_file_write+0x1d0> <== NOT EXECUTED
00142c68 <fat_free_fat_clusters_chain>:
int
fat_free_fat_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t chain
)
{
142c68: 55 push %ebp <== NOT EXECUTED
142c69: 89 e5 mov %esp,%ebp <== NOT EXECUTED
142c6b: 57 push %edi <== NOT EXECUTED
142c6c: 56 push %esi <== NOT EXECUTED
142c6d: 53 push %ebx <== NOT EXECUTED
142c6e: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
142c71: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
int rc = RC_OK, rc1 = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
142c74: 8b 77 34 mov 0x34(%edi),%esi <== NOT EXECUTED
uint32_t cur_cln = chain;
uint32_t next_cln = 0;
142c77: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
uint32_t freed_cls_cnt = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
142c7e: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
142c81: 23 46 0c and 0xc(%esi),%eax <== NOT EXECUTED
142c84: 39 46 10 cmp %eax,0x10(%esi) <== NOT EXECUTED
142c87: 0f 86 a9 00 00 00 jbe 142d36 <fat_free_fat_clusters_chain+0xce><== NOT EXECUTED
142c8d: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
142c90: 31 d2 xor %edx,%edx <== NOT EXECUTED
142c92: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
142c99: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
142c9c: 89 d6 mov %edx,%esi <== NOT EXECUTED
142c9e: eb 25 jmp 142cc5 <fat_free_fat_clusters_chain+0x5d><== NOT EXECUTED
fat_buf_release(fs_info);
return rc;
}
rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE);
142ca0: 50 push %eax <== NOT EXECUTED
142ca1: 6a 00 push $0x0 <== NOT EXECUTED
142ca3: 53 push %ebx <== NOT EXECUTED
142ca4: 57 push %edi <== NOT EXECUTED
142ca5: e8 12 fc ff ff call 1428bc <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
142caa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142cad: 85 c0 test %eax,%eax <== NOT EXECUTED
142caf: 74 03 je 142cb4 <fat_free_fat_clusters_chain+0x4c><== NOT EXECUTED
142cb1: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
rc1 = rc;
freed_cls_cnt++;
142cb4: 46 inc %esi <== NOT EXECUTED
cur_cln = next_cln;
142cb5: 8b 5d e4 mov -0x1c(%ebp),%ebx <== 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)
142cb8: 89 d8 mov %ebx,%eax <== NOT EXECUTED
142cba: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
142cbd: 23 42 0c and 0xc(%edx),%eax <== NOT EXECUTED
142cc0: 3b 42 10 cmp 0x10(%edx),%eax <== NOT EXECUTED
142cc3: 73 3f jae 142d04 <fat_free_fat_clusters_chain+0x9c><== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln);
142cc5: 52 push %edx <== NOT EXECUTED
142cc6: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
142cc9: 50 push %eax <== NOT EXECUTED
142cca: 53 push %ebx <== NOT EXECUTED
142ccb: 57 push %edi <== NOT EXECUTED
142ccc: e8 13 fe ff ff call 142ae4 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
142cd1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142cd4: 85 c0 test %eax,%eax <== NOT EXECUTED
142cd6: 74 c8 je 142ca0 <fat_free_fat_clusters_chain+0x38><== NOT EXECUTED
142cd8: 89 f2 mov %esi,%edx <== NOT EXECUTED
142cda: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED
142cdd: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
142cdf: 8b 46 40 mov 0x40(%esi),%eax <== NOT EXECUTED
142ce2: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
142ce5: 74 06 je 142ced <fat_free_fat_clusters_chain+0x85><== NOT EXECUTED
fs_info->vol.free_cls += freed_cls_cnt;
142ce7: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
142cea: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED
fat_buf_release(fs_info);
142ced: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
142cf0: 56 push %esi <== NOT EXECUTED
142cf1: e8 96 88 fe ff call 12b58c <fat_buf_release> <== NOT EXECUTED
return rc;
142cf6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
fat_buf_release(fs_info);
if (rc1 != RC_OK)
return rc1;
return RC_OK;
}
142cf9: 89 f8 mov %edi,%eax <== NOT EXECUTED
142cfb: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142cfe: 5b pop %ebx <== NOT EXECUTED
142cff: 5e pop %esi <== NOT EXECUTED
142d00: 5f pop %edi <== NOT EXECUTED
142d01: c9 leave <== NOT EXECUTED
142d02: c3 ret <== NOT EXECUTED
142d03: 90 nop <== NOT EXECUTED
142d04: 89 f2 mov %esi,%edx <== NOT EXECUTED
142d06: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED
freed_cls_cnt++;
cur_cln = next_cln;
}
fs_info->vol.next_cl = chain;
142d09: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
142d0c: 89 46 44 mov %eax,0x44(%esi) <== NOT EXECUTED
if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
142d0f: 8b 46 40 mov 0x40(%esi),%eax <== NOT EXECUTED
142d12: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
142d15: 74 06 je 142d1d <fat_free_fat_clusters_chain+0xb5><== NOT EXECUTED
fs_info->vol.free_cls += freed_cls_cnt;
142d17: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
142d1a: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED
fat_buf_release(fs_info);
142d1d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
142d20: 56 push %esi <== NOT EXECUTED
142d21: e8 66 88 fe ff call 12b58c <fat_buf_release> <== NOT EXECUTED
142d26: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
142d29: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (rc1 != RC_OK)
return rc1;
return RC_OK;
}
142d2c: 89 f8 mov %edi,%eax <== NOT EXECUTED
142d2e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142d31: 5b pop %ebx <== NOT EXECUTED
142d32: 5e pop %esi <== NOT EXECUTED
142d33: 5f pop %edi <== NOT EXECUTED
142d34: c9 leave <== NOT EXECUTED
142d35: c3 ret <== 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)
142d36: 31 d2 xor %edx,%edx <== NOT EXECUTED
142d38: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
142d3f: eb c8 jmp 142d09 <fat_free_fat_clusters_chain+0xa1><== NOT EXECUTED
0012b480 <fat_free_unique_ino>:
void
fat_free_unique_ino(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t ino
)
{
12b480: 55 push %ebp <== NOT EXECUTED
12b481: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12b483: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
12b486: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12b489: 8b 50 34 mov 0x34(%eax),%edx <== NOT EXECUTED
FAT_SET_UNIQ_INO_FREE((ino - fs_info->uino_base), fs_info->uino);
12b48c: 2b 4a 78 sub 0x78(%edx),%ecx <== NOT EXECUTED
12b48f: 89 c8 mov %ecx,%eax <== NOT EXECUTED
12b491: c1 e8 03 shr $0x3,%eax <== NOT EXECUTED
12b494: 03 42 6c add 0x6c(%edx),%eax <== NOT EXECUTED
12b497: 83 e1 07 and $0x7,%ecx <== NOT EXECUTED
12b49a: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
12b49f: d3 e2 shl %cl,%edx <== NOT EXECUTED
12b4a1: f7 d2 not %edx <== NOT EXECUTED
12b4a3: 20 10 and %dl,(%eax) <== NOT EXECUTED
}
12b4a5: c9 leave <== NOT EXECUTED
12b4a6: c3 ret <== NOT EXECUTED
00142ae4 <fat_get_fat_cluster>:
fat_get_fat_cluster(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
uint32_t *ret_val
)
{
142ae4: 55 push %ebp <== NOT EXECUTED
142ae5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
142ae7: 57 push %edi <== NOT EXECUTED
142ae8: 56 push %esi <== NOT EXECUTED
142ae9: 53 push %ebx <== NOT EXECUTED
142aea: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
142aed: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
142af0: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
142af3: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
rtems_bdbuf_buffer *block0 = NULL;
142af6: 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)) )
142afd: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED
142b00: 76 67 jbe 142b69 <fat_get_fat_cluster+0x85><== NOT EXECUTED
142b02: 8b 43 34 mov 0x34(%ebx),%eax <== NOT EXECUTED
142b05: 40 inc %eax <== NOT EXECUTED
142b06: 39 c2 cmp %eax,%edx <== NOT EXECUTED
142b08: 77 5f ja 142b69 <fat_get_fat_cluster+0x85><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
142b0a: 0f b6 43 0a movzbl 0xa(%ebx),%eax <== NOT EXECUTED
142b0e: a8 01 test $0x1,%al <== NOT EXECUTED
142b10: 75 72 jne 142b84 <fat_get_fat_cluster+0xa0><== NOT EXECUTED
142b12: a8 02 test $0x2,%al <== NOT EXECUTED
142b14: 74 76 je 142b8c <fat_get_fat_cluster+0xa8><== NOT EXECUTED
142b16: 8d 04 12 lea (%edx,%edx,1),%eax <== NOT EXECUTED
142b19: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
142b1c: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
142b20: 89 c6 mov %eax,%esi <== NOT EXECUTED
142b22: d3 ee shr %cl,%esi <== NOT EXECUTED
142b24: 03 73 4c add 0x4c(%ebx),%esi <== NOT EXECUTED
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
142b27: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
142b29: 66 89 45 d0 mov %ax,-0x30(%ebp) <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
142b2d: 8d 7d e4 lea -0x1c(%ebp),%edi <== NOT EXECUTED
142b30: 57 push %edi <== NOT EXECUTED
142b31: 6a 01 push $0x1 <== NOT EXECUTED
142b33: 56 push %esi <== NOT EXECUTED
142b34: 53 push %ebx <== NOT EXECUTED
142b35: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
142b38: e8 bf 8b fe ff call 12b6fc <fat_buf_access> <== NOT EXECUTED
if (rc != RC_OK)
142b3d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142b40: 85 c0 test %eax,%eax <== NOT EXECUTED
142b42: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
142b45: 75 32 jne 142b79 <fat_get_fat_cluster+0x95><== 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);
142b47: 0f b7 45 d0 movzwl -0x30(%ebp),%eax <== NOT EXECUTED
142b4b: 48 dec %eax <== NOT EXECUTED
142b4c: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
142b4f: 21 c8 and %ecx,%eax <== NOT EXECUTED
142b51: 89 45 c4 mov %eax,-0x3c(%ebp) <== 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 )
142b54: 8a 4b 0a mov 0xa(%ebx),%cl <== NOT EXECUTED
142b57: 80 f9 02 cmp $0x2,%cl <== NOT EXECUTED
142b5a: 74 48 je 142ba4 <fat_get_fat_cluster+0xc0><== NOT EXECUTED
142b5c: 80 f9 04 cmp $0x4,%cl <== NOT EXECUTED
142b5f: 0f 84 a3 00 00 00 je 142c08 <fat_get_fat_cluster+0x124><== NOT EXECUTED
142b65: fe c9 dec %cl <== NOT EXECUTED
142b67: 74 57 je 142bc0 <fat_get_fat_cluster+0xdc><== NOT EXECUTED
*ret_val = *((uint32_t *)(block0->buffer + ofs));
*ret_val = CF_LE_L(*ret_val);
break;
default:
rtems_set_errno_and_return_minus_one(EIO);
142b69: e8 1e 3c 00 00 call 14678c <__errno> <== NOT EXECUTED
142b6e: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
142b74: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
break;
}
return RC_OK;
}
142b79: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142b7c: 5b pop %ebx <== NOT EXECUTED
142b7d: 5e pop %esi <== NOT EXECUTED
142b7e: 5f pop %edi <== NOT EXECUTED
142b7f: c9 leave <== NOT EXECUTED
142b80: c3 ret <== NOT EXECUTED
142b81: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* sanity check */
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) +
142b84: 89 d0 mov %edx,%eax <== NOT EXECUTED
142b86: d1 e8 shr %eax <== NOT EXECUTED
142b88: 01 d0 add %edx,%eax <== NOT EXECUTED
142b8a: eb 8d jmp 142b19 <fat_get_fat_cluster+0x35><== NOT EXECUTED
142b8c: 8d 0c 95 00 00 00 00 lea 0x0(,%edx,4),%ecx <== NOT EXECUTED
142b93: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
142b96: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
142b9a: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED
142b9d: d3 ee shr %cl,%esi <== NOT EXECUTED
142b9f: 03 73 4c add 0x4c(%ebx),%esi <== NOT EXECUTED
142ba2: eb 83 jmp 142b27 <fat_get_fat_cluster+0x43><== NOT EXECUTED
*ret_val = (*ret_val) & FAT_FAT12_MASK;
break;
case FAT_FAT16:
*ret_val = *((uint16_t *)(block0->buffer + ofs));
*ret_val = CF_LE_W(*ret_val);
142ba4: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
142ba7: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
142baa: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
142bad: 0f b7 04 0a movzwl (%edx,%ecx,1),%eax <== NOT EXECUTED
142bb1: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
142bb4: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
142bb6: 31 c0 xor %eax,%eax <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
break;
}
return RC_OK;
}
142bb8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142bbb: 5b pop %ebx <== NOT EXECUTED
142bbc: 5e pop %esi <== NOT EXECUTED
142bbd: 5f pop %edi <== NOT EXECUTED
142bbe: c9 leave <== NOT EXECUTED
142bbf: c3 ret <== 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)));
142bc0: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
142bc3: 8b 49 20 mov 0x20(%ecx),%ecx <== NOT EXECUTED
142bc6: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
142bc9: 0f b6 04 01 movzbl (%ecx,%eax,1),%eax <== NOT EXECUTED
142bcd: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
142bd0: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
142bd3: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
if ( ofs == (fs_info->vol.bps - 1) )
142bd5: 0f b7 0b movzwl (%ebx),%ecx <== NOT EXECUTED
142bd8: 49 dec %ecx <== NOT EXECUTED
142bd9: 3b 4d c4 cmp -0x3c(%ebp),%ecx <== NOT EXECUTED
142bdc: 74 5a je 142c38 <fat_get_fat_cluster+0x154><== NOT EXECUTED
*ret_val |= (*((uint8_t *)(block0->buffer)))<<8;
}
else
{
*ret_val |= (*((uint8_t *)(block0->buffer + ofs + 1)))<<8;
142bde: 8b 5d d0 mov -0x30(%ebp),%ebx <== NOT EXECUTED
142be1: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
142be4: 0f b6 44 0b 01 movzbl 0x1(%ebx,%ecx,1),%eax <== NOT EXECUTED
142be9: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
142bec: 0b 45 d4 or -0x2c(%ebp),%eax <== NOT EXECUTED
142bef: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
142bf2: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
}
if ( FAT_CLUSTER_IS_ODD(cln) )
142bf4: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
142bf7: 74 2b je 142c24 <fat_get_fat_cluster+0x140><== NOT EXECUTED
*ret_val = (*ret_val) >> FAT12_SHIFT;
142bf9: c1 e8 04 shr $0x4,%eax <== NOT EXECUTED
142bfc: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
142bff: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
142c01: 31 c0 xor %eax,%eax <== NOT EXECUTED
142c03: e9 71 ff ff ff jmp 142b79 <fat_get_fat_cluster+0x95><== NOT EXECUTED
*ret_val = CF_LE_W(*ret_val);
break;
case FAT_FAT32:
*ret_val = *((uint32_t *)(block0->buffer + ofs));
*ret_val = CF_LE_L(*ret_val);
142c08: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
142c0b: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
142c0e: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
142c11: 8b 04 0a mov (%edx,%ecx,1),%eax <== NOT EXECUTED
142c14: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
142c17: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
142c19: 31 c0 xor %eax,%eax <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
break;
}
return RC_OK;
}
142c1b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142c1e: 5b pop %ebx <== NOT EXECUTED
142c1f: 5e pop %esi <== NOT EXECUTED
142c20: 5f pop %edi <== NOT EXECUTED
142c21: c9 leave <== NOT EXECUTED
142c22: c3 ret <== NOT EXECUTED
142c23: 90 nop <== NOT EXECUTED
}
if ( FAT_CLUSTER_IS_ODD(cln) )
*ret_val = (*ret_val) >> FAT12_SHIFT;
else
*ret_val = (*ret_val) & FAT_FAT12_MASK;
142c24: 25 ff 0f 00 00 and $0xfff,%eax <== NOT EXECUTED
142c29: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
142c2c: 89 02 mov %eax,(%edx) <== NOT EXECUTED
142c2e: 31 c0 xor %eax,%eax <== NOT EXECUTED
142c30: e9 44 ff ff ff jmp 142b79 <fat_get_fat_cluster+0x95><== NOT EXECUTED
142c35: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* align problems for some architectures
*/
*ret_val = (*((uint8_t *)(block0->buffer + ofs)));
if ( ofs == (fs_info->vol.bps - 1) )
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
142c38: 57 push %edi <== NOT EXECUTED
142c39: 6a 01 push $0x1 <== NOT EXECUTED
142c3b: 46 inc %esi <== NOT EXECUTED
142c3c: 56 push %esi <== NOT EXECUTED
142c3d: 53 push %ebx <== NOT EXECUTED
142c3e: e8 b9 8a fe ff call 12b6fc <fat_buf_access> <== NOT EXECUTED
&block0);
if (rc != RC_OK)
142c43: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142c46: 85 c0 test %eax,%eax <== NOT EXECUTED
142c48: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
142c4b: 0f 85 28 ff ff ff jne 142b79 <fat_get_fat_cluster+0x95><== NOT EXECUTED
return rc;
*ret_val |= (*((uint8_t *)(block0->buffer)))<<8;
142c51: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
142c54: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
142c57: 0f b6 00 movzbl (%eax),%eax <== NOT EXECUTED
142c5a: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
142c5d: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
142c60: 0b 03 or (%ebx),%eax <== NOT EXECUTED
142c62: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
142c64: eb 8e jmp 142bf4 <fat_get_fat_cluster+0x110><== NOT EXECUTED
0012b4bc <fat_get_unique_ino>:
* 0 means FAILED !!!
*
*/
uint32_t
fat_get_unique_ino(rtems_filesystem_mount_table_entry_t *mt_entry)
{
12b4bc: 55 push %ebp <== NOT EXECUTED
12b4bd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12b4bf: 57 push %edi <== NOT EXECUTED
12b4c0: 56 push %esi <== NOT EXECUTED
12b4c1: 53 push %ebx <== NOT EXECUTED
12b4c2: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
register fat_fs_info_t *fs_info = mt_entry->fs_info;
12b4c5: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12b4c8: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
12b4cb: 8b 43 74 mov 0x74(%ebx),%eax <== NOT EXECUTED
12b4ce: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
uint32_t j = 0;
bool resrc_unsuff = false;
while (!resrc_unsuff)
{
for (j = 0; j < fs_info->uino_pool_size; j++)
12b4d1: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12b4d4: 85 c0 test %eax,%eax <== NOT EXECUTED
12b4d6: 74 5d je 12b535 <fat_get_unique_ino+0x79><== NOT EXECUTED
{
if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino))
12b4d8: 8b 53 70 mov 0x70(%ebx),%edx <== NOT EXECUTED
12b4db: 89 d0 mov %edx,%eax <== NOT EXECUTED
12b4dd: c1 e8 03 shr $0x3,%eax <== NOT EXECUTED
12b4e0: 03 43 6c add 0x6c(%ebx),%eax <== NOT EXECUTED
12b4e3: 8a 08 mov (%eax),%cl <== NOT EXECUTED
12b4e5: 88 4d e3 mov %cl,-0x1d(%ebp) <== NOT EXECUTED
12b4e8: 89 d1 mov %edx,%ecx <== NOT EXECUTED
12b4ea: 83 e1 07 and $0x7,%ecx <== NOT EXECUTED
12b4ed: 0f be 75 e3 movsbl -0x1d(%ebp),%esi <== NOT EXECUTED
12b4f1: d3 fe sar %cl,%esi <== NOT EXECUTED
12b4f3: 83 e6 01 and $0x1,%esi <== NOT EXECUTED
12b4f6: 74 50 je 12b548 <fat_get_unique_ino+0x8c><== NOT EXECUTED
{
FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino);
return (fs_info->uino_base + fs_info->index);
12b4f8: 31 ff xor %edi,%edi <== NOT EXECUTED
12b4fa: eb 20 jmp 12b51c <fat_get_unique_ino+0x60><== 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))
12b4fc: 8b 53 70 mov 0x70(%ebx),%edx <== NOT EXECUTED
12b4ff: 89 d0 mov %edx,%eax <== NOT EXECUTED
12b501: c1 e8 03 shr $0x3,%eax <== NOT EXECUTED
12b504: 03 43 6c add 0x6c(%ebx),%eax <== NOT EXECUTED
12b507: 8a 08 mov (%eax),%cl <== NOT EXECUTED
12b509: 88 4d e3 mov %cl,-0x1d(%ebp) <== NOT EXECUTED
12b50c: 89 d1 mov %edx,%ecx <== NOT EXECUTED
12b50e: 83 e1 07 and $0x7,%ecx <== NOT EXECUTED
12b511: 0f be 75 e3 movsbl -0x1d(%ebp),%esi <== NOT EXECUTED
12b515: d3 fe sar %cl,%esi <== NOT EXECUTED
12b517: 83 e6 01 and $0x1,%esi <== NOT EXECUTED
12b51a: 74 2c je 12b548 <fat_get_unique_ino+0x8c><== NOT EXECUTED
{
FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino);
return (fs_info->uino_base + fs_info->index);
}
fs_info->index++;
12b51c: 42 inc %edx <== NOT EXECUTED
12b51d: 89 53 70 mov %edx,0x70(%ebx) <== NOT EXECUTED
if (fs_info->index >= fs_info->uino_pool_size)
12b520: 39 55 e4 cmp %edx,-0x1c(%ebp) <== NOT EXECUTED
12b523: 77 07 ja 12b52c <fat_get_unique_ino+0x70><== NOT EXECUTED
fs_info->index = 0;
12b525: 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++)
12b52c: 47 inc %edi <== NOT EXECUTED
12b52d: 3b 7d e4 cmp -0x1c(%ebp),%edi <== NOT EXECUTED
12b530: 72 ca jb 12b4fc <fat_get_unique_ino+0x40><== NOT EXECUTED
12b532: 8b 45 e4 mov -0x1c(%ebp),%eax <== 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))
12b535: d1 e0 shl %eax <== NOT EXECUTED
12b537: ba ff ff ff 0f mov $0xfffffff,%edx <== NOT EXECUTED
12b53c: 2b 53 78 sub 0x78(%ebx),%edx <== NOT EXECUTED
12b53f: 39 d0 cmp %edx,%eax <== NOT EXECUTED
12b541: 72 1f jb 12b562 <fat_get_unique_ino+0xa6><== 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))
12b543: 31 c0 xor %eax,%eax <== NOT EXECUTED
12b545: eb 13 jmp 12b55a <fat_get_unique_ino+0x9e><== NOT EXECUTED
12b547: 90 nop <== NOT EXECUTED
{
FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino);
12b548: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
12b54d: d3 e2 shl %cl,%edx <== NOT EXECUTED
12b54f: 0a 55 e3 or -0x1d(%ebp),%dl <== NOT EXECUTED
12b552: 88 10 mov %dl,(%eax) <== NOT EXECUTED
return (fs_info->uino_base + fs_info->index);
12b554: 8b 43 70 mov 0x70(%ebx),%eax <== NOT EXECUTED
12b557: 03 43 78 add 0x78(%ebx),%eax <== NOT EXECUTED
}
else
resrc_unsuff = true;
}
return 0;
}
12b55a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12b55d: 5b pop %ebx <== NOT EXECUTED
12b55e: 5e pop %esi <== NOT EXECUTED
12b55f: 5f pop %edi <== NOT EXECUTED
12b560: c9 leave <== NOT EXECUTED
12b561: c3 ret <== NOT EXECUTED
fs_info->index = 0;
}
if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base))
{
fs_info->uino_pool_size <<= 1;
12b562: 89 43 74 mov %eax,0x74(%ebx) <== NOT EXECUTED
fs_info->uino = realloc(fs_info->uino, fs_info->uino_pool_size);
12b565: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12b568: 50 push %eax <== NOT EXECUTED
12b569: ff 73 6c pushl 0x6c(%ebx) <== NOT EXECUTED
12b56c: e8 2b 46 fe ff call 10fb9c <realloc> <== NOT EXECUTED
12b571: 89 43 6c mov %eax,0x6c(%ebx) <== NOT EXECUTED
if (fs_info->uino != NULL)
12b574: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12b577: 85 c0 test %eax,%eax <== NOT EXECUTED
12b579: 74 c8 je 12b543 <fat_get_unique_ino+0x87><== NOT EXECUTED
fs_info->index = fs_info->uino_pool_size;
12b57b: 8b 43 74 mov 0x74(%ebx),%eax <== NOT EXECUTED
12b57e: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
12b581: 89 43 70 mov %eax,0x70(%ebx) <== NOT EXECUTED
12b584: e9 48 ff ff ff jmp 12b4d1 <fat_get_unique_ino+0x15><== NOT EXECUTED
0012bbc8 <fat_init_clusters_chain>:
int
fat_init_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t start_cln
)
{
12bbc8: 55 push %ebp <== NOT EXECUTED
12bbc9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12bbcb: 57 push %edi <== NOT EXECUTED
12bbcc: 56 push %esi <== NOT EXECUTED
12bbcd: 53 push %ebx <== NOT EXECUTED
12bbce: 83 ec 34 sub $0x34,%esp <== NOT EXECUTED
12bbd1: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
int rc = RC_OK;
ssize_t ret = 0;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
12bbd4: 8b 5e 34 mov 0x34(%esi),%ebx <== NOT EXECUTED
uint32_t cur_cln = start_cln;
12bbd7: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12bbda: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
char *buf;
buf = calloc(fs_info->vol.bpc, sizeof(char));
12bbdd: 6a 01 push $0x1 <== NOT EXECUTED
12bbdf: 0f b7 43 06 movzwl 0x6(%ebx),%eax <== NOT EXECUTED
12bbe3: 50 push %eax <== NOT EXECUTED
12bbe4: e8 23 27 fe ff call 10e30c <calloc> <== NOT EXECUTED
12bbe9: 89 c7 mov %eax,%edi <== NOT EXECUTED
if ( buf == NULL )
12bbeb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bbee: 85 c0 test %eax,%eax <== NOT EXECUTED
12bbf0: 74 7f je 12bc71 <fat_init_clusters_chain+0xa9><== NOT EXECUTED
12bbf2: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
12bbf4: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12bbf7: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
12bbfa: 21 c2 and %eax,%edx <== NOT EXECUTED
12bbfc: 3b 53 10 cmp 0x10(%ebx),%edx <== NOT EXECUTED
12bbff: 73 3f jae 12bc40 <fat_init_clusters_chain+0x78><== NOT EXECUTED
{
ret = fat_cluster_write(mt_entry, cur_cln, buf);
12bc01: 52 push %edx <== NOT EXECUTED
12bc02: 57 push %edi <== NOT EXECUTED
12bc03: 50 push %eax <== NOT EXECUTED
12bc04: 56 push %esi <== NOT EXECUTED
12bc05: e8 6e ff ff ff call 12bb78 <fat_cluster_write> <== NOT EXECUTED
if ( ret == -1 )
12bc0a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bc0d: 40 inc %eax <== NOT EXECUTED
12bc0e: 74 48 je 12bc58 <fat_init_clusters_chain+0x90><== NOT EXECUTED
{
free(buf);
return -1;
}
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
12bc10: 50 push %eax <== NOT EXECUTED
12bc11: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
12bc14: 50 push %eax <== NOT EXECUTED
12bc15: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12bc18: 56 push %esi <== NOT EXECUTED
12bc19: e8 c6 6e 01 00 call 142ae4 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
12bc1e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bc21: 85 c0 test %eax,%eax <== NOT EXECUTED
12bc23: 74 cf je 12bbf4 <fat_init_clusters_chain+0x2c><== NOT EXECUTED
{
free(buf);
12bc25: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12bc28: 57 push %edi <== NOT EXECUTED
12bc29: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
12bc2c: e8 37 2c fe ff call 10e868 <free> <== NOT EXECUTED
return rc;
12bc31: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bc34: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
}
}
free(buf);
return rc;
}
12bc37: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12bc3a: 5b pop %ebx <== NOT EXECUTED
12bc3b: 5e pop %esi <== NOT EXECUTED
12bc3c: 5f pop %edi <== NOT EXECUTED
12bc3d: c9 leave <== NOT EXECUTED
12bc3e: c3 ret <== NOT EXECUTED
12bc3f: 90 nop <== NOT EXECUTED
free(buf);
return rc;
}
}
free(buf);
12bc40: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12bc43: 57 push %edi <== NOT EXECUTED
12bc44: e8 1f 2c fe ff call 10e868 <free> <== NOT EXECUTED
12bc49: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rc;
12bc4b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12bc4e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12bc51: 5b pop %ebx <== NOT EXECUTED
12bc52: 5e pop %esi <== NOT EXECUTED
12bc53: 5f pop %edi <== NOT EXECUTED
12bc54: c9 leave <== NOT EXECUTED
12bc55: c3 ret <== NOT EXECUTED
12bc56: 66 90 xchg %ax,%ax <== NOT EXECUTED
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
{
ret = fat_cluster_write(mt_entry, cur_cln, buf);
if ( ret == -1 )
{
free(buf);
12bc58: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12bc5b: 57 push %edi <== NOT EXECUTED
12bc5c: e8 07 2c fe ff call 10e868 <free> <== NOT EXECUTED
12bc61: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
12bc66: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
free(buf);
return rc;
}
12bc69: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12bc6c: 5b pop %ebx <== NOT EXECUTED
12bc6d: 5e pop %esi <== NOT EXECUTED
12bc6e: 5f pop %edi <== NOT EXECUTED
12bc6f: c9 leave <== NOT EXECUTED
12bc70: c3 ret <== NOT EXECUTED
uint32_t cur_cln = start_cln;
char *buf;
buf = calloc(fs_info->vol.bpc, sizeof(char));
if ( buf == NULL )
rtems_set_errno_and_return_minus_one( EIO );
12bc71: e8 16 ab 01 00 call 14678c <__errno> <== NOT EXECUTED
12bc76: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
12bc7c: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
12bc7f: eb b6 jmp 12bc37 <fat_init_clusters_chain+0x6f><== NOT EXECUTED
0012bd10 <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)
{
12bd10: 55 push %ebp <== NOT EXECUTED
12bd11: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12bd13: 57 push %edi <== NOT EXECUTED
12bd14: 56 push %esi <== NOT EXECUTED
12bd15: 53 push %ebx <== NOT EXECUTED
12bd16: 81 ec e4 00 00 00 sub $0xe4,%esp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
12bd1c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12bd1f: 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;
12bd22: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
rc = stat(mt_entry->dev, &stat_buf);
12bd29: 8d 45 90 lea -0x70(%ebp),%eax <== NOT EXECUTED
12bd2c: 50 push %eax <== NOT EXECUTED
12bd2d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
12bd30: ff 72 70 pushl 0x70(%edx) <== NOT EXECUTED
12bd33: e8 48 41 fe ff call 10fe80 <stat> <== NOT EXECUTED
12bd38: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc == -1)
12bd3a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bd3d: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
12bd40: 0f 84 52 03 00 00 je 12c098 <fat_init_volume_info+0x388><== NOT EXECUTED
return rc;
/* Must be a block device. */
if (!S_ISBLK(stat_buf.st_mode))
12bd46: 8b 45 9c mov -0x64(%ebp),%eax <== NOT EXECUTED
12bd49: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
12bd4e: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
12bd53: 0f 85 5b 05 00 00 jne 12c2b4 <fat_init_volume_info+0x5a4><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTTY);
/* check that device is registred as block device and lock it */
vol->dd = rtems_disk_obtain(stat_buf.st_rdev);
12bd59: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12bd5c: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
12bd5f: ff 75 a8 pushl -0x58(%ebp) <== NOT EXECUTED
12bd62: e8 1d 17 fe ff call 10d484 <rtems_disk_obtain> <== NOT EXECUTED
12bd67: 89 43 5c mov %eax,0x5c(%ebx) <== NOT EXECUTED
if (vol->dd == NULL)
12bd6a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bd6d: 85 c0 test %eax,%eax <== NOT EXECUTED
12bd6f: 0f 84 b2 05 00 00 je 12c327 <fat_init_volume_info+0x617><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
vol->dev = stat_buf.st_rdev;
12bd75: 8b 45 a8 mov -0x58(%ebp),%eax <== NOT EXECUTED
12bd78: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
12bd7b: 89 43 54 mov %eax,0x54(%ebx) <== NOT EXECUTED
12bd7e: 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);
12bd81: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
12bd84: 51 push %ecx <== NOT EXECUTED
12bd85: 6a 00 push $0x0 <== NOT EXECUTED
12bd87: 52 push %edx <== NOT EXECUTED
12bd88: 50 push %eax <== NOT EXECUTED
12bd89: e8 66 07 fe ff call 10c4f4 <rtems_bdbuf_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12bd8e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bd91: 85 c0 test %eax,%eax <== NOT EXECUTED
12bd93: 0f 85 37 05 00 00 jne 12c2d0 <fat_init_volume_info+0x5c0><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EIO);
}
memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE);
12bd99: 8d 95 36 ff ff ff lea -0xca(%ebp),%edx <== NOT EXECUTED
12bd9f: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12bda2: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
12bda5: b9 5a 00 00 00 mov $0x5a,%ecx <== NOT EXECUTED
12bdaa: 89 d7 mov %edx,%edi <== NOT EXECUTED
12bdac: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
sc = rtems_bdbuf_release( block);
12bdae: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12bdb1: 50 push %eax <== NOT EXECUTED
12bdb2: e8 c1 f6 fd ff call 10b478 <rtems_bdbuf_release> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12bdb7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bdba: 85 c0 test %eax,%eax <== NOT EXECUTED
12bdbc: 0f 85 0e 05 00 00 jne 12c2d0 <fat_init_volume_info+0x5c0><== NOT EXECUTED
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EIO );
}
/* Evaluate boot record */
vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec);
12bdc2: 0f b6 85 42 ff ff ff movzbl -0xbe(%ebp),%eax <== NOT EXECUTED
12bdc9: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12bdcc: 0f b6 95 41 ff ff ff movzbl -0xbf(%ebp),%edx <== NOT EXECUTED
12bdd3: 09 c2 or %eax,%edx <== NOT EXECUTED
12bdd5: 66 89 13 mov %dx,(%ebx) <== NOT EXECUTED
if ( (vol->bps != 512) &&
12bdd8: 66 81 fa 00 02 cmp $0x200,%dx <== NOT EXECUTED
12bddd: 0f 84 a1 04 00 00 je 12c284 <fat_init_volume_info+0x574><== NOT EXECUTED
12bde3: 66 81 fa 00 04 cmp $0x400,%dx <== NOT EXECUTED
12bde8: 74 12 je 12bdfc <fat_init_volume_info+0xec><== NOT EXECUTED
12bdea: 66 81 fa 00 08 cmp $0x800,%dx <== NOT EXECUTED
12bdef: 74 0b je 12bdfc <fat_init_volume_info+0xec><== NOT EXECUTED
12bdf1: 66 81 fa 00 10 cmp $0x1000,%dx <== NOT EXECUTED
12bdf6: 0f 85 f7 04 00 00 jne 12c2f3 <fat_init_volume_info+0x5e3><== 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;
12bdfc: 66 c1 ea 09 shr $0x9,%dx <== NOT EXECUTED
12be00: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
12be03: b0 01 mov $0x1,%al <== NOT EXECUTED
12be05: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
i >>= 1, vol->sec_mul++);
12be08: d1 fa sar %edx <== NOT EXECUTED
12be0a: 88 c1 mov %al,%cl <== NOT EXECUTED
12be0c: 40 inc %eax <== 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;
12be0d: f6 c2 01 test $0x1,%dl <== NOT EXECUTED
12be10: 74 f6 je 12be08 <fat_init_volume_info+0xf8><== NOT EXECUTED
12be12: 88 4b 03 mov %cl,0x3(%ebx) <== NOT EXECUTED
i >>= 1, vol->sec_mul++);
for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;
12be15: c6 43 02 00 movb $0x0,0x2(%ebx) <== NOT EXECUTED
12be19: 0f b7 3b movzwl (%ebx),%edi <== NOT EXECUTED
12be1c: 89 f8 mov %edi,%eax <== NOT EXECUTED
12be1e: f7 c7 01 00 00 00 test $0x1,%edi <== NOT EXECUTED
12be24: 75 14 jne 12be3a <fat_init_volume_info+0x12a><== NOT EXECUTED
12be26: b2 01 mov $0x1,%dl <== NOT EXECUTED
12be28: eb 04 jmp 12be2e <fat_init_volume_info+0x11e><== NOT EXECUTED
12be2a: 66 90 xchg %ax,%ax <== NOT EXECUTED
12be2c: 88 ca mov %cl,%dl <== NOT EXECUTED
i >>= 1, vol->sec_log2++);
12be2e: d1 f8 sar %eax <== NOT EXECUTED
12be30: 8d 4a 01 lea 0x1(%edx),%ecx <== 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;
12be33: a8 01 test $0x1,%al <== NOT EXECUTED
12be35: 74 f5 je 12be2c <fat_init_volume_info+0x11c><== NOT EXECUTED
12be37: 88 53 02 mov %dl,0x2(%ebx) <== NOT EXECUTED
if ( (ret1 < 0) || (ret2 < 0) )
return -1;
return RC_OK;
}
12be3a: 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);
12be40: 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)
12be43: 84 c0 test %al,%al <== NOT EXECUTED
12be45: 0f 84 a8 04 00 00 je 12c2f3 <fat_init_volume_info+0x5e3><== 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;
12be4b: c6 43 05 00 movb $0x0,0x5(%ebx) <== NOT EXECUTED
12be4f: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
12be52: a8 01 test $0x1,%al <== NOT EXECUTED
12be54: 0f 85 6f 04 00 00 jne 12c2c9 <fat_init_volume_info+0x5b9><== NOT EXECUTED
12be5a: b1 01 mov $0x1,%cl <== NOT EXECUTED
12be5c: eb 04 jmp 12be62 <fat_init_volume_info+0x152><== NOT EXECUTED
12be5e: 66 90 xchg %ax,%ax <== NOT EXECUTED
12be60: 88 d1 mov %dl,%cl <== NOT EXECUTED
i >>= 1, vol->spc_log2++);
12be62: d1 f8 sar %eax <== NOT EXECUTED
12be64: 8d 51 01 lea 0x1(%ecx),%edx <== 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;
12be67: a8 01 test $0x1,%al <== NOT EXECUTED
12be69: 74 f5 je 12be60 <fat_init_volume_info+0x150><== NOT EXECUTED
12be6b: 88 4b 05 mov %cl,0x5(%ebx) <== NOT EXECUTED
12be6e: 0f b6 c9 movzbl %cl,%ecx <== 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)
12be71: 89 f8 mov %edi,%eax <== NOT EXECUTED
12be73: d3 e0 shl %cl,%eax <== NOT EXECUTED
12be75: 89 c1 mov %eax,%ecx <== NOT EXECUTED
12be77: 66 89 4b 06 mov %cx,0x6(%ebx) <== NOT EXECUTED
12be7b: 66 3d 00 80 cmp $0x8000,%ax <== NOT EXECUTED
12be7f: 0f 87 6e 04 00 00 ja 12c2f3 <fat_init_volume_info+0x5e3><== 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;
12be85: c6 43 08 00 movb $0x0,0x8(%ebx) <== NOT EXECUTED
12be89: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
12be8c: a8 01 test $0x1,%al <== NOT EXECUTED
12be8e: 75 12 jne 12bea2 <fat_init_volume_info+0x192><== NOT EXECUTED
12be90: b2 01 mov $0x1,%dl <== NOT EXECUTED
12be92: eb 02 jmp 12be96 <fat_init_volume_info+0x186><== NOT EXECUTED
12be94: 88 ca mov %cl,%dl <== NOT EXECUTED
i >>= 1, vol->bpc_log2++);
12be96: d1 f8 sar %eax <== NOT EXECUTED
12be98: 8d 4a 01 lea 0x1(%edx),%ecx <== 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;
12be9b: a8 01 test $0x1,%al <== NOT EXECUTED
12be9d: 74 f5 je 12be94 <fat_init_volume_info+0x184><== NOT EXECUTED
12be9f: 88 53 08 mov %dl,0x8(%ebx) <== NOT EXECUTED
if ( (ret1 < 0) || (ret2 < 0) )
return -1;
return RC_OK;
}
12bea2: 8a 95 46 ff ff ff mov -0xba(%ebp),%dl <== NOT EXECUTED
12bea8: 88 95 27 ff ff ff mov %dl,-0xd9(%ebp) <== NOT EXECUTED
}
for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;
i >>= 1, vol->bpc_log2++);
vol->fats = FAT_GET_BR_FAT_NUM(boot_rec);
12beae: 88 53 09 mov %dl,0x9(%ebx) <== NOT EXECUTED
vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);
12beb1: 0f b6 85 45 ff ff ff movzbl -0xbb(%ebp),%eax <== NOT EXECUTED
12beb8: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12bebb: 0f b6 b5 44 ff ff ff movzbl -0xbc(%ebp),%esi <== NOT EXECUTED
12bec2: 09 c6 or %eax,%esi <== NOT EXECUTED
12bec4: 66 89 73 14 mov %si,0x14(%ebx) <== NOT EXECUTED
vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);
12bec8: 0f b6 95 48 ff ff ff movzbl -0xb8(%ebp),%edx <== NOT EXECUTED
12becf: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12bed2: 0f b6 85 47 ff ff ff movzbl -0xb9(%ebp),%eax <== NOT EXECUTED
12bed9: 09 d0 or %edx,%eax <== NOT EXECUTED
12bedb: 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)) /
12bedf: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
12bee2: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
12bee5: 8d 44 38 ff lea -0x1(%eax,%edi,1),%eax <== NOT EXECUTED
12bee9: 99 cltd <== NOT EXECUTED
12beea: f7 ff idiv %edi <== NOT EXECUTED
12beec: 89 43 24 mov %eax,0x24(%ebx) <== NOT EXECUTED
vol->bps;
vol->rdir_size = vol->rdir_secs << vol->sec_log2;
12beef: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
12bef3: 89 c2 mov %eax,%edx <== NOT EXECUTED
12bef5: d3 e2 shl %cl,%edx <== NOT EXECUTED
12bef7: 89 53 28 mov %edx,0x28(%ebx) <== NOT EXECUTED
if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)
12befa: 0f b6 95 4d ff ff ff movzbl -0xb3(%ebp),%edx <== NOT EXECUTED
12bf01: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12bf04: 0f b6 8d 4c ff ff ff movzbl -0xb4(%ebp),%ecx <== NOT EXECUTED
12bf0b: 66 09 d1 or %dx,%cx <== NOT EXECUTED
12bf0e: 0f 84 3c 03 00 00 je 12c250 <fat_init_volume_info+0x540><== NOT EXECUTED
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);
12bf14: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED
12bf17: 89 4b 18 mov %ecx,0x18(%ebx) <== NOT EXECUTED
else
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);
vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +
12bf1a: 0f b7 f6 movzwl %si,%esi <== NOT EXECUTED
12bf1d: 01 f0 add %esi,%eax <== NOT EXECUTED
12bf1f: 0f b6 95 27 ff ff ff movzbl -0xd9(%ebp),%edx <== NOT EXECUTED
12bf26: 0f af ca imul %edx,%ecx <== NOT EXECUTED
12bf29: 8d 0c 08 lea (%eax,%ecx,1),%ecx <== NOT EXECUTED
12bf2c: 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;
12bf2f: 0f b6 53 09 movzbl 0x9(%ebx),%edx <== NOT EXECUTED
12bf33: 0f af 53 18 imul 0x18(%ebx),%edx <== NOT EXECUTED
12bf37: 0f b7 43 14 movzwl 0x14(%ebx),%eax <== NOT EXECUTED
12bf3b: 01 c2 add %eax,%edx <== NOT EXECUTED
12bf3d: 89 53 1c mov %edx,0x1c(%ebx) <== NOT EXECUTED
if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0)
12bf40: 0f b6 95 4a ff ff ff movzbl -0xb6(%ebp),%edx <== NOT EXECUTED
12bf47: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12bf4a: 0f b6 85 49 ff ff ff movzbl -0xb7(%ebp),%eax <== NOT EXECUTED
12bf51: 66 09 d0 or %dx,%ax <== NOT EXECUTED
12bf54: 0f 84 c2 02 00 00 je 12c21c <fat_init_volume_info+0x50c><== NOT EXECUTED
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);
12bf5a: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
12bf5d: 89 43 2c mov %eax,0x2c(%ebx) <== NOT EXECUTED
else
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);
data_secs = vol->tot_secs - vol->data_fsec;
vol->data_cls = data_secs / vol->spc;
12bf60: 29 c8 sub %ecx,%eax <== NOT EXECUTED
12bf62: 0f b6 73 04 movzbl 0x4(%ebx),%esi <== NOT EXECUTED
12bf66: 31 d2 xor %edx,%edx <== NOT EXECUTED
12bf68: f7 f6 div %esi <== NOT EXECUTED
12bf6a: 89 43 34 mov %eax,0x34(%ebx) <== NOT EXECUTED
/* determine FAT type at least */
if ( vol->data_cls < FAT_FAT12_MAX_CLN)
12bf6d: 3d f4 0f 00 00 cmp $0xff4,%eax <== NOT EXECUTED
12bf72: 0f 87 2c 01 00 00 ja 12c0a4 <fat_init_volume_info+0x394><== NOT EXECUTED
{
vol->type = FAT_FAT12;
12bf78: c6 43 0a 01 movb $0x1,0xa(%ebx) <== NOT EXECUTED
vol->mask = FAT_FAT12_MASK;
12bf7c: c7 43 0c ff 0f 00 00 movl $0xfff,0xc(%ebx) <== NOT EXECUTED
vol->eoc_val = FAT_FAT12_EOC;
12bf83: c7 43 10 f8 0f 00 00 movl $0xff8,0x10(%ebx) <== NOT EXECUTED
}
}
}
else
{
vol->rdir_cl = 0;
12bf8a: c7 43 38 00 00 00 00 movl $0x0,0x38(%ebx) <== NOT EXECUTED
vol->mirror = 0;
12bf91: c6 43 48 00 movb $0x0,0x48(%ebx) <== NOT EXECUTED
vol->afat = 0;
12bf95: c6 43 50 00 movb $0x0,0x50(%ebx) <== NOT EXECUTED
vol->free_cls = 0xFFFFFFFF;
12bf99: c7 43 40 ff ff ff ff movl $0xffffffff,0x40(%ebx) <== NOT EXECUTED
vol->next_cl = 0xFFFFFFFF;
12bfa0: 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);
12bfa7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12bfaa: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
12bfad: ff 72 34 pushl 0x34(%edx) <== NOT EXECUTED
12bfb0: e8 d7 f5 ff ff call 12b58c <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;
12bfb5: 0f b6 43 50 movzbl 0x50(%ebx),%eax <== NOT EXECUTED
12bfb9: 0f af 43 18 imul 0x18(%ebx),%eax <== NOT EXECUTED
12bfbd: 0f b7 53 14 movzwl 0x14(%ebx),%edx <== NOT EXECUTED
12bfc1: 01 d0 add %edx,%eax <== NOT EXECUTED
12bfc3: 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));
12bfc6: 5f pop %edi <== NOT EXECUTED
12bfc7: 58 pop %eax <== NOT EXECUTED
12bfc8: 6a 0c push $0xc <== NOT EXECUTED
12bfca: 6a 02 push $0x2 <== NOT EXECUTED
12bfcc: e8 3b 23 fe ff call 10e30c <calloc> <== NOT EXECUTED
12bfd1: 89 43 64 mov %eax,0x64(%ebx) <== NOT EXECUTED
if ( fs_info->vhash == NULL )
12bfd4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bfd7: 85 c0 test %eax,%eax <== NOT EXECUTED
12bfd9: 0f 84 d5 03 00 00 je 12c3b4 <fat_init_volume_info+0x6a4><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
12bfdf: 8d 50 04 lea 0x4(%eax),%edx <== NOT EXECUTED
12bfe2: 89 10 mov %edx,(%eax) <== NOT EXECUTED
the_chain->permanent_null = NULL;
12bfe4: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
12bfeb: 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);
12bfee: 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);
12bff1: 8d 48 10 lea 0x10(%eax),%ecx <== NOT EXECUTED
12bff4: 89 48 0c mov %ecx,0xc(%eax) <== NOT EXECUTED
the_chain->permanent_null = NULL;
12bff7: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
12bffe: 89 52 08 mov %edx,0x8(%edx) <== NOT EXECUTED
fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
12c001: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12c004: 6a 0c push $0xc <== NOT EXECUTED
12c006: 6a 02 push $0x2 <== NOT EXECUTED
12c008: e8 ff 22 fe ff call 10e30c <calloc> <== NOT EXECUTED
12c00d: 89 43 68 mov %eax,0x68(%ebx) <== NOT EXECUTED
if ( fs_info->rhash == NULL )
12c010: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12c013: 85 c0 test %eax,%eax <== NOT EXECUTED
12c015: 0f 84 ba 03 00 00 je 12c3d5 <fat_init_volume_info+0x6c5><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
12c01b: 8d 50 04 lea 0x4(%eax),%edx <== NOT EXECUTED
12c01e: 89 10 mov %edx,(%eax) <== NOT EXECUTED
the_chain->permanent_null = NULL;
12c020: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
12c027: 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);
12c02a: 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);
12c02d: 8d 48 10 lea 0x10(%eax),%ecx <== NOT EXECUTED
12c030: 89 48 0c mov %ecx,0xc(%eax) <== NOT EXECUTED
the_chain->permanent_null = NULL;
12c033: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
12c03a: 89 52 08 mov %edx,0x8(%edx) <== NOT EXECUTED
fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;
12c03d: c7 43 74 00 01 00 00 movl $0x100,0x74(%ebx) <== NOT EXECUTED
fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;
12c044: 0f b6 4b 03 movzbl 0x3(%ebx),%ecx <== NOT EXECUTED
12c048: 8b 43 2c mov 0x2c(%ebx),%eax <== NOT EXECUTED
12c04b: d3 e0 shl %cl,%eax <== NOT EXECUTED
12c04d: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
12c050: 89 43 78 mov %eax,0x78(%ebx) <== NOT EXECUTED
fs_info->index = 0;
12c053: 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));
12c05a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12c05d: 6a 01 push $0x1 <== NOT EXECUTED
12c05f: 68 00 01 00 00 push $0x100 <== NOT EXECUTED
12c064: e8 a3 22 fe ff call 10e30c <calloc> <== NOT EXECUTED
12c069: 89 43 6c mov %eax,0x6c(%ebx) <== NOT EXECUTED
if ( fs_info->uino == NULL )
12c06c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12c06f: 85 c0 test %eax,%eax <== NOT EXECUTED
12c071: 0f 84 c3 02 00 00 je 12c33a <fat_init_volume_info+0x62a><== NOT EXECUTED
rtems_disk_release(vol->dd);
free(fs_info->vhash);
free(fs_info->rhash);
rtems_set_errno_and_return_minus_one( ENOMEM );
}
fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t));
12c077: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12c07a: 6a 01 push $0x1 <== NOT EXECUTED
12c07c: 0f b7 03 movzwl (%ebx),%eax <== NOT EXECUTED
12c07f: 50 push %eax <== NOT EXECUTED
12c080: e8 87 22 fe ff call 10e30c <calloc> <== NOT EXECUTED
12c085: 89 83 88 00 00 00 mov %eax,0x88(%ebx) <== NOT EXECUTED
if (fs_info->sec_buf == NULL)
12c08b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12c08e: 85 c0 test %eax,%eax <== NOT EXECUTED
12c090: 0f 84 fb 02 00 00 je 12c391 <fat_init_volume_info+0x681><== NOT EXECUTED
12c096: 31 f6 xor %esi,%esi <== NOT EXECUTED
free(fs_info->uino);
rtems_set_errno_and_return_minus_one( ENOMEM );
}
return RC_OK;
}
12c098: 89 f0 mov %esi,%eax <== NOT EXECUTED
12c09a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12c09d: 5b pop %ebx <== NOT EXECUTED
12c09e: 5e pop %esi <== NOT EXECUTED
12c09f: 5f pop %edi <== NOT EXECUTED
12c0a0: c9 leave <== NOT EXECUTED
12c0a1: c3 ret <== NOT EXECUTED
12c0a2: 66 90 xchg %ax,%ax <== NOT EXECUTED
vol->mask = FAT_FAT12_MASK;
vol->eoc_val = FAT_FAT12_EOC;
}
else
{
if ( vol->data_cls < FAT_FAT16_MAX_CLN)
12c0a4: 3d f4 ff 00 00 cmp $0xfff4,%eax <== NOT EXECUTED
12c0a9: 0f 86 e1 01 00 00 jbe 12c290 <fat_init_volume_info+0x580><== NOT EXECUTED
vol->mask = FAT_FAT16_MASK;
vol->eoc_val = FAT_FAT16_EOC;
}
else
{
vol->type = FAT_FAT32;
12c0af: c6 43 0a 04 movb $0x4,0xa(%ebx) <== NOT EXECUTED
vol->mask = FAT_FAT32_MASK;
12c0b3: c7 43 0c ff ff ff 0f movl $0xfffffff,0xc(%ebx) <== NOT EXECUTED
vol->eoc_val = FAT_FAT32_EOC;
12c0ba: c7 43 10 f8 ff ff 0f movl $0xffffff8,0x10(%ebx) <== NOT EXECUTED
}
}
if (vol->type == FAT_FAT32)
{
vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);
12c0c1: 0f b6 85 63 ff ff ff movzbl -0x9d(%ebp),%eax <== NOT EXECUTED
12c0c8: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12c0cb: 0f b6 95 64 ff ff ff movzbl -0x9c(%ebp),%edx <== NOT EXECUTED
12c0d2: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
12c0d5: 09 d0 or %edx,%eax <== NOT EXECUTED
12c0d7: 0f b6 95 62 ff ff ff movzbl -0x9e(%ebp),%edx <== NOT EXECUTED
12c0de: 09 d0 or %edx,%eax <== NOT EXECUTED
12c0e0: 0f b6 95 65 ff ff ff movzbl -0x9b(%ebp),%edx <== NOT EXECUTED
12c0e7: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
12c0ea: 09 d0 or %edx,%eax <== NOT EXECUTED
12c0ec: 89 43 38 mov %eax,0x38(%ebx) <== NOT EXECUTED
vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
12c0ef: 8a 85 5e ff ff ff mov -0xa2(%ebp),%al <== NOT EXECUTED
12c0f5: 83 e0 80 and $0xffffff80,%eax <== NOT EXECUTED
12c0f8: 88 43 48 mov %al,0x48(%ebx) <== NOT EXECUTED
if (vol->mirror)
12c0fb: 84 c0 test %al,%al <== NOT EXECUTED
12c0fd: 0f 84 a5 01 00 00 je 12c2a8 <fat_init_volume_info+0x598><== NOT EXECUTED
vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM;
12c103: 8a 85 5e ff ff ff mov -0xa2(%ebp),%al <== NOT EXECUTED
12c109: 83 e0 0f and $0xf,%eax <== NOT EXECUTED
12c10c: 88 43 50 mov %al,0x50(%ebx) <== NOT EXECUTED
else
vol->afat = 0;
vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec);
12c10f: 0f b6 95 67 ff ff ff movzbl -0x99(%ebp),%edx <== NOT EXECUTED
12c116: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12c119: 0f b6 85 66 ff ff ff movzbl -0x9a(%ebp),%eax <== NOT EXECUTED
12c120: 09 d0 or %edx,%eax <== NOT EXECUTED
12c122: 66 89 43 3c mov %ax,0x3c(%ebx) <== NOT EXECUTED
if( vol->info_sec == 0 )
12c126: 66 85 c0 test %ax,%ax <== NOT EXECUTED
12c129: 0f 84 c4 01 00 00 je 12c2f3 <fat_init_volume_info+0x5e3><== NOT EXECUTED
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EINVAL );
}
else
{
ret = _fat_block_read(mt_entry, vol->info_sec , 0,
12c12f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12c132: 8d 75 d8 lea -0x28(%ebp),%esi <== NOT EXECUTED
12c135: 56 push %esi <== NOT EXECUTED
12c136: 6a 04 push $0x4 <== NOT EXECUTED
12c138: 6a 00 push $0x0 <== NOT EXECUTED
12c13a: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
12c13d: 50 push %eax <== NOT EXECUTED
12c13e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12c141: e8 3e fb ff ff call 12bc84 <_fat_block_read> <== NOT EXECUTED
FAT_FSI_LEADSIG_SIZE, fs_info_sector);
if ( ret < 0 )
12c146: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12c149: 85 c0 test %eax,%eax <== NOT EXECUTED
12c14b: 0f 88 98 02 00 00 js 12c3e9 <fat_init_volume_info+0x6d9><== NOT EXECUTED
{
rtems_disk_release(vol->dd);
return -1;
}
if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=
12c151: 0f b6 45 d9 movzbl -0x27(%ebp),%eax <== NOT EXECUTED
12c155: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12c158: 0f b6 55 da movzbl -0x26(%ebp),%edx <== NOT EXECUTED
12c15c: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
12c15f: 09 d0 or %edx,%eax <== NOT EXECUTED
12c161: 0f b6 55 d8 movzbl -0x28(%ebp),%edx <== NOT EXECUTED
12c165: 09 d0 or %edx,%eax <== NOT EXECUTED
12c167: 0f b6 55 db movzbl -0x25(%ebp),%edx <== NOT EXECUTED
12c16b: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
12c16e: 09 d0 or %edx,%eax <== NOT EXECUTED
12c170: 3d 52 52 61 41 cmp $0x41615252,%eax <== NOT EXECUTED
12c175: 0f 85 9b 01 00 00 jne 12c316 <fat_init_volume_info+0x606><== NOT EXECUTED
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EINVAL );
}
else
{
ret = _fat_block_read(mt_entry, vol->info_sec , FAT_FSI_INFO,
12c17b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12c17e: 56 push %esi <== NOT EXECUTED
12c17f: 6a 0c push $0xc <== NOT EXECUTED
12c181: 68 e4 01 00 00 push $0x1e4 <== NOT EXECUTED
12c186: 0f b7 43 3c movzwl 0x3c(%ebx),%eax <== NOT EXECUTED
12c18a: 50 push %eax <== NOT EXECUTED
12c18b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12c18e: e8 f1 fa ff ff call 12bc84 <_fat_block_read> <== NOT EXECUTED
FAT_USEFUL_INFO_SIZE, fs_info_sector);
if ( ret < 0 )
12c193: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12c196: 85 c0 test %eax,%eax <== NOT EXECUTED
12c198: 0f 88 d1 01 00 00 js 12c36f <fat_init_volume_info+0x65f><== NOT EXECUTED
_fat_block_release(mt_entry);
rtems_disk_release(vol->dd);
return -1;
}
vol->free_cls = FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);
12c19e: 0f b6 45 dd movzbl -0x23(%ebp),%eax <== NOT EXECUTED
12c1a2: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12c1a5: 0f b6 55 de movzbl -0x22(%ebp),%edx <== NOT EXECUTED
12c1a9: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
12c1ac: 09 d0 or %edx,%eax <== NOT EXECUTED
12c1ae: 0f b6 55 dc movzbl -0x24(%ebp),%edx <== NOT EXECUTED
12c1b2: 09 d0 or %edx,%eax <== NOT EXECUTED
12c1b4: 0f b6 55 df movzbl -0x21(%ebp),%edx <== NOT EXECUTED
12c1b8: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
12c1bb: 09 d0 or %edx,%eax <== NOT EXECUTED
12c1bd: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
vol->next_cl = FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);
12c1c0: 0f b6 45 e1 movzbl -0x1f(%ebp),%eax <== NOT EXECUTED
12c1c4: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12c1c7: 0f b6 55 e2 movzbl -0x1e(%ebp),%edx <== NOT EXECUTED
12c1cb: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
12c1ce: 09 d0 or %edx,%eax <== NOT EXECUTED
12c1d0: 0f b6 55 e0 movzbl -0x20(%ebp),%edx <== NOT EXECUTED
12c1d4: 09 d0 or %edx,%eax <== NOT EXECUTED
12c1d6: 0f b6 55 e3 movzbl -0x1d(%ebp),%edx <== NOT EXECUTED
12c1da: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
12c1dd: 09 d0 or %edx,%eax <== NOT EXECUTED
12c1df: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF,
12c1e2: 51 push %ecx <== NOT EXECUTED
12c1e3: 6a ff push $0xffffffff <== NOT EXECUTED
12c1e5: 6a ff push $0xffffffff <== NOT EXECUTED
12c1e7: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12c1ea: e8 f9 f7 ff ff call 12b9e8 <fat_fat32_update_fsinfo_sector><== NOT EXECUTED
12c1ef: 89 c6 mov %eax,%esi <== NOT EXECUTED
0xFFFFFFFF);
if ( rc != RC_OK )
12c1f1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12c1f4: 85 c0 test %eax,%eax <== NOT EXECUTED
12c1f6: 0f 84 ab fd ff ff je 12bfa7 <fat_init_volume_info+0x297><== 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);
12c1fc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12c1ff: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12c202: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
12c205: e8 82 f3 ff ff call 12b58c <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);
12c20a: 5a pop %edx <== NOT EXECUTED
12c20b: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
12c20e: e8 4d 14 fe ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
return rc;
12c213: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12c216: e9 7d fe ff ff jmp 12c098 <fat_init_volume_info+0x388><== NOT EXECUTED
12c21b: 90 nop <== NOT EXECUTED
vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;
if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0)
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);
else
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);
12c21c: 0f b6 85 57 ff ff ff movzbl -0xa9(%ebp),%eax <== NOT EXECUTED
12c223: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12c226: 0f b6 95 58 ff ff ff movzbl -0xa8(%ebp),%edx <== NOT EXECUTED
12c22d: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
12c230: 09 d0 or %edx,%eax <== NOT EXECUTED
12c232: 0f b6 95 56 ff ff ff movzbl -0xaa(%ebp),%edx <== NOT EXECUTED
12c239: 09 d0 or %edx,%eax <== NOT EXECUTED
12c23b: 0f b6 95 59 ff ff ff movzbl -0xa7(%ebp),%edx <== NOT EXECUTED
12c242: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
12c245: 09 d0 or %edx,%eax <== NOT EXECUTED
12c247: 89 43 2c mov %eax,0x2c(%ebx) <== NOT EXECUTED
12c24a: e9 11 fd ff ff jmp 12bf60 <fat_init_volume_info+0x250><== NOT EXECUTED
12c24f: 90 nop <== NOT EXECUTED
vol->rdir_size = vol->rdir_secs << vol->sec_log2;
if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);
else
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);
12c250: 0f b6 8d 5b ff ff ff movzbl -0xa5(%ebp),%ecx <== NOT EXECUTED
12c257: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
12c25a: 0f b6 95 5c ff ff ff movzbl -0xa4(%ebp),%edx <== NOT EXECUTED
12c261: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
12c264: 09 d1 or %edx,%ecx <== NOT EXECUTED
12c266: 0f b6 95 5a ff ff ff movzbl -0xa6(%ebp),%edx <== NOT EXECUTED
12c26d: 09 d1 or %edx,%ecx <== NOT EXECUTED
12c26f: 0f b6 95 5d ff ff ff movzbl -0xa3(%ebp),%edx <== NOT EXECUTED
12c276: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
12c279: 09 d1 or %edx,%ecx <== NOT EXECUTED
12c27b: 89 4b 18 mov %ecx,0x18(%ebx) <== NOT EXECUTED
12c27e: e9 97 fc ff ff jmp 12bf1a <fat_init_volume_info+0x20a><== NOT EXECUTED
12c283: 90 nop <== 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;
12c284: c6 43 03 00 movb $0x0,0x3(%ebx) <== NOT EXECUTED
12c288: e9 88 fb ff ff jmp 12be15 <fat_init_volume_info+0x105><== NOT EXECUTED
12c28d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
else
{
if ( vol->data_cls < FAT_FAT16_MAX_CLN)
{
vol->type = FAT_FAT16;
12c290: c6 43 0a 02 movb $0x2,0xa(%ebx) <== NOT EXECUTED
vol->mask = FAT_FAT16_MASK;
12c294: c7 43 0c ff ff 00 00 movl $0xffff,0xc(%ebx) <== NOT EXECUTED
vol->eoc_val = FAT_FAT16_EOC;
12c29b: c7 43 10 f8 ff 00 00 movl $0xfff8,0x10(%ebx) <== NOT EXECUTED
12c2a2: e9 e3 fc ff ff jmp 12bf8a <fat_init_volume_info+0x27a><== NOT EXECUTED
12c2a7: 90 nop <== NOT EXECUTED
vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
if (vol->mirror)
vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM;
else
vol->afat = 0;
12c2a8: c6 43 50 00 movb $0x0,0x50(%ebx) <== NOT EXECUTED
12c2ac: e9 5e fe ff ff jmp 12c10f <fat_init_volume_info+0x3ff><== NOT EXECUTED
12c2b1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (rc == -1)
return rc;
/* Must be a block device. */
if (!S_ISBLK(stat_buf.st_mode))
rtems_set_errno_and_return_minus_one(ENOTTY);
12c2b4: e8 d3 a4 01 00 call 14678c <__errno> <== NOT EXECUTED
12c2b9: c7 00 19 00 00 00 movl $0x19,(%eax) <== NOT EXECUTED
12c2bf: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
12c2c4: e9 cf fd ff ff jmp 12c098 <fat_init_volume_info+0x388><== 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;
12c2c9: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
12c2cb: e9 a1 fb ff ff jmp 12be71 <fat_init_volume_info+0x161><== NOT EXECUTED
memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE);
sc = rtems_bdbuf_release( block);
if (sc != RTEMS_SUCCESSFUL)
{
rtems_disk_release(vol->dd);
12c2d0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12c2d3: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
12c2d6: e8 85 13 fe ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
12c2db: e8 ac a4 01 00 call 14678c <__errno> <== NOT EXECUTED
12c2e0: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
12c2e6: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
12c2eb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12c2ee: e9 a5 fd ff ff jmp 12c098 <fat_init_volume_info+0x388><== NOT EXECUTED
vol->afat = 0;
vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec);
if( vol->info_sec == 0 )
{
rtems_disk_release(vol->dd);
12c2f3: 83 ec 0c sub $0xc,%esp <== 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);
12c2f6: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
12c2f9: e8 62 13 fe ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
12c2fe: e8 89 a4 01 00 call 14678c <__errno> <== NOT EXECUTED
12c303: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
12c309: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
12c30e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12c311: e9 82 fd ff ff jmp 12c098 <fat_init_volume_info+0x388><== 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);
12c316: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12c319: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12c31c: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
12c31f: e8 68 f2 ff ff call 12b58c <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);
12c324: 5f pop %edi <== NOT EXECUTED
12c325: eb cf jmp 12c2f6 <fat_init_volume_info+0x5e6><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTTY);
/* check that device is registred as block device and lock it */
vol->dd = rtems_disk_obtain(stat_buf.st_rdev);
if (vol->dd == NULL)
rtems_set_errno_and_return_minus_one(EIO);
12c327: e8 60 a4 01 00 call 14678c <__errno> <== NOT EXECUTED
12c32c: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
12c332: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
12c335: e9 5e fd ff ff jmp 12c098 <fat_init_volume_info+0x388><== 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);
12c33a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12c33d: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
12c340: e8 1b 13 fe ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
free(fs_info->vhash);
12c345: 59 pop %ecx <== NOT EXECUTED
12c346: ff 73 64 pushl 0x64(%ebx) <== NOT EXECUTED
12c349: e8 1a 25 fe ff call 10e868 <free> <== NOT EXECUTED
free(fs_info->rhash);
12c34e: 5a pop %edx <== NOT EXECUTED
12c34f: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED
if (fs_info->sec_buf == NULL)
{
rtems_disk_release(vol->dd);
free(fs_info->vhash);
free(fs_info->rhash);
free(fs_info->uino);
12c352: e8 11 25 fe ff call 10e868 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
12c357: e8 30 a4 01 00 call 14678c <__errno> <== NOT EXECUTED
12c35c: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
12c362: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
12c367: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12c36a: e9 29 fd ff ff jmp 12c098 <fat_init_volume_info+0x388><== 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);
12c36f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12c372: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
12c375: ff 72 34 pushl 0x34(%edx) <== NOT EXECUTED
12c378: e8 0f f2 ff ff call 12b58c <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);
12c37d: 5e pop %esi <== NOT EXECUTED
12c37e: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
12c381: e8 da 12 fe ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
12c386: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
return -1;
12c389: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12c38c: e9 07 fd ff ff jmp 12c098 <fat_init_volume_info+0x388><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
}
fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t));
if (fs_info->sec_buf == NULL)
{
rtems_disk_release(vol->dd);
12c391: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12c394: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
12c397: e8 c4 12 fe ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
free(fs_info->vhash);
12c39c: 58 pop %eax <== NOT EXECUTED
12c39d: ff 73 64 pushl 0x64(%ebx) <== NOT EXECUTED
12c3a0: e8 c3 24 fe ff call 10e868 <free> <== NOT EXECUTED
free(fs_info->rhash);
12c3a5: 5f pop %edi <== NOT EXECUTED
12c3a6: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED
12c3a9: e8 ba 24 fe ff call 10e868 <free> <== NOT EXECUTED
free(fs_info->uino);
12c3ae: 5e pop %esi <== NOT EXECUTED
12c3af: ff 73 6c pushl 0x6c(%ebx) <== NOT EXECUTED
12c3b2: eb 9e jmp 12c352 <fat_init_volume_info+0x642><== 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);
12c3b4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12c3b7: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
12c3ba: e8 a1 12 fe ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
12c3bf: e8 c8 a3 01 00 call 14678c <__errno> <== NOT EXECUTED
12c3c4: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
12c3ca: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
12c3cd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12c3d0: e9 c3 fc ff ff jmp 12c098 <fat_init_volume_info+0x388><== 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);
12c3d5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12c3d8: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
12c3db: e8 80 12 fe ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
free(fs_info->vhash);
12c3e0: 5e pop %esi <== NOT EXECUTED
12c3e1: ff 73 64 pushl 0x64(%ebx) <== NOT EXECUTED
12c3e4: e9 69 ff ff ff jmp 12c352 <fat_init_volume_info+0x642><== NOT EXECUTED
{
ret = _fat_block_read(mt_entry, vol->info_sec , 0,
FAT_FSI_LEADSIG_SIZE, fs_info_sector);
if ( ret < 0 )
{
rtems_disk_release(vol->dd);
12c3e9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12c3ec: ff 73 5c pushl 0x5c(%ebx) <== NOT EXECUTED
12c3ef: e8 6c 12 fe ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
12c3f4: 83 ce ff or $0xffffffff,%esi <== NOT EXECUTED
return -1;
12c3f7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12c3fa: e9 99 fc ff ff jmp 12c098 <fat_init_volume_info+0x388><== NOT EXECUTED
0012b4a8 <fat_ino_is_unique>:
inline bool
fat_ino_is_unique(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t ino
)
{
12b4a8: 55 push %ebp <== NOT EXECUTED
12b4a9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12b4ab: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12b4ae: 8b 50 34 mov 0x34(%eax),%edx <== NOT EXECUTED
12b4b1: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12b4b4: 39 42 78 cmp %eax,0x78(%edx) <== NOT EXECUTED
12b4b7: 0f 96 c0 setbe %al <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
return (ino >= fs_info->uino_base);
}
12b4ba: c9 leave <== NOT EXECUTED
12b4bb: c3 ret <== NOT EXECUTED
00142d44 <fat_scan_fat_for_free_clusters>:
uint32_t *chain,
uint32_t count,
uint32_t *cls_added,
uint32_t *last_cl
)
{
142d44: 55 push %ebp <== NOT EXECUTED
142d45: 89 e5 mov %esp,%ebp <== NOT EXECUTED
142d47: 57 push %edi <== NOT EXECUTED
142d48: 56 push %esi <== NOT EXECUTED
142d49: 53 push %ebx <== NOT EXECUTED
142d4a: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
142d4d: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
142d50: 8b 47 34 mov 0x34(%edi),%eax <== NOT EXECUTED
142d53: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
uint32_t cl4find = 2;
uint32_t next_cln = 0;
142d56: 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;
142d5d: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
uint32_t i = 2;
*cls_added = 0;
142d60: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
142d63: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
if (count == 0)
142d69: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
142d6c: 85 d2 test %edx,%edx <== NOT EXECUTED
142d6e: 0f 84 e8 00 00 00 je 142e5c <fat_scan_fat_for_free_clusters+0x118><== NOT EXECUTED
return rc;
if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)
142d74: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
142d77: 8b 5a 44 mov 0x44(%edx),%ebx <== NOT EXECUTED
142d7a: 83 fb ff cmp $0xffffffff,%ebx <== NOT EXECUTED
142d7d: 0f 84 e5 00 00 00 je 142e68 <fat_scan_fat_for_free_clusters+0x124><== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cl4find = 2;
uint32_t next_cln = 0;
uint32_t save_cln = 0;
uint32_t data_cls_val = fs_info->vol.data_cls + 2;
142d83: 83 c0 02 add $0x2,%eax <== NOT EXECUTED
142d86: 89 45 d4 mov %eax,-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)
142d89: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
142d8c: 0f 86 e0 00 00 00 jbe 142e72 <fat_scan_fat_for_free_clusters+0x12e><== NOT EXECUTED
142d92: be 02 00 00 00 mov $0x2,%esi <== NOT EXECUTED
142d97: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
142d9e: eb 43 jmp 142de3 <fat_scan_fat_for_free_clusters+0x9f><== NOT EXECUTED
* by separate 'if' statement because otherwise undo function
* wouldn't work properly
*/
if (*cls_added == 0)
{
*chain = cl4find;
142da0: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
142da3: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC);
142da5: 51 push %ecx <== NOT EXECUTED
142da6: 6a ff push $0xffffffff <== NOT EXECUTED
142da8: 53 push %ebx <== NOT EXECUTED
142da9: 57 push %edi <== NOT EXECUTED
142daa: e8 0d fb ff ff call 1428bc <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
142daf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142db2: 85 c0 test %eax,%eax <== NOT EXECUTED
142db4: 0f 85 40 01 00 00 jne 142efa <fat_scan_fat_for_free_clusters+0x1b6><== NOT EXECUTED
return rc;
}
}
save_cln = cl4find;
(*cls_added)++;
142dba: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
142dbd: 8b 02 mov (%edx),%eax <== NOT EXECUTED
142dbf: 40 inc %eax <== NOT EXECUTED
142dc0: 89 02 mov %eax,(%edx) <== NOT EXECUTED
/* have we satisfied request ? */
if (*cls_added == count)
142dc2: 39 45 10 cmp %eax,0x10(%ebp) <== NOT EXECUTED
142dc5: 0f 84 0f 01 00 00 je 142eda <fat_scan_fat_for_free_clusters+0x196><== NOT EXECUTED
fs_info->vol.next_cl = save_cln;
if (fs_info->vol.free_cls != 0xFFFFFFFF)
fs_info->vol.free_cls -= (*cls_added);
*last_cl = save_cln;
fat_buf_release(fs_info);
return rc;
142dcb: 89 5d d0 mov %ebx,-0x30(%ebp) <== NOT EXECUTED
}
}
i++;
142dce: 46 inc %esi <== NOT EXECUTED
cl4find++;
142dcf: 43 inc %ebx <== NOT EXECUTED
if (cl4find >= data_cls_val)
142dd0: 39 5d d4 cmp %ebx,-0x2c(%ebp) <== NOT EXECUTED
142dd3: 77 05 ja 142dda <fat_scan_fat_for_free_clusters+0x96><== NOT EXECUTED
142dd5: bb 02 00 00 00 mov $0x2,%ebx <== 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)
142dda: 39 75 d4 cmp %esi,-0x2c(%ebp) <== NOT EXECUTED
142ddd: 0f 86 99 00 00 00 jbe 142e7c <fat_scan_fat_for_free_clusters+0x138><== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cl4find, &next_cln);
142de3: 50 push %eax <== NOT EXECUTED
142de4: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
142de7: 50 push %eax <== NOT EXECUTED
142de8: 53 push %ebx <== NOT EXECUTED
142de9: 57 push %edi <== NOT EXECUTED
142dea: e8 f5 fc ff ff call 142ae4 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
142def: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142df2: 85 c0 test %eax,%eax <== NOT EXECUTED
142df4: 0f 85 c2 00 00 00 jne 142ebc <fat_scan_fat_for_free_clusters+0x178><== NOT EXECUTED
if (*cls_added != 0)
fat_free_fat_clusters_chain(mt_entry, (*chain));
return rc;
}
if (next_cln == FAT_GENFAT_FREE)
142dfa: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
142dfd: 85 d2 test %edx,%edx <== NOT EXECUTED
142dff: 75 cd jne 142dce <fat_scan_fat_for_free_clusters+0x8a><== 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)
142e01: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
142e04: 8b 02 mov (%edx),%eax <== NOT EXECUTED
142e06: 85 c0 test %eax,%eax <== NOT EXECUTED
142e08: 74 96 je 142da0 <fat_scan_fat_for_free_clusters+0x5c><== NOT EXECUTED
}
}
else
{
/* set EOC value to new allocated cluster */
rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC);
142e0a: 52 push %edx <== NOT EXECUTED
142e0b: 6a ff push $0xffffffff <== NOT EXECUTED
142e0d: 53 push %ebx <== NOT EXECUTED
142e0e: 57 push %edi <== NOT EXECUTED
142e0f: e8 a8 fa ff ff call 1428bc <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
142e14: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142e17: 85 c0 test %eax,%eax <== NOT EXECUTED
142e19: 0f 85 e2 00 00 00 jne 142f01 <fat_scan_fat_for_free_clusters+0x1bd><== NOT EXECUTED
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
return rc;
}
rc = fat_set_fat_cluster(mt_entry, save_cln, cl4find);
142e1f: 50 push %eax <== NOT EXECUTED
142e20: 53 push %ebx <== NOT EXECUTED
142e21: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
142e24: 57 push %edi <== NOT EXECUTED
142e25: e8 92 fa ff ff call 1428bc <fat_set_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
142e2a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142e2d: 85 c0 test %eax,%eax <== NOT EXECUTED
142e2f: 74 89 je 142dba <fat_scan_fat_for_free_clusters+0x76><== NOT EXECUTED
142e31: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
142e33: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
142e36: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
142e39: ff 30 pushl (%eax) <== NOT EXECUTED
142e3b: 57 push %edi <== NOT EXECUTED
142e3c: e8 27 fe ff ff call 142c68 <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);
142e41: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
142e44: 6a 00 push $0x0 <== NOT EXECUTED
142e46: 53 push %ebx <== NOT EXECUTED
142e47: 57 push %edi <== NOT EXECUTED
142e48: e8 6f fa ff ff call 1428bc <fat_set_fat_cluster> <== NOT EXECUTED
fat_buf_release(fs_info);
142e4d: 59 pop %ecx <== NOT EXECUTED
142e4e: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
142e51: e8 36 87 fe ff call 12b58c <fat_buf_release> <== NOT EXECUTED
return rc;
142e56: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142e59: eb 03 jmp 142e5e <fat_scan_fat_for_free_clusters+0x11a><== NOT EXECUTED
142e5b: 90 nop <== NOT EXECUTED
uint32_t data_cls_val = fs_info->vol.data_cls + 2;
uint32_t i = 2;
*cls_added = 0;
if (count == 0)
142e5c: 31 f6 xor %esi,%esi <== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
*last_cl = save_cln;
fat_buf_release(fs_info);
return RC_OK;
}
142e5e: 89 f0 mov %esi,%eax <== NOT EXECUTED
142e60: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142e63: 5b pop %ebx <== NOT EXECUTED
142e64: 5e pop %esi <== NOT EXECUTED
142e65: 5f pop %edi <== NOT EXECUTED
142e66: c9 leave <== NOT EXECUTED
142e67: c3 ret <== NOT EXECUTED
*cls_added = 0;
if (count == 0)
return rc;
if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)
142e68: bb 02 00 00 00 mov $0x2,%ebx <== NOT EXECUTED
142e6d: e9 11 ff ff ff jmp 142d83 <fat_scan_fat_for_free_clusters+0x3f><== 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)
142e72: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
142e79: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
cl4find++;
if (cl4find >= data_cls_val)
cl4find = 2;
}
fs_info->vol.next_cl = save_cln;
142e7c: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
142e7f: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
142e82: 89 42 44 mov %eax,0x44(%edx) <== NOT EXECUTED
if (fs_info->vol.free_cls != 0xFFFFFFFF)
142e85: 8b 42 40 mov 0x40(%edx),%eax <== NOT EXECUTED
142e88: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
142e8b: 74 0b je 142e98 <fat_scan_fat_for_free_clusters+0x154><== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
142e8d: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
142e90: 2b 02 sub (%edx),%eax <== NOT EXECUTED
142e92: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
142e95: 89 42 40 mov %eax,0x40(%edx) <== NOT EXECUTED
*last_cl = save_cln;
142e98: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
142e9b: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
142e9e: 89 10 mov %edx,(%eax) <== NOT EXECUTED
fat_buf_release(fs_info);
142ea0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
142ea3: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
142ea6: e8 e1 86 fe ff call 12b58c <fat_buf_release> <== NOT EXECUTED
142eab: 31 f6 xor %esi,%esi <== NOT EXECUTED
return RC_OK;
142ead: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
142eb0: 89 f0 mov %esi,%eax <== NOT EXECUTED
142eb2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142eb5: 5b pop %ebx <== NOT EXECUTED
142eb6: 5e pop %esi <== NOT EXECUTED
142eb7: 5f pop %edi <== NOT EXECUTED
142eb8: c9 leave <== NOT EXECUTED
142eb9: c3 ret <== NOT EXECUTED
142eba: 66 90 xchg %ax,%ax <== NOT EXECUTED
142ebc: 89 c6 mov %eax,%esi <== NOT EXECUTED
while (i < data_cls_val)
{
rc = fat_get_fat_cluster(mt_entry, cl4find, &next_cln);
if ( rc != RC_OK )
{
if (*cls_added != 0)
142ebe: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
142ec1: 8b 0a mov (%edx),%ecx <== NOT EXECUTED
142ec3: 85 c9 test %ecx,%ecx <== NOT EXECUTED
142ec5: 74 97 je 142e5e <fat_scan_fat_for_free_clusters+0x11a><== NOT EXECUTED
fat_free_fat_clusters_chain(mt_entry, (*chain));
142ec7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
142eca: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
142ecd: ff 30 pushl (%eax) <== NOT EXECUTED
142ecf: 57 push %edi <== NOT EXECUTED
142ed0: e8 93 fd ff ff call 142c68 <fat_free_fat_clusters_chain><== NOT EXECUTED
142ed5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142ed8: eb 84 jmp 142e5e <fat_scan_fat_for_free_clusters+0x11a><== NOT EXECUTED
(*cls_added)++;
/* have we satisfied request ? */
if (*cls_added == count)
{
fs_info->vol.next_cl = save_cln;
142eda: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
142edd: 89 58 44 mov %ebx,0x44(%eax) <== NOT EXECUTED
if (fs_info->vol.free_cls != 0xFFFFFFFF)
142ee0: 8b 40 40 mov 0x40(%eax),%eax <== NOT EXECUTED
142ee3: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
142ee6: 74 0b je 142ef3 <fat_scan_fat_for_free_clusters+0x1af><== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
142ee8: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
142eeb: 2b 02 sub (%edx),%eax <== NOT EXECUTED
142eed: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
142ef0: 89 42 40 mov %eax,0x40(%edx) <== NOT EXECUTED
*last_cl = save_cln;
142ef3: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
142ef6: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
142ef8: eb a6 jmp 142ea0 <fat_scan_fat_for_free_clusters+0x15c><== NOT EXECUTED
142efa: 89 c6 mov %eax,%esi <== NOT EXECUTED
142efc: e9 5d ff ff ff jmp 142e5e <fat_scan_fat_for_free_clusters+0x11a><== NOT EXECUTED
142f01: 89 c6 mov %eax,%esi <== NOT EXECUTED
/* set EOC value to new allocated cluster */
rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC);
if ( rc != RC_OK )
{
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
142f03: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
142f06: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
142f09: ff 32 pushl (%edx) <== NOT EXECUTED
142f0b: 57 push %edi <== NOT EXECUTED
142f0c: e8 57 fd ff ff call 142c68 <fat_free_fat_clusters_chain><== NOT EXECUTED
return rc;
142f11: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142f14: e9 45 ff ff ff jmp 142e5e <fat_scan_fat_for_free_clusters+0x11a><== NOT EXECUTED
001428bc <fat_set_fat_cluster>:
fat_set_fat_cluster(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
uint32_t in_val
)
{
1428bc: 55 push %ebp <== NOT EXECUTED
1428bd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1428bf: 57 push %edi <== NOT EXECUTED
1428c0: 56 push %esi <== NOT EXECUTED
1428c1: 53 push %ebx <== NOT EXECUTED
1428c2: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
1428c5: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
1428c8: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1428cb: 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;
1428ce: 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)) )
1428d5: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED
1428d8: 76 6b jbe 142945 <fat_set_fat_cluster+0x89><== NOT EXECUTED
1428da: 8b 43 34 mov 0x34(%ebx),%eax <== NOT EXECUTED
1428dd: 40 inc %eax <== NOT EXECUTED
1428de: 39 c2 cmp %eax,%edx <== NOT EXECUTED
1428e0: 77 63 ja 142945 <fat_set_fat_cluster+0x89><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
1428e2: 0f b6 43 0a movzbl 0xa(%ebx),%eax <== NOT EXECUTED
1428e6: a8 01 test $0x1,%al <== NOT EXECUTED
1428e8: 75 76 jne 142960 <fat_set_fat_cluster+0xa4><== NOT EXECUTED
1428ea: a8 02 test $0x2,%al <== NOT EXECUTED
1428ec: 74 7a je 142968 <fat_set_fat_cluster+0xac><== NOT EXECUTED
1428ee: 8d 04 12 lea (%edx,%edx,1),%eax <== NOT EXECUTED
1428f1: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
1428f4: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
1428f8: 89 c6 mov %eax,%esi <== NOT EXECUTED
1428fa: d3 ee shr %cl,%esi <== NOT EXECUTED
1428fc: 03 73 4c add 0x4c(%ebx),%esi <== NOT EXECUTED
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
1428ff: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
142901: 66 89 45 d2 mov %ax,-0x2e(%ebp) <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
142905: 8d 7d e4 lea -0x1c(%ebp),%edi <== NOT EXECUTED
142908: 57 push %edi <== NOT EXECUTED
142909: 6a 01 push $0x1 <== NOT EXECUTED
14290b: 56 push %esi <== NOT EXECUTED
14290c: 53 push %ebx <== NOT EXECUTED
14290d: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
142910: e8 e7 8d fe ff call 12b6fc <fat_buf_access> <== NOT EXECUTED
if (rc != RC_OK)
142915: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142918: 85 c0 test %eax,%eax <== NOT EXECUTED
14291a: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
14291d: 75 36 jne 142955 <fat_set_fat_cluster+0x99><== 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);
14291f: 0f b7 4d d2 movzwl -0x2e(%ebp),%ecx <== NOT EXECUTED
142923: 49 dec %ecx <== NOT EXECUTED
142924: 89 4d c4 mov %ecx,-0x3c(%ebp) <== NOT EXECUTED
142927: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
14292a: 21 4d c4 and %ecx,-0x3c(%ebp) <== 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 )
14292d: 8a 4b 0a mov 0xa(%ebx),%cl <== NOT EXECUTED
142930: 88 4d d4 mov %cl,-0x2c(%ebp) <== NOT EXECUTED
142933: 80 f9 02 cmp $0x2,%cl <== NOT EXECUTED
142936: 74 4c je 142984 <fat_set_fat_cluster+0xc8><== NOT EXECUTED
142938: 80 f9 04 cmp $0x4,%cl <== NOT EXECUTED
14293b: 0f 84 cb 00 00 00 je 142a0c <fat_set_fat_cluster+0x150><== NOT EXECUTED
142941: fe c9 dec %cl <== NOT EXECUTED
142943: 74 5f je 1429a4 <fat_set_fat_cluster+0xe8><== NOT EXECUTED
fat_buf_mark_modified(fs_info);
break;
default:
rtems_set_errno_and_return_minus_one(EIO);
142945: e8 42 3e 00 00 call 14678c <__errno> <== NOT EXECUTED
14294a: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
142950: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
break;
}
return RC_OK;
}
142955: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142958: 5b pop %ebx <== NOT EXECUTED
142959: 5e pop %esi <== NOT EXECUTED
14295a: 5f pop %edi <== NOT EXECUTED
14295b: c9 leave <== NOT EXECUTED
14295c: c3 ret <== NOT EXECUTED
14295d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* sanity check */
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) +
142960: 89 d0 mov %edx,%eax <== NOT EXECUTED
142962: d1 e8 shr %eax <== NOT EXECUTED
142964: 01 d0 add %edx,%eax <== NOT EXECUTED
142966: eb 89 jmp 1428f1 <fat_set_fat_cluster+0x35><== NOT EXECUTED
142968: 8d 0c 95 00 00 00 00 lea 0x0(,%edx,4),%ecx <== NOT EXECUTED
14296f: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
142972: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
142976: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED
142979: d3 ee shr %cl,%esi <== NOT EXECUTED
14297b: 03 73 4c add 0x4c(%ebx),%esi <== NOT EXECUTED
14297e: e9 7c ff ff ff jmp 1428ff <fat_set_fat_cluster+0x43><== NOT EXECUTED
142983: 90 nop <== NOT EXECUTED
}
}
break;
case FAT_FAT16:
*((uint16_t *)(block0->buffer + ofs)) =
142984: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
142987: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
14298a: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
14298d: 8b 75 c4 mov -0x3c(%ebp),%esi <== NOT EXECUTED
142990: 66 89 0c 32 mov %cx,(%edx,%esi,1) <== NOT EXECUTED
}
static inline void
fat_buf_mark_modified(fat_fs_info_t *fs_info)
{
fs_info->c.modified = true;
142994: c6 83 80 00 00 00 01 movb $0x1,0x80(%ebx) <== NOT EXECUTED
break;
}
return RC_OK;
}
14299b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
14299e: 5b pop %ebx <== NOT EXECUTED
14299f: 5e pop %esi <== NOT EXECUTED
1429a0: 5f pop %edi <== NOT EXECUTED
1429a1: c9 leave <== NOT EXECUTED
1429a2: c3 ret <== NOT EXECUTED
1429a3: 90 nop <== NOT EXECUTED
return rc;
switch ( fs_info->vol.type )
{
case FAT_FAT12:
if ( FAT_CLUSTER_IS_ODD(cln) )
1429a4: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
1429a7: 0f 84 8b 00 00 00 je 142a38 <fat_set_fat_cluster+0x17c><== NOT EXECUTED
{
fat16_clv = ((uint16_t )in_val) << FAT_FAT12_SHIFT;
1429ad: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1429b0: c1 e2 04 shl $0x4,%edx <== NOT EXECUTED
1429b3: 66 89 55 d4 mov %dx,-0x2c(%ebp) <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) & 0x0F;
1429b7: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1429ba: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
1429bd: 03 55 c4 add -0x3c(%ebp),%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)) =
1429c0: 80 22 0f andb $0xf,(%edx) <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs))) & 0x0F;
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) |
1429c3: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1429c6: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
1429c9: 03 55 c4 add -0x3c(%ebp),%edx <== 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)) =
1429cc: 8a 4d d4 mov -0x2c(%ebp),%cl <== NOT EXECUTED
1429cf: 08 0a or %cl,(%edx) <== NOT EXECUTED
1429d1: 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) )
1429d8: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
1429db: 4a dec %edx <== NOT EXECUTED
1429dc: 3b 55 c4 cmp -0x3c(%ebp),%edx <== NOT EXECUTED
1429df: 0f 84 9f 00 00 00 je 142a84 <fat_set_fat_cluster+0x1c8><== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
1429e5: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
1429e8: 41 inc %ecx <== NOT EXECUTED
1429e9: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1429ec: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
1429ef: c6 04 0a 00 movb $0x0,(%edx,%ecx,1) <== NOT EXECUTED
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
(*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0;
*((uint8_t *)(block0->buffer + ofs+1)) =
(*((uint8_t *)(block0->buffer + ofs+1))) |
1429f3: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1429f6: 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)) =
1429f9: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
1429fc: 66 c1 ea 08 shr $0x8,%dx <== NOT EXECUTED
142a00: 08 11 or %dl,(%ecx) <== NOT EXECUTED
break;
}
return RC_OK;
}
142a02: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142a05: 5b pop %ebx <== NOT EXECUTED
142a06: 5e pop %esi <== NOT EXECUTED
142a07: 5f pop %edi <== NOT EXECUTED
142a08: c9 leave <== NOT EXECUTED
142a09: c3 ret <== NOT EXECUTED
142a0a: 66 90 xchg %ax,%ax <== 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));
142a0c: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
142a0f: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
142a12: 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)) =
142a15: 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)) =
142a1b: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
142a1e: 81 e2 ff ff ff 0f and $0xfffffff,%edx <== NOT EXECUTED
142a24: 09 11 or %edx,(%ecx) <== NOT EXECUTED
142a26: c6 83 80 00 00 00 01 movb $0x1,0x80(%ebx) <== NOT EXECUTED
break;
}
return RC_OK;
}
142a2d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142a30: 5b pop %ebx <== NOT EXECUTED
142a31: 5e pop %esi <== NOT EXECUTED
142a32: 5f pop %edi <== NOT EXECUTED
142a33: c9 leave <== NOT EXECUTED
142a34: c3 ret <== NOT EXECUTED
142a35: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
(uint8_t )((fat16_clv & 0xFF00)>>8);
}
}
else
{
fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK;
142a38: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
142a3b: 81 e2 ff 0f 00 00 and $0xfff,%edx <== NOT EXECUTED
142a41: 66 89 55 d4 mov %dx,-0x2c(%ebp) <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) &= 0x00;
142a45: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
142a48: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
142a4b: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
142a4e: c6 04 0a 00 movb $0x0,(%edx,%ecx,1) <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) |
142a52: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
142a55: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
142a58: 01 ca add %ecx,%edx <== NOT EXECUTED
else
{
fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK;
*((uint8_t *)(block0->buffer + ofs)) &= 0x00;
*((uint8_t *)(block0->buffer + ofs)) =
142a5a: 8a 4d d4 mov -0x2c(%ebp),%cl <== NOT EXECUTED
142a5d: 08 0a or %cl,(%edx) <== NOT EXECUTED
142a5f: 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) )
142a66: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
142a69: 4a dec %edx <== NOT EXECUTED
142a6a: 3b 55 c4 cmp -0x3c(%ebp),%edx <== NOT EXECUTED
142a6d: 74 51 je 142ac0 <fat_set_fat_cluster+0x204><== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
(*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0;
142a6f: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
142a72: 41 inc %ecx <== NOT EXECUTED
142a73: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
142a76: 8b 5a 20 mov 0x20(%edx),%ebx <== NOT EXECUTED
142a79: 8d 14 19 lea (%ecx,%ebx,1),%edx <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
142a7c: 80 22 f0 andb $0xf0,(%edx) <== NOT EXECUTED
142a7f: e9 6f ff ff ff jmp 1429f3 <fat_set_fat_cluster+0x137><== NOT EXECUTED
fat_buf_mark_modified(fs_info);
if ( ofs == (fs_info->vol.bps - 1) )
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
142a84: 57 push %edi <== NOT EXECUTED
142a85: 6a 01 push $0x1 <== NOT EXECUTED
142a87: 46 inc %esi <== NOT EXECUTED
142a88: 56 push %esi <== NOT EXECUTED
142a89: 53 push %ebx <== NOT EXECUTED
142a8a: e8 6d 8c fe ff call 12b6fc <fat_buf_access> <== NOT EXECUTED
&block0);
if (rc != RC_OK)
142a8f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142a92: 85 c0 test %eax,%eax <== NOT EXECUTED
142a94: 0f 85 bb fe ff ff jne 142955 <fat_set_fat_cluster+0x99><== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) &= 0x00;
142a9a: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
142a9d: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
142aa0: c6 02 00 movb $0x0,(%edx) <== NOT EXECUTED
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) & 0xF0;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) |
142aa3: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
142aa6: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) & 0xF0;
*((uint8_t *)(block0->buffer)) =
142aa9: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
142aac: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
142ab0: 08 0a or %cl,(%edx) <== NOT EXECUTED
142ab2: c6 83 80 00 00 00 01 movb $0x1,0x80(%ebx) <== NOT EXECUTED
142ab9: e9 97 fe ff ff jmp 142955 <fat_set_fat_cluster+0x99><== NOT EXECUTED
142abe: 66 90 xchg %ax,%ax <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
if ( ofs == (fs_info->vol.bps - 1) )
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
142ac0: 57 push %edi <== NOT EXECUTED
142ac1: 6a 01 push $0x1 <== NOT EXECUTED
142ac3: 46 inc %esi <== NOT EXECUTED
142ac4: 56 push %esi <== NOT EXECUTED
142ac5: 53 push %ebx <== NOT EXECUTED
142ac6: e8 31 8c fe ff call 12b6fc <fat_buf_access> <== NOT EXECUTED
&block0);
if (rc != RC_OK)
142acb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142ace: 85 c0 test %eax,%eax <== NOT EXECUTED
142ad0: 0f 85 7f fe ff ff jne 142955 <fat_set_fat_cluster+0x99><== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) & 0xF0;
142ad6: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
142ad9: 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)) =
142adc: 80 22 f0 andb $0xf0,(%edx) <== NOT EXECUTED
142adf: eb c2 jmp 142aa3 <fat_set_fat_cluster+0x1e7><== NOT EXECUTED
0012ba50 <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)
{
12ba50: 55 push %ebp <== NOT EXECUTED
12ba51: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12ba53: 57 push %edi <== NOT EXECUTED
12ba54: 56 push %esi <== NOT EXECUTED
12ba55: 53 push %ebx <== NOT EXECUTED
12ba56: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
12ba59: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
12ba5c: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
int i = 0;
if (fs_info->vol.type & FAT_FAT32)
12ba5f: f6 46 0a 04 testb $0x4,0xa(%esi) <== NOT EXECUTED
12ba63: 0f 85 df 00 00 00 jne 12bb48 <fat_shutdown_drive+0xf8><== NOT EXECUTED
12ba69: 31 ff xor %edi,%edi <== NOT EXECUTED
fs_info->vol.next_cl);
if ( rc != RC_OK )
rc = -1;
}
fat_buf_release(fs_info);
12ba6b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12ba6e: 56 push %esi <== NOT EXECUTED
12ba6f: e8 18 fb ff ff call 12b58c <fat_buf_release> <== NOT EXECUTED
if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL)
12ba74: 5a pop %edx <== NOT EXECUTED
12ba75: 59 pop %ecx <== NOT EXECUTED
12ba76: ff 76 58 pushl 0x58(%esi) <== NOT EXECUTED
12ba79: ff 76 54 pushl 0x54(%esi) <== NOT EXECUTED
12ba7c: e8 d7 ef fd ff call 10aa58 <rtems_bdbuf_syncdev> <== NOT EXECUTED
12ba81: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12ba84: 85 c0 test %eax,%eax <== NOT EXECUTED
12ba86: 0f 85 e0 00 00 00 jne 12bb6c <fat_shutdown_drive+0x11c><== NOT EXECUTED
12ba8c: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== 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;
12ba93: 8b 5d e4 mov -0x1c(%ebp),%ebx <== NOT EXECUTED
12ba96: 03 5e 64 add 0x64(%esi),%ebx <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
12ba99: eb 0d jmp 12baa8 <fat_shutdown_drive+0x58><== NOT EXECUTED
12ba9b: 90 nop <== NOT EXECUTED
free(node);
12ba9c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12ba9f: 50 push %eax <== NOT EXECUTED
12baa0: e8 c3 2d fe ff call 10e868 <free> <== NOT EXECUTED
12baa5: 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 );
12baa8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12baab: 53 push %ebx <== NOT EXECUTED
12baac: e8 9b 7f fe ff call 113a4c <_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 )
12bab1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bab4: 85 c0 test %eax,%eax <== NOT EXECUTED
12bab6: 75 e4 jne 12ba9c <fat_shutdown_drive+0x4c><== NOT EXECUTED
12bab8: 83 45 e4 0c addl $0xc,-0x1c(%ebp) <== 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++)
12babc: 83 7d e4 18 cmpl $0x18,-0x1c(%ebp) <== NOT EXECUTED
12bac0: 75 d1 jne 12ba93 <fat_shutdown_drive+0x43><== NOT EXECUTED
12bac2: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
}
for (i = 0; i < FAT_HASH_SIZE; i++)
{
rtems_chain_node *node = NULL;
rtems_chain_control *the_chain = fs_info->rhash + i;
12bac9: 8b 5d e4 mov -0x1c(%ebp),%ebx <== NOT EXECUTED
12bacc: 03 5e 68 add 0x68(%esi),%ebx <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
12bacf: eb 0f jmp 12bae0 <fat_shutdown_drive+0x90><== NOT EXECUTED
12bad1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
free(node);
12bad4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12bad7: 50 push %eax <== NOT EXECUTED
12bad8: e8 8b 2d fe ff call 10e868 <free> <== NOT EXECUTED
12badd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bae0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12bae3: 53 push %ebx <== NOT EXECUTED
12bae4: e8 63 7f fe ff call 113a4c <_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 )
12bae9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12baec: 85 c0 test %eax,%eax <== NOT EXECUTED
12baee: 75 e4 jne 12bad4 <fat_shutdown_drive+0x84><== NOT EXECUTED
12baf0: 83 45 e4 0c addl $0xc,-0x1c(%ebp) <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
free(node);
}
for (i = 0; i < FAT_HASH_SIZE; i++)
12baf4: 83 7d e4 18 cmpl $0x18,-0x1c(%ebp) <== NOT EXECUTED
12baf8: 75 cf jne 12bac9 <fat_shutdown_drive+0x79><== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
free(node);
}
free(fs_info->vhash);
12bafa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12bafd: ff 76 64 pushl 0x64(%esi) <== NOT EXECUTED
12bb00: e8 63 2d fe ff call 10e868 <free> <== NOT EXECUTED
free(fs_info->rhash);
12bb05: 58 pop %eax <== NOT EXECUTED
12bb06: ff 76 68 pushl 0x68(%esi) <== NOT EXECUTED
12bb09: e8 5a 2d fe ff call 10e868 <free> <== NOT EXECUTED
free(fs_info->uino);
12bb0e: 5b pop %ebx <== NOT EXECUTED
12bb0f: ff 76 6c pushl 0x6c(%esi) <== NOT EXECUTED
12bb12: e8 51 2d fe ff call 10e868 <free> <== NOT EXECUTED
free(fs_info->sec_buf);
12bb17: 59 pop %ecx <== NOT EXECUTED
12bb18: ff b6 88 00 00 00 pushl 0x88(%esi) <== NOT EXECUTED
12bb1e: e8 45 2d fe ff call 10e868 <free> <== NOT EXECUTED
rtems_disk_release(fs_info->vol.dd);
12bb23: 5a pop %edx <== NOT EXECUTED
12bb24: ff 76 5c pushl 0x5c(%esi) <== NOT EXECUTED
12bb27: e8 34 1b fe ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
if (rc)
12bb2c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bb2f: 85 ff test %edi,%edi <== NOT EXECUTED
12bb31: 74 0b je 12bb3e <fat_shutdown_drive+0xee><== NOT EXECUTED
errno = EIO;
12bb33: e8 54 ac 01 00 call 14678c <__errno> <== NOT EXECUTED
12bb38: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
return rc;
}
12bb3e: 89 f8 mov %edi,%eax <== NOT EXECUTED
12bb40: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12bb43: 5b pop %ebx <== NOT EXECUTED
12bb44: 5e pop %esi <== NOT EXECUTED
12bb45: 5f pop %edi <== NOT EXECUTED
12bb46: c9 leave <== NOT EXECUTED
12bb47: c3 ret <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
int i = 0;
if (fs_info->vol.type & FAT_FAT32)
{
rc = fat_fat32_update_fsinfo_sector(mt_entry, fs_info->vol.free_cls,
12bb48: 53 push %ebx <== NOT EXECUTED
12bb49: ff 76 44 pushl 0x44(%esi) <== NOT EXECUTED
12bb4c: ff 76 40 pushl 0x40(%esi) <== NOT EXECUTED
12bb4f: 50 push %eax <== NOT EXECUTED
12bb50: e8 93 fe ff ff call 12b9e8 <fat_fat32_update_fsinfo_sector><== NOT EXECUTED
12bb55: 89 c7 mov %eax,%edi <== NOT EXECUTED
fs_info->vol.next_cl);
if ( rc != RC_OK )
12bb57: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12bb5a: 85 c0 test %eax,%eax <== NOT EXECUTED
12bb5c: 0f 84 09 ff ff ff je 12ba6b <fat_shutdown_drive+0x1b><== NOT EXECUTED
12bb62: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
12bb67: e9 ff fe ff ff jmp 12ba6b <fat_shutdown_drive+0x1b><== NOT EXECUTED
rc = -1;
}
fat_buf_release(fs_info);
if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL)
12bb6c: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
12bb71: e9 16 ff ff ff jmp 12ba8c <fat_shutdown_drive+0x3c><== NOT EXECUTED
00143334 <fchdir>:
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
143334: 55 push %ebp <== NOT EXECUTED
143335: 89 e5 mov %esp,%ebp <== NOT EXECUTED
143337: 57 push %edi <== NOT EXECUTED
143338: 56 push %esi <== NOT EXECUTED
143339: 53 push %ebx <== NOT EXECUTED
14333a: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
14333d: 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 );
143340: 3b 1d 4c b1 16 00 cmp 0x16b14c,%ebx <== NOT EXECUTED
143346: 0f 83 c0 00 00 00 jae 14340c <fchdir+0xd8> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
14334c: c1 e3 06 shl $0x6,%ebx <== NOT EXECUTED
14334f: 03 1d 3c 2d 17 00 add 0x172d3c,%ebx <== NOT EXECUTED
rtems_libio_check_is_open(iop);
143355: f6 43 15 01 testb $0x1,0x15(%ebx) <== NOT EXECUTED
143359: 0f 84 ad 00 00 00 je 14340c <fchdir+0xd8> <== NOT EXECUTED
/*
* Verify you can change directory into this node.
*/
if ( !iop->pathinfo.ops ) {
14335f: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
143362: 85 c0 test %eax,%eax <== NOT EXECUTED
143364: 0f 84 d0 00 00 00 je 14343a <fchdir+0x106> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( !iop->pathinfo.ops->node_type_h ) {
14336a: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED
14336d: 85 c0 test %eax,%eax <== NOT EXECUTED
14336f: 0f 84 c5 00 00 00 je 14343a <fchdir+0x106> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
143375: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
143378: 83 c3 18 add $0x18,%ebx <== NOT EXECUTED
14337b: 53 push %ebx <== NOT EXECUTED
14337c: ff d0 call *%eax <== NOT EXECUTED
14337e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
143381: 48 dec %eax <== NOT EXECUTED
143382: 75 74 jne 1433f8 <fchdir+0xc4> <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
143384: a1 20 d3 16 00 mov 0x16d320,%eax <== NOT EXECUTED
143389: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED
14338c: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
14338f: 8d 70 04 lea 0x4(%eax),%esi <== NOT EXECUTED
143392: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
143397: 89 d7 mov %edx,%edi <== NOT EXECUTED
143399: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
14339b: 8d 78 04 lea 0x4(%eax),%edi <== NOT EXECUTED
14339e: b1 05 mov $0x5,%cl <== NOT EXECUTED
1433a0: 89 de mov %ebx,%esi <== NOT EXECUTED
1433a2: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
1433a4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1433a7: 6a 00 push $0x0 <== NOT EXECUTED
1433a9: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED
1433ac: 56 push %esi <== NOT EXECUTED
1433ad: 6a 00 push $0x0 <== NOT EXECUTED
1433af: 6a 01 push $0x1 <== NOT EXECUTED
1433b1: 68 f8 07 16 00 push $0x1607f8 <== NOT EXECUTED
1433b6: e8 3d b4 fc ff call 10e7f8 <rtems_filesystem_evaluate_path><== NOT EXECUTED
1433bb: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1433be: 85 c0 test %eax,%eax <== NOT EXECUTED
1433c0: 75 5e jne 143420 <fchdir+0xec> <== NOT EXECUTED
/* cloning failed; restore original and bail out */
rtems_filesystem_current = saved;
return -1;
}
/* release the old one */
rtems_filesystem_freenode( &saved );
1433c2: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1433c5: 85 c0 test %eax,%eax <== NOT EXECUTED
1433c7: 74 13 je 1433dc <fchdir+0xa8> <== NOT EXECUTED
1433c9: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1433cc: 85 c0 test %eax,%eax <== NOT EXECUTED
1433ce: 74 0c je 1433dc <fchdir+0xa8> <== NOT EXECUTED
1433d0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1433d3: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED
1433d6: 52 push %edx <== NOT EXECUTED
1433d7: ff d0 call *%eax <== NOT EXECUTED
1433d9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_current = loc;
1433dc: 8b 3d 20 d3 16 00 mov 0x16d320,%edi <== NOT EXECUTED
1433e2: 83 c7 04 add $0x4,%edi <== NOT EXECUTED
1433e5: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
1433ea: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
1433ec: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
1433ee: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1433f1: 5b pop %ebx <== NOT EXECUTED
1433f2: 5e pop %esi <== NOT EXECUTED
1433f3: 5f pop %edi <== NOT EXECUTED
1433f4: c9 leave <== NOT EXECUTED
1433f5: c3 ret <== NOT EXECUTED
1433f6: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_set_errno_and_return_minus_one( ENOTDIR );
1433f8: e8 8f 33 00 00 call 14678c <__errno> <== NOT EXECUTED
1433fd: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
143403: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
143408: eb e4 jmp 1433ee <fchdir+0xba> <== NOT EXECUTED
14340a: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
14340c: e8 7b 33 00 00 call 14678c <__errno> <== NOT EXECUTED
143411: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
143417: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
14341c: eb d0 jmp 1433ee <fchdir+0xba> <== NOT EXECUTED
14341e: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
/* cloning failed; restore original and bail out */
rtems_filesystem_current = saved;
143420: 8b 3d 20 d3 16 00 mov 0x16d320,%edi <== NOT EXECUTED
143426: 83 c7 04 add $0x4,%edi <== NOT EXECUTED
143429: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
14342e: 8b 75 b4 mov -0x4c(%ebp),%esi <== NOT EXECUTED
143431: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
143433: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
143438: eb b4 jmp 1433ee <fchdir+0xba> <== NOT EXECUTED
if ( !iop->pathinfo.ops ) {
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( !iop->pathinfo.ops->node_type_h ) {
rtems_set_errno_and_return_minus_one( ENOTSUP );
14343a: e8 4d 33 00 00 call 14678c <__errno> <== NOT EXECUTED
14343f: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
143445: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
14344a: eb a2 jmp 1433ee <fchdir+0xba> <== NOT EXECUTED
0012e1b0 <fchmod>:
int fchmod(
int fd,
mode_t mode
)
{
12e1b0: 55 push %ebp <== NOT EXECUTED
12e1b1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12e1b3: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12e1b6: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12e1b9: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
12e1bc: 3b 05 4c b1 16 00 cmp 0x16b14c,%eax <== NOT EXECUTED
12e1c2: 73 2c jae 12e1f0 <fchmod+0x40> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
12e1c4: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED
12e1c7: 03 05 3c 2d 17 00 add 0x172d3c,%eax <== NOT EXECUTED
rtems_libio_check_is_open(iop);
12e1cd: f6 40 15 01 testb $0x1,0x15(%eax) <== NOT EXECUTED
12e1d1: 74 1d je 12e1f0 <fchmod+0x40> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
if ( !iop->handlers->fchmod_h )
12e1d3: 8b 48 3c mov 0x3c(%eax),%ecx <== NOT EXECUTED
12e1d6: 8b 49 1c mov 0x1c(%ecx),%ecx <== NOT EXECUTED
12e1d9: 85 c9 test %ecx,%ecx <== NOT EXECUTED
12e1db: 74 25 je 12e202 <fchmod+0x52> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
12e1dd: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
12e1e0: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
12e1e3: 83 c0 18 add $0x18,%eax <== NOT EXECUTED
12e1e6: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
12e1e9: 8b 41 1c mov 0x1c(%ecx),%eax <== NOT EXECUTED
}
12e1ec: 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 );
12e1ed: ff e0 jmp *%eax <== NOT EXECUTED
12e1ef: 90 nop <== NOT EXECUTED
{
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
12e1f0: e8 97 85 01 00 call 14678c <__errno> <== NOT EXECUTED
12e1f5: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
*/
if ( !iop->handlers->fchmod_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
}
12e1fb: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12e200: c9 leave <== NOT EXECUTED
12e201: c3 ret <== NOT EXECUTED
/*
* Now process the fchmod().
*/
if ( !iop->handlers->fchmod_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
12e202: e8 85 85 01 00 call 14678c <__errno> <== NOT EXECUTED
12e207: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12e20d: eb ec jmp 12e1fb <fchmod+0x4b> <== NOT EXECUTED
0012e210 <fchown>:
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
12e210: 55 push %ebp <== NOT EXECUTED
12e211: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12e213: 53 push %ebx <== NOT EXECUTED
12e214: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
12e217: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12e21a: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
12e21d: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
12e220: 3b 05 4c b1 16 00 cmp 0x16b14c,%eax <== NOT EXECUTED
12e226: 73 38 jae 12e260 <fchown+0x50> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
12e228: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED
12e22b: 03 05 3c 2d 17 00 add 0x172d3c,%eax <== NOT EXECUTED
rtems_libio_check_is_open(iop);
12e231: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED
12e234: f6 c6 01 test $0x1,%dh <== NOT EXECUTED
12e237: 74 27 je 12e260 <fchown+0x50> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
12e239: 83 e2 04 and $0x4,%edx <== NOT EXECUTED
12e23c: 74 36 je 12e274 <fchown+0x64> <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
12e23e: 8b 50 24 mov 0x24(%eax),%edx <== NOT EXECUTED
12e241: 8b 52 18 mov 0x18(%edx),%edx <== NOT EXECUTED
12e244: 85 d2 test %edx,%edx <== NOT EXECUTED
12e246: 74 39 je 12e281 <fchown+0x71> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group );
12e248: 0f b7 db movzwl %bx,%ebx <== NOT EXECUTED
12e24b: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED
12e24e: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED
12e251: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED
12e254: 83 c0 18 add $0x18,%eax <== NOT EXECUTED
12e257: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
12e25a: 59 pop %ecx <== NOT EXECUTED
12e25b: 5b pop %ebx <== NOT EXECUTED
12e25c: 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 );
12e25d: ff e2 jmp *%edx <== NOT EXECUTED
12e25f: 90 nop <== NOT EXECUTED
{
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
12e260: e8 27 85 01 00 call 14678c <__errno> <== NOT EXECUTED
12e265: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group );
}
12e26b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12e270: 5a pop %edx <== NOT EXECUTED
12e271: 5b pop %ebx <== NOT EXECUTED
12e272: c9 leave <== NOT EXECUTED
12e273: c3 ret <== NOT EXECUTED
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
12e274: e8 13 85 01 00 call 14678c <__errno> <== NOT EXECUTED
12e279: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
12e27f: eb ea jmp 12e26b <fchown+0x5b> <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
12e281: e8 06 85 01 00 call 14678c <__errno> <== NOT EXECUTED
12e286: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12e28c: eb dd jmp 12e26b <fchown+0x5b> <== NOT EXECUTED
0014344c <fcntl>:
int fcntl(
int fd,
int cmd,
...
)
{
14344c: 55 push %ebp
14344d: 89 e5 mov %esp,%ebp
14344f: 57 push %edi
143450: 56 push %esi
143451: 53 push %ebx
143452: 83 ec 1c sub $0x1c,%esp
143455: 8b 5d 08 mov 0x8(%ebp),%ebx
143458: 8b 55 0c mov 0xc(%ebp),%edx
#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, ...));
14345b: 8d 7d 10 lea 0x10(%ebp),%edi
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
14345e: 8b 35 4c b1 16 00 mov 0x16b14c,%esi
143464: 39 f3 cmp %esi,%ebx
143466: 0f 83 3c 01 00 00 jae 1435a8 <fcntl+0x15c> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
14346c: a1 3c 2d 17 00 mov 0x172d3c,%eax
143471: c1 e3 06 shl $0x6,%ebx
143474: 8d 1c 18 lea (%eax,%ebx,1),%ebx
rtems_libio_check_is_open(iop);
143477: 8b 4b 14 mov 0x14(%ebx),%ecx
14347a: f6 c5 01 test $0x1,%ch
14347d: 0f 84 25 01 00 00 je 1435a8 <fcntl+0x15c> <== NEVER TAKEN
/*
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
143483: 83 fa 09 cmp $0x9,%edx
143486: 76 14 jbe 14349c <fcntl+0x50>
errno = ENOTSUP;
ret = -1;
break;
default:
errno = EINVAL;
143488: e8 ff 32 00 00 call 14678c <__errno>
14348d: c7 00 16 00 00 00 movl $0x16,(%eax)
143493: be ff ff ff ff mov $0xffffffff,%esi
143498: eb 1a jmp 1434b4 <fcntl+0x68>
14349a: 66 90 xchg %ax,%ax
/*
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
14349c: ff 24 95 24 85 16 00 jmp *0x168524(,%edx,4)
1434a3: 90 nop
errno = ENOTSUP;
ret = -1;
break;
case F_GETOWN: /* for sockets. */
errno = ENOTSUP;
1434a4: e8 e3 32 00 00 call 14678c <__errno>
1434a9: c7 00 86 00 00 00 movl $0x86,(%eax)
1434af: be ff ff ff ff mov $0xffffffff,%esi
va_list ap;
va_start( ap, cmd );
ret = vfcntl(fd,cmd,ap);
va_end(ap);
return ret;
}
1434b4: 89 f0 mov %esi,%eax
1434b6: 8d 65 f4 lea -0xc(%ebp),%esp
1434b9: 5b pop %ebx
1434ba: 5e pop %esi
1434bb: 5f pop %edi
1434bc: c9 leave
1434bd: c3 ret
1434be: 66 90 xchg %ax,%ax
case F_GETFL: /* more flags (cloexec) */
ret = rtems_libio_to_fcntl_flags( iop->flags );
break;
case F_SETFL:
flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );
1434c0: 83 ec 0c sub $0xc,%esp
1434c3: ff 37 pushl (%edi)
1434c5: 89 55 e0 mov %edx,-0x20(%ebp)
1434c8: e8 b7 b7 fc ff call 10ec84 <rtems_libio_fcntl_flags>
/*
* XXX If we are turning on append, should we seek to the end?
*/
iop->flags = (iop->flags & ~mask) | (flags & mask);
1434cd: 25 01 02 00 00 and $0x201,%eax
1434d2: 8b 4b 14 mov 0x14(%ebx),%ecx
1434d5: 81 e1 fe fd ff ff and $0xfffffdfe,%ecx
1434db: 09 c8 or %ecx,%eax
1434dd: 89 43 14 mov %eax,0x14(%ebx)
1434e0: 31 f6 xor %esi,%esi
1434e2: 83 c4 10 add $0x10,%esp
1434e5: 8b 55 e0 mov -0x20(%ebp),%edx
* If we got this far successfully, then we give the optional
* filesystem specific handler a chance to process this.
*/
if (ret >= 0) {
if (iop->handlers->fcntl_h) {
1434e8: 8b 43 3c mov 0x3c(%ebx),%eax
1434eb: 8b 40 30 mov 0x30(%eax),%eax
1434ee: 85 c0 test %eax,%eax
1434f0: 74 c2 je 1434b4 <fcntl+0x68> <== NEVER TAKEN
int err = (*iop->handlers->fcntl_h)( cmd, iop );
1434f2: 83 ec 08 sub $0x8,%esp
1434f5: 53 push %ebx
1434f6: 52 push %edx
1434f7: ff d0 call *%eax
1434f9: 89 c3 mov %eax,%ebx
if (err) {
1434fb: 83 c4 10 add $0x10,%esp
1434fe: 85 c0 test %eax,%eax
143500: 74 b2 je 1434b4 <fcntl+0x68> <== ALWAYS TAKEN
errno = err;
143502: e8 85 32 00 00 call 14678c <__errno> <== NOT EXECUTED
143507: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
143509: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
va_list ap;
va_start( ap, cmd );
ret = vfcntl(fd,cmd,ap);
va_end(ap);
return ret;
}
14350e: 89 f0 mov %esi,%eax <== NOT EXECUTED
143510: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
143513: 5b pop %ebx <== NOT EXECUTED
143514: 5e pop %esi <== NOT EXECUTED
143515: 5f pop %edi <== NOT EXECUTED
143516: c9 leave <== NOT EXECUTED
143517: c3 ret <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
break;
case F_GETFL: /* more flags (cloexec) */
ret = rtems_libio_to_fcntl_flags( iop->flags );
143518: 83 ec 0c sub $0xc,%esp
14351b: 51 push %ecx
14351c: 89 55 e0 mov %edx,-0x20(%ebp)
14351f: e8 74 b5 fc ff call 10ea98 <rtems_libio_to_fcntl_flags>
143524: 89 c6 mov %eax,%esi
143526: 83 c4 10 add $0x10,%esp
143529: 8b 55 e0 mov -0x20(%ebp),%edx
/*
* If we got this far successfully, then we give the optional
* filesystem specific handler a chance to process this.
*/
if (ret >= 0) {
14352c: 85 f6 test %esi,%esi
14352e: 79 b8 jns 1434e8 <fcntl+0x9c> <== ALWAYS TAKEN
143530: eb 82 jmp 1434b4 <fcntl+0x68> <== NOT EXECUTED
143532: 66 90 xchg %ax,%ax <== NOT EXECUTED
* 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 ) )
143534: 8b 07 mov (%edi),%eax
143536: 85 c0 test %eax,%eax
143538: 74 52 je 14358c <fcntl+0x140> <== NEVER TAKEN
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
14353a: 80 cd 08 or $0x8,%ch
14353d: 89 4b 14 mov %ecx,0x14(%ebx)
143540: 31 f6 xor %esi,%esi
143542: eb a4 jmp 1434e8 <fcntl+0x9c>
diop->pathinfo = iop->pathinfo;
ret = (int) (diop - rtems_libio_iops);
break;
case F_GETFD: /* get f_flags */
ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);
143544: 89 ce mov %ecx,%esi
143546: c1 ee 0b shr $0xb,%esi
143549: 83 e6 01 and $0x1,%esi
14354c: eb 9a jmp 1434e8 <fcntl+0x9c>
14354e: 66 90 xchg %ax,%ax
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
143550: 8b 3f mov (%edi),%edi
if ( fd2 )
143552: 85 ff test %edi,%edi
143554: 74 6a je 1435c0 <fcntl+0x174> <== ALWAYS TAKEN
diop = rtems_libio_iop( fd2 );
143556: 39 fe cmp %edi,%esi <== NOT EXECUTED
143558: 77 42 ja 14359c <fcntl+0x150> <== NOT EXECUTED
14355a: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
143561: 31 ff xor %edi,%edi <== NOT EXECUTED
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
143563: 8b 73 3c mov 0x3c(%ebx),%esi
143566: 89 77 3c mov %esi,0x3c(%edi)
diop->file_info = iop->file_info;
143569: 8b 73 38 mov 0x38(%ebx),%esi
14356c: 89 77 38 mov %esi,0x38(%edi)
diop->flags = iop->flags;
14356f: 89 4f 14 mov %ecx,0x14(%edi)
diop->pathinfo = iop->pathinfo;
143572: 83 c7 18 add $0x18,%edi
143575: 8d 73 18 lea 0x18(%ebx),%esi
143578: b9 05 00 00 00 mov $0x5,%ecx
14357d: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
ret = (int) (diop - rtems_libio_iops);
14357f: 8b 75 e4 mov -0x1c(%ebp),%esi
143582: 29 c6 sub %eax,%esi
143584: c1 fe 06 sar $0x6,%esi
143587: eb a3 jmp 14352c <fcntl+0xe0>
143589: 8d 76 00 lea 0x0(%esi),%esi
*/
if ( va_arg( ap, int ) )
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
14358c: 80 e5 f7 and $0xf7,%ch <== NOT EXECUTED
14358f: 89 4b 14 mov %ecx,0x14(%ebx) <== NOT EXECUTED
143592: 31 f6 xor %esi,%esi <== NOT EXECUTED
143594: e9 4f ff ff ff jmp 1434e8 <fcntl+0x9c> <== NOT EXECUTED
143599: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
switch ( cmd ) {
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
if ( fd2 )
diop = rtems_libio_iop( fd2 );
14359c: c1 e7 06 shl $0x6,%edi <== NOT EXECUTED
14359f: 8d 3c 38 lea (%eax,%edi,1),%edi <== NOT EXECUTED
1435a2: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
1435a5: eb bc jmp 143563 <fcntl+0x117> <== NOT EXECUTED
1435a7: 90 nop <== NOT EXECUTED
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
1435a8: e8 df 31 00 00 call 14678c <__errno> <== NOT EXECUTED
1435ad: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
1435b3: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
1435b8: e9 f7 fe ff ff jmp 1434b4 <fcntl+0x68> <== NOT EXECUTED
1435bd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
fd2 = va_arg( ap, int );
if ( fd2 )
diop = rtems_libio_iop( fd2 );
else {
/* allocate a file control block */
diop = rtems_libio_allocate();
1435c0: 89 55 e0 mov %edx,-0x20(%ebp)
1435c3: e8 30 b6 fc ff call 10ebf8 <rtems_libio_allocate>
1435c8: 89 c7 mov %eax,%edi
if ( diop == 0 ) {
1435ca: 85 c0 test %eax,%eax
1435cc: 8b 55 e0 mov -0x20(%ebp),%edx
1435cf: 0f 84 34 ff ff ff je 143509 <fcntl+0xbd> <== NEVER TAKEN
1435d5: 89 45 e4 mov %eax,-0x1c(%ebp)
1435d8: a1 3c 2d 17 00 mov 0x172d3c,%eax
1435dd: 8b 4b 14 mov 0x14(%ebx),%ecx
1435e0: eb 81 jmp 143563 <fcntl+0x117>
0010915c <fdatasync>:
#include <rtems/seterr.h>
int fdatasync(
int fd
)
{
10915c: 55 push %ebp
10915d: 89 e5 mov %esp,%ebp
10915f: 83 ec 08 sub $0x8,%esp
109162: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
109165: 3b 05 4c 51 12 00 cmp 0x12514c,%eax
10916b: 73 27 jae 109194 <fdatasync+0x38> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
10916d: c1 e0 06 shl $0x6,%eax
109170: 03 05 e0 91 12 00 add 0x1291e0,%eax
rtems_libio_check_is_open(iop);
109176: 8b 50 14 mov 0x14(%eax),%edx
109179: f6 c6 01 test $0x1,%dh
10917c: 74 16 je 109194 <fdatasync+0x38> <== NEVER TAKEN
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
10917e: 83 e2 04 and $0x4,%edx
109181: 74 11 je 109194 <fdatasync+0x38>
/*
* Now process the fdatasync().
*/
if ( !iop->handlers->fdatasync_h )
109183: 8b 50 3c mov 0x3c(%eax),%edx
109186: 8b 52 2c mov 0x2c(%edx),%edx
109189: 85 d2 test %edx,%edx
10918b: 74 19 je 1091a6 <fdatasync+0x4a> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->fdatasync_h)( iop );
10918d: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
109190: c9 leave <== NOT EXECUTED
*/
if ( !iop->handlers->fdatasync_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->fdatasync_h)( iop );
109191: ff e2 jmp *%edx <== NOT EXECUTED
109193: 90 nop <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
109194: e8 fb be 00 00 call 115094 <__errno>
109199: c7 00 09 00 00 00 movl $0x9,(%eax)
if ( !iop->handlers->fdatasync_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->fdatasync_h)( iop );
}
10919f: b8 ff ff ff ff mov $0xffffffff,%eax
1091a4: c9 leave
1091a5: c3 ret
/*
* Now process the fdatasync().
*/
if ( !iop->handlers->fdatasync_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
1091a6: e8 e9 be 00 00 call 115094 <__errno>
1091ab: c7 00 86 00 00 00 movl $0x86,(%eax)
1091b1: eb ec jmp 10919f <fdatasync+0x43>
0010f6b8 <fifo_open>:
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
10f6b8: 55 push %ebp
10f6b9: 89 e5 mov %esp,%ebp
10f6bb: 57 push %edi
10f6bc: 56 push %esi
10f6bd: 53 push %ebx
10f6be: 83 ec 30 sub $0x30,%esp
10f6c1: 8b 75 08 mov 0x8(%ebp),%esi
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
10f6c4: 6a 00 push $0x0
10f6c6: 6a 00 push $0x0
10f6c8: ff 35 a8 6f 12 00 pushl 0x126fa8
10f6ce: e8 11 c6 ff ff call 10bce4 <rtems_semaphore_obtain>
10f6d3: 83 c4 10 add $0x10,%esp
10f6d6: 85 c0 test %eax,%eax
10f6d8: 74 12 je 10f6ec <fifo_open+0x34> <== NEVER TAKEN
10f6da: bf fc ff ff ff mov $0xfffffffc,%edi
return 0;
out_error:
pipe_release(pipep, iop);
return err;
}
10f6df: 89 f8 mov %edi,%eax
10f6e1: 8d 65 f4 lea -0xc(%ebp),%esp
10f6e4: 5b pop %ebx
10f6e5: 5e pop %esi
10f6e6: 5f pop %edi
10f6e7: c9 leave
10f6e8: c3 ret
10f6e9: 8d 76 00 lea 0x0(%esi),%esi
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL)
return -EINTR;
pipe = *pipep;
10f6ec: 8b 1e mov (%esi),%ebx <== NOT EXECUTED
if (pipe == NULL) {
10f6ee: 85 db test %ebx,%ebx <== NOT EXECUTED
10f6f0: 74 7a je 10f76c <fifo_open+0xb4> <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
10f6f2: 52 push %edx <== NOT EXECUTED
10f6f3: 6a 00 push $0x0 <== NOT EXECUTED
10f6f5: 6a 00 push $0x0 <== NOT EXECUTED
10f6f7: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f6fa: e8 e5 c5 ff ff call 10bce4 <rtems_semaphore_obtain><== NOT EXECUTED
10f6ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f702: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
10f705: 19 ff sbb %edi,%edi <== NOT EXECUTED
10f707: f7 d7 not %edi <== NOT EXECUTED
10f709: 83 e7 fc and $0xfffffffc,%edi <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
10f70c: 8b 06 mov (%esi),%eax <== NOT EXECUTED
10f70e: 85 c0 test %eax,%eax <== NOT EXECUTED
10f710: 0f 84 72 02 00 00 je 10f988 <fifo_open+0x2d0> <== NOT EXECUTED
else
*pipep = pipe;
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
10f716: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f719: ff 35 a8 6f 12 00 pushl 0x126fa8 <== NOT EXECUTED
10f71f: e8 bc c6 ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
pipe_control_t *pipe;
unsigned int prevCounter;
int err;
err = pipe_new(pipep);
if (err)
10f724: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f727: 85 ff test %edi,%edi <== NOT EXECUTED
10f729: 75 b4 jne 10f6df <fifo_open+0x27> <== NOT EXECUTED
return err;
pipe = *pipep;
10f72b: 8b 1e mov (%esi),%ebx <== NOT EXECUTED
switch (LIBIO_ACCMODE(iop)) {
10f72d: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
10f730: 8b 42 14 mov 0x14(%edx),%eax <== NOT EXECUTED
10f733: 83 e0 06 and $0x6,%eax <== NOT EXECUTED
10f736: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
10f739: 0f 84 d1 01 00 00 je 10f910 <fifo_open+0x258> <== NOT EXECUTED
10f73f: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
10f742: 0f 84 88 01 00 00 je 10f8d0 <fifo_open+0x218> <== NOT EXECUTED
10f748: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
10f74b: 0f 84 f7 00 00 00 je 10f848 <fifo_open+0x190> <== NOT EXECUTED
if (pipe->Writers ++ == 0)
PIPE_WAKEUPREADERS(pipe);
break;
}
PIPE_UNLOCK(pipe);
10f751: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f754: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f757: e8 84 c6 ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
10f75c: 31 ff xor %edi,%edi <== NOT EXECUTED
return 0;
10f75e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
out_error:
pipe_release(pipep, iop);
return err;
}
10f761: 89 f8 mov %edi,%eax <== NOT EXECUTED
10f763: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10f766: 5b pop %ebx <== NOT EXECUTED
10f767: 5e pop %esi <== NOT EXECUTED
10f768: 5f pop %edi <== NOT EXECUTED
10f769: c9 leave <== NOT EXECUTED
10f76a: c3 ret <== NOT EXECUTED
10f76b: 90 nop <== NOT EXECUTED
{
static char c = 'a';
pipe_control_t *pipe;
int err = -ENOMEM;
pipe = malloc(sizeof(pipe_control_t));
10f76c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f76f: 6a 34 push $0x34 <== NOT EXECUTED
10f771: e8 46 91 ff ff call 1088bc <malloc> <== NOT EXECUTED
10f776: 89 c3 mov %eax,%ebx <== NOT EXECUTED
10f778: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
if (pipe == NULL)
10f77b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f77e: 85 c0 test %eax,%eax <== NOT EXECUTED
10f780: 0f 84 06 03 00 00 je 10fa8c <fifo_open+0x3d4> <== NOT EXECUTED
return err;
memset(pipe, 0, sizeof(pipe_control_t));
10f786: b9 34 00 00 00 mov $0x34,%ecx <== NOT EXECUTED
10f78b: 31 c0 xor %eax,%eax <== NOT EXECUTED
10f78d: 89 df mov %ebx,%edi <== NOT EXECUTED
10f78f: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
pipe->Size = PIPE_BUF;
10f791: c7 43 04 00 02 00 00 movl $0x200,0x4(%ebx) <== NOT EXECUTED
pipe->Buffer = malloc(pipe->Size);
10f798: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f79b: 68 00 02 00 00 push $0x200 <== NOT EXECUTED
10f7a0: e8 17 91 ff ff call 1088bc <malloc> <== NOT EXECUTED
10f7a5: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
if (! pipe->Buffer)
10f7a7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f7aa: 85 c0 test %eax,%eax <== NOT EXECUTED
10f7ac: 0f 84 cc 02 00 00 je 10fa7e <fifo_open+0x3c6> <== NOT EXECUTED
goto err_buf;
err = -ENOMEM;
if (rtems_barrier_create(
10f7b2: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED
10f7b5: 50 push %eax <== NOT EXECUTED
10f7b6: 6a 00 push $0x0 <== NOT EXECUTED
10f7b8: 6a 00 push $0x0 <== NOT EXECUTED
10f7ba: 0f be 05 48 50 12 00 movsbl 0x125048,%eax <== NOT EXECUTED
10f7c1: 0d 00 72 49 50 or $0x50497200,%eax <== NOT EXECUTED
10f7c6: 50 push %eax <== NOT EXECUTED
10f7c7: e8 48 19 00 00 call 111114 <rtems_barrier_create> <== NOT EXECUTED
10f7cc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f7cf: 85 c0 test %eax,%eax <== NOT EXECUTED
10f7d1: 0f 85 97 02 00 00 jne 10fa6e <fifo_open+0x3b6> <== 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(
10f7d7: 8d 43 30 lea 0x30(%ebx),%eax <== NOT EXECUTED
10f7da: 50 push %eax <== NOT EXECUTED
10f7db: 6a 00 push $0x0 <== NOT EXECUTED
10f7dd: 6a 00 push $0x0 <== NOT EXECUTED
10f7df: 0f be 05 48 50 12 00 movsbl 0x125048,%eax <== NOT EXECUTED
10f7e6: 0d 00 77 49 50 or $0x50497700,%eax <== NOT EXECUTED
10f7eb: 50 push %eax <== NOT EXECUTED
10f7ec: e8 23 19 00 00 call 111114 <rtems_barrier_create> <== NOT EXECUTED
10f7f1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f7f4: 85 c0 test %eax,%eax <== NOT EXECUTED
10f7f6: 0f 85 61 02 00 00 jne 10fa5d <fifo_open+0x3a5> <== 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(
10f7fc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f7ff: 8d 43 28 lea 0x28(%ebx),%eax <== NOT EXECUTED
10f802: 50 push %eax <== NOT EXECUTED
10f803: 6a 00 push $0x0 <== NOT EXECUTED
10f805: 6a 10 push $0x10 <== NOT EXECUTED
10f807: 6a 01 push $0x1 <== NOT EXECUTED
10f809: 0f be 05 48 50 12 00 movsbl 0x125048,%eax <== NOT EXECUTED
10f810: 0d 00 73 49 50 or $0x50497300,%eax <== NOT EXECUTED
10f815: 50 push %eax <== NOT EXECUTED
10f816: e8 51 c2 ff ff call 10ba6c <rtems_semaphore_create><== NOT EXECUTED
10f81b: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10f81e: 85 c0 test %eax,%eax <== NOT EXECUTED
10f820: 0f 85 26 02 00 00 jne 10fa4c <fifo_open+0x394> <== NOT EXECUTED
#ifdef RTEMS_POSIX_API
pipe_interruptible(pipe);
#endif
*pipep = pipe;
if (c ++ == 'z')
10f826: a0 48 50 12 00 mov 0x125048,%al <== NOT EXECUTED
10f82b: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10f82e: 88 15 48 50 12 00 mov %dl,0x125048 <== NOT EXECUTED
10f834: 3c 7a cmp $0x7a,%al <== NOT EXECUTED
10f836: 0f 85 b6 fe ff ff jne 10f6f2 <fifo_open+0x3a> <== NOT EXECUTED
c = 'a';
10f83c: c6 05 48 50 12 00 61 movb $0x61,0x125048 <== NOT EXECUTED
10f843: e9 aa fe ff ff jmp 10f6f2 <fifo_open+0x3a> <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
10f848: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
10f84b: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
10f84e: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10f851: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
10f854: 85 c0 test %eax,%eax <== NOT EXECUTED
10f856: 0f 84 90 01 00 00 je 10f9ec <fifo_open+0x334> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
if (pipe->Writers == 0) {
10f85c: 8b 7b 14 mov 0x14(%ebx),%edi <== NOT EXECUTED
10f85f: 85 ff test %edi,%edi <== NOT EXECUTED
10f861: 0f 85 ea fe ff ff jne 10f751 <fifo_open+0x99> <== NOT EXECUTED
/* Not an error */
if (LIBIO_NODELAY(iop))
10f867: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
10f86a: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED
10f86e: 0f 85 dd fe ff ff jne 10f751 <fifo_open+0x99> <== NOT EXECUTED
break;
prevCounter = pipe->writerCounter;
10f874: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED
10f877: eb 20 jmp 10f899 <fifo_open+0x1e1> <== NOT EXECUTED
10f879: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
goto out_error;
if (! PIPE_LOCK(pipe))
10f87c: 50 push %eax <== NOT EXECUTED
10f87d: 6a 00 push $0x0 <== NOT EXECUTED
10f87f: 6a 00 push $0x0 <== NOT EXECUTED
10f881: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f884: e8 5b c4 ff ff call 10bce4 <rtems_semaphore_obtain><== NOT EXECUTED
10f889: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f88c: 85 c0 test %eax,%eax <== NOT EXECUTED
10f88e: 75 27 jne 10f8b7 <fifo_open+0x1ff> <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->writerCounter);
10f890: 39 7b 24 cmp %edi,0x24(%ebx) <== NOT EXECUTED
10f893: 0f 85 b8 fe ff ff jne 10f751 <fifo_open+0x99> <== NOT EXECUTED
prevCounter = pipe->writerCounter;
err = -EINTR;
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
10f899: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f89c: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f89f: e8 3c c5 ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
10f8a4: 5a pop %edx <== NOT EXECUTED
10f8a5: 59 pop %ecx <== NOT EXECUTED
10f8a6: 6a 00 push $0x0 <== NOT EXECUTED
10f8a8: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10f8ab: e8 18 1a 00 00 call 1112c8 <rtems_barrier_wait> <== NOT EXECUTED
10f8b0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f8b3: 85 c0 test %eax,%eax <== NOT EXECUTED
10f8b5: 74 c5 je 10f87c <fifo_open+0x1c4> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
break;
}
PIPE_UNLOCK(pipe);
return 0;
10f8b7: bf fc ff ff ff mov $0xfffffffc,%edi <== NOT EXECUTED
out_error:
pipe_release(pipep, iop);
10f8bc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10f8bf: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
10f8c2: 56 push %esi <== NOT EXECUTED
10f8c3: e8 dc fc ff ff call 10f5a4 <pipe_release> <== NOT EXECUTED
return err;
10f8c8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f8cb: e9 0f fe ff ff jmp 10f6df <fifo_open+0x27> <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
10f8d0: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
10f8d3: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
10f8d6: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10f8d9: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
10f8dc: 85 c0 test %eax,%eax <== NOT EXECUTED
10f8de: 0f 84 38 01 00 00 je 10fa1c <fifo_open+0x364> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
pipe->writerCounter ++;
10f8e4: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
10f8e7: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
10f8ea: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10f8ed: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED
10f8f0: 85 c0 test %eax,%eax <== NOT EXECUTED
10f8f2: 0f 85 59 fe ff ff jne 10f751 <fifo_open+0x99> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
10f8f8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10f8fb: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10f8fe: 50 push %eax <== NOT EXECUTED
10f8ff: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10f902: e8 5d 19 00 00 call 111264 <rtems_barrier_release> <== NOT EXECUTED
10f907: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f90a: e9 42 fe ff ff jmp 10f751 <fifo_open+0x99> <== NOT EXECUTED
10f90f: 90 nop <== NOT EXECUTED
} while (prevCounter == pipe->writerCounter);
}
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
10f910: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
10f913: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
10f916: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED
10f919: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED
10f91c: 85 c0 test %eax,%eax <== NOT EXECUTED
10f91e: 0f 84 e0 00 00 00 je 10fa04 <fifo_open+0x34c> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
10f924: 8b 7b 10 mov 0x10(%ebx),%edi <== NOT EXECUTED
10f927: 85 ff test %edi,%edi <== NOT EXECUTED
10f929: 0f 85 22 fe ff ff jne 10f751 <fifo_open+0x99> <== NOT EXECUTED
10f92f: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
10f932: f6 42 14 01 testb $0x1,0x14(%edx) <== NOT EXECUTED
10f936: 0f 85 f8 00 00 00 jne 10fa34 <fifo_open+0x37c> <== NOT EXECUTED
err = -ENXIO;
goto out_error;
}
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
10f93c: 8b 7b 20 mov 0x20(%ebx),%edi <== NOT EXECUTED
10f93f: eb 24 jmp 10f965 <fifo_open+0x2ad> <== NOT EXECUTED
10f941: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
goto out_error;
if (! PIPE_LOCK(pipe))
10f944: 50 push %eax <== NOT EXECUTED
10f945: 6a 00 push $0x0 <== NOT EXECUTED
10f947: 6a 00 push $0x0 <== NOT EXECUTED
10f949: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f94c: e8 93 c3 ff ff call 10bce4 <rtems_semaphore_obtain><== NOT EXECUTED
10f951: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f954: 85 c0 test %eax,%eax <== NOT EXECUTED
10f956: 0f 85 5b ff ff ff jne 10f8b7 <fifo_open+0x1ff> <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->readerCounter);
10f95c: 39 7b 20 cmp %edi,0x20(%ebx) <== NOT EXECUTED
10f95f: 0f 85 ec fd ff ff jne 10f751 <fifo_open+0x99> <== NOT EXECUTED
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
10f965: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f968: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f96b: e8 70 c4 ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
10f970: 5a pop %edx <== NOT EXECUTED
10f971: 59 pop %ecx <== NOT EXECUTED
10f972: 6a 00 push $0x0 <== NOT EXECUTED
10f974: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10f977: e8 4c 19 00 00 call 1112c8 <rtems_barrier_wait> <== NOT EXECUTED
10f97c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f97f: 85 c0 test %eax,%eax <== NOT EXECUTED
10f981: 74 c1 je 10f944 <fifo_open+0x28c> <== NOT EXECUTED
10f983: e9 2f ff ff ff jmp 10f8b7 <fifo_open+0x1ff> <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
err = -EINTR;
if (*pipep == NULL) {
if (err)
10f988: 85 ff test %edi,%edi <== NOT EXECUTED
10f98a: 75 18 jne 10f9a4 <fifo_open+0x2ec> <== NOT EXECUTED
pipe_free(pipe);
else
*pipep = pipe;
10f98c: 89 1e mov %ebx,(%esi) <== NOT EXECUTED
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
10f98e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f991: ff 35 a8 6f 12 00 pushl 0x126fa8 <== NOT EXECUTED
10f997: e8 44 c4 ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
10f99c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f99f: e9 87 fd ff ff jmp 10f72b <fifo_open+0x73> <== NOT EXECUTED
/* Called with rtems_pipe_semaphore held. */
static inline void pipe_free(
pipe_control_t *pipe
)
{
rtems_barrier_delete(pipe->readBarrier);
10f9a4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f9a7: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10f9aa: e8 4d 18 00 00 call 1111fc <rtems_barrier_delete> <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
10f9af: 59 pop %ecx <== NOT EXECUTED
10f9b0: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10f9b3: e8 44 18 00 00 call 1111fc <rtems_barrier_delete> <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
10f9b8: 5a pop %edx <== NOT EXECUTED
10f9b9: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f9bc: e8 7f c2 ff ff call 10bc40 <rtems_semaphore_delete><== NOT EXECUTED
free(pipe->Buffer);
10f9c1: 58 pop %eax <== NOT EXECUTED
10f9c2: ff 33 pushl (%ebx) <== NOT EXECUTED
10f9c4: e8 1b 8c ff ff call 1085e4 <free> <== NOT EXECUTED
free(pipe);
10f9c9: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
10f9cc: e8 13 8c ff ff call 1085e4 <free> <== NOT EXECUTED
10f9d1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
else
*pipep = pipe;
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
10f9d4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f9d7: ff 35 a8 6f 12 00 pushl 0x126fa8 <== NOT EXECUTED
10f9dd: e8 fe c3 ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
10f9e2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f9e5: e9 f5 fc ff ff jmp 10f6df <fifo_open+0x27> <== NOT EXECUTED
10f9ea: 66 90 xchg %ax,%ax <== NOT EXECUTED
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
10f9ec: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10f9ef: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10f9f2: 50 push %eax <== NOT EXECUTED
10f9f3: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10f9f6: e8 69 18 00 00 call 111264 <rtems_barrier_release> <== NOT EXECUTED
10f9fb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f9fe: e9 59 fe ff ff jmp 10f85c <fifo_open+0x1a4> <== NOT EXECUTED
10fa03: 90 nop <== NOT EXECUTED
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
PIPE_WAKEUPREADERS(pipe);
10fa04: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10fa07: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10fa0a: 50 push %eax <== NOT EXECUTED
10fa0b: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10fa0e: e8 51 18 00 00 call 111264 <rtems_barrier_release> <== NOT EXECUTED
10fa13: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fa16: e9 09 ff ff ff jmp 10f924 <fifo_open+0x26c> <== NOT EXECUTED
10fa1b: 90 nop <== NOT EXECUTED
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
10fa1c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10fa1f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10fa22: 50 push %eax <== NOT EXECUTED
10fa23: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10fa26: e8 39 18 00 00 call 111264 <rtems_barrier_release> <== NOT EXECUTED
10fa2b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fa2e: e9 b1 fe ff ff jmp 10f8e4 <fifo_open+0x22c> <== NOT EXECUTED
10fa33: 90 nop <== NOT EXECUTED
if (pipe->Writers ++ == 0)
PIPE_WAKEUPREADERS(pipe);
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
PIPE_UNLOCK(pipe);
10fa34: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fa37: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10fa3a: e8 a1 c3 ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
10fa3f: bf fa ff ff ff mov $0xfffffffa,%edi <== NOT EXECUTED
err = -ENXIO;
goto out_error;
10fa44: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fa47: e9 70 fe ff ff jmp 10f8bc <fifo_open+0x204> <== NOT EXECUTED
if (c ++ == 'z')
c = 'a';
return 0;
err_sem:
rtems_barrier_delete(pipe->writeBarrier);
10fa4c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fa4f: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
10fa52: ff 70 30 pushl 0x30(%eax) <== NOT EXECUTED
10fa55: e8 a2 17 00 00 call 1111fc <rtems_barrier_delete> <== NOT EXECUTED
10fa5a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err_wbar:
rtems_barrier_delete(pipe->readBarrier);
10fa5d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fa60: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
10fa63: ff 72 2c pushl 0x2c(%edx) <== NOT EXECUTED
10fa66: e8 91 17 00 00 call 1111fc <rtems_barrier_delete> <== NOT EXECUTED
10fa6b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err_rbar:
free(pipe->Buffer);
10fa6e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fa71: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
10fa74: ff 30 pushl (%eax) <== NOT EXECUTED
10fa76: e8 69 8b ff ff call 1085e4 <free> <== NOT EXECUTED
10fa7b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
err_buf:
free(pipe);
10fa7e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fa81: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
10fa84: e8 5b 8b ff ff call 1085e4 <free> <== NOT EXECUTED
10fa89: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fa8c: bf f4 ff ff ff mov $0xfffffff4,%edi <== NOT EXECUTED
10fa91: e9 3e ff ff ff jmp 10f9d4 <fifo_open+0x31c> <== NOT EXECUTED
00110e28 <find_handler>:
const char *type;
rtems_filesystem_fsmount_me_t mount_h;
} find_arg;
static bool find_handler(const rtems_filesystem_table_t *entry, void *arg)
{
110e28: 55 push %ebp
110e29: 89 e5 mov %esp,%ebp
110e2b: 56 push %esi
110e2c: 53 push %ebx
110e2d: 8b 75 08 mov 0x8(%ebp),%esi
110e30: 8b 5d 0c mov 0xc(%ebp),%ebx
find_arg *fa = arg;
if ( strcmp( entry->type, fa->type ) != 0 ) {
110e33: 83 ec 08 sub $0x8,%esp
110e36: ff 33 pushl (%ebx)
110e38: ff 36 pushl (%esi)
110e3a: e8 c9 3a 00 00 call 114908 <strcmp>
110e3f: 83 c4 10 add $0x10,%esp
110e42: 85 c0 test %eax,%eax
110e44: 75 12 jne 110e58 <find_handler+0x30>
return false;
} else {
fa->mount_h = entry->mount_h;
110e46: 8b 46 04 mov 0x4(%esi),%eax
110e49: 89 43 04 mov %eax,0x4(%ebx)
110e4c: b0 01 mov $0x1,%al
return true;
}
}
110e4e: 8d 65 f8 lea -0x8(%ebp),%esp
110e51: 5b pop %ebx
110e52: 5e pop %esi
110e53: c9 leave
110e54: c3 ret
110e55: 8d 76 00 lea 0x0(%esi),%esi
static bool find_handler(const rtems_filesystem_table_t *entry, void *arg)
{
find_arg *fa = arg;
if ( strcmp( entry->type, fa->type ) != 0 ) {
110e58: 31 c0 xor %eax,%eax
} else {
fa->mount_h = entry->mount_h;
return true;
}
}
110e5a: 8d 65 f8 lea -0x8(%ebp),%esp
110e5d: 5b pop %ebx
110e5e: 5e pop %esi
110e5f: c9 leave
110e60: c3 ret
001091b4 <fpathconf>:
long fpathconf(
int fd,
int name
)
{
1091b4: 55 push %ebp
1091b5: 89 e5 mov %esp,%ebp
1091b7: 83 ec 08 sub $0x8,%esp
1091ba: 8b 45 08 mov 0x8(%ebp),%eax
1091bd: 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);
1091c0: 3b 05 4c 51 12 00 cmp 0x12514c,%eax
1091c6: 0f 83 98 00 00 00 jae 109264 <fpathconf+0xb0>
iop = rtems_libio_iop(fd);
1091cc: c1 e0 06 shl $0x6,%eax
1091cf: 03 05 e0 91 12 00 add 0x1291e0,%eax
rtems_libio_check_is_open(iop);
1091d5: f6 40 15 01 testb $0x1,0x15(%eax)
1091d9: 0f 84 85 00 00 00 je 109264 <fpathconf+0xb0> <== NEVER TAKEN
/*
* Now process the information request.
*/
the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;
1091df: 8b 40 28 mov 0x28(%eax),%eax
switch ( name ) {
1091e2: 83 fa 0b cmp $0xb,%edx
1091e5: 76 15 jbe 1091fc <fpathconf+0x48>
break;
case _PC_SYNC_IO:
return_value = the_limits->posix_sync_io;
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
1091e7: e8 a8 be 00 00 call 115094 <__errno>
1091ec: c7 00 16 00 00 00 movl $0x16,(%eax)
1091f2: b8 ff ff ff ff mov $0xffffffff,%eax
break;
}
return return_value;
}
1091f7: c9 leave
1091f8: c3 ret
1091f9: 8d 76 00 lea 0x0(%esi),%esi
* Now process the information request.
*/
the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;
switch ( name ) {
1091fc: ff 24 95 d8 34 12 00 jmp *0x1234d8(,%edx,4)
109203: 90 nop
break;
case _PC_ASYNC_IO:
return_value = the_limits->posix_async_io;
break;
case _PC_PRIO_IO:
return_value = the_limits->posix_prio_io;
109204: 8b 40 5c mov 0x5c(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
109207: c9 leave
109208: c3 ret
109209: 8d 76 00 lea 0x0(%esi),%esi
break;
case _PC_VDISABLE:
return_value = the_limits->posix_vdisable;
break;
case _PC_ASYNC_IO:
return_value = the_limits->posix_async_io;
10920c: 8b 40 50 mov 0x50(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
10920f: c9 leave
109210: c3 ret
109211: 8d 76 00 lea 0x0(%esi),%esi
break;
case _PC_NO_TRUNC:
return_value = the_limits->posix_no_trunc;
break;
case _PC_VDISABLE:
return_value = the_limits->posix_vdisable;
109214: 8b 40 64 mov 0x64(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
109217: c9 leave
109218: c3 ret
109219: 8d 76 00 lea 0x0(%esi),%esi
break;
case _PC_CHOWN_RESTRICTED:
return_value = the_limits->posix_chown_restrictions;
break;
case _PC_NO_TRUNC:
return_value = the_limits->posix_no_trunc;
10921c: 8b 40 58 mov 0x58(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
10921f: c9 leave
109220: c3 ret
109221: 8d 76 00 lea 0x0(%esi),%esi
break;
case _PC_PIPE_BUF:
return_value = the_limits->pipe_buf;
break;
case _PC_CHOWN_RESTRICTED:
return_value = the_limits->posix_chown_restrictions;
109224: 8b 40 54 mov 0x54(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
109227: c9 leave
109228: c3 ret
109229: 8d 76 00 lea 0x0(%esi),%esi
break;
case _PC_PATH_MAX:
return_value = the_limits->path_max;
break;
case _PC_PIPE_BUF:
return_value = the_limits->pipe_buf;
10922c: 8b 40 4c mov 0x4c(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
10922f: c9 leave
109230: c3 ret
109231: 8d 76 00 lea 0x0(%esi),%esi
break;
case _PC_NAME_MAX:
return_value = the_limits->name_max;
break;
case _PC_PATH_MAX:
return_value = the_limits->path_max;
109234: 8b 40 48 mov 0x48(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
109237: c9 leave
109238: c3 ret
109239: 8d 76 00 lea 0x0(%esi),%esi
break;
case _PC_MAX_INPUT:
return_value = the_limits->max_input;
break;
case _PC_NAME_MAX:
return_value = the_limits->name_max;
10923c: 8b 40 44 mov 0x44(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
10923f: c9 leave
109240: c3 ret
109241: 8d 76 00 lea 0x0(%esi),%esi
break;
case _PC_MAX_CANON:
return_value = the_limits->max_canon;
break;
case _PC_MAX_INPUT:
return_value = the_limits->max_input;
109244: 8b 40 40 mov 0x40(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
109247: c9 leave
109248: c3 ret
109249: 8d 76 00 lea 0x0(%esi),%esi
switch ( name ) {
case _PC_LINK_MAX:
return_value = the_limits->link_max;
break;
case _PC_MAX_CANON:
return_value = the_limits->max_canon;
10924c: 8b 40 3c mov 0x3c(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
10924f: c9 leave
109250: c3 ret
109251: 8d 76 00 lea 0x0(%esi),%esi
the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;
switch ( name ) {
case _PC_LINK_MAX:
return_value = the_limits->link_max;
109254: 8b 40 38 mov 0x38(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
109257: c9 leave
109258: c3 ret
109259: 8d 76 00 lea 0x0(%esi),%esi
break;
case _PC_PRIO_IO:
return_value = the_limits->posix_prio_io;
break;
case _PC_SYNC_IO:
return_value = the_limits->posix_sync_io;
10925c: 8b 40 60 mov 0x60(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
10925f: c9 leave
109260: c3 ret
109261: 8d 76 00 lea 0x0(%esi),%esi
rtems_libio_t *iop;
rtems_filesystem_limits_and_options_t *the_limits;
rtems_libio_check_fd(fd);
iop = rtems_libio_iop(fd);
rtems_libio_check_is_open(iop);
109264: e8 2b be 00 00 call 115094 <__errno>
109269: c7 00 09 00 00 00 movl $0x9,(%eax)
10926f: b8 ff ff ff ff mov $0xffffffff,%eax
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return return_value;
}
109274: c9 leave
109275: c3 ret
001085e4 <free>:
void free(
void *ptr
)
{
MSBUMP(free_calls, 1);
1085e4: 55 push %ebp
1085e5: 89 e5 mov %esp,%ebp
1085e7: 53 push %ebx
1085e8: 83 ec 04 sub $0x4,%esp
1085eb: 8b 5d 08 mov 0x8(%ebp),%ebx
1085ee: ff 05 0c 72 12 00 incl 0x12720c
if ( !ptr )
1085f4: 85 db test %ebx,%ebx
1085f6: 74 4b je 108643 <free+0x5f>
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
1085f8: 83 3d 20 75 12 00 03 cmpl $0x3,0x127520
1085ff: 74 47 je 108648 <free+0x64>
#endif
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
108601: a1 e8 55 12 00 mov 0x1255e8,%eax
108606: 85 c0 test %eax,%eax
108608: 74 0a je 108614 <free+0x30>
(*rtems_malloc_statistics_helpers->at_free)(ptr);
10860a: 83 ec 0c sub $0xc,%esp
10860d: 53 push %ebx
10860e: ff 50 08 call *0x8(%eax)
108611: 83 c4 10 add $0x10,%esp
if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {
108614: 83 ec 08 sub $0x8,%esp
108617: 53 push %ebx
108618: ff 35 58 31 12 00 pushl 0x123158
10861e: e8 f5 4f 00 00 call 10d618 <_Protected_heap_Free>
108623: 83 c4 10 add $0x10,%esp
108626: 84 c0 test %al,%al
108628: 75 19 jne 108643 <free+0x5f> <== 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
10862a: a1 58 31 12 00 mov 0x123158,%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",
10862f: ff 70 1c pushl 0x1c(%eax) <== NOT EXECUTED
108632: ff 70 18 pushl 0x18(%eax) <== NOT EXECUTED
108635: 53 push %ebx <== NOT EXECUTED
108636: 68 f0 17 12 00 push $0x1217f0 <== NOT EXECUTED
10863b: e8 f0 0d 00 00 call 109430 <printk> <== NOT EXECUTED
108640: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
RTEMS_Malloc_Heap->area_begin,
RTEMS_Malloc_Heap->area_end
);
}
}
108643: 8b 5d fc mov -0x4(%ebp),%ebx
108646: c9 leave
108647: c3 ret
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
108648: e8 3f 01 00 00 call 10878c <malloc_is_system_state_OK>
10864d: 84 c0 test %al,%al
10864f: 75 b0 jne 108601 <free+0x1d> <== ALWAYS TAKEN
!malloc_is_system_state_OK() ) {
malloc_deferred_free(ptr);
108651: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
RTEMS_Malloc_Heap->area_begin,
RTEMS_Malloc_Heap->area_end
);
}
}
108654: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
108657: 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);
108658: e9 6f 01 00 00 jmp 1087cc <malloc_deferred_free> <== NOT EXECUTED
0012f518 <free_user_env>:
* NOTE: this must be called with
* thread dispatching disabled!
*/
static void
free_user_env(void *venv)
{
12f518: 55 push %ebp <== NOT EXECUTED
12f519: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12f51b: 53 push %ebx <== NOT EXECUTED
12f51c: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
12f51f: 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
12f522: 81 fb a0 2d 17 00 cmp $0x172da0,%ebx <== NOT EXECUTED
12f528: 74 42 je 12f56c <free_user_env+0x54> <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
12f52a: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
12f52d: 85 c0 test %eax,%eax <== NOT EXECUTED
12f52f: 74 13 je 12f544 <free_user_env+0x2c> <== NOT EXECUTED
12f531: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12f534: 85 c0 test %eax,%eax <== NOT EXECUTED
12f536: 74 0c je 12f544 <free_user_env+0x2c> <== NOT EXECUTED
12f538: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12f53b: 8d 53 04 lea 0x4(%ebx),%edx <== NOT EXECUTED
12f53e: 52 push %edx <== NOT EXECUTED
12f53f: ff d0 call *%eax <== NOT EXECUTED
12f541: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_freenode( &env->root_directory);
12f544: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
12f547: 85 c0 test %eax,%eax <== NOT EXECUTED
12f549: 74 13 je 12f55e <free_user_env+0x46> <== NOT EXECUTED
12f54b: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12f54e: 85 c0 test %eax,%eax <== NOT EXECUTED
12f550: 74 0c je 12f55e <free_user_env+0x46> <== NOT EXECUTED
12f552: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12f555: 8d 53 18 lea 0x18(%ebx),%edx <== NOT EXECUTED
12f558: 52 push %edx <== NOT EXECUTED
12f559: ff d0 call *%eax <== NOT EXECUTED
12f55b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
free(env);
12f55e: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
}
}
12f561: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
12f564: c9 leave <== NOT EXECUTED
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
rtems_filesystem_freenode( &env->root_directory);
free(env);
12f565: e9 fe f2 fd ff jmp 10e868 <free> <== NOT EXECUTED
12f56a: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
}
12f56c: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
12f56f: c9 leave <== NOT EXECUTED
12f570: c3 ret <== NOT EXECUTED
0011f394 <fstat>:
int fstat(
int fd,
struct stat *sbuf
)
{
11f394: 55 push %ebp
11f395: 89 e5 mov %esp,%ebp
11f397: 57 push %edi
11f398: 53 push %ebx
11f399: 8b 55 08 mov 0x8(%ebp),%edx
11f39c: 8b 5d 0c mov 0xc(%ebp),%ebx
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
11f39f: 85 db test %ebx,%ebx
11f3a1: 74 66 je 11f409 <fstat+0x75>
/*
* Now process the stat() request.
*/
iop = rtems_libio_iop( fd );
11f3a3: 3b 15 4c 31 12 00 cmp 0x12314c,%edx
11f3a9: 73 3d jae 11f3e8 <fstat+0x54>
11f3ab: c1 e2 06 shl $0x6,%edx
11f3ae: 03 15 e0 71 12 00 add 0x1271e0,%edx
rtems_libio_check_fd( fd );
rtems_libio_check_is_open(iop);
11f3b4: f6 42 15 01 testb $0x1,0x15(%edx)
11f3b8: 74 2e je 11f3e8 <fstat+0x54> <== NEVER TAKEN
if ( !iop->handlers )
11f3ba: 8b 42 3c mov 0x3c(%edx),%eax
11f3bd: 85 c0 test %eax,%eax
11f3bf: 74 27 je 11f3e8 <fstat+0x54> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->fstat_h )
11f3c1: 8b 40 18 mov 0x18(%eax),%eax
11f3c4: 85 c0 test %eax,%eax
11f3c6: 74 34 je 11f3fc <fstat+0x68> <== NEVER TAKEN
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( sbuf, 0, sizeof(struct stat) );
11f3c8: b9 48 00 00 00 mov $0x48,%ecx
11f3cd: 31 c0 xor %eax,%eax
11f3cf: 89 df mov %ebx,%edi
11f3d1: f3 aa rep stos %al,%es:(%edi)
return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf );
11f3d3: 8b 42 3c mov 0x3c(%edx),%eax
11f3d6: 89 5d 0c mov %ebx,0xc(%ebp)
11f3d9: 83 c2 18 add $0x18,%edx
11f3dc: 89 55 08 mov %edx,0x8(%ebp)
11f3df: 8b 40 18 mov 0x18(%eax),%eax
}
11f3e2: 5b pop %ebx
11f3e3: 5f pop %edi
11f3e4: 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 );
11f3e5: ff e0 jmp *%eax
11f3e7: 90 nop
iop = rtems_libio_iop( fd );
rtems_libio_check_fd( fd );
rtems_libio_check_is_open(iop);
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
11f3e8: e8 53 4a ff ff call 113e40 <__errno>
11f3ed: c7 00 09 00 00 00 movl $0x9,(%eax)
* versions of stat don't have to.
*/
memset( sbuf, 0, sizeof(struct stat) );
return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf );
}
11f3f3: b8 ff ff ff ff mov $0xffffffff,%eax
11f3f8: 5b pop %ebx
11f3f9: 5f pop %edi
11f3fa: c9 leave
11f3fb: c3 ret
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->fstat_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
11f3fc: e8 3f 4a ff ff call 113e40 <__errno> <== NOT EXECUTED
11f401: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
11f407: eb ea jmp 11f3f3 <fstat+0x5f> <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
rtems_set_errno_and_return_minus_one( EFAULT );
11f409: e8 32 4a ff ff call 113e40 <__errno>
11f40e: c7 00 0e 00 00 00 movl $0xe,(%eax)
11f414: eb dd jmp 11f3f3 <fstat+0x5f>
0012e32c <fsync>:
#include <rtems/seterr.h>
int fsync(
int fd
)
{
12e32c: 55 push %ebp
12e32d: 89 e5 mov %esp,%ebp
12e32f: 83 ec 08 sub $0x8,%esp
12e332: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
12e335: 3b 05 4c b1 16 00 cmp 0x16b14c,%eax
12e33b: 73 23 jae 12e360 <fsync+0x34> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
12e33d: c1 e0 06 shl $0x6,%eax
12e340: 03 05 3c 2d 17 00 add 0x172d3c,%eax
rtems_libio_check_is_open(iop);
12e346: f6 40 15 01 testb $0x1,0x15(%eax)
12e34a: 74 14 je 12e360 <fsync+0x34> <== NEVER TAKEN
/*
* Now process the fsync().
*/
if ( !iop->handlers )
12e34c: 8b 50 3c mov 0x3c(%eax),%edx
12e34f: 85 d2 test %edx,%edx
12e351: 74 0d je 12e360 <fsync+0x34> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->fsync_h )
12e353: 8b 52 28 mov 0x28(%edx),%edx
12e356: 85 d2 test %edx,%edx
12e358: 74 18 je 12e372 <fsync+0x46>
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->fsync_h)( iop );
12e35a: 89 45 08 mov %eax,0x8(%ebp)
}
12e35d: 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 );
12e35e: ff e2 jmp *%edx
/*
* Now process the fsync().
*/
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
12e360: e8 27 84 01 00 call 14678c <__errno> <== NOT EXECUTED
12e365: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
if ( !iop->handlers->fsync_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->fsync_h)( iop );
}
12e36b: b8 ff ff ff ff mov $0xffffffff,%eax
12e370: c9 leave
12e371: c3 ret
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->fsync_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
12e372: e8 15 84 01 00 call 14678c <__errno>
12e377: c7 00 86 00 00 00 movl $0x86,(%eax)
12e37d: eb ec jmp 12e36b <fsync+0x3f>
00110b38 <ftruncate>:
int ftruncate(
int fd,
off_t length
)
{
110b38: 55 push %ebp
110b39: 89 e5 mov %esp,%ebp
110b3b: 57 push %edi
110b3c: 56 push %esi
110b3d: 53 push %ebx
110b3e: 83 ec 3c sub $0x3c,%esp
110b41: 8b 5d 08 mov 0x8(%ebp),%ebx
110b44: 8b 45 0c mov 0xc(%ebp),%eax
110b47: 8b 55 10 mov 0x10(%ebp),%edx
110b4a: 89 45 c0 mov %eax,-0x40(%ebp)
110b4d: 89 55 c4 mov %edx,-0x3c(%ebp)
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
110b50: 3b 1d 4c 31 12 00 cmp 0x12314c,%ebx
110b56: 73 60 jae 110bb8 <ftruncate+0x80> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
110b58: c1 e3 06 shl $0x6,%ebx
110b5b: 03 1d e0 71 12 00 add 0x1271e0,%ebx
rtems_libio_check_is_open(iop);
110b61: 8b 43 14 mov 0x14(%ebx),%eax
110b64: f6 c4 01 test $0x1,%ah
110b67: 74 4f je 110bb8 <ftruncate+0x80> <== NEVER TAKEN
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
110b69: a8 04 test $0x4,%al
110b6b: 74 5f je 110bcc <ftruncate+0x94> <== NEVER TAKEN
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
110b6d: 8d 45 d4 lea -0x2c(%ebp),%eax
110b70: 8d 73 18 lea 0x18(%ebx),%esi
110b73: b9 05 00 00 00 mov $0x5,%ecx
110b78: 89 c7 mov %eax,%edi
110b7a: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !loc.ops->node_type_h )
110b7c: 8b 55 e0 mov -0x20(%ebp),%edx
110b7f: 8b 52 10 mov 0x10(%edx),%edx
110b82: 85 d2 test %edx,%edx
110b84: 74 5a je 110be0 <ftruncate+0xa8> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
110b86: 83 ec 0c sub $0xc,%esp
110b89: 50 push %eax
110b8a: ff d2 call *%edx
110b8c: 83 c4 10 add $0x10,%esp
110b8f: 48 dec %eax
110b90: 74 60 je 110bf2 <ftruncate+0xba>
rtems_set_errno_and_return_minus_one( EISDIR );
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
110b92: f6 43 14 04 testb $0x4,0x14(%ebx)
110b96: 74 34 je 110bcc <ftruncate+0x94> <== NEVER TAKEN
if ( !iop->handlers->ftruncate_h )
110b98: 8b 43 3c mov 0x3c(%ebx),%eax
110b9b: 8b 40 20 mov 0x20(%eax),%eax
110b9e: 85 c0 test %eax,%eax
110ba0: 74 3e je 110be0 <ftruncate+0xa8> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->ftruncate_h)( iop, length );
110ba2: 52 push %edx
110ba3: ff 75 c4 pushl -0x3c(%ebp)
110ba6: ff 75 c0 pushl -0x40(%ebp)
110ba9: 53 push %ebx
110baa: ff d0 call *%eax
110bac: 83 c4 10 add $0x10,%esp
}
110baf: 8d 65 f4 lea -0xc(%ebp),%esp
110bb2: 5b pop %ebx
110bb3: 5e pop %esi
110bb4: 5f pop %edi
110bb5: c9 leave
110bb6: c3 ret
110bb7: 90 nop
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
110bb8: e8 83 32 00 00 call 113e40 <__errno> <== NOT EXECUTED
110bbd: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
110bc3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
110bc8: eb e5 jmp 110baf <ftruncate+0x77> <== NOT EXECUTED
110bca: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
rtems_set_errno_and_return_minus_one( EISDIR );
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
110bcc: e8 6f 32 00 00 call 113e40 <__errno> <== NOT EXECUTED
110bd1: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
110bd7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
110bdc: eb d1 jmp 110baf <ftruncate+0x77> <== NOT EXECUTED
110bde: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( !iop->handlers->ftruncate_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
110be0: e8 5b 32 00 00 call 113e40 <__errno> <== NOT EXECUTED
110be5: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
110beb: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
110bf0: eb bd jmp 110baf <ftruncate+0x77> <== NOT EXECUTED
loc = iop->pathinfo;
if ( !loc.ops->node_type_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
rtems_set_errno_and_return_minus_one( EISDIR );
110bf2: e8 49 32 00 00 call 113e40 <__errno>
110bf7: c7 00 15 00 00 00 movl $0x15,(%eax)
110bfd: b8 ff ff ff ff mov $0xffffffff,%eax
110c02: eb ab jmp 110baf <ftruncate+0x77>
0010821c <get_disk_entry>:
}
}
static rtems_disk_device *
get_disk_entry(dev_t dev, bool lookup_only)
{
10821c: 55 push %ebp
10821d: 89 e5 mov %esp,%ebp
10821f: 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) {
108220: 39 05 04 af 12 00 cmp %eax,0x12af04
108226: 77 08 ja 108230 <get_disk_entry+0x14> <== ALWAYS TAKEN
if (minor < dtab->size && dtab->minor != NULL) {
rtems_disk_device *dd = dtab->minor [minor];
if (dd != NULL && !lookup_only) {
if (!dd->deleted) {
++dd->uses;
108228: 31 c0 xor %eax,%eax
return dd;
}
}
return NULL;
}
10822a: 5b pop %ebx
10822b: c9 leave
10822c: c3 ret
10822d: 8d 76 00 lea 0x0(%esi),%esi
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) {
108230: 8b 1d 00 af 12 00 mov 0x12af00,%ebx
108236: 85 db test %ebx,%ebx
108238: 74 ee je 108228 <get_disk_entry+0xc> <== NEVER TAKEN
rtems_disk_device_table *dtab = disktab + major;
10823a: 8d 04 c3 lea (%ebx,%eax,8),%eax
if (minor < dtab->size && dtab->minor != NULL) {
10823d: 39 50 04 cmp %edx,0x4(%eax)
108240: 76 e6 jbe 108228 <get_disk_entry+0xc> <== NEVER TAKEN
108242: 8b 00 mov (%eax),%eax
108244: 85 c0 test %eax,%eax
108246: 74 e0 je 108228 <get_disk_entry+0xc> <== NEVER TAKEN
rtems_disk_device *dd = dtab->minor [minor];
108248: 8b 04 90 mov (%eax,%edx,4),%eax
if (dd != NULL && !lookup_only) {
10824b: 85 c0 test %eax,%eax
10824d: 74 db je 10822a <get_disk_entry+0xe>
10824f: 84 c9 test %cl,%cl
108251: 75 d7 jne 10822a <get_disk_entry+0xe>
if (!dd->deleted) {
108253: 80 78 30 00 cmpb $0x0,0x30(%eax)
108257: 75 cf jne 108228 <get_disk_entry+0xc>
++dd->uses;
108259: ff 40 14 incl 0x14(%eax)
10825c: eb cc jmp 10822a <get_disk_entry+0xe>
0015c67c <getdents>:
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
15c67c: 55 push %ebp
15c67d: 89 e5 mov %esp,%ebp
15c67f: 57 push %edi
15c680: 56 push %esi
15c681: 53 push %ebx
15c682: 83 ec 2c sub $0x2c,%esp
15c685: 8b 5d 08 mov 0x8(%ebp),%ebx
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
15c688: 3b 1d 4c b1 16 00 cmp 0x16b14c,%ebx
15c68e: 72 48 jb 15c6d8 <getdents+0x5c> <== ALWAYS TAKEN
15c690: 31 db xor %ebx,%ebx
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
15c692: 8d 45 d4 lea -0x2c(%ebp),%eax
15c695: 8d 73 18 lea 0x18(%ebx),%esi
15c698: b9 05 00 00 00 mov $0x5,%ecx
15c69d: 89 c7 mov %eax,%edi
15c69f: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !loc.ops->node_type_h )
15c6a1: 8b 55 e0 mov -0x20(%ebp),%edx
15c6a4: 8b 52 10 mov 0x10(%edx),%edx
15c6a7: 85 d2 test %edx,%edx
15c6a9: 74 4d je 15c6f8 <getdents+0x7c> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
15c6ab: 83 ec 0c sub $0xc,%esp
15c6ae: 50 push %eax
15c6af: ff d2 call *%edx
15c6b1: 83 c4 10 add $0x10,%esp
15c6b4: 48 dec %eax
15c6b5: 75 2d jne 15c6e4 <getdents+0x68>
/*
* Return the number of bytes that were actually transfered as a result
* of the read attempt.
*/
if ( !iop->handlers->read_h )
15c6b7: 8b 43 3c mov 0x3c(%ebx),%eax
15c6ba: 8b 40 08 mov 0x8(%eax),%eax
15c6bd: 85 c0 test %eax,%eax
15c6bf: 74 37 je 15c6f8 <getdents+0x7c> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
return (*iop->handlers->read_h)( iop, dd_buf, dd_len );
15c6c1: 52 push %edx
15c6c2: ff 75 10 pushl 0x10(%ebp)
15c6c5: ff 75 0c pushl 0xc(%ebp)
15c6c8: 53 push %ebx
15c6c9: ff d0 call *%eax
15c6cb: 83 c4 10 add $0x10,%esp
}
15c6ce: 8d 65 f4 lea -0xc(%ebp),%esp
15c6d1: 5b pop %ebx
15c6d2: 5e pop %esi
15c6d3: 5f pop %edi
15c6d4: c9 leave
15c6d5: c3 ret
15c6d6: 66 90 xchg %ax,%ax
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
15c6d8: c1 e3 06 shl $0x6,%ebx
15c6db: 03 1d 3c 2d 17 00 add 0x172d3c,%ebx
15c6e1: eb af jmp 15c692 <getdents+0x16>
15c6e3: 90 nop
loc = iop->pathinfo;
if ( !loc.ops->node_type_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
15c6e4: e8 a3 a0 fe ff call 14678c <__errno>
15c6e9: c7 00 14 00 00 00 movl $0x14,(%eax)
15c6ef: b8 ff ff ff ff mov $0xffffffff,%eax
15c6f4: eb d8 jmp 15c6ce <getdents+0x52>
15c6f6: 66 90 xchg %ax,%ax
* Return the number of bytes that were actually transfered as a result
* of the read attempt.
*/
if ( !iop->handlers->read_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
15c6f8: e8 8f a0 fe ff call 14678c <__errno> <== NOT EXECUTED
15c6fd: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
15c703: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
15c708: eb c4 jmp 15c6ce <getdents+0x52> <== NOT EXECUTED
0012e46c <getgid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
gid_t getgid( void )
{
12e46c: 55 push %ebp <== NOT EXECUTED
12e46d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12e46f: a1 20 d3 16 00 mov 0x16d320,%eax <== NOT EXECUTED
12e474: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
return _POSIX_types_Gid;
}
12e477: c9 leave <== NOT EXECUTED
12e478: c3 ret <== NOT EXECUTED
0012ea04 <getgr_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
12ea04: 55 push %ebp
12ea05: 89 e5 mov %esp,%ebp
12ea07: 57 push %edi
12ea08: 56 push %esi
12ea09: 53 push %ebx
12ea0a: 83 ec 1c sub $0x1c,%esp
12ea0d: 89 c3 mov %eax,%ebx
12ea0f: 89 55 e4 mov %edx,-0x1c(%ebp)
12ea12: 89 ce mov %ecx,%esi
FILE *fp;
int match;
init_etc_passwd_group();
12ea14: e8 af fe ff ff call 12e8c8 <init_etc_passwd_group>
if ((fp = fopen("/etc/group", "r")) == NULL) {
12ea19: 83 ec 08 sub $0x8,%esp
12ea1c: 68 c9 09 16 00 push $0x1609c9
12ea21: 68 bc cd 15 00 push $0x15cdbc
12ea26: e8 c5 86 01 00 call 1470f0 <fopen>
12ea2b: 89 c7 mov %eax,%edi
12ea2d: 83 c4 10 add $0x10,%esp
12ea30: 85 c0 test %eax,%eax
12ea32: 75 22 jne 12ea56 <getgr_r+0x52> <== ALWAYS TAKEN
12ea34: e9 8b 00 00 00 jmp 12eac4 <getgr_r+0xc0> <== NOT EXECUTED
12ea39: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
match = (strcmp(grp->gr_name, name) == 0);
12ea3c: 83 ec 08 sub $0x8,%esp
12ea3f: 53 push %ebx
12ea40: ff 36 pushl (%esi)
12ea42: e8 b5 d5 01 00 call 14bffc <strcmp>
12ea47: 83 c4 10 add $0x10,%esp
12ea4a: 85 c0 test %eax,%eax
12ea4c: 0f 94 c0 sete %al
12ea4f: 0f b6 c0 movzbl %al,%eax
}
else {
match = (grp->gr_gid == gid);
}
if (match) {
12ea52: 85 c0 test %eax,%eax
12ea54: 75 2e jne 12ea84 <getgr_r+0x80>
if ((fp = fopen("/etc/group", "r")) == NULL) {
errno = EINVAL;
return -1;
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
12ea56: 83 ec 0c sub $0xc,%esp
12ea59: ff 75 0c pushl 0xc(%ebp)
12ea5c: 8b 4d 08 mov 0x8(%ebp),%ecx
12ea5f: 89 f2 mov %esi,%edx
12ea61: 89 f8 mov %edi,%eax
12ea63: e8 d4 fb ff ff call 12e63c <scangr>
12ea68: 83 c4 10 add $0x10,%esp
12ea6b: 85 c0 test %eax,%eax
12ea6d: 74 31 je 12eaa0 <getgr_r+0x9c> <== NEVER TAKEN
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
12ea6f: 85 db test %ebx,%ebx
12ea71: 75 c9 jne 12ea3c <getgr_r+0x38> <== ALWAYS TAKEN
match = (strcmp(grp->gr_name, name) == 0);
}
else {
match = (grp->gr_gid == gid);
12ea73: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED
12ea77: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED
12ea7a: 0f 94 c0 sete %al <== NOT EXECUTED
12ea7d: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
}
if (match) {
12ea80: 85 c0 test %eax,%eax <== NOT EXECUTED
12ea82: 74 d2 je 12ea56 <getgr_r+0x52> <== NOT EXECUTED
fclose(fp);
12ea84: 83 ec 0c sub $0xc,%esp
12ea87: 57 push %edi
12ea88: e8 4b 7e 01 00 call 1468d8 <fclose>
*result = grp;
12ea8d: 8b 45 10 mov 0x10(%ebp),%eax
12ea90: 89 30 mov %esi,(%eax)
12ea92: 31 c0 xor %eax,%eax
return 0;
12ea94: 83 c4 10 add $0x10,%esp
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
12ea97: 8d 65 f4 lea -0xc(%ebp),%esp
12ea9a: 5b pop %ebx
12ea9b: 5e pop %esi
12ea9c: 5f pop %edi
12ea9d: c9 leave
12ea9e: c3 ret
12ea9f: 90 nop
errno = EINVAL;
return -1;
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
errno = EINVAL;
12eaa0: e8 e7 7c 01 00 call 14678c <__errno> <== NOT EXECUTED
12eaa5: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
fclose(fp);
12eaab: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12eaae: 57 push %edi <== NOT EXECUTED
12eaaf: e8 24 7e 01 00 call 1468d8 <fclose> <== NOT EXECUTED
12eab4: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
12eab9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
12eabc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12eabf: 5b pop %ebx <== NOT EXECUTED
12eac0: 5e pop %esi <== NOT EXECUTED
12eac1: 5f pop %edi <== NOT EXECUTED
12eac2: c9 leave <== NOT EXECUTED
12eac3: c3 ret <== NOT EXECUTED
int match;
init_etc_passwd_group();
if ((fp = fopen("/etc/group", "r")) == NULL) {
errno = EINVAL;
12eac4: e8 c3 7c 01 00 call 14678c <__errno> <== NOT EXECUTED
12eac9: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
12eacf: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
12ead2: eb c3 jmp 12ea97 <getgr_r+0x93> <== NOT EXECUTED
0012e754 <getgrent>:
return NULL;
return p;
}
struct group *getgrent(void)
{
12e754: 55 push %ebp <== NOT EXECUTED
12e755: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12e757: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (group_fp == NULL)
12e75a: a1 24 29 17 00 mov 0x172924,%eax <== NOT EXECUTED
12e75f: 85 c0 test %eax,%eax <== NOT EXECUTED
12e761: 75 05 jne 12e768 <getgrent+0x14> <== NOT EXECUTED
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
12e763: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL;
return &grent;
}
12e765: c9 leave <== NOT EXECUTED
12e766: c3 ret <== NOT EXECUTED
12e767: 90 nop <== NOT EXECUTED
struct group *getgrent(void)
{
if (group_fp == NULL)
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
12e768: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12e76b: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED
12e770: b9 40 29 17 00 mov $0x172940,%ecx <== NOT EXECUTED
12e775: ba 08 2a 17 00 mov $0x172a08,%edx <== NOT EXECUTED
12e77a: e8 bd fe ff ff call 12e63c <scangr> <== NOT EXECUTED
12e77f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12e782: 85 c0 test %eax,%eax <== NOT EXECUTED
12e784: 74 dd je 12e763 <getgrent+0xf> <== NOT EXECUTED
12e786: b8 08 2a 17 00 mov $0x172a08,%eax <== NOT EXECUTED
return NULL;
return &grent;
}
12e78b: c9 leave <== NOT EXECUTED
12e78c: c3 ret <== NOT EXECUTED
0012eb00 <getgrgid>:
}
struct group *getgrgid(
gid_t gid
)
{
12eb00: 55 push %ebp <== NOT EXECUTED
12eb01: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12eb03: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
12eb06: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
12eb09: 50 push %eax <== NOT EXECUTED
12eb0a: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED
12eb0f: 68 40 29 17 00 push $0x172940 <== NOT EXECUTED
12eb14: 68 08 2a 17 00 push $0x172a08 <== NOT EXECUTED
12eb19: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED
12eb1d: 50 push %eax <== NOT EXECUTED
12eb1e: e8 b1 ff ff ff call 12ead4 <getgrgid_r> <== NOT EXECUTED
12eb23: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12eb26: 85 c0 test %eax,%eax <== NOT EXECUTED
12eb28: 75 06 jne 12eb30 <getgrgid+0x30> <== NOT EXECUTED
return NULL;
return p;
12eb2a: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
12eb2d: c9 leave <== NOT EXECUTED
12eb2e: c3 ret <== NOT EXECUTED
12eb2f: 90 nop <== NOT EXECUTED
gid_t gid
)
{
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
12eb30: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL;
return p;
}
12eb32: c9 leave <== NOT EXECUTED
12eb33: c3 ret <== NOT EXECUTED
0012ead4 <getgrgid_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
12ead4: 55 push %ebp <== NOT EXECUTED
12ead5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12ead7: 53 push %ebx <== NOT EXECUTED
12ead8: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
12eadb: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
12eade: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
12eae1: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED
12eae5: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
12eae8: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED
12eaeb: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
12eaee: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED
12eaf1: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
12eaf4: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
12eaf6: 5b pop %ebx <== NOT EXECUTED
12eaf7: 5b pop %ebx <== NOT EXECUTED
12eaf8: c9 leave <== NOT EXECUTED
char *buffer,
size_t bufsize,
struct group **result
)
{
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
12eaf9: e9 06 ff ff ff jmp 12ea04 <getgr_r> <== NOT EXECUTED
0012eb60 <getgrnam>:
}
struct group *getgrnam(
const char *name
)
{
12eb60: 55 push %ebp
12eb61: 89 e5 mov %esp,%ebp
12eb63: 83 ec 24 sub $0x24,%esp
struct group *p;
if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p))
12eb66: 8d 45 f4 lea -0xc(%ebp),%eax
12eb69: 50 push %eax
12eb6a: 68 c8 00 00 00 push $0xc8
12eb6f: 68 40 29 17 00 push $0x172940
12eb74: 68 08 2a 17 00 push $0x172a08
12eb79: ff 75 08 pushl 0x8(%ebp)
12eb7c: e8 b3 ff ff ff call 12eb34 <getgrnam_r>
12eb81: 83 c4 20 add $0x20,%esp
12eb84: 85 c0 test %eax,%eax
12eb86: 75 08 jne 12eb90 <getgrnam+0x30> <== NEVER TAKEN
return NULL;
return p;
12eb88: 8b 45 f4 mov -0xc(%ebp),%eax
}
12eb8b: c9 leave
12eb8c: c3 ret
12eb8d: 8d 76 00 lea 0x0(%esi),%esi
const char *name
)
{
struct group *p;
if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p))
12eb90: 31 c0 xor %eax,%eax
return NULL;
return p;
}
12eb92: c9 leave <== NOT EXECUTED
12eb93: c3 ret <== NOT EXECUTED
0012499c <getpid>:
*
* 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83
*/
pid_t getpid( void )
{
12499c: 55 push %ebp <== NOT EXECUTED
12499d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return _Objects_Local_node;
}
12499f: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
1249a4: c9 leave <== NOT EXECUTED
1249a5: c3 ret <== NOT EXECUTED
0012ebd0 <getpw_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
12ebd0: 55 push %ebp
12ebd1: 89 e5 mov %esp,%ebp
12ebd3: 57 push %edi
12ebd4: 56 push %esi
12ebd5: 53 push %ebx
12ebd6: 83 ec 1c sub $0x1c,%esp
12ebd9: 89 c3 mov %eax,%ebx
12ebdb: 89 55 e4 mov %edx,-0x1c(%ebp)
12ebde: 89 ce mov %ecx,%esi
FILE *fp;
int match;
init_etc_passwd_group();
12ebe0: e8 e3 fc ff ff call 12e8c8 <init_etc_passwd_group>
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
12ebe5: 83 ec 08 sub $0x8,%esp
12ebe8: 68 c9 09 16 00 push $0x1609c9
12ebed: 68 b0 cd 15 00 push $0x15cdb0
12ebf2: e8 f9 84 01 00 call 1470f0 <fopen>
12ebf7: 89 c7 mov %eax,%edi
12ebf9: 83 c4 10 add $0x10,%esp
12ebfc: 85 c0 test %eax,%eax
12ebfe: 75 22 jne 12ec22 <getpw_r+0x52> <== ALWAYS TAKEN
12ec00: e9 8b 00 00 00 jmp 12ec90 <getpw_r+0xc0> <== NOT EXECUTED
12ec05: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
match = (strcmp(pwd->pw_name, name) == 0);
12ec08: 83 ec 08 sub $0x8,%esp
12ec0b: 53 push %ebx
12ec0c: ff 36 pushl (%esi)
12ec0e: e8 e9 d3 01 00 call 14bffc <strcmp>
12ec13: 83 c4 10 add $0x10,%esp
12ec16: 85 c0 test %eax,%eax
12ec18: 0f 94 c0 sete %al
12ec1b: 0f b6 c0 movzbl %al,%eax
}
else {
match = (pwd->pw_uid == uid);
}
if (match) {
12ec1e: 85 c0 test %eax,%eax
12ec20: 75 2e jne 12ec50 <getpw_r+0x80>
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
errno = EINVAL;
return -1;
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
12ec22: 83 ec 0c sub $0xc,%esp
12ec25: ff 75 0c pushl 0xc(%ebp)
12ec28: 8b 4d 08 mov 0x8(%ebp),%ecx
12ec2b: 89 f2 mov %esi,%edx
12ec2d: 89 f8 mov %edi,%eax
12ec2f: e8 5c fb ff ff call 12e790 <scanpw>
12ec34: 83 c4 10 add $0x10,%esp
12ec37: 85 c0 test %eax,%eax
12ec39: 74 31 je 12ec6c <getpw_r+0x9c> <== NEVER TAKEN
errno = EINVAL;
fclose(fp);
return -1;
}
if (name) {
12ec3b: 85 db test %ebx,%ebx
12ec3d: 75 c9 jne 12ec08 <getpw_r+0x38> <== ALWAYS TAKEN
match = (strcmp(pwd->pw_name, name) == 0);
}
else {
match = (pwd->pw_uid == uid);
12ec3f: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED
12ec43: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED
12ec46: 0f 94 c0 sete %al <== NOT EXECUTED
12ec49: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
}
if (match) {
12ec4c: 85 c0 test %eax,%eax <== NOT EXECUTED
12ec4e: 74 d2 je 12ec22 <getpw_r+0x52> <== NOT EXECUTED
fclose(fp);
12ec50: 83 ec 0c sub $0xc,%esp
12ec53: 57 push %edi
12ec54: e8 7f 7c 01 00 call 1468d8 <fclose>
*result = pwd;
12ec59: 8b 45 10 mov 0x10(%ebp),%eax
12ec5c: 89 30 mov %esi,(%eax)
12ec5e: 31 c0 xor %eax,%eax
return 0;
12ec60: 83 c4 10 add $0x10,%esp
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
12ec63: 8d 65 f4 lea -0xc(%ebp),%esp
12ec66: 5b pop %ebx
12ec67: 5e pop %esi
12ec68: 5f pop %edi
12ec69: c9 leave
12ec6a: c3 ret
12ec6b: 90 nop
errno = EINVAL;
return -1;
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
errno = EINVAL;
12ec6c: e8 1b 7b 01 00 call 14678c <__errno> <== NOT EXECUTED
12ec71: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
fclose(fp);
12ec77: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12ec7a: 57 push %edi <== NOT EXECUTED
12ec7b: e8 58 7c 01 00 call 1468d8 <fclose> <== NOT EXECUTED
12ec80: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
12ec85: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
12ec88: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12ec8b: 5b pop %ebx <== NOT EXECUTED
12ec8c: 5e pop %esi <== NOT EXECUTED
12ec8d: 5f pop %edi <== NOT EXECUTED
12ec8e: c9 leave <== NOT EXECUTED
12ec8f: c3 ret <== NOT EXECUTED
int match;
init_etc_passwd_group();
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
errno = EINVAL;
12ec90: e8 f7 7a 01 00 call 14678c <__errno> <== NOT EXECUTED
12ec95: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
12ec9b: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
12ec9e: eb c3 jmp 12ec63 <getpw_r+0x93> <== NOT EXECUTED
0012e88c <getpwent>:
return NULL;
return p;
}
struct passwd *getpwent(void)
{
12e88c: 55 push %ebp <== NOT EXECUTED
12e88d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12e88f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (passwd_fp == NULL)
12e892: a1 24 28 17 00 mov 0x172824,%eax <== NOT EXECUTED
12e897: 85 c0 test %eax,%eax <== NOT EXECUTED
12e899: 75 05 jne 12e8a0 <getpwent+0x14> <== NOT EXECUTED
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
12e89b: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL;
return &pwent;
}
12e89d: c9 leave <== NOT EXECUTED
12e89e: c3 ret <== NOT EXECUTED
12e89f: 90 nop <== NOT EXECUTED
struct passwd *getpwent(void)
{
if (passwd_fp == NULL)
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
12e8a0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12e8a3: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED
12e8a8: b9 40 28 17 00 mov $0x172840,%ecx <== NOT EXECUTED
12e8ad: ba 08 29 17 00 mov $0x172908,%edx <== NOT EXECUTED
12e8b2: e8 d9 fe ff ff call 12e790 <scanpw> <== NOT EXECUTED
12e8b7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12e8ba: 85 c0 test %eax,%eax <== NOT EXECUTED
12e8bc: 74 dd je 12e89b <getpwent+0xf> <== NOT EXECUTED
12e8be: b8 08 29 17 00 mov $0x172908,%eax <== NOT EXECUTED
return NULL;
return &pwent;
}
12e8c3: c9 leave <== NOT EXECUTED
12e8c4: c3 ret <== NOT EXECUTED
0012ed2c <getpwnam>:
}
struct passwd *getpwnam(
const char *name
)
{
12ed2c: 55 push %ebp
12ed2d: 89 e5 mov %esp,%ebp
12ed2f: 83 ec 24 sub $0x24,%esp
struct passwd *p;
if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p))
12ed32: 8d 45 f4 lea -0xc(%ebp),%eax
12ed35: 50 push %eax
12ed36: 68 c8 00 00 00 push $0xc8
12ed3b: 68 40 28 17 00 push $0x172840
12ed40: 68 08 29 17 00 push $0x172908
12ed45: ff 75 08 pushl 0x8(%ebp)
12ed48: e8 b3 ff ff ff call 12ed00 <getpwnam_r>
12ed4d: 83 c4 20 add $0x20,%esp
12ed50: 85 c0 test %eax,%eax
12ed52: 75 08 jne 12ed5c <getpwnam+0x30> <== NEVER TAKEN
return NULL;
return p;
12ed54: 8b 45 f4 mov -0xc(%ebp),%eax
}
12ed57: c9 leave
12ed58: c3 ret
12ed59: 8d 76 00 lea 0x0(%esi),%esi
const char *name
)
{
struct passwd *p;
if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p))
12ed5c: 31 c0 xor %eax,%eax
return NULL;
return p;
}
12ed5e: c9 leave <== NOT EXECUTED
12ed5f: c3 ret <== NOT EXECUTED
0012eccc <getpwuid>:
}
struct passwd *getpwuid(
uid_t uid
)
{
12eccc: 55 push %ebp <== NOT EXECUTED
12eccd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12eccf: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
12ecd2: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
12ecd5: 50 push %eax <== NOT EXECUTED
12ecd6: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED
12ecdb: 68 40 28 17 00 push $0x172840 <== NOT EXECUTED
12ece0: 68 08 29 17 00 push $0x172908 <== NOT EXECUTED
12ece5: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED
12ece9: 50 push %eax <== NOT EXECUTED
12ecea: e8 b1 ff ff ff call 12eca0 <getpwuid_r> <== NOT EXECUTED
12ecef: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12ecf2: 85 c0 test %eax,%eax <== NOT EXECUTED
12ecf4: 75 06 jne 12ecfc <getpwuid+0x30> <== NOT EXECUTED
return NULL;
return p;
12ecf6: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
12ecf9: c9 leave <== NOT EXECUTED
12ecfa: c3 ret <== NOT EXECUTED
12ecfb: 90 nop <== NOT EXECUTED
uid_t uid
)
{
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
12ecfc: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL;
return p;
}
12ecfe: c9 leave <== NOT EXECUTED
12ecff: c3 ret <== NOT EXECUTED
0012eca0 <getpwuid_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
12eca0: 55 push %ebp <== NOT EXECUTED
12eca1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12eca3: 53 push %ebx <== NOT EXECUTED
12eca4: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
12eca7: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
12ecaa: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
12ecad: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED
12ecb1: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
12ecb4: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED
12ecb7: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
12ecba: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED
12ecbd: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
12ecc0: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
12ecc2: 5b pop %ebx <== NOT EXECUTED
12ecc3: 5b pop %ebx <== NOT EXECUTED
12ecc4: c9 leave <== NOT EXECUTED
char *buffer,
size_t bufsize,
struct passwd **result
)
{
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
12ecc5: e9 06 ff ff ff jmp 12ebd0 <getpw_r> <== NOT EXECUTED
00108660 <gettimeofday>:
*/
int gettimeofday(
struct timeval *tp,
void * __tz __attribute__((unused))
)
{
108660: 55 push %ebp
108661: 89 e5 mov %esp,%ebp
108663: 56 push %esi
108664: 53 push %ebx
108665: 83 ec 20 sub $0x20,%esp
108668: 8b 5d 08 mov 0x8(%ebp),%ebx
/* struct timezone* tzp = (struct timezone*) __tz; */
if ( !tp ) {
10866b: 85 db test %ebx,%ebx
10866d: 74 42 je 1086b1 <gettimeofday+0x51> <== NEVER TAKEN
{
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
10866f: 9c pushf
108670: fa cli
108671: 5e pop %esi
_TOD_Get( &now );
108672: 83 ec 0c sub $0xc,%esp
108675: 8d 45 f0 lea -0x10(%ebp),%eax
108678: 50 push %eax
108679: e8 4a 43 00 00 call 10c9c8 <_TOD_Get>
_ISR_Enable(level);
10867e: 56 push %esi
10867f: 9d popf
useconds = (suseconds_t)now.tv_nsec;
108680: 8b 4d f4 mov -0xc(%ebp),%ecx
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
108683: 8b 45 f0 mov -0x10(%ebp),%eax
108686: 89 03 mov %eax,(%ebx)
time->tv_usec = useconds;
108688: be d3 4d 62 10 mov $0x10624dd3,%esi
10868d: 89 c8 mov %ecx,%eax
10868f: f7 ee imul %esi
108691: 89 45 e0 mov %eax,-0x20(%ebp)
108694: 89 55 e4 mov %edx,-0x1c(%ebp)
108697: 8b 75 e4 mov -0x1c(%ebp),%esi
10869a: c1 fe 06 sar $0x6,%esi
10869d: 89 c8 mov %ecx,%eax
10869f: 99 cltd
1086a0: 29 d6 sub %edx,%esi
1086a2: 89 73 04 mov %esi,0x4(%ebx)
1086a5: 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;
1086a7: 83 c4 10 add $0x10,%esp
}
1086aa: 8d 65 f8 lea -0x8(%ebp),%esp
1086ad: 5b pop %ebx
1086ae: 5e pop %esi
1086af: c9 leave
1086b0: c3 ret
void * __tz __attribute__((unused))
)
{
/* struct timezone* tzp = (struct timezone*) __tz; */
if ( !tp ) {
errno = EFAULT;
1086b1: e8 8a b7 00 00 call 113e40 <__errno> <== NOT EXECUTED
1086b6: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
1086bc: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
1086c1: eb e7 jmp 1086aa <gettimeofday+0x4a> <== NOT EXECUTED
0010e96c <getuid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
uid_t getuid( void )
{
10e96c: 55 push %ebp <== NOT EXECUTED
10e96d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10e96f: a1 20 d3 16 00 mov 0x16d320,%eax <== NOT EXECUTED
10e974: 66 8b 40 32 mov 0x32(%eax),%ax <== NOT EXECUTED
return _POSIX_types_Uid;
}
10e978: c9 leave <== NOT EXECUTED
10e979: c3 ret <== NOT EXECUTED
0011328c <imfs_dir_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
11328c: 55 push %ebp
11328d: 89 e5 mov %esp,%ebp
11328f: 8b 45 08 mov 0x8(%ebp),%eax
IMFS_jnode_t *the_jnode;
/* Is the node a directory ? */
the_jnode = (IMFS_jnode_t *) iop->file_info;
113292: 8b 50 38 mov 0x38(%eax),%edx
113295: 83 7a 4c 01 cmpl $0x1,0x4c(%edx)
113299: 74 09 je 1132a4 <imfs_dir_open+0x18> <== ALWAYS TAKEN
11329b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
if ( the_jnode->type != IMFS_DIRECTORY )
return -1; /* It wasn't a directory --> return error */
iop->offset = 0;
return 0;
}
1132a0: c9 leave <== NOT EXECUTED
1132a1: c3 ret <== NOT EXECUTED
1132a2: 66 90 xchg %ax,%ax <== NOT EXECUTED
the_jnode = (IMFS_jnode_t *) iop->file_info;
if ( the_jnode->type != IMFS_DIRECTORY )
return -1; /* It wasn't a directory --> return error */
iop->offset = 0;
1132a4: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
1132ab: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax)
1132b2: 31 c0 xor %eax,%eax
return 0;
}
1132b4: c9 leave
1132b5: c3 ret
001134c4 <imfs_dir_read>:
ssize_t imfs_dir_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
1134c4: 55 push %ebp
1134c5: 89 e5 mov %esp,%ebp
1134c7: 57 push %edi
1134c8: 56 push %esi
1134c9: 53 push %ebx
1134ca: 81 ec 4c 01 00 00 sub $0x14c,%esp
int current_entry;
int first_entry;
int last_entry;
struct dirent tmp_dirent;
the_jnode = (IMFS_jnode_t *)iop->file_info;
1134d0: 8b 55 08 mov 0x8(%ebp),%edx
1134d3: 8b 42 38 mov 0x38(%edx),%eax
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
1134d6: 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;
1134d9: 83 c0 54 add $0x54,%eax
1134dc: 89 85 cc fe ff ff mov %eax,-0x134(%ebp)
the_chain = &the_jnode->info.directory.Entries;
if ( rtems_chain_is_empty( the_chain ) )
1134e2: 39 c3 cmp %eax,%ebx
1134e4: 0f 84 2a 01 00 00 je 113614 <imfs_dir_read+0x150>
/* Move to the first of the desired directory entries */
the_node = the_chain->first;
bytes_transferred = 0;
first_entry = iop->offset;
1134ea: 8b 45 08 mov 0x8(%ebp),%eax
1134ed: 8b 40 0c mov 0xc(%eax),%eax
1134f0: 89 85 d0 fe ff ff mov %eax,-0x130(%ebp)
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
1134f6: ba f1 f0 f0 f0 mov $0xf0f0f0f1,%edx
1134fb: 8b 45 10 mov 0x10(%ebp),%eax
1134fe: f7 e2 mul %edx
113500: c1 ea 08 shr $0x8,%edx
113503: 89 d0 mov %edx,%eax
113505: c1 e0 04 shl $0x4,%eax
113508: c1 e2 08 shl $0x8,%edx
11350b: 8d 14 10 lea (%eax,%edx,1),%edx
11350e: 03 95 d0 fe ff ff add -0x130(%ebp),%edx
113514: 89 95 d4 fe ff ff mov %edx,-0x12c(%ebp)
/* The directory was not empty so try to move to the desired entry in chain*/
for (
11351a: 85 d2 test %edx,%edx
11351c: 0f 8e f2 00 00 00 jle 113614 <imfs_dir_read+0x150> <== NEVER TAKEN
113522: 31 d2 xor %edx,%edx
113524: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp)
11352b: 00 00 00
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
strcpy( tmp_dirent.d_name, the_jnode->name );
11352e: 8d 85 d8 fe ff ff lea -0x128(%ebp),%eax
113534: 89 85 b4 fe ff ff mov %eax,-0x14c(%ebp)
11353a: eb 20 jmp 11355c <imfs_dir_read+0x98>
);
iop->offset = iop->offset + sizeof(struct dirent);
bytes_transferred = bytes_transferred + sizeof( struct dirent );
}
the_node = the_node->next;
11353c: 8b 1b mov (%ebx),%ebx
* to the end of the exisiting file, the remaining entries will be placed in
* the buffer and the returned value will be equal to -m actual- times the
* size of a directory entry.
*/
ssize_t imfs_dir_read(
11353e: 81 c2 10 01 00 00 add $0x110,%edx
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
/* The directory was not empty so try to move to the desired entry in chain*/
for (
113544: 3b 95 d4 fe ff ff cmp -0x12c(%ebp),%edx
11354a: 0f 8d b4 00 00 00 jge 113604 <imfs_dir_read+0x140> <== NEVER TAKEN
current_entry = 0;
current_entry < last_entry;
current_entry = current_entry + sizeof(struct dirent) ){
if ( rtems_chain_is_tail( the_chain, the_node ) ){
113550: 3b 9d cc fe ff ff cmp -0x134(%ebp),%ebx
113556: 0f 84 a8 00 00 00 je 113604 <imfs_dir_read+0x140>
/* entry in the read */
return bytes_transferred; /* Indicate that there are no more */
/* entries to return */
}
if( current_entry >= first_entry ) {
11355c: 39 95 d0 fe ff ff cmp %edx,-0x130(%ebp)
113562: 7f d8 jg 11353c <imfs_dir_read+0x78>
/* Move the entry to the return buffer */
tmp_dirent.d_off = current_entry;
113564: 89 95 dc fe ff ff mov %edx,-0x124(%ebp)
11356a: 89 d0 mov %edx,%eax
11356c: c1 f8 1f sar $0x1f,%eax
11356f: 89 85 e0 fe ff ff mov %eax,-0x120(%ebp)
tmp_dirent.d_reclen = sizeof( struct dirent );
113575: 66 c7 85 e4 fe ff ff movw $0x110,-0x11c(%ebp)
11357c: 10 01
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
11357e: 8b 43 38 mov 0x38(%ebx),%eax
113581: 89 85 d8 fe ff ff mov %eax,-0x128(%ebp)
tmp_dirent.d_namlen = strlen( the_jnode->name );
113587: 8d 73 0c lea 0xc(%ebx),%esi
11358a: 31 c0 xor %eax,%eax
11358c: b9 ff ff ff ff mov $0xffffffff,%ecx
113591: 89 f7 mov %esi,%edi
113593: f2 ae repnz scas %es:(%edi),%al
113595: f7 d1 not %ecx
113597: 49 dec %ecx
113598: 66 89 8d e6 fe ff ff mov %cx,-0x11a(%ebp)
strcpy( tmp_dirent.d_name, the_jnode->name );
11359f: 83 ec 08 sub $0x8,%esp
1135a2: 56 push %esi
1135a3: 8d 85 e8 fe ff ff lea -0x118(%ebp),%eax
1135a9: 50 push %eax
1135aa: 89 95 c4 fe ff ff mov %edx,-0x13c(%ebp)
1135b0: e8 ab 13 00 00 call 114960 <strcpy>
memcpy(
1135b5: 8b 45 0c mov 0xc(%ebp),%eax
1135b8: 03 85 c8 fe ff ff add -0x138(%ebp),%eax
1135be: b9 44 00 00 00 mov $0x44,%ecx
1135c3: 89 c7 mov %eax,%edi
1135c5: 8b b5 b4 fe ff ff mov -0x14c(%ebp),%esi
1135cb: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
buffer + bytes_transferred,
(void *)&tmp_dirent,
sizeof( struct dirent )
);
iop->offset = iop->offset + sizeof(struct dirent);
1135cd: 8b 45 08 mov 0x8(%ebp),%eax
1135d0: 81 40 0c 10 01 00 00 addl $0x110,0xc(%eax)
1135d7: 83 50 10 00 adcl $0x0,0x10(%eax)
bytes_transferred = bytes_transferred + sizeof( struct dirent );
1135db: 81 85 c8 fe ff ff 10 addl $0x110,-0x138(%ebp)
1135e2: 01 00 00
1135e5: 83 c4 10 add $0x10,%esp
1135e8: 8b 95 c4 fe ff ff mov -0x13c(%ebp),%edx
}
the_node = the_node->next;
1135ee: 8b 1b mov (%ebx),%ebx
* to the end of the exisiting file, the remaining entries will be placed in
* the buffer and the returned value will be equal to -m actual- times the
* size of a directory entry.
*/
ssize_t imfs_dir_read(
1135f0: 81 c2 10 01 00 00 add $0x110,%edx
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
/* The directory was not empty so try to move to the desired entry in chain*/
for (
1135f6: 3b 95 d4 fe ff ff cmp -0x12c(%ebp),%edx
1135fc: 0f 8c 4e ff ff ff jl 113550 <imfs_dir_read+0x8c> <== NEVER TAKEN
113602: 66 90 xchg %ax,%ax
the_node = the_node->next;
}
/* Success */
return bytes_transferred;
}
113604: 8b 85 c8 fe ff ff mov -0x138(%ebp),%eax
11360a: 8d 65 f4 lea -0xc(%ebp),%esp
11360d: 5b pop %ebx
11360e: 5e pop %esi
11360f: 5f pop %edi
113610: c9 leave
113611: c3 ret
113612: 66 90 xchg %ax,%ax
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
/* The directory was not empty so try to move to the desired entry in chain*/
for (
113614: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp)
11361b: 00 00 00
the_node = the_node->next;
}
/* Success */
return bytes_transferred;
}
11361e: 8b 85 c8 fe ff ff mov -0x138(%ebp),%eax
113624: 8d 65 f4 lea -0xc(%ebp),%esp
113627: 5b pop %ebx
113628: 5e pop %esi
113629: 5f pop %edi
11362a: c9 leave
11362b: c3 ret
001133e8 <imfs_dir_rmnod>:
int imfs_dir_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
1133e8: 55 push %ebp
1133e9: 89 e5 mov %esp,%ebp
1133eb: 56 push %esi
1133ec: 53 push %ebx
1133ed: 83 ec 10 sub $0x10,%esp
1133f0: 8b 75 0c mov 0xc(%ebp),%esi
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
1133f3: 8b 1e mov (%esi),%ebx
1133f5: 8d 43 54 lea 0x54(%ebx),%eax
1133f8: 39 43 50 cmp %eax,0x50(%ebx)
1133fb: 0f 85 8f 00 00 00 jne 113490 <imfs_dir_rmnod+0xa8>
/*
* You cannot remove the file system root node.
*/
if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
113401: 8b 46 10 mov 0x10(%esi),%eax
113404: 3b 58 1c cmp 0x1c(%eax),%ebx
113407: 0f 84 97 00 00 00 je 1134a4 <imfs_dir_rmnod+0xbc> <== NEVER TAKEN
/*
* You cannot remove a mountpoint.
*/
if ( the_jnode->info.directory.mt_fs != NULL )
11340d: 8b 43 5c mov 0x5c(%ebx),%eax
113410: 85 c0 test %eax,%eax
113412: 0f 85 8c 00 00 00 jne 1134a4 <imfs_dir_rmnod+0xbc> <== NEVER TAKEN
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
113418: 8b 4b 08 mov 0x8(%ebx),%ecx
11341b: 85 c9 test %ecx,%ecx
11341d: 74 13 je 113432 <imfs_dir_rmnod+0x4a>
11341f: 83 ec 0c sub $0xc,%esp
113422: 53 push %ebx
113423: e8 84 91 ff ff call 10c5ac <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
113428: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
11342f: 83 c4 10 add $0x10,%esp
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
113432: 66 ff 4b 34 decw 0x34(%ebx)
IMFS_update_ctime( the_jnode );
113436: 83 ec 08 sub $0x8,%esp
113439: 6a 00 push $0x0
11343b: 8d 45 f0 lea -0x10(%ebp),%eax
11343e: 50 push %eax
11343f: e8 1c 52 ff ff call 108660 <gettimeofday>
113444: 8b 45 f0 mov -0x10(%ebp),%eax
113447: 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) ) {
11344a: 89 1c 24 mov %ebx,(%esp)
11344d: e8 f2 d7 ff ff call 110c44 <rtems_libio_is_file_open>
113452: 83 c4 10 add $0x10,%esp
113455: 85 c0 test %eax,%eax
113457: 75 2b jne 113484 <imfs_dir_rmnod+0x9c>
113459: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx)
11345e: 75 24 jne 113484 <imfs_dir_rmnod+0x9c>
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
113460: a1 24 50 12 00 mov 0x125024,%eax
113465: 8b 50 04 mov 0x4(%eax),%edx
113468: 3b 16 cmp (%esi),%edx
11346a: 74 4c je 1134b8 <imfs_dir_rmnod+0xd0> <== NEVER TAKEN
/*
* Free memory associated with a memory file.
*/
free( the_jnode );
11346c: 83 ec 0c sub $0xc,%esp
11346f: 53 push %ebx
113470: e8 6f 51 ff ff call 1085e4 <free>
113475: 31 c0 xor %eax,%eax
113477: 83 c4 10 add $0x10,%esp
}
return 0;
}
11347a: 8d 65 f8 lea -0x8(%ebp),%esp
11347d: 5b pop %ebx
11347e: 5e pop %esi
11347f: c9 leave
113480: c3 ret
113481: 8d 76 00 lea 0x0(%esi),%esi
/*
* Free memory associated with a memory file.
*/
free( the_jnode );
113484: 31 c0 xor %eax,%eax
}
return 0;
}
113486: 8d 65 f8 lea -0x8(%ebp),%esp
113489: 5b pop %ebx
11348a: 5e pop %esi
11348b: c9 leave
11348c: c3 ret
11348d: 8d 76 00 lea 0x0(%esi),%esi
/*
* 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 );
113490: e8 ab 09 00 00 call 113e40 <__errno>
113495: c7 00 5a 00 00 00 movl $0x5a,(%eax)
11349b: b8 ff ff ff ff mov $0xffffffff,%eax
1134a0: eb e4 jmp 113486 <imfs_dir_rmnod+0x9e>
1134a2: 66 90 xchg %ax,%ax
/*
* You cannot remove a mountpoint.
*/
if ( the_jnode->info.directory.mt_fs != NULL )
rtems_set_errno_and_return_minus_one( EBUSY );
1134a4: e8 97 09 00 00 call 113e40 <__errno>
1134a9: c7 00 10 00 00 00 movl $0x10,(%eax)
1134af: b8 ff ff ff ff mov $0xffffffff,%eax
1134b4: eb d0 jmp 113486 <imfs_dir_rmnod+0x9e>
1134b6: 66 90 xchg %ax,%ax
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
rtems_filesystem_current.node_access = NULL;
1134b8: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
1134bf: eb ab jmp 11346c <imfs_dir_rmnod+0x84> <== NOT EXECUTED
0012e8c8 <init_etc_passwd_group>:
/*
* Initialize useable but dummy databases
*/
void init_etc_passwd_group(void)
{
12e8c8: 55 push %ebp
12e8c9: 89 e5 mov %esp,%ebp
12e8cb: 53 push %ebx
12e8cc: 83 ec 04 sub $0x4,%esp
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
12e8cf: 80 3d 20 28 17 00 00 cmpb $0x0,0x172820
12e8d6: 74 08 je 12e8e0 <init_etc_passwd_group+0x18>
fprintf( fp, "root:x:0:root\n"
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
}
}
12e8d8: 8b 5d fc mov -0x4(%ebp),%ebx
12e8db: c9 leave
12e8dc: c3 ret
12e8dd: 8d 76 00 lea 0x0(%esi),%esi
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
return;
etc_passwd_initted = 1;
12e8e0: c6 05 20 28 17 00 01 movb $0x1,0x172820
mkdir("/etc", 0777);
12e8e7: 83 ec 08 sub $0x8,%esp
12e8ea: 68 ff 01 00 00 push $0x1ff
12e8ef: 68 9a cd 15 00 push $0x15cd9a
12e8f4: e8 77 06 fe ff call 10ef70 <mkdir>
/*
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
12e8f9: 59 pop %ecx
12e8fa: 5b pop %ebx
12e8fb: 68 c9 09 16 00 push $0x1609c9
12e900: 68 b0 cd 15 00 push $0x15cdb0
12e905: e8 e6 87 01 00 call 1470f0 <fopen>
12e90a: 83 c4 10 add $0x10,%esp
12e90d: 85 c0 test %eax,%eax
12e90f: 74 77 je 12e988 <init_etc_passwd_group+0xc0><== ALWAYS TAKEN
fclose(fp);
12e911: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12e914: 50 push %eax <== NOT EXECUTED
12e915: e8 be 7f 01 00 call 1468d8 <fclose> <== NOT EXECUTED
12e91a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
/*
* Initialize /etc/group
*/
if ((fp = fopen("/etc/group", "r")) != NULL) {
12e91d: 83 ec 08 sub $0x8,%esp
12e920: 68 c9 09 16 00 push $0x1609c9
12e925: 68 bc cd 15 00 push $0x15cdbc
12e92a: e8 c1 87 01 00 call 1470f0 <fopen>
12e92f: 83 c4 10 add $0x10,%esp
12e932: 85 c0 test %eax,%eax
12e934: 74 12 je 12e948 <init_etc_passwd_group+0x80><== ALWAYS TAKEN
fclose(fp);
12e936: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12e939: 50 push %eax <== NOT EXECUTED
12e93a: e8 99 7f 01 00 call 1468d8 <fclose> <== NOT EXECUTED
12e93f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
fprintf( fp, "root:x:0:root\n"
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
}
}
12e942: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
12e945: c9 leave <== NOT EXECUTED
12e946: c3 ret <== NOT EXECUTED
12e947: 90 nop <== NOT EXECUTED
* Initialize /etc/group
*/
if ((fp = fopen("/etc/group", "r")) != NULL) {
fclose(fp);
}
else if ((fp = fopen("/etc/group", "w")) != NULL) {
12e948: 83 ec 08 sub $0x8,%esp
12e94b: 68 50 05 16 00 push $0x160550
12e950: 68 bc cd 15 00 push $0x15cdbc
12e955: e8 96 87 01 00 call 1470f0 <fopen>
12e95a: 89 c3 mov %eax,%ebx
12e95c: 83 c4 10 add $0x10,%esp
12e95f: 85 c0 test %eax,%eax
12e961: 0f 84 71 ff ff ff je 12e8d8 <init_etc_passwd_group+0x10><== NEVER TAKEN
fprintf( fp, "root:x:0:root\n"
12e967: 50 push %eax
12e968: 6a 2a push $0x2a
12e96a: 6a 01 push $0x1
12e96c: 68 ec 47 16 00 push $0x1647ec
12e971: e8 f6 99 01 00 call 14836c <fwrite>
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
12e976: 89 1c 24 mov %ebx,(%esp)
12e979: e8 5a 7f 01 00 call 1468d8 <fclose>
12e97e: 83 c4 10 add $0x10,%esp
12e981: e9 52 ff ff ff jmp 12e8d8 <init_etc_passwd_group+0x10>
12e986: 66 90 xchg %ax,%ax
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
fclose(fp);
}
else if ((fp = fopen("/etc/passwd", "w")) != NULL) {
12e988: 83 ec 08 sub $0x8,%esp
12e98b: 68 50 05 16 00 push $0x160550
12e990: 68 b0 cd 15 00 push $0x15cdb0
12e995: e8 56 87 01 00 call 1470f0 <fopen>
12e99a: 89 c3 mov %eax,%ebx
12e99c: 83 c4 10 add $0x10,%esp
12e99f: 85 c0 test %eax,%eax
12e9a1: 0f 84 76 ff ff ff je 12e91d <init_etc_passwd_group+0x55><== NEVER TAKEN
fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"
12e9a7: 50 push %eax
12e9a8: 6a 66 push $0x66
12e9aa: 6a 01 push $0x1
12e9ac: 68 84 47 16 00 push $0x164784
12e9b1: e8 b6 99 01 00 call 14836c <fwrite>
"rtems:*:1:1:RTEMS Application::/:/bin/sh\n"
"tty:!:2:2:tty owner::/:/bin/false\n" );
fclose(fp);
12e9b6: 89 1c 24 mov %ebx,(%esp)
12e9b9: e8 1a 7f 01 00 call 1468d8 <fclose>
12e9be: 83 c4 10 add $0x10,%esp
12e9c1: e9 57 ff ff ff jmp 12e91d <init_etc_passwd_group+0x55>
0010b868 <ioctl>:
int ioctl(
int fd,
ioctl_command_t command,
...
)
{
10b868: 55 push %ebp
10b869: 89 e5 mov %esp,%ebp
10b86b: 83 ec 08 sub $0x8,%esp
10b86e: 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 );
10b871: 3b 05 4c 71 12 00 cmp 0x12714c,%eax
10b877: 73 2f jae 10b8a8 <ioctl+0x40>
iop = rtems_libio_iop( fd );
10b879: c1 e0 06 shl $0x6,%eax
10b87c: 03 05 00 b3 12 00 add 0x12b300,%eax
rtems_libio_check_is_open(iop);
10b882: f6 40 15 01 testb $0x1,0x15(%eax)
10b886: 74 20 je 10b8a8 <ioctl+0x40> <== NEVER TAKEN
va_start(ap, command);
buffer = va_arg(ap, void *);
10b888: 8b 4d 10 mov 0x10(%ebp),%ecx
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
10b88b: 8b 50 3c mov 0x3c(%eax),%edx
10b88e: 85 d2 test %edx,%edx
10b890: 74 16 je 10b8a8 <ioctl+0x40> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->ioctl_h )
10b892: 8b 52 10 mov 0x10(%edx),%edx
10b895: 85 d2 test %edx,%edx
10b897: 74 21 je 10b8ba <ioctl+0x52> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
rc = (*iop->handlers->ioctl_h)( iop, command, buffer );
10b899: 83 ec 04 sub $0x4,%esp
10b89c: 51 push %ecx
10b89d: ff 75 0c pushl 0xc(%ebp)
10b8a0: 50 push %eax
10b8a1: ff d2 call *%edx
return rc;
10b8a3: 83 c4 10 add $0x10,%esp
}
10b8a6: c9 leave
10b8a7: c3 ret
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
10b8a8: e8 a7 c3 00 00 call 117c54 <__errno>
10b8ad: c7 00 09 00 00 00 movl $0x9,(%eax)
10b8b3: b8 ff ff ff ff mov $0xffffffff,%eax
rtems_set_errno_and_return_minus_one( ENOTSUP );
rc = (*iop->handlers->ioctl_h)( iop, command, buffer );
return rc;
}
10b8b8: c9 leave
10b8b9: c3 ret
if ( !iop->handlers )
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->ioctl_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
10b8ba: e8 95 c3 00 00 call 117c54 <__errno> <== NOT EXECUTED
10b8bf: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10b8c5: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
rc = (*iop->handlers->ioctl_h)( iop, command, buffer );
return rc;
}
10b8ca: c9 leave <== NOT EXECUTED
10b8cb: c3 ret <== NOT EXECUTED
0010a0c8 <iproc>:
/*
* Process a single input character
*/
static int
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
10a0c8: 55 push %ebp <== NOT EXECUTED
10a0c9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10a0cb: 56 push %esi <== NOT EXECUTED
10a0cc: 53 push %ebx <== NOT EXECUTED
10a0cd: 89 d6 mov %edx,%esi <== NOT EXECUTED
10a0cf: 88 c3 mov %al,%bl <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
10a0d1: 8b 42 30 mov 0x30(%edx),%eax <== NOT EXECUTED
10a0d4: a8 20 test $0x20,%al <== NOT EXECUTED
10a0d6: 74 03 je 10a0db <iproc+0x13> <== NOT EXECUTED
c &= 0x7f;
10a0d8: 83 e3 7f and $0x7f,%ebx <== NOT EXECUTED
if (tty->termios.c_iflag & IUCLC)
10a0db: f6 c4 02 test $0x2,%ah <== NOT EXECUTED
10a0de: 74 18 je 10a0f8 <iproc+0x30> <== NOT EXECUTED
c = tolower (c);
10a0e0: 0f b6 db movzbl %bl,%ebx <== NOT EXECUTED
10a0e3: 8b 15 c4 50 12 00 mov 0x1250c4,%edx <== NOT EXECUTED
10a0e9: 0f be 54 1a 01 movsbl 0x1(%edx,%ebx,1),%edx <== NOT EXECUTED
10a0ee: 83 e2 03 and $0x3,%edx <== NOT EXECUTED
10a0f1: 4a dec %edx <== NOT EXECUTED
10a0f2: 0f 84 98 00 00 00 je 10a190 <iproc+0xc8> <== NOT EXECUTED
if (c == '\r') {
10a0f8: 80 fb 0d cmp $0xd,%bl <== NOT EXECUTED
10a0fb: 74 33 je 10a130 <iproc+0x68> <== NOT EXECUTED
if (tty->termios.c_iflag & IGNCR)
return 0;
if (tty->termios.c_iflag & ICRNL)
c = '\n';
}
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
10a0fd: 80 fb 0a cmp $0xa,%bl <== NOT EXECUTED
10a100: 0f 84 82 00 00 00 je 10a188 <iproc+0xc0> <== NOT EXECUTED
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
10a106: 84 db test %bl,%bl <== NOT EXECUTED
10a108: 75 3a jne 10a144 <iproc+0x7c> <== NOT EXECUTED
}
/*
* FIXME: Should do IMAXBEL handling somehow
*/
if (tty->ccount < (CBUFSIZE-1)) {
10a10a: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED
10a10d: 8b 15 14 50 12 00 mov 0x125014,%edx <== NOT EXECUTED
10a113: 4a dec %edx <== NOT EXECUTED
10a114: 39 d0 cmp %edx,%eax <== NOT EXECUTED
10a116: 7d 1c jge 10a134 <iproc+0x6c> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
10a118: f6 46 3c 08 testb $0x8,0x3c(%esi) <== NOT EXECUTED
10a11c: 75 7a jne 10a198 <iproc+0xd0> <== NOT EXECUTED
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
10a11e: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED
10a121: 88 1c 02 mov %bl,(%edx,%eax,1) <== NOT EXECUTED
10a124: 40 inc %eax <== NOT EXECUTED
10a125: 89 46 20 mov %eax,0x20(%esi) <== NOT EXECUTED
10a128: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return 0;
}
10a12a: 5b pop %ebx <== NOT EXECUTED
10a12b: 5e pop %esi <== NOT EXECUTED
10a12c: c9 leave <== NOT EXECUTED
10a12d: c3 ret <== NOT EXECUTED
10a12e: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
c &= 0x7f;
if (tty->termios.c_iflag & IUCLC)
c = tolower (c);
if (c == '\r') {
if (tty->termios.c_iflag & IGNCR)
10a130: 84 c0 test %al,%al <== NOT EXECUTED
10a132: 79 08 jns 10a13c <iproc+0x74> <== NOT EXECUTED
* FIXME: Should do IMAXBEL handling somehow
*/
if (tty->ccount < (CBUFSIZE-1)) {
if (tty->termios.c_lflag & ECHO)
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
10a134: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return 0;
}
10a136: 5b pop %ebx <== NOT EXECUTED
10a137: 5e pop %esi <== NOT EXECUTED
10a138: c9 leave <== NOT EXECUTED
10a139: c3 ret <== NOT EXECUTED
10a13a: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (tty->termios.c_iflag & IUCLC)
c = tolower (c);
if (c == '\r') {
if (tty->termios.c_iflag & IGNCR)
return 0;
if (tty->termios.c_iflag & ICRNL)
10a13c: f6 c4 01 test $0x1,%ah <== NOT EXECUTED
10a13f: 74 03 je 10a144 <iproc+0x7c> <== NOT EXECUTED
10a141: b3 0a mov $0xa,%bl <== NOT EXECUTED
10a143: 90 nop <== NOT EXECUTED
c = '\n';
}
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
10a144: 8b 46 3c mov 0x3c(%esi),%eax <== NOT EXECUTED
10a147: a8 02 test $0x2,%al <== NOT EXECUTED
10a149: 74 bf je 10a10a <iproc+0x42> <== NOT EXECUTED
if (c == tty->termios.c_cc[VERASE]) {
10a14b: 38 5e 43 cmp %bl,0x43(%esi) <== NOT EXECUTED
10a14e: 0f 84 a0 00 00 00 je 10a1f4 <iproc+0x12c> <== NOT EXECUTED
erase (tty, 0);
return 0;
}
else if (c == tty->termios.c_cc[VKILL]) {
10a154: 38 5e 44 cmp %bl,0x44(%esi) <== NOT EXECUTED
10a157: 74 5f je 10a1b8 <iproc+0xf0> <== NOT EXECUTED
erase (tty, 1);
return 0;
}
else if (c == tty->termios.c_cc[VEOF]) {
10a159: 38 5e 45 cmp %bl,0x45(%esi) <== NOT EXECUTED
10a15c: 74 20 je 10a17e <iproc+0xb6> <== NOT EXECUTED
return 1;
}
else if (c == '\n') {
10a15e: 80 fb 0a cmp $0xa,%bl <== NOT EXECUTED
10a161: 74 69 je 10a1cc <iproc+0x104> <== NOT EXECUTED
if (tty->termios.c_lflag & (ECHO | ECHONL))
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
return 1;
}
else if ((c == tty->termios.c_cc[VEOL])
10a163: 38 5e 4c cmp %bl,0x4c(%esi) <== NOT EXECUTED
10a166: 74 05 je 10a16d <iproc+0xa5> <== NOT EXECUTED
|| (c == tty->termios.c_cc[VEOL2])) {
10a168: 38 5e 51 cmp %bl,0x51(%esi) <== NOT EXECUTED
10a16b: 75 9d jne 10a10a <iproc+0x42> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
10a16d: a8 08 test $0x8,%al <== NOT EXECUTED
10a16f: 75 3b jne 10a1ac <iproc+0xe4> <== NOT EXECUTED
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
10a171: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED
10a174: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED
10a177: 88 1c 02 mov %bl,(%edx,%eax,1) <== NOT EXECUTED
10a17a: 40 inc %eax <== NOT EXECUTED
10a17b: 89 46 20 mov %eax,0x20(%esi) <== NOT EXECUTED
10a17e: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
10a183: eb a5 jmp 10a12a <iproc+0x62> <== NOT EXECUTED
10a185: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (tty->termios.c_iflag & IGNCR)
return 0;
if (tty->termios.c_iflag & ICRNL)
c = '\n';
}
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
10a188: a8 40 test $0x40,%al <== NOT EXECUTED
10a18a: 74 b8 je 10a144 <iproc+0x7c> <== NOT EXECUTED
10a18c: b3 0d mov $0xd,%bl <== NOT EXECUTED
10a18e: eb b4 jmp 10a144 <iproc+0x7c> <== NOT EXECUTED
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
if (tty->termios.c_iflag & ISTRIP)
c &= 0x7f;
if (tty->termios.c_iflag & IUCLC)
c = tolower (c);
10a190: 83 c3 20 add $0x20,%ebx <== NOT EXECUTED
10a193: e9 60 ff ff ff jmp 10a0f8 <iproc+0x30> <== NOT EXECUTED
/*
* FIXME: Should do IMAXBEL handling somehow
*/
if (tty->ccount < (CBUFSIZE-1)) {
if (tty->termios.c_lflag & ECHO)
echo (c, tty);
10a198: 0f b6 c3 movzbl %bl,%eax <== NOT EXECUTED
10a19b: 89 f2 mov %esi,%edx <== NOT EXECUTED
10a19d: e8 f6 fc ff ff call 109e98 <echo> <== NOT EXECUTED
10a1a2: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED
10a1a5: e9 74 ff ff ff jmp 10a11e <iproc+0x56> <== NOT EXECUTED
10a1aa: 66 90 xchg %ax,%ax <== NOT EXECUTED
return 1;
}
else if ((c == tty->termios.c_cc[VEOL])
|| (c == tty->termios.c_cc[VEOL2])) {
if (tty->termios.c_lflag & ECHO)
echo (c, tty);
10a1ac: 0f b6 c3 movzbl %bl,%eax <== NOT EXECUTED
10a1af: 89 f2 mov %esi,%edx <== NOT EXECUTED
10a1b1: e8 e2 fc ff ff call 109e98 <echo> <== NOT EXECUTED
10a1b6: eb b9 jmp 10a171 <iproc+0xa9> <== NOT EXECUTED
if (c == tty->termios.c_cc[VERASE]) {
erase (tty, 0);
return 0;
}
else if (c == tty->termios.c_cc[VKILL]) {
erase (tty, 1);
10a1b8: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
10a1bd: 89 f0 mov %esi,%eax <== NOT EXECUTED
10a1bf: e8 38 fd ff ff call 109efc <erase> <== NOT EXECUTED
10a1c4: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
10a1c6: e9 5f ff ff ff jmp 10a12a <iproc+0x62> <== NOT EXECUTED
10a1cb: 90 nop <== NOT EXECUTED
}
else if (c == tty->termios.c_cc[VEOF]) {
return 1;
}
else if (c == '\n') {
if (tty->termios.c_lflag & (ECHO | ECHONL))
10a1cc: a8 48 test $0x48,%al <== NOT EXECUTED
10a1ce: 74 0c je 10a1dc <iproc+0x114> <== NOT EXECUTED
echo (c, tty);
10a1d0: 89 f2 mov %esi,%edx <== NOT EXECUTED
10a1d2: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED
10a1d7: e8 bc fc ff ff call 109e98 <echo> <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
10a1dc: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED
10a1df: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED
10a1e2: c6 04 02 0a movb $0xa,(%edx,%eax,1) <== NOT EXECUTED
10a1e6: 40 inc %eax <== NOT EXECUTED
10a1e7: 89 46 20 mov %eax,0x20(%esi) <== NOT EXECUTED
10a1ea: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
10a1ef: e9 36 ff ff ff jmp 10a12a <iproc+0x62> <== NOT EXECUTED
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
if (c == tty->termios.c_cc[VERASE]) {
erase (tty, 0);
10a1f4: 31 d2 xor %edx,%edx <== NOT EXECUTED
10a1f6: 89 f0 mov %esi,%eax <== NOT EXECUTED
10a1f8: e8 ff fc ff ff call 109efc <erase> <== NOT EXECUTED
10a1fd: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
10a1ff: e9 26 ff ff ff jmp 10a12a <iproc+0x62> <== NOT EXECUTED
001249c8 <kill>:
* These are directly supported (and completely correct) in the posix api.
*/
#if !defined(RTEMS_POSIX_API)
int kill( pid_t pid, int sig )
{
1249c8: 55 push %ebp <== NOT EXECUTED
1249c9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
1249cb: 31 c0 xor %eax,%eax <== NOT EXECUTED
1249cd: c9 leave <== NOT EXECUTED
1249ce: c3 ret <== NOT EXECUTED
0011f58c <libc_wrapup>:
extern void _wrapup_reent(struct _reent *);
extern void _reclaim_reent(struct _reent *);
void libc_wrapup(void)
{
11f58c: 55 push %ebp
11f58d: 89 e5 mov %esp,%ebp
11f58f: 53 push %ebx
11f590: 83 ec 04 sub $0x4,%esp
/*
* In case RTEMS is already down, don't do this. It could be
* dangerous.
*/
if (!_System_state_Is_up(_System_state_Get()))
11f593: 83 3d 20 75 12 00 03 cmpl $0x3,0x127520
11f59a: 74 08 je 11f5a4 <libc_wrapup+0x18>
*/
fclose (stdin);
fclose (stdout);
fclose (stderr);
}
11f59c: 8b 5d fc mov -0x4(%ebp),%ebx
11f59f: c9 leave
11f5a0: c3 ret
11f5a1: 8d 76 00 lea 0x0(%esi),%esi
/*
* This was already done if the user called exit() directly .
_wrapup_reent(0);
*/
if (_REENT != _global_impure_ptr) {
11f5a4: 8b 1d 00 25 12 00 mov 0x122500,%ebx
11f5aa: 39 1d e0 50 12 00 cmp %ebx,0x1250e0
11f5b0: 74 12 je 11f5c4 <libc_wrapup+0x38>
_wrapup_reent(_global_impure_ptr);
11f5b2: 83 ec 0c sub $0xc,%esp
11f5b5: 53 push %ebx
11f5b6: e8 f5 04 00 00 call 11fab0 <_wrapup_reent>
/* Don't reclaim this one, just in case we do printfs
* on the way out to ROM.
*/
_reclaim_reent(&libc_global_reent);
#endif
_REENT = _global_impure_ptr;
11f5bb: 89 1d e0 50 12 00 mov %ebx,0x1250e0
11f5c1: 83 c4 10 add $0x10,%esp
*
* Should this be changed to do *all* file streams?
* _fwalk (_REENT, fclose);
*/
fclose (stdin);
11f5c4: 83 ec 0c sub $0xc,%esp
11f5c7: ff 73 04 pushl 0x4(%ebx)
11f5ca: e8 bd 49 ff ff call 113f8c <fclose>
fclose (stdout);
11f5cf: 5a pop %edx
11f5d0: a1 e0 50 12 00 mov 0x1250e0,%eax
11f5d5: ff 70 08 pushl 0x8(%eax)
11f5d8: e8 af 49 ff ff call 113f8c <fclose>
fclose (stderr);
11f5dd: 58 pop %eax
11f5de: a1 e0 50 12 00 mov 0x1250e0,%eax
11f5e3: ff 70 0c pushl 0xc(%eax)
11f5e6: e8 a1 49 ff ff call 113f8c <fclose>
11f5eb: 83 c4 10 add $0x10,%esp
}
11f5ee: 8b 5d fc mov -0x4(%ebp),%ebx
11f5f1: c9 leave
11f5f2: c3 ret
0012ed60 <link>:
int link(
const char *existing,
const char *new
)
{
12ed60: 55 push %ebp
12ed61: 89 e5 mov %esp,%ebp
12ed63: 57 push %edi
12ed64: 56 push %esi
12ed65: 53 push %ebx
12ed66: 83 ec 48 sub $0x48,%esp
12ed69: 8b 55 08 mov 0x8(%ebp),%edx
12ed6c: 8b 5d 0c mov 0xc(%ebp),%ebx
/*
* Get the node we are linking to.
*/
result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
12ed6f: 31 c0 xor %eax,%eax
12ed71: b9 ff ff ff ff mov $0xffffffff,%ecx
12ed76: 89 d7 mov %edx,%edi
12ed78: f2 ae repnz scas %es:(%edi),%al
12ed7a: f7 d1 not %ecx
12ed7c: 49 dec %ecx
12ed7d: 6a 01 push $0x1
12ed7f: 8d 75 cc lea -0x34(%ebp),%esi
12ed82: 56 push %esi
12ed83: 6a 00 push $0x0
12ed85: 51 push %ecx
12ed86: 52 push %edx
12ed87: e8 6c fa fd ff call 10e7f8 <rtems_filesystem_evaluate_path>
0, &existing_loc, true );
if ( result != 0 )
12ed8c: 83 c4 20 add $0x20,%esp
12ed8f: 85 c0 test %eax,%eax
12ed91: 74 11 je 12eda4 <link+0x44>
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
if ( !parent_loc.ops->evalformake_h ) {
rtems_filesystem_freenode( &existing_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
12ed93: bb ff ff ff ff mov $0xffffffff,%ebx
rtems_filesystem_freenode( &existing_loc );
rtems_filesystem_freenode( &parent_loc );
return result;
}
12ed98: 89 d8 mov %ebx,%eax
12ed9a: 8d 65 f4 lea -0xc(%ebp),%esp
12ed9d: 5b pop %ebx
12ed9e: 5e pop %esi
12ed9f: 5f pop %edi
12eda0: c9 leave
12eda1: c3 ret
12eda2: 66 90 xchg %ax,%ax
/*
* Get the parent of the node we are creating.
*/
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
12eda4: 57 push %edi
12eda5: 8d 7d b8 lea -0x48(%ebp),%edi
12eda8: 57 push %edi
12eda9: 8d 45 e4 lea -0x1c(%ebp),%eax
12edac: 50 push %eax
12edad: 53 push %ebx
12edae: e8 b5 11 fe ff call 10ff68 <rtems_filesystem_get_start_loc>
if ( !parent_loc.ops->evalformake_h ) {
12edb3: 8b 45 c4 mov -0x3c(%ebp),%eax
12edb6: 8b 40 04 mov 0x4(%eax),%eax
12edb9: 83 c4 10 add $0x10,%esp
12edbc: 85 c0 test %eax,%eax
12edbe: 0f 84 e8 00 00 00 je 12eeac <link+0x14c> <== NEVER TAKEN
rtems_filesystem_freenode( &existing_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
12edc4: 51 push %ecx
12edc5: 8d 55 e0 lea -0x20(%ebp),%edx
12edc8: 52 push %edx
12edc9: 57 push %edi
12edca: 03 5d e4 add -0x1c(%ebp),%ebx
12edcd: 53 push %ebx
12edce: ff d0 call *%eax
12edd0: 89 c3 mov %eax,%ebx
if ( result != 0 ) {
12edd2: 83 c4 10 add $0x10,%esp
12edd5: 85 c0 test %eax,%eax
12edd7: 0f 85 a7 00 00 00 jne 12ee84 <link+0x124>
/*
* Check to see if the caller is trying to link across file system
* boundaries.
*/
if ( parent_loc.mt_entry != existing_loc.mt_entry ) {
12eddd: 8b 45 c8 mov -0x38(%ebp),%eax
12ede0: 3b 45 dc cmp -0x24(%ebp),%eax
12ede3: 75 5b jne 12ee40 <link+0xe0>
rtems_filesystem_freenode( &existing_loc );
rtems_filesystem_freenode( &parent_loc );
rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !parent_loc.ops->link_h ) {
12ede5: 8b 55 c4 mov -0x3c(%ebp),%edx
12ede8: 8b 42 08 mov 0x8(%edx),%eax
12edeb: 85 c0 test %eax,%eax
12eded: 0f 84 e0 00 00 00 je 12eed3 <link+0x173> <== NEVER TAKEN
rtems_filesystem_freenode( &existing_loc );
rtems_filesystem_freenode( &parent_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start );
12edf3: 52 push %edx
12edf4: ff 75 e0 pushl -0x20(%ebp)
12edf7: 57 push %edi
12edf8: 56 push %esi
12edf9: ff d0 call *%eax
12edfb: 89 c3 mov %eax,%ebx
rtems_filesystem_freenode( &existing_loc );
12edfd: 8b 45 d8 mov -0x28(%ebp),%eax
12ee00: 83 c4 10 add $0x10,%esp
12ee03: 85 c0 test %eax,%eax
12ee05: 74 10 je 12ee17 <link+0xb7> <== NEVER TAKEN
12ee07: 8b 40 1c mov 0x1c(%eax),%eax
12ee0a: 85 c0 test %eax,%eax
12ee0c: 74 09 je 12ee17 <link+0xb7> <== NEVER TAKEN
12ee0e: 83 ec 0c sub $0xc,%esp
12ee11: 56 push %esi
12ee12: ff d0 call *%eax
12ee14: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &parent_loc );
12ee17: 8b 45 c4 mov -0x3c(%ebp),%eax
12ee1a: 85 c0 test %eax,%eax
12ee1c: 0f 84 76 ff ff ff je 12ed98 <link+0x38> <== NEVER TAKEN
12ee22: 8b 40 1c mov 0x1c(%eax),%eax
12ee25: 85 c0 test %eax,%eax
12ee27: 0f 84 6b ff ff ff je 12ed98 <link+0x38> <== NEVER TAKEN
12ee2d: 83 ec 0c sub $0xc,%esp
12ee30: 57 push %edi
12ee31: ff d0 call *%eax
12ee33: 83 c4 10 add $0x10,%esp
return result;
}
12ee36: 89 d8 mov %ebx,%eax
12ee38: 8d 65 f4 lea -0xc(%ebp),%esp
12ee3b: 5b pop %ebx
12ee3c: 5e pop %esi
12ee3d: 5f pop %edi
12ee3e: c9 leave
12ee3f: c3 ret
* Check to see if the caller is trying to link across file system
* boundaries.
*/
if ( parent_loc.mt_entry != existing_loc.mt_entry ) {
rtems_filesystem_freenode( &existing_loc );
12ee40: 8b 45 d8 mov -0x28(%ebp),%eax
12ee43: 85 c0 test %eax,%eax
12ee45: 74 10 je 12ee57 <link+0xf7> <== NEVER TAKEN
12ee47: 8b 40 1c mov 0x1c(%eax),%eax
12ee4a: 85 c0 test %eax,%eax
12ee4c: 74 09 je 12ee57 <link+0xf7> <== NEVER TAKEN
12ee4e: 83 ec 0c sub $0xc,%esp
12ee51: 56 push %esi
12ee52: ff d0 call *%eax
12ee54: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &parent_loc );
12ee57: 8b 45 c4 mov -0x3c(%ebp),%eax
12ee5a: 85 c0 test %eax,%eax
12ee5c: 74 10 je 12ee6e <link+0x10e> <== NEVER TAKEN
12ee5e: 8b 40 1c mov 0x1c(%eax),%eax
12ee61: 85 c0 test %eax,%eax
12ee63: 74 09 je 12ee6e <link+0x10e> <== NEVER TAKEN
12ee65: 83 ec 0c sub $0xc,%esp
12ee68: 57 push %edi
12ee69: ff d0 call *%eax
12ee6b: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EXDEV );
12ee6e: e8 19 79 01 00 call 14678c <__errno>
12ee73: c7 00 12 00 00 00 movl $0x12,(%eax)
12ee79: bb ff ff ff ff mov $0xffffffff,%ebx
12ee7e: e9 15 ff ff ff jmp 12ed98 <link+0x38>
12ee83: 90 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
if ( result != 0 ) {
rtems_filesystem_freenode( &existing_loc );
12ee84: 8b 45 d8 mov -0x28(%ebp),%eax
12ee87: 85 c0 test %eax,%eax
12ee89: 74 10 je 12ee9b <link+0x13b> <== NEVER TAKEN
12ee8b: 8b 40 1c mov 0x1c(%eax),%eax
12ee8e: 85 c0 test %eax,%eax
12ee90: 74 09 je 12ee9b <link+0x13b> <== NEVER TAKEN
12ee92: 83 ec 0c sub $0xc,%esp
12ee95: 56 push %esi
12ee96: ff d0 call *%eax
12ee98: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( result );
12ee9b: e8 ec 78 01 00 call 14678c <__errno>
12eea0: 89 18 mov %ebx,(%eax)
12eea2: bb ff ff ff ff mov $0xffffffff,%ebx
12eea7: e9 ec fe ff ff jmp 12ed98 <link+0x38>
*/
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
if ( !parent_loc.ops->evalformake_h ) {
rtems_filesystem_freenode( &existing_loc );
12eeac: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
12eeaf: 85 c0 test %eax,%eax <== NOT EXECUTED
12eeb1: 74 10 je 12eec3 <link+0x163> <== NOT EXECUTED
12eeb3: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12eeb6: 85 c0 test %eax,%eax <== NOT EXECUTED
12eeb8: 74 09 je 12eec3 <link+0x163> <== NOT EXECUTED
12eeba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12eebd: 56 push %esi <== NOT EXECUTED
12eebe: ff d0 call *%eax <== NOT EXECUTED
12eec0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12eec3: e8 c4 78 01 00 call 14678c <__errno> <== NOT EXECUTED
12eec8: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12eece: e9 c0 fe ff ff jmp 12ed93 <link+0x33> <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
rtems_set_errno_and_return_minus_one( EXDEV );
}
if ( !parent_loc.ops->link_h ) {
rtems_filesystem_freenode( &existing_loc );
12eed3: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
12eed6: 85 c0 test %eax,%eax <== NOT EXECUTED
12eed8: 74 13 je 12eeed <link+0x18d> <== NOT EXECUTED
12eeda: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12eedd: 85 c0 test %eax,%eax <== NOT EXECUTED
12eedf: 74 0c je 12eeed <link+0x18d> <== NOT EXECUTED
12eee1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12eee4: 56 push %esi <== NOT EXECUTED
12eee5: ff d0 call *%eax <== NOT EXECUTED
12eee7: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
12eeea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
12eeed: 85 d2 test %edx,%edx <== NOT EXECUTED
12eeef: 74 10 je 12ef01 <link+0x1a1> <== NOT EXECUTED
12eef1: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
12eef4: 85 c0 test %eax,%eax <== NOT EXECUTED
12eef6: 74 09 je 12ef01 <link+0x1a1> <== NOT EXECUTED
12eef8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12eefb: 57 push %edi <== NOT EXECUTED
12eefc: ff d0 call *%eax <== NOT EXECUTED
12eefe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12ef01: e8 86 78 01 00 call 14678c <__errno> <== NOT EXECUTED
12ef06: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12ef0c: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
12ef11: e9 82 fe ff ff jmp 12ed98 <link+0x38> <== NOT EXECUTED
0011f444 <lseek>:
off_t lseek(
int fd,
off_t offset,
int whence
)
{
11f444: 55 push %ebp
11f445: 89 e5 mov %esp,%ebp
11f447: 57 push %edi
11f448: 56 push %esi
11f449: 53 push %ebx
11f44a: 83 ec 2c sub $0x2c,%esp
11f44d: 8b 5d 08 mov 0x8(%ebp),%ebx
11f450: 8b 75 0c mov 0xc(%ebp),%esi
11f453: 8b 7d 10 mov 0x10(%ebp),%edi
11f456: 8b 45 14 mov 0x14(%ebp),%eax
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
11f459: 3b 1d 4c 31 12 00 cmp 0x12314c,%ebx
11f45f: 0f 83 b7 00 00 00 jae 11f51c <lseek+0xd8> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
11f465: c1 e3 06 shl $0x6,%ebx
11f468: 03 1d e0 71 12 00 add 0x1271e0,%ebx
rtems_libio_check_is_open(iop);
11f46e: f6 43 15 01 testb $0x1,0x15(%ebx)
11f472: 0f 84 a4 00 00 00 je 11f51c <lseek+0xd8> <== NEVER TAKEN
/*
* Check as many errors as possible before touching iop->offset.
*/
if ( !iop->handlers->lseek_h )
11f478: 8b 53 3c mov 0x3c(%ebx),%edx
11f47b: 89 55 d4 mov %edx,-0x2c(%ebp)
11f47e: 8b 52 14 mov 0x14(%edx),%edx
11f481: 85 d2 test %edx,%edx
11f483: 0f 84 aa 00 00 00 je 11f533 <lseek+0xef> <== NEVER TAKEN
/*
* Now process the lseek().
*/
old_offset = iop->offset;
11f489: 8b 53 0c mov 0xc(%ebx),%edx
11f48c: 8b 4b 10 mov 0x10(%ebx),%ecx
11f48f: 89 55 e0 mov %edx,-0x20(%ebp)
11f492: 89 4d e4 mov %ecx,-0x1c(%ebp)
switch ( whence ) {
11f495: 83 f8 01 cmp $0x1,%eax
11f498: 74 6e je 11f508 <lseek+0xc4>
11f49a: 83 f8 02 cmp $0x2,%eax
11f49d: 74 35 je 11f4d4 <lseek+0x90>
11f49f: 85 c0 test %eax,%eax
11f4a1: 75 45 jne 11f4e8 <lseek+0xa4>
case SEEK_SET:
iop->offset = offset;
11f4a3: 89 73 0c mov %esi,0xc(%ebx)
11f4a6: 89 7b 10 mov %edi,0x10(%ebx)
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
11f4a9: 50 push %eax
11f4aa: 57 push %edi
11f4ab: 56 push %esi
11f4ac: 53 push %ebx
11f4ad: 8b 4d d4 mov -0x2c(%ebp),%ecx
11f4b0: ff 51 14 call *0x14(%ecx)
if ( status == (off_t) -1 )
11f4b3: 83 c4 10 add $0x10,%esp
11f4b6: 89 c1 mov %eax,%ecx
11f4b8: 21 d1 and %edx,%ecx
11f4ba: 41 inc %ecx
11f4bb: 75 0c jne 11f4c9 <lseek+0x85>
iop->offset = old_offset;
11f4bd: 8b 75 e0 mov -0x20(%ebp),%esi
11f4c0: 8b 7d e4 mov -0x1c(%ebp),%edi
11f4c3: 89 73 0c mov %esi,0xc(%ebx)
11f4c6: 89 7b 10 mov %edi,0x10(%ebx)
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
11f4c9: 8d 65 f4 lea -0xc(%ebp),%esp
11f4cc: 5b pop %ebx
11f4cd: 5e pop %esi
11f4ce: 5f pop %edi
11f4cf: c9 leave
11f4d0: c3 ret
11f4d1: 8d 76 00 lea 0x0(%esi),%esi
case SEEK_CUR:
iop->offset += offset;
break;
case SEEK_END:
iop->offset = iop->size + offset;
11f4d4: 89 f2 mov %esi,%edx
11f4d6: 89 f9 mov %edi,%ecx
11f4d8: 03 53 04 add 0x4(%ebx),%edx
11f4db: 13 4b 08 adc 0x8(%ebx),%ecx
11f4de: 89 53 0c mov %edx,0xc(%ebx)
11f4e1: 89 4b 10 mov %ecx,0x10(%ebx)
break;
11f4e4: eb c3 jmp 11f4a9 <lseek+0x65>
11f4e6: 66 90 xchg %ax,%ax
default:
rtems_set_errno_and_return_minus_one( EINVAL );
11f4e8: e8 53 49 ff ff call 113e40 <__errno>
11f4ed: c7 00 16 00 00 00 movl $0x16,(%eax)
11f4f3: b8 ff ff ff ff mov $0xffffffff,%eax
11f4f8: ba ff ff ff ff mov $0xffffffff,%edx
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
11f4fd: 8d 65 f4 lea -0xc(%ebp),%esp
11f500: 5b pop %ebx
11f501: 5e pop %esi
11f502: 5f pop %edi
11f503: c9 leave
11f504: c3 ret
11f505: 8d 76 00 lea 0x0(%esi),%esi
case SEEK_SET:
iop->offset = offset;
break;
case SEEK_CUR:
iop->offset += offset;
11f508: 8b 55 e0 mov -0x20(%ebp),%edx
11f50b: 8b 4d e4 mov -0x1c(%ebp),%ecx
11f50e: 01 f2 add %esi,%edx
11f510: 11 f9 adc %edi,%ecx
11f512: 89 53 0c mov %edx,0xc(%ebx)
11f515: 89 4b 10 mov %ecx,0x10(%ebx)
break;
11f518: eb 8f jmp 11f4a9 <lseek+0x65>
11f51a: 66 90 xchg %ax,%ax
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
11f51c: e8 1f 49 ff ff call 113e40 <__errno> <== NOT EXECUTED
11f521: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
11f527: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
11f52c: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
11f531: eb 96 jmp 11f4c9 <lseek+0x85> <== NOT EXECUTED
/*
* Check as many errors as possible before touching iop->offset.
*/
if ( !iop->handlers->lseek_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
11f533: e8 08 49 ff ff call 113e40 <__errno> <== NOT EXECUTED
11f538: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
11f53e: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
11f543: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
11f548: e9 7c ff ff ff jmp 11f4c9 <lseek+0x85> <== NOT EXECUTED
0012f064 <lstat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
12f064: 55 push %ebp <== NOT EXECUTED
12f065: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12f067: 57 push %edi <== NOT EXECUTED
12f068: 56 push %esi <== NOT EXECUTED
12f069: 53 push %ebx <== NOT EXECUTED
12f06a: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
12f06d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
12f070: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
12f073: 85 f6 test %esi,%esi <== NOT EXECUTED
12f075: 0f 84 9d 00 00 00 je 12f118 <lstat+0xb4> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
status = rtems_filesystem_evaluate_path( path, strlen( path ),
12f07b: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
12f080: 89 d7 mov %edx,%edi <== NOT EXECUTED
12f082: 31 c0 xor %eax,%eax <== NOT EXECUTED
12f084: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
12f086: f7 d1 not %ecx <== NOT EXECUTED
12f088: 49 dec %ecx <== NOT EXECUTED
12f089: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12f08c: 6a 00 push $0x0 <== NOT EXECUTED
12f08e: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED
12f091: 53 push %ebx <== NOT EXECUTED
12f092: 6a 00 push $0x0 <== NOT EXECUTED
12f094: 51 push %ecx <== NOT EXECUTED
12f095: 52 push %edx <== NOT EXECUTED
12f096: e8 5d f7 fd ff call 10e7f8 <rtems_filesystem_evaluate_path><== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
12f09b: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12f09e: 85 c0 test %eax,%eax <== NOT EXECUTED
12f0a0: 75 66 jne 12f108 <lstat+0xa4> <== NOT EXECUTED
return -1;
if ( !loc.handlers->fstat_h ){
12f0a2: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
12f0a5: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED
12f0a8: 85 c0 test %eax,%eax <== NOT EXECUTED
12f0aa: 74 39 je 12f0e5 <lstat+0x81> <== NOT EXECUTED
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
12f0ac: b9 48 00 00 00 mov $0x48,%ecx <== NOT EXECUTED
12f0b1: 89 f7 mov %esi,%edi <== NOT EXECUTED
12f0b3: 31 c0 xor %eax,%eax <== NOT EXECUTED
12f0b5: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
12f0b7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12f0ba: 56 push %esi <== NOT EXECUTED
12f0bb: 53 push %ebx <== NOT EXECUTED
12f0bc: ff 52 18 call *0x18(%edx) <== NOT EXECUTED
12f0bf: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
12f0c1: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12f0c4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12f0c7: 85 c0 test %eax,%eax <== NOT EXECUTED
12f0c9: 74 10 je 12f0db <lstat+0x77> <== NOT EXECUTED
12f0cb: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12f0ce: 85 c0 test %eax,%eax <== NOT EXECUTED
12f0d0: 74 09 je 12f0db <lstat+0x77> <== NOT EXECUTED
12f0d2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12f0d5: 53 push %ebx <== NOT EXECUTED
12f0d6: ff d0 call *%eax <== NOT EXECUTED
12f0d8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return status;
}
12f0db: 89 f0 mov %esi,%eax <== NOT EXECUTED
12f0dd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12f0e0: 5b pop %ebx <== NOT EXECUTED
12f0e1: 5e pop %esi <== NOT EXECUTED
12f0e2: 5f pop %edi <== NOT EXECUTED
12f0e3: c9 leave <== NOT EXECUTED
12f0e4: c3 ret <== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
return -1;
if ( !loc.handlers->fstat_h ){
rtems_filesystem_freenode( &loc );
12f0e5: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12f0e8: 85 c0 test %eax,%eax <== NOT EXECUTED
12f0ea: 74 10 je 12f0fc <lstat+0x98> <== NOT EXECUTED
12f0ec: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12f0ef: 85 c0 test %eax,%eax <== NOT EXECUTED
12f0f1: 74 09 je 12f0fc <lstat+0x98> <== NOT EXECUTED
12f0f3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12f0f6: 53 push %ebx <== NOT EXECUTED
12f0f7: ff d0 call *%eax <== NOT EXECUTED
12f0f9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12f0fc: e8 8b 76 01 00 call 14678c <__errno> <== NOT EXECUTED
12f101: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12f107: 90 nop <== NOT EXECUTED
12f108: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
rtems_filesystem_freenode( &loc );
return status;
}
12f10d: 89 f0 mov %esi,%eax <== NOT EXECUTED
12f10f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12f112: 5b pop %ebx <== NOT EXECUTED
12f113: 5e pop %esi <== NOT EXECUTED
12f114: 5f pop %edi <== NOT EXECUTED
12f115: c9 leave <== NOT EXECUTED
12f116: c3 ret <== NOT EXECUTED
12f117: 90 nop <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
rtems_set_errno_and_return_minus_one( EFAULT );
12f118: e8 6f 76 01 00 call 14678c <__errno> <== NOT EXECUTED
12f11d: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
12f123: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
rtems_filesystem_freenode( &loc );
return status;
}
12f128: 89 f0 mov %esi,%eax <== NOT EXECUTED
12f12a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12f12d: 5b pop %ebx <== NOT EXECUTED
12f12e: 5e pop %esi <== NOT EXECUTED
12f12f: 5f pop %edi <== NOT EXECUTED
12f130: c9 leave <== NOT EXECUTED
12f131: c3 ret <== NOT EXECUTED
001088bc <malloc>:
size_t size
)
{
void *return_this;
MSBUMP(malloc_calls, 1);
1088bc: 55 push %ebp
1088bd: 89 e5 mov %esp,%ebp
1088bf: 57 push %edi
1088c0: 56 push %esi
1088c1: 53 push %ebx
1088c2: 83 ec 0c sub $0xc,%esp
1088c5: 8b 75 08 mov 0x8(%ebp),%esi
1088c8: ff 05 04 72 12 00 incl 0x127204
/*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
1088ce: e8 11 ff ff ff call 1087e4 <malloc_deferred_frees_process>
/*
* Validate the parameters
*/
if ( !size )
1088d3: 85 f6 test %esi,%esi
1088d5: 74 65 je 10893c <malloc+0x80> <== 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()) &&
1088d7: 83 3d 20 75 12 00 03 cmpl $0x3,0x127520
1088de: 74 50 je 108930 <malloc+0x74>
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(
Heap_Control *heap,
uintptr_t size
)
{
return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
1088e0: 6a 00 push $0x0
1088e2: 6a 00 push $0x0
1088e4: 56 push %esi
1088e5: ff 35 58 31 12 00 pushl 0x123158
1088eb: e8 f0 4c 00 00 call 10d5e0 <_Protected_heap_Allocate_aligned_with_boundary>
1088f0: 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 ) {
1088f2: 83 c4 10 add $0x10,%esp
1088f5: 85 c0 test %eax,%eax
1088f7: 74 5b je 108954 <malloc+0x98>
if (rtems_malloc_sbrk_helpers)
return_this = (*rtems_malloc_sbrk_helpers->extend)( size );
if ( !return_this ) {
errno = ENOMEM;
return (void *) 0;
1088f9: 89 c7 mov %eax,%edi
}
/*
* If the user wants us to dirty the allocated memory, then do it.
*/
if ( rtems_malloc_dirty_helper )
1088fb: a1 f0 55 12 00 mov 0x1255f0,%eax
108900: 85 c0 test %eax,%eax
108902: 74 0a je 10890e <malloc+0x52> <== ALWAYS TAKEN
(*rtems_malloc_dirty_helper)( return_this, size );
108904: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
108907: 56 push %esi <== NOT EXECUTED
108908: 57 push %edi <== NOT EXECUTED
108909: ff d0 call *%eax <== NOT EXECUTED
10890b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
10890e: a1 e8 55 12 00 mov 0x1255e8,%eax
108913: 85 c0 test %eax,%eax
108915: 74 31 je 108948 <malloc+0x8c>
(*rtems_malloc_statistics_helpers->at_malloc)(return_this);
108917: 83 ec 0c sub $0xc,%esp
10891a: 57 push %edi
10891b: ff 50 04 call *0x4(%eax)
10891e: 89 fb mov %edi,%ebx
108920: 83 c4 10 add $0x10,%esp
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
return return_this;
}
108923: 89 d8 mov %ebx,%eax
108925: 8d 65 f4 lea -0xc(%ebp),%esp
108928: 5b pop %ebx
108929: 5e pop %esi
10892a: 5f pop %edi
10892b: c9 leave
10892c: c3 ret
10892d: 8d 76 00 lea 0x0(%esi),%esi
return (void *) 0;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
108930: e8 57 fe ff ff call 10878c <malloc_is_system_state_OK>
108935: 84 c0 test %al,%al
108937: 75 a7 jne 1088e0 <malloc+0x24> <== ALWAYS TAKEN
108939: 8d 76 00 lea 0x0(%esi),%esi
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
(*rtems_malloc_statistics_helpers->at_malloc)(return_this);
10893c: 31 db xor %ebx,%ebx
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
return return_this;
}
10893e: 89 d8 mov %ebx,%eax <== NOT EXECUTED
108940: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
108943: 5b pop %ebx <== NOT EXECUTED
108944: 5e pop %esi <== NOT EXECUTED
108945: 5f pop %edi <== NOT EXECUTED
108946: c9 leave <== NOT EXECUTED
108947: c3 ret <== NOT EXECUTED
(*rtems_malloc_dirty_helper)( return_this, size );
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
108948: 89 fb mov %edi,%ebx
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
return return_this;
}
10894a: 89 d8 mov %ebx,%eax
10894c: 8d 65 f4 lea -0xc(%ebp),%esp
10894f: 5b pop %ebx
108950: 5e pop %esi
108951: 5f pop %edi
108952: c9 leave
108953: c3 ret
*/
return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );
if ( !return_this ) {
if (rtems_malloc_sbrk_helpers)
108954: a1 ec 55 12 00 mov 0x1255ec,%eax
108959: 85 c0 test %eax,%eax
10895b: 74 10 je 10896d <malloc+0xb1> <== ALWAYS TAKEN
return_this = (*rtems_malloc_sbrk_helpers->extend)( size );
10895d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108960: 56 push %esi <== NOT EXECUTED
108961: ff 50 04 call *0x4(%eax) <== NOT EXECUTED
108964: 89 c7 mov %eax,%edi <== NOT EXECUTED
if ( !return_this ) {
108966: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108969: 85 c0 test %eax,%eax <== NOT EXECUTED
10896b: 75 8e jne 1088fb <malloc+0x3f> <== NOT EXECUTED
errno = ENOMEM;
10896d: e8 ce b4 00 00 call 113e40 <__errno>
108972: c7 00 0c 00 00 00 movl $0xc,(%eax)
return (void *) 0;
108978: eb a9 jmp 108923 <malloc+0x67>
001087cc <malloc_deferred_free>:
}
void malloc_deferred_free(
void *pointer
)
{
1087cc: 55 push %ebp <== NOT EXECUTED
1087cd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1087cf: 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 );
1087d2: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1087d5: 68 ec 71 12 00 push $0x1271ec <== NOT EXECUTED
1087da: e8 a9 3d 00 00 call 10c588 <_Chain_Append> <== NOT EXECUTED
1087df: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer);
}
1087e2: c9 leave <== NOT EXECUTED
1087e3: c3 ret <== NOT EXECUTED
001087e4 <malloc_deferred_frees_process>:
{
rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list);
}
void malloc_deferred_frees_process(void)
{
1087e4: 55 push %ebp
1087e5: 89 e5 mov %esp,%ebp
1087e7: 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)
1087ea: eb 0c jmp 1087f8 <malloc_deferred_frees_process+0x14>
free(to_be_freed);
1087ec: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1087ef: 50 push %eax <== NOT EXECUTED
1087f0: e8 ef fd ff ff call 1085e4 <free> <== NOT EXECUTED
1087f5: 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 );
1087f8: 83 ec 0c sub $0xc,%esp
1087fb: 68 ec 71 12 00 push $0x1271ec
108800: e8 bf 3d 00 00 call 10c5c4 <_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)
108805: 83 c4 10 add $0x10,%esp
108808: 85 c0 test %eax,%eax
10880a: 75 e0 jne 1087ec <malloc_deferred_frees_process+0x8><== NEVER TAKEN
free(to_be_freed);
}
10880c: c9 leave
10880d: c3 ret
0010878c <malloc_is_system_state_OK>:
#include "malloc_p.h"
rtems_chain_control RTEMS_Malloc_GC_list;
bool malloc_is_system_state_OK(void)
{
10878c: 55 push %ebp
10878d: 89 e5 mov %esp,%ebp
if ( _Thread_Dispatch_disable_level > 0 )
10878f: a1 58 73 12 00 mov 0x127358,%eax
108794: 85 c0 test %eax,%eax
108796: 75 0c jne 1087a4 <malloc_is_system_state_OK+0x18><== NEVER TAKEN
return false;
if ( _ISR_Nest_level > 0 )
108798: a1 f4 73 12 00 mov 0x1273f4,%eax
#include "malloc_p.h"
rtems_chain_control RTEMS_Malloc_GC_list;
bool malloc_is_system_state_OK(void)
10879d: 85 c0 test %eax,%eax
10879f: 0f 94 c0 sete %al
if ( _ISR_Nest_level > 0 )
return false;
return true;
}
1087a2: c9 leave
1087a3: c3 ret
rtems_chain_control RTEMS_Malloc_GC_list;
bool malloc_is_system_state_OK(void)
{
if ( _Thread_Dispatch_disable_level > 0 )
1087a4: 31 c0 xor %eax,%eax
if ( _ISR_Nest_level > 0 )
return false;
return true;
}
1087a6: c9 leave <== NOT EXECUTED
1087a7: c3 ret <== NOT EXECUTED
00112118 <memfile_alloc_block>:
*/
int memfile_blocks_allocated = 0;
void *memfile_alloc_block(void)
{
112118: 55 push %ebp
112119: 89 e5 mov %esp,%ebp
11211b: 83 ec 10 sub $0x10,%esp
void *memory;
memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);
11211e: ff 35 98 6e 12 00 pushl 0x126e98
112124: 6a 01 push $0x1
112126: e8 a1 62 ff ff call 1083cc <calloc>
if ( memory )
11212b: 83 c4 10 add $0x10,%esp
11212e: 85 c0 test %eax,%eax
112130: 74 06 je 112138 <memfile_alloc_block+0x20><== NEVER TAKEN
memfile_blocks_allocated++;
112132: ff 05 ac 6f 12 00 incl 0x126fac
return memory;
}
112138: c9 leave
112139: c3 ret
0011258c <memfile_check_rmnod>:
return memfile_check_rmnod( the_jnode );
}
int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){
11258c: 55 push %ebp
11258d: 89 e5 mov %esp,%ebp
11258f: 53 push %ebx
112590: 83 ec 10 sub $0x10,%esp
112593: 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) ) {
112596: 53 push %ebx
112597: e8 a8 e6 ff ff call 110c44 <rtems_libio_is_file_open>
11259c: 83 c4 10 add $0x10,%esp
11259f: 85 c0 test %eax,%eax
1125a1: 75 2f jne 1125d2 <memfile_check_rmnod+0x46>
1125a3: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx)
1125a8: 75 28 jne 1125d2 <memfile_check_rmnod+0x46><== NEVER TAKEN
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == the_jnode )
1125aa: a1 24 50 12 00 mov 0x125024,%eax
1125af: 39 58 04 cmp %ebx,0x4(%eax)
1125b2: 74 28 je 1125dc <memfile_check_rmnod+0x50><== NEVER TAKEN
rtems_filesystem_current.node_access = NULL;
/*
* Free memory associated with a memory file.
*/
if (the_jnode->type != IMFS_LINEAR_FILE)
1125b4: 83 7b 4c 06 cmpl $0x6,0x4c(%ebx)
1125b8: 74 0c je 1125c6 <memfile_check_rmnod+0x3a><== NEVER TAKEN
IMFS_memfile_remove( the_jnode );
1125ba: 83 ec 0c sub $0xc,%esp
1125bd: 53 push %ebx
1125be: e8 21 fe ff ff call 1123e4 <IMFS_memfile_remove>
1125c3: 83 c4 10 add $0x10,%esp
free( the_jnode );
1125c6: 83 ec 0c sub $0xc,%esp
1125c9: 53 push %ebx
1125ca: e8 15 60 ff ff call 1085e4 <free>
1125cf: 83 c4 10 add $0x10,%esp
}
return 0;
}
1125d2: 31 c0 xor %eax,%eax
1125d4: 8b 5d fc mov -0x4(%ebp),%ebx
1125d7: c9 leave
1125d8: c3 ret
1125d9: 8d 76 00 lea 0x0(%esi),%esi
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == the_jnode )
rtems_filesystem_current.node_access = NULL;
1125dc: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
1125e3: eb cf jmp 1125b4 <memfile_check_rmnod+0x28><== NOT EXECUTED
0011231c <memfile_free_blocks_in_table>:
void memfile_free_blocks_in_table(
block_p **block_table,
int entries
)
{
11231c: 55 push %ebp
11231d: 89 e5 mov %esp,%ebp
11231f: 57 push %edi
112320: 56 push %esi
112321: 53 push %ebx
112322: 83 ec 0c sub $0xc,%esp
112325: 8b 7d 0c mov 0xc(%ebp),%edi
/*
* Perform internal consistency checks
*/
assert( block_table );
112328: 8b 45 08 mov 0x8(%ebp),%eax
11232b: 85 c0 test %eax,%eax
11232d: 74 4e je 11237d <memfile_free_blocks_in_table+0x61><== NEVER TAKEN
/*
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
11232f: 8b 45 08 mov 0x8(%ebp),%eax
112332: 8b 30 mov (%eax),%esi
for ( i=0 ; i<entries ; i++ ) {
112334: 85 ff test %edi,%edi
112336: 7e 28 jle 112360 <memfile_free_blocks_in_table+0x44><== NEVER TAKEN
112338: 31 db xor %ebx,%ebx
11233a: 66 90 xchg %ax,%ax
if ( b[i] ) {
11233c: 8b 04 9e mov (%esi,%ebx,4),%eax
11233f: 85 c0 test %eax,%eax
112341: 74 13 je 112356 <memfile_free_blocks_in_table+0x3a>
memfile_free_block( b[i] );
112343: 83 ec 0c sub $0xc,%esp
112346: 50 push %eax
112347: e8 b0 fd ff ff call 1120fc <memfile_free_block>
b[i] = 0;
11234c: c7 04 9e 00 00 00 00 movl $0x0,(%esi,%ebx,4)
112353: 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++ ) {
112356: 43 inc %ebx
112357: 39 df cmp %ebx,%edi
112359: 7f e1 jg 11233c <memfile_free_blocks_in_table+0x20>
11235b: 8b 45 08 mov 0x8(%ebp),%eax
11235e: 8b 30 mov (%eax),%esi
/*
* Now that all the blocks in the block table are free, we can
* free the block table itself.
*/
memfile_free_block( *block_table );
112360: 83 ec 0c sub $0xc,%esp
112363: 56 push %esi
112364: e8 93 fd ff ff call 1120fc <memfile_free_block>
*block_table = 0;
112369: 8b 45 08 mov 0x8(%ebp),%eax
11236c: c7 00 00 00 00 00 movl $0x0,(%eax)
112372: 83 c4 10 add $0x10,%esp
}
112375: 8d 65 f4 lea -0xc(%ebp),%esp
112378: 5b pop %ebx
112379: 5e pop %esi
11237a: 5f pop %edi
11237b: c9 leave
11237c: c3 ret
/*
* Perform internal consistency checks
*/
assert( block_table );
11237d: 68 8a 1f 12 00 push $0x121f8a <== NOT EXECUTED
112382: 68 c4 20 12 00 push $0x1220c4 <== NOT EXECUTED
112387: 68 b3 01 00 00 push $0x1b3 <== NOT EXECUTED
11238c: 68 ac 1f 12 00 push $0x121fac <== NOT EXECUTED
112391: e8 0e 5f ff ff call 1082a4 <__assert_func> <== NOT EXECUTED
00112840 <memfile_ftruncate>:
int memfile_ftruncate(
rtems_libio_t *iop,
rtems_off64_t length
)
{
112840: 55 push %ebp
112841: 89 e5 mov %esp,%ebp
112843: 53 push %ebx
112844: 83 ec 14 sub $0x14,%esp
112847: 8b 4d 08 mov 0x8(%ebp),%ecx
11284a: 8b 45 0c mov 0xc(%ebp),%eax
11284d: 8b 55 10 mov 0x10(%ebp),%edx
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
112850: 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 )
112853: 39 53 54 cmp %edx,0x54(%ebx)
112856: 7f 19 jg 112871 <memfile_ftruncate+0x31><== NEVER TAKEN
112858: 7d 12 jge 11286c <memfile_ftruncate+0x2c><== ALWAYS TAKEN
return IMFS_memfile_extend( the_jnode, length );
11285a: 51 push %ecx <== NOT EXECUTED
11285b: 52 push %edx <== NOT EXECUTED
11285c: 50 push %eax <== NOT EXECUTED
11285d: 53 push %ebx <== NOT EXECUTED
11285e: e8 79 fe ff ff call 1126dc <IMFS_memfile_extend> <== NOT EXECUTED
112863: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
iop->size = the_jnode->info.file.size;
IMFS_update_atime( the_jnode );
return 0;
}
112866: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
112869: c9 leave <== NOT EXECUTED
11286a: c3 ret <== NOT EXECUTED
11286b: 90 nop <== NOT EXECUTED
* 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 )
11286c: 39 43 50 cmp %eax,0x50(%ebx)
11286f: 72 e9 jb 11285a <memfile_ftruncate+0x1a><== NEVER TAKEN
* 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;
112871: 89 43 50 mov %eax,0x50(%ebx)
112874: 89 53 54 mov %edx,0x54(%ebx)
iop->size = the_jnode->info.file.size;
112877: 89 41 04 mov %eax,0x4(%ecx)
11287a: 89 51 08 mov %edx,0x8(%ecx)
IMFS_update_atime( the_jnode );
11287d: 83 ec 08 sub $0x8,%esp
112880: 6a 00 push $0x0
112882: 8d 45 f0 lea -0x10(%ebp),%eax
112885: 50 push %eax
112886: e8 d5 5d ff ff call 108660 <gettimeofday>
11288b: 8b 45 f0 mov -0x10(%ebp),%eax
11288e: 89 43 40 mov %eax,0x40(%ebx)
112891: 31 c0 xor %eax,%eax
return 0;
112893: 83 c4 10 add $0x10,%esp
}
112896: 8b 5d fc mov -0x4(%ebp),%ebx
112899: c9 leave
11289a: c3 ret
0011289c <memfile_lseek>:
rtems_off64_t memfile_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
11289c: 55 push %ebp
11289d: 89 e5 mov %esp,%ebp
11289f: 57 push %edi
1128a0: 56 push %esi
1128a1: 53 push %ebx
1128a2: 83 ec 0c sub $0xc,%esp
1128a5: 8b 5d 08 mov 0x8(%ebp),%ebx
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
1128a8: 8b 73 38 mov 0x38(%ebx),%esi
if (the_jnode->type == IMFS_LINEAR_FILE) {
1128ab: 83 7e 4c 06 cmpl $0x6,0x4c(%esi)
1128af: 74 2f je 1128e0 <memfile_lseek+0x44> <== NEVER TAKEN
if (iop->offset > the_jnode->info.linearfile.size)
iop->offset = the_jnode->info.linearfile.size;
}
else { /* Must be a block file (IMFS_MEMORY_FILE). */
if (IMFS_memfile_extend( the_jnode, iop->offset ))
1128b1: 57 push %edi
1128b2: ff 73 10 pushl 0x10(%ebx)
1128b5: ff 73 0c pushl 0xc(%ebx)
1128b8: 56 push %esi
1128b9: e8 1e fe ff ff call 1126dc <IMFS_memfile_extend>
1128be: 83 c4 10 add $0x10,%esp
1128c1: 85 c0 test %eax,%eax
1128c3: 75 4d jne 112912 <memfile_lseek+0x76> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOSPC );
iop->size = the_jnode->info.file.size;
1128c5: 8b 46 50 mov 0x50(%esi),%eax
1128c8: 8b 56 54 mov 0x54(%esi),%edx
1128cb: 89 43 04 mov %eax,0x4(%ebx)
1128ce: 89 53 08 mov %edx,0x8(%ebx)
1128d1: 8b 43 0c mov 0xc(%ebx),%eax
1128d4: 8b 53 10 mov 0x10(%ebx),%edx
}
return iop->offset;
}
1128d7: 8d 65 f4 lea -0xc(%ebp),%esp
1128da: 5b pop %ebx
1128db: 5e pop %esi
1128dc: 5f pop %edi
1128dd: c9 leave
1128de: c3 ret
1128df: 90 nop
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
if (the_jnode->type == IMFS_LINEAR_FILE) {
if (iop->offset > the_jnode->info.linearfile.size)
1128e0: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED
1128e3: 8b 4b 10 mov 0x10(%ebx),%ecx <== NOT EXECUTED
1128e6: 8b 46 50 mov 0x50(%esi),%eax <== NOT EXECUTED
1128e9: 8b 56 54 mov 0x54(%esi),%edx <== NOT EXECUTED
1128ec: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
1128ee: 7f 14 jg 112904 <memfile_lseek+0x68> <== NOT EXECUTED
1128f0: 7d 0e jge 112900 <memfile_lseek+0x64> <== NOT EXECUTED
1128f2: 89 f8 mov %edi,%eax <== NOT EXECUTED
1128f4: 89 ca mov %ecx,%edx <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
iop->size = the_jnode->info.file.size;
}
return iop->offset;
}
1128f6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1128f9: 5b pop %ebx <== NOT EXECUTED
1128fa: 5e pop %esi <== NOT EXECUTED
1128fb: 5f pop %edi <== NOT EXECUTED
1128fc: c9 leave <== NOT EXECUTED
1128fd: c3 ret <== NOT EXECUTED
1128fe: 66 90 xchg %ax,%ax <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
if (the_jnode->type == IMFS_LINEAR_FILE) {
if (iop->offset > the_jnode->info.linearfile.size)
112900: 39 c7 cmp %eax,%edi <== NOT EXECUTED
112902: 76 ee jbe 1128f2 <memfile_lseek+0x56> <== NOT EXECUTED
iop->offset = the_jnode->info.linearfile.size;
112904: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
112907: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
iop->size = the_jnode->info.file.size;
}
return iop->offset;
}
11290a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
11290d: 5b pop %ebx <== NOT EXECUTED
11290e: 5e pop %esi <== NOT EXECUTED
11290f: 5f pop %edi <== NOT EXECUTED
112910: c9 leave <== NOT EXECUTED
112911: c3 ret <== NOT EXECUTED
if (iop->offset > the_jnode->info.linearfile.size)
iop->offset = the_jnode->info.linearfile.size;
}
else { /* Must be a block file (IMFS_MEMORY_FILE). */
if (IMFS_memfile_extend( the_jnode, iop->offset ))
rtems_set_errno_and_return_minus_one( ENOSPC );
112912: e8 29 15 00 00 call 113e40 <__errno> <== NOT EXECUTED
112917: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED
11291d: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
112922: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
112927: eb ae jmp 1128d7 <memfile_lseek+0x3b> <== NOT EXECUTED
00112bb8 <memfile_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
112bb8: 55 push %ebp
112bb9: 89 e5 mov %esp,%ebp
112bbb: 56 push %esi
112bbc: 53 push %ebx
112bbd: 8b 5d 08 mov 0x8(%ebp),%ebx
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
112bc0: 8b 73 38 mov 0x38(%ebx),%esi
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
112bc3: 8b 43 14 mov 0x14(%ebx),%eax
112bc6: a9 04 02 00 00 test $0x204,%eax
112bcb: 74 06 je 112bd3 <memfile_open+0x1b>
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
112bcd: 83 7e 4c 06 cmpl $0x6,0x4c(%esi)
112bd1: 74 2d je 112c00 <memfile_open+0x48> <== NEVER TAKEN
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)
112bd3: 8b 56 50 mov 0x50(%esi),%edx
112bd6: 8b 4e 54 mov 0x54(%esi),%ecx
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
return -1;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
112bd9: f6 c4 02 test $0x2,%ah
112bdc: 75 12 jne 112bf0 <memfile_open+0x38>
iop->offset = the_jnode->info.file.size;
iop->size = the_jnode->info.file.size;
112bde: 89 53 04 mov %edx,0x4(%ebx)
112be1: 89 4b 08 mov %ecx,0x8(%ebx)
112be4: 31 c0 xor %eax,%eax
return 0;
}
112be6: 8d 65 f8 lea -0x8(%ebp),%esp
112be9: 5b pop %ebx
112bea: 5e pop %esi
112beb: c9 leave
112bec: c3 ret
112bed: 8d 76 00 lea 0x0(%esi),%esi
if ((count != 0)
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
return -1;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
iop->offset = the_jnode->info.file.size;
112bf0: 89 53 0c mov %edx,0xc(%ebx)
112bf3: 89 4b 10 mov %ecx,0x10(%ebx)
112bf6: 8b 56 50 mov 0x50(%esi),%edx
112bf9: 8b 4e 54 mov 0x54(%esi),%ecx
112bfc: eb e0 jmp 112bde <memfile_open+0x26>
112bfe: 66 90 xchg %ax,%ax
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
uint32_t count = the_jnode->info.linearfile.size;
112c00: 8b 46 50 mov 0x50(%esi),%eax <== NOT EXECUTED
const unsigned char *buffer = the_jnode->info.linearfile.direct;
112c03: 8b 56 58 mov 0x58(%esi),%edx <== NOT EXECUTED
the_jnode->type = IMFS_MEMORY_FILE;
112c06: c7 46 4c 05 00 00 00 movl $0x5,0x4c(%esi) <== NOT EXECUTED
the_jnode->info.file.size = 0;
112c0d: c7 46 50 00 00 00 00 movl $0x0,0x50(%esi) <== NOT EXECUTED
112c14: c7 46 54 00 00 00 00 movl $0x0,0x54(%esi) <== NOT EXECUTED
the_jnode->info.file.indirect = 0;
112c1b: c7 46 58 00 00 00 00 movl $0x0,0x58(%esi) <== NOT EXECUTED
the_jnode->info.file.doubly_indirect = 0;
112c22: c7 46 5c 00 00 00 00 movl $0x0,0x5c(%esi) <== NOT EXECUTED
the_jnode->info.file.triply_indirect = 0;
112c29: c7 46 60 00 00 00 00 movl $0x0,0x60(%esi) <== NOT EXECUTED
if ((count != 0)
112c30: 85 c0 test %eax,%eax <== NOT EXECUTED
112c32: 75 09 jne 112c3d <memfile_open+0x85> <== NOT EXECUTED
112c34: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
112c37: 31 d2 xor %edx,%edx <== NOT EXECUTED
112c39: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
112c3b: eb 9c jmp 112bd9 <memfile_open+0x21> <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
112c3d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
112c40: 50 push %eax <== NOT EXECUTED
112c41: 52 push %edx <== NOT EXECUTED
112c42: 6a 00 push $0x0 <== NOT EXECUTED
112c44: 6a 00 push $0x0 <== NOT EXECUTED
112c46: 56 push %esi <== NOT EXECUTED
112c47: e8 e0 fc ff ff call 11292c <IMFS_memfile_write> <== 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)
112c4c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
112c4f: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
112c52: 74 92 je 112be6 <memfile_open+0x2e> <== NOT EXECUTED
112c54: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
112c57: e9 77 ff ff ff jmp 112bd3 <memfile_open+0x1b> <== NOT EXECUTED
001125e8 <memfile_rmnod>:
int memfile_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
1125e8: 55 push %ebp
1125e9: 89 e5 mov %esp,%ebp
1125eb: 53 push %ebx
1125ec: 83 ec 14 sub $0x14,%esp
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
1125ef: 8b 45 0c mov 0xc(%ebp),%eax
1125f2: 8b 18 mov (%eax),%ebx
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
1125f4: 8b 4b 08 mov 0x8(%ebx),%ecx
1125f7: 85 c9 test %ecx,%ecx
1125f9: 74 13 je 11260e <memfile_rmnod+0x26> <== NEVER TAKEN
1125fb: 83 ec 0c sub $0xc,%esp
1125fe: 53 push %ebx
1125ff: e8 a8 9f ff ff call 10c5ac <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
112604: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
11260b: 83 c4 10 add $0x10,%esp
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
11260e: 66 ff 4b 34 decw 0x34(%ebx)
IMFS_update_ctime( the_jnode );
112612: 83 ec 08 sub $0x8,%esp
112615: 6a 00 push $0x0
112617: 8d 45 f0 lea -0x10(%ebp),%eax
11261a: 50 push %eax
11261b: e8 40 60 ff ff call 108660 <gettimeofday>
112620: 8b 45 f0 mov -0x10(%ebp),%eax
112623: 89 43 48 mov %eax,0x48(%ebx)
return memfile_check_rmnod( the_jnode );
112626: 89 1c 24 mov %ebx,(%esp)
112629: e8 5e ff ff ff call 11258c <memfile_check_rmnod>
}
11262e: 8b 5d fc mov -0x4(%ebp),%ebx
112631: c9 leave
112632: c3 ret
00108998 <mknod>:
int mknod(
const char *pathname,
mode_t mode,
dev_t dev
)
{
108998: 55 push %ebp
108999: 89 e5 mov %esp,%ebp
10899b: 57 push %edi
10899c: 56 push %esi
10899d: 53 push %ebx
10899e: 83 ec 2c sub $0x2c,%esp
1089a1: 8b 75 10 mov 0x10(%ebp),%esi
1089a4: 8b 7d 14 mov 0x14(%ebp),%edi
int result;
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & S_IFMT)
1089a7: 8b 45 0c mov 0xc(%ebp),%eax
1089aa: 25 00 f0 00 00 and $0xf000,%eax
1089af: 3d 00 40 00 00 cmp $0x4000,%eax
1089b4: 74 32 je 1089e8 <mknod+0x50>
1089b6: 76 20 jbe 1089d8 <mknod+0x40>
1089b8: 3d 00 60 00 00 cmp $0x6000,%eax
1089bd: 74 29 je 1089e8 <mknod+0x50>
1089bf: 3d 00 80 00 00 cmp $0x8000,%eax
1089c4: 74 22 je 1089e8 <mknod+0x50> <== ALWAYS TAKEN
case S_IFBLK:
case S_IFREG:
case S_IFIFO:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
1089c6: e8 75 b4 00 00 call 113e40 <__errno> <== NOT EXECUTED
1089cb: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1089d1: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
1089d6: eb 78 jmp 108a50 <mknod+0xb8> <== NOT EXECUTED
int result;
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & S_IFMT)
1089d8: 3d 00 10 00 00 cmp $0x1000,%eax
1089dd: 74 09 je 1089e8 <mknod+0x50>
1089df: 3d 00 20 00 00 cmp $0x2000,%eax
1089e4: 75 e0 jne 1089c6 <mknod+0x2e> <== NEVER TAKEN
1089e6: 66 90 xchg %ax,%ax
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
}
rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
1089e8: 51 push %ecx
1089e9: 8d 5d cc lea -0x34(%ebp),%ebx
1089ec: 53 push %ebx
1089ed: 8d 45 e4 lea -0x1c(%ebp),%eax
1089f0: 50 push %eax
1089f1: ff 75 08 pushl 0x8(%ebp)
1089f4: e8 4f 0a 00 00 call 109448 <rtems_filesystem_get_start_loc>
if ( !temp_loc.ops->evalformake_h ) {
1089f9: 8b 45 d8 mov -0x28(%ebp),%eax
1089fc: 8b 40 04 mov 0x4(%eax),%eax
1089ff: 83 c4 10 add $0x10,%esp
108a02: 85 c0 test %eax,%eax
108a04: 74 66 je 108a6c <mknod+0xd4> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*temp_loc.ops->evalformake_h)(
108a06: 52 push %edx
108a07: 8d 55 e0 lea -0x20(%ebp),%edx
108a0a: 52 push %edx
108a0b: 53 push %ebx
108a0c: 8b 55 08 mov 0x8(%ebp),%edx
108a0f: 03 55 e4 add -0x1c(%ebp),%edx
108a12: 52 push %edx
108a13: ff d0 call *%eax
&pathname[i],
&temp_loc,
&name_start
);
if ( result != 0 )
108a15: 83 c4 10 add $0x10,%esp
108a18: 85 c0 test %eax,%eax
108a1a: 75 5b jne 108a77 <mknod+0xdf>
return -1;
if ( !temp_loc.ops->mknod_h ) {
108a1c: 8b 55 d8 mov -0x28(%ebp),%edx
108a1f: 8b 42 14 mov 0x14(%edx),%eax
108a22: 85 c0 test %eax,%eax
108a24: 74 34 je 108a5a <mknod+0xc2> <== NEVER TAKEN
rtems_filesystem_freenode( &temp_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
108a26: 83 ec 0c sub $0xc,%esp
108a29: 53 push %ebx
108a2a: 57 push %edi
108a2b: 56 push %esi
108a2c: ff 75 0c pushl 0xc(%ebp)
108a2f: ff 75 e0 pushl -0x20(%ebp)
108a32: ff d0 call *%eax
108a34: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &temp_loc );
108a36: 8b 45 d8 mov -0x28(%ebp),%eax
108a39: 83 c4 20 add $0x20,%esp
108a3c: 85 c0 test %eax,%eax
108a3e: 74 10 je 108a50 <mknod+0xb8> <== NEVER TAKEN
108a40: 8b 40 1c mov 0x1c(%eax),%eax
108a43: 85 c0 test %eax,%eax
108a45: 74 09 je 108a50 <mknod+0xb8>
108a47: 83 ec 0c sub $0xc,%esp
108a4a: 53 push %ebx
108a4b: ff d0 call *%eax
108a4d: 83 c4 10 add $0x10,%esp
return result;
}
108a50: 89 f0 mov %esi,%eax
108a52: 8d 65 f4 lea -0xc(%ebp),%esp
108a55: 5b pop %ebx
108a56: 5e pop %esi
108a57: 5f pop %edi
108a58: c9 leave
108a59: c3 ret
);
if ( result != 0 )
return -1;
if ( !temp_loc.ops->mknod_h ) {
rtems_filesystem_freenode( &temp_loc );
108a5a: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
108a5d: 85 c0 test %eax,%eax <== NOT EXECUTED
108a5f: 74 0b je 108a6c <mknod+0xd4> <== NOT EXECUTED
108a61: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108a64: 53 push %ebx <== NOT EXECUTED
108a65: ff d0 call *%eax <== NOT EXECUTED
108a67: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108a6a: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
108a6c: e8 cf b3 00 00 call 113e40 <__errno> <== NOT EXECUTED
108a71: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
108a77: be ff ff ff ff mov $0xffffffff,%esi
result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
rtems_filesystem_freenode( &temp_loc );
return result;
}
108a7c: 89 f0 mov %esi,%eax
108a7e: 8d 65 f4 lea -0xc(%ebp),%esp
108a81: 5b pop %ebx
108a82: 5e pop %esi
108a83: 5f pop %edi
108a84: c9 leave
108a85: c3 ret
00108b0c <mount>:
const char *target,
const char *filesystemtype,
rtems_filesystem_options_t options,
const void *data
)
{
108b0c: 55 push %ebp
108b0d: 89 e5 mov %esp,%ebp
108b0f: 57 push %edi
108b10: 56 push %esi
108b11: 53 push %ebx
108b12: 83 ec 4c sub $0x4c,%esp
/*
* Are the file system options valid?
*/
if ( options != RTEMS_FILESYSTEM_READ_ONLY &&
108b15: 83 7d 14 01 cmpl $0x1,0x14(%ebp)
108b19: 0f 87 61 02 00 00 ja 108d80 <mount+0x274>
rtems_set_errno_and_return_minus_one( EINVAL );
/*
* Get mount handler
*/
mount_h = rtems_filesystem_get_mount_handler( filesystemtype );
108b1f: 83 ec 0c sub $0xc,%esp
108b22: ff 75 10 pushl 0x10(%ebp)
108b25: e8 92 84 00 00 call 110fbc <rtems_filesystem_get_mount_handler>
108b2a: 89 45 c0 mov %eax,-0x40(%ebp)
if ( !mount_h )
108b2d: 83 c4 10 add $0x10,%esp
108b30: 85 c0 test %eax,%eax
108b32: 0f 84 48 02 00 00 je 108d80 <mount+0x274>
{
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;
108b38: 8b 5d 0c mov 0xc(%ebp),%ebx
108b3b: 85 db test %ebx,%ebx
const char *target_or_null,
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
108b3d: 0f 95 45 bf setne -0x41(%ebp)
108b41: 0f 84 25 02 00 00 je 108d6c <mount+0x260>
* 4) The mount point exists with the proper permissions to allow mounting
* 5) The selected mount point already has a file system mounted to it
*
*/
int mount(
108b47: 31 c0 xor %eax,%eax
108b49: b9 ff ff ff ff mov $0xffffffff,%ecx
108b4e: 8b 7d 0c mov 0xc(%ebp),%edi
108b51: f2 ae repnz scas %es:(%edi),%al
108b53: f7 d1 not %ecx
108b55: 49 dec %ecx
108b56: 89 4d b8 mov %ecx,-0x48(%ebp)
108b59: 8b 45 0c mov 0xc(%ebp),%eax
108b5c: 89 45 b4 mov %eax,-0x4c(%ebp)
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
108b5f: ba ff ff ff ff mov $0xffffffff,%edx
108b64: 31 c0 xor %eax,%eax
108b66: 89 d1 mov %edx,%ecx
108b68: 8b 7d 10 mov 0x10(%ebp),%edi
108b6b: f2 ae repnz scas %es:(%edi),%al
108b6d: f7 d1 not %ecx
108b6f: 89 4d c4 mov %ecx,-0x3c(%ebp)
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
108b72: 8b 4d 08 mov 0x8(%ebp),%ecx
108b75: 85 c9 test %ecx,%ecx
108b77: 0f 84 e7 01 00 00 je 108d64 <mount+0x258>
108b7d: 89 d1 mov %edx,%ecx
108b7f: 8b 7d 08 mov 0x8(%ebp),%edi
108b82: f2 ae repnz scas %es:(%edi),%al
108b84: 89 ce mov %ecx,%esi
108b86: f7 d6 not %esi
size_t target_length = strlen( target );
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 );
108b88: 83 ec 08 sub $0x8,%esp
108b8b: 8b 4d b8 mov -0x48(%ebp),%ecx
108b8e: 8b 55 c4 mov -0x3c(%ebp),%edx
108b91: 8d 44 11 75 lea 0x75(%ecx,%edx,1),%eax
108b95: 01 f0 add %esi,%eax
108b97: 50 push %eax
108b98: 6a 01 push $0x1
108b9a: e8 2d f8 ff ff call 1083cc <calloc>
108b9f: 89 c3 mov %eax,%ebx
if ( mt_entry != NULL ) {
108ba1: 83 c4 10 add $0x10,%esp
108ba4: 85 c0 test %eax,%eax
108ba6: 0f 84 a0 01 00 00 je 108d4c <mount+0x240> <== NEVER TAKEN
char *str = (char *) mt_entry + sizeof( *mt_entry );
108bac: 8d 78 74 lea 0x74(%eax),%edi
strcpy( str, filesystemtype );
108baf: 83 ec 08 sub $0x8,%esp
108bb2: ff 75 10 pushl 0x10(%ebp)
108bb5: 57 push %edi
108bb6: e8 a5 bd 00 00 call 114960 <strcpy>
mt_entry->type = str;
108bbb: 89 7b 6c mov %edi,0x6c(%ebx)
str += filesystemtype_size;
108bbe: 03 7d c4 add -0x3c(%ebp),%edi
if ( source_or_null != NULL ) {
108bc1: 83 c4 10 add $0x10,%esp
108bc4: 8b 45 08 mov 0x8(%ebp),%eax
108bc7: 85 c0 test %eax,%eax
108bc9: 74 14 je 108bdf <mount+0xd3>
strcpy( str, source_or_null );
108bcb: 83 ec 08 sub $0x8,%esp
108bce: ff 75 08 pushl 0x8(%ebp)
108bd1: 57 push %edi
108bd2: e8 89 bd 00 00 call 114960 <strcpy>
mt_entry->dev = str;
108bd7: 89 7b 70 mov %edi,0x70(%ebx)
str += source_size;
108bda: 01 f7 add %esi,%edi
108bdc: 83 c4 10 add $0x10,%esp
}
strcpy( str, target );
108bdf: 83 ec 08 sub $0x8,%esp
108be2: ff 75 b4 pushl -0x4c(%ebp)
108be5: 57 push %edi
108be6: e8 75 bd 00 00 call 114960 <strcpy>
mt_entry->target = str;
108beb: 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;
108bee: 89 5b 2c mov %ebx,0x2c(%ebx)
mt_entry->options = options;
108bf1: 8b 45 14 mov 0x14(%ebp),%eax
108bf4: 89 43 30 mov %eax,0x30(%ebx)
mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
108bf7: 8d 7b 38 lea 0x38(%ebx),%edi
108bfa: be 40 18 12 00 mov $0x121840,%esi
108bff: b9 0c 00 00 00 mov $0xc,%ecx
108c04: 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 ) {
108c06: 83 c4 10 add $0x10,%esp
108c09: 80 7d bf 00 cmpb $0x0,-0x41(%ebp)
108c0d: 75 7d jne 108c8c <mount+0x180>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
108c0f: 81 3d 04 50 12 00 08 cmpl $0x125008,0x125004
108c16: 50 12 00
108c19: 0f 85 a9 01 00 00 jne 108dc8 <mount+0x2bc> <== NEVER TAKEN
108c1f: 31 f6 xor %esi,%esi
* 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 ) ) {
108c21: 83 ec 08 sub $0x8,%esp
108c24: ff 75 18 pushl 0x18(%ebp)
108c27: 53 push %ebx
108c28: ff 55 c0 call *-0x40(%ebp)
108c2b: 83 c4 10 add $0x10,%esp
108c2e: 85 c0 test %eax,%eax
108c30: 0f 85 62 01 00 00 jne 108d98 <mount+0x28c> <== NEVER TAKEN
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 );
108c36: 56 push %esi
108c37: 6a 00 push $0x0
108c39: 6a 00 push $0x0
108c3b: ff 35 e8 71 12 00 pushl 0x1271e8
108c41: e8 9e 30 00 00 call 10bce4 <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 );
108c46: 5a pop %edx
108c47: 59 pop %ecx
108c48: 53 push %ebx
108c49: 68 04 50 12 00 push $0x125004
108c4e: e8 35 39 00 00 call 10c588 <_Chain_Append>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
108c53: 58 pop %eax
108c54: ff 35 e8 71 12 00 pushl 0x1271e8
108c5a: e8 81 31 00 00 call 10bde0 <rtems_semaphore_release>
*/
rtems_libio_lock();
rtems_chain_append( &mount_chain, &mt_entry->Node );
rtems_libio_unlock();
if ( !has_target )
108c5f: 83 c4 10 add $0x10,%esp
108c62: 80 7d bf 00 cmpb $0x0,-0x41(%ebp)
108c66: 74 0c je 108c74 <mount+0x168>
rtems_filesystem_root = mt_entry->mt_fs_root;
108c68: 31 c0 xor %eax,%eax
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
return -1;
}
108c6a: 8d 65 f4 lea -0xc(%ebp),%esp
108c6d: 5b pop %ebx
108c6e: 5e pop %esi
108c6f: 5f pop %edi
108c70: c9 leave
108c71: c3 ret
108c72: 66 90 xchg %ax,%ax
rtems_libio_lock();
rtems_chain_append( &mount_chain, &mt_entry->Node );
rtems_libio_unlock();
if ( !has_target )
rtems_filesystem_root = mt_entry->mt_fs_root;
108c74: 8b 3d 24 50 12 00 mov 0x125024,%edi
108c7a: 83 c7 18 add $0x18,%edi
108c7d: 8d 73 1c lea 0x1c(%ebx),%esi
108c80: b9 05 00 00 00 mov $0x5,%ecx
108c85: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
108c87: eb df jmp 108c68 <mount+0x15c>
108c89: 8d 76 00 lea 0x0(%esi),%esi
* The mount_point should be a directory with read/write/execute
* permissions in the existing tree.
*/
if ( has_target ) {
if ( rtems_filesystem_evaluate_path(
108c8c: 83 ec 0c sub $0xc,%esp
108c8f: 6a 01 push $0x1
108c91: 8d 75 d4 lea -0x2c(%ebp),%esi
108c94: 56 push %esi
108c95: 6a 07 push $0x7
108c97: ff 75 b8 pushl -0x48(%ebp)
108c9a: ff 75 0c pushl 0xc(%ebp)
108c9d: e8 d2 f8 ff ff call 108574 <rtems_filesystem_evaluate_path>
108ca2: 83 c4 20 add $0x20,%esp
108ca5: 40 inc %eax
108ca6: 0f 84 27 01 00 00 je 108dd3 <mount+0x2c7> <== NEVER TAKEN
/*
* Test for node_type_h
*/
if (!loc.ops->node_type_h) {
108cac: 8b 45 e0 mov -0x20(%ebp),%eax
108caf: 8b 40 10 mov 0x10(%eax),%eax
108cb2: 85 c0 test %eax,%eax
108cb4: 0f 84 52 01 00 00 je 108e0c <mount+0x300> <== NEVER TAKEN
/*
* Test to see if it is a directory
*/
if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
108cba: 83 ec 0c sub $0xc,%esp
108cbd: 56 push %esi
108cbe: ff d0 call *%eax
108cc0: 83 c4 10 add $0x10,%esp
108cc3: 48 dec %eax
108cc4: 0f 85 22 01 00 00 jne 108dec <mount+0x2e0>
/*
* You can only mount one file system onto a single mount point.
*/
if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
108cca: 83 ec 08 sub $0x8,%esp
108ccd: ff 75 d4 pushl -0x2c(%ebp)
108cd0: 68 88 8a 10 00 push $0x108a88
108cd5: e8 c2 fd ff ff call 108a9c <rtems_filesystem_mount_iterate>
108cda: 83 c4 10 add $0x10,%esp
108cdd: 84 c0 test %al,%al
108cdf: 0f 85 17 01 00 00 jne 108dfc <mount+0x2f0>
* 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;
108ce5: 8b 45 d4 mov -0x2c(%ebp),%eax
108ce8: 89 43 08 mov %eax,0x8(%ebx)
mt_entry->mt_point_node.handlers = loc.handlers;
108ceb: 8b 45 dc mov -0x24(%ebp),%eax
108cee: 89 43 10 mov %eax,0x10(%ebx)
mt_entry->mt_point_node.ops = loc.ops;
108cf1: 8b 45 e0 mov -0x20(%ebp),%eax
108cf4: 89 43 14 mov %eax,0x14(%ebx)
mt_entry->mt_point_node.mt_entry = loc.mt_entry;
108cf7: 8b 55 e4 mov -0x1c(%ebp),%edx
108cfa: 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 ){
108cfd: 8b 40 20 mov 0x20(%eax),%eax
108d00: 85 c0 test %eax,%eax
108d02: 0f 84 04 01 00 00 je 108e0c <mount+0x300> <== NEVER TAKEN
errno = ENOTSUP;
goto cleanup_and_bail;
}
if ( loc.ops->mount_h( mt_entry ) ) {
108d08: 83 ec 0c sub $0xc,%esp
108d0b: 53 push %ebx
108d0c: ff d0 call *%eax
108d0e: 83 c4 10 add $0x10,%esp
108d11: 85 c0 test %eax,%eax
108d13: 0f 84 08 ff ff ff je 108c21 <mount+0x115> <== ALWAYS TAKEN
return 0;
cleanup_and_bail:
free( mt_entry );
108d19: 83 ec 0c sub $0xc,%esp
108d1c: 53 push %ebx
108d1d: e8 c2 f8 ff ff call 1085e4 <free>
108d22: 83 c4 10 add $0x10,%esp
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
108d25: 8b 46 0c mov 0xc(%esi),%eax
108d28: 85 c0 test %eax,%eax
108d2a: 0f 84 8f 00 00 00 je 108dbf <mount+0x2b3> <== NEVER TAKEN
108d30: 8b 40 1c mov 0x1c(%eax),%eax
108d33: 85 c0 test %eax,%eax
108d35: 0f 84 84 00 00 00 je 108dbf <mount+0x2b3> <== NEVER TAKEN
108d3b: 83 ec 0c sub $0xc,%esp
108d3e: 56 push %esi
108d3f: ff d0 call *%eax
108d41: 83 c8 ff or $0xffffffff,%eax
108d44: 83 c4 10 add $0x10,%esp
108d47: e9 1e ff ff ff jmp 108c6a <mount+0x15e>
target,
filesystemtype,
&target_length
);
if ( !mt_entry )
rtems_set_errno_and_return_minus_one( ENOMEM );
108d4c: e8 ef b0 00 00 call 113e40 <__errno> <== NOT EXECUTED
108d51: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
108d57: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
return -1;
}
108d5c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
108d5f: 5b pop %ebx <== NOT EXECUTED
108d60: 5e pop %esi <== NOT EXECUTED
108d61: 5f pop %edi <== NOT EXECUTED
108d62: c9 leave <== NOT EXECUTED
108d63: c3 ret <== NOT EXECUTED
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
108d64: 31 f6 xor %esi,%esi
108d66: e9 1d fe ff ff jmp 108b88 <mount+0x7c>
108d6b: 90 nop
const char *target_or_null,
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
108d6c: c7 45 b8 01 00 00 00 movl $0x1,-0x48(%ebp)
108d73: c7 45 b4 e7 17 12 00 movl $0x1217e7,-0x4c(%ebp)
108d7a: e9 e0 fd ff ff jmp 108b5f <mount+0x53>
108d7f: 90 nop
/*
* Get mount handler
*/
mount_h = rtems_filesystem_get_mount_handler( filesystemtype );
if ( !mount_h )
rtems_set_errno_and_return_minus_one( EINVAL );
108d80: e8 bb b0 00 00 call 113e40 <__errno>
108d85: c7 00 16 00 00 00 movl $0x16,(%eax)
108d8b: b8 ff ff ff ff mov $0xffffffff,%eax
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
return -1;
}
108d90: 8d 65 f4 lea -0xc(%ebp),%esp
108d93: 5b pop %ebx
108d94: 5e pop %esi
108d95: 5f pop %edi
108d96: c9 leave
108d97: c3 ret
if ( (*mount_h)( mt_entry, data ) ) {
/*
* Try to undo the mount operation
*/
if ( loc.ops->unmount_h ) {
108d98: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
108d9b: 8b 40 28 mov 0x28(%eax),%eax <== NOT EXECUTED
108d9e: 85 c0 test %eax,%eax <== NOT EXECUTED
108da0: 74 09 je 108dab <mount+0x29f> <== NOT EXECUTED
loc.ops->unmount_h( mt_entry );
108da2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108da5: 53 push %ebx <== NOT EXECUTED
108da6: ff d0 call *%eax <== NOT EXECUTED
108da8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0;
cleanup_and_bail:
free( mt_entry );
108dab: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108dae: 53 push %ebx <== NOT EXECUTED
108daf: e8 30 f8 ff ff call 1085e4 <free> <== NOT EXECUTED
if ( loc_to_free )
108db4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108db7: 85 f6 test %esi,%esi <== NOT EXECUTED
108db9: 0f 85 66 ff ff ff jne 108d25 <mount+0x219> <== NOT EXECUTED
rtems_filesystem_freenode( loc_to_free );
108dbf: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
108dc2: e9 a3 fe ff ff jmp 108c6a <mount+0x15e> <== NOT EXECUTED
108dc7: 90 nop <== NOT EXECUTED
} else {
/*
* Do we already have a base file system ?
*/
if ( !rtems_chain_is_empty( &mount_chain ) ) {
errno = EINVAL;
108dc8: e8 73 b0 00 00 call 113e40 <__errno> <== NOT EXECUTED
108dcd: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
return 0;
cleanup_and_bail:
free( mt_entry );
108dd3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108dd6: 53 push %ebx <== NOT EXECUTED
108dd7: e8 08 f8 ff ff call 1085e4 <free> <== NOT EXECUTED
108ddc: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
108de1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108de4: e9 81 fe ff ff jmp 108c6a <mount+0x15e> <== NOT EXECUTED
108de9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/*
* Test to see if it is a directory
*/
if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
errno = ENOTDIR;
108dec: e8 4f b0 00 00 call 113e40 <__errno>
108df1: c7 00 14 00 00 00 movl $0x14,(%eax)
goto cleanup_and_bail;
108df7: e9 1d ff ff ff jmp 108d19 <mount+0x20d>
/*
* You can only mount one file system onto a single mount point.
*/
if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
errno = EBUSY;
108dfc: e8 3f b0 00 00 call 113e40 <__errno>
108e01: c7 00 10 00 00 00 movl $0x10,(%eax)
goto cleanup_and_bail;
108e07: e9 0d ff ff ff jmp 108d19 <mount+0x20d>
* This link to the parent is only done when we are dealing with system
* below the base file system
*/
if ( !loc.ops->mount_h ){
errno = ENOTSUP;
108e0c: e8 2f b0 00 00 call 113e40 <__errno> <== NOT EXECUTED
108e11: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
goto cleanup_and_bail;
108e17: e9 fd fe ff ff jmp 108d19 <mount+0x20d> <== NOT EXECUTED
00139d90 <msdos_creat_node>:
msdos_node_type_t type,
const char *name,
int name_len,
mode_t mode,
const fat_file_fd_t *link_fd)
{
139d90: 55 push %ebp <== NOT EXECUTED
139d91: 89 e5 mov %esp,%ebp <== NOT EXECUTED
139d93: 57 push %edi <== NOT EXECUTED
139d94: 56 push %esi <== NOT EXECUTED
139d95: 53 push %ebx <== NOT EXECUTED
139d96: 81 ec cc 00 00 00 sub $0xcc,%esp <== NOT EXECUTED
int rc = RC_OK;
ssize_t ret = 0;
msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info;
139d9c: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
139d9f: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
139da2: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
139da5: 89 85 40 ff ff ff mov %eax,-0xc0(%ebp) <== NOT EXECUTED
fat_file_fd_t *parent_fat_fd = parent_loc->node_access;
139dab: 8b 0a mov (%edx),%ecx <== NOT EXECUTED
139dad: 89 8d 44 ff ff ff mov %ecx,-0xbc(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = NULL;
139db3: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
time_t time_ret = 0;
uint16_t time_val = 0;
139dba: 66 c7 45 e6 00 00 movw $0x0,-0x1a(%ebp) <== NOT EXECUTED
uint16_t date = 0;
139dc0: 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;
139dc6: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
dir_pos->sname.ofs = 0;
139dcd: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
139dd4: c7 45 d8 ff ff ff ff movl $0xffffffff,-0x28(%ebp) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
139ddb: 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);
139de2: 8d 5d b0 lea -0x50(%ebp),%ebx <== NOT EXECUTED
139de5: 31 c0 xor %eax,%eax <== NOT EXECUTED
139de7: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
139dec: 89 df mov %ebx,%edi <== NOT EXECUTED
139dee: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);
139df0: 8d 95 50 ff ff ff lea -0xb0(%ebp),%edx <== NOT EXECUTED
139df6: 89 95 34 ff ff ff mov %edx,-0xcc(%ebp) <== NOT EXECUTED
139dfc: b1 40 mov $0x40,%cl <== NOT EXECUTED
139dfe: 89 d7 mov %edx,%edi <== NOT EXECUTED
139e00: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
name_type = msdos_long_to_short (name, name_len,
139e02: 6a 0b push $0xb <== NOT EXECUTED
139e04: 53 push %ebx <== NOT EXECUTED
139e05: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
139e08: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
139e0b: e8 74 1f 00 00 call 13bd84 <msdos_long_to_short> <== NOT EXECUTED
139e10: 89 c6 mov %eax,%esi <== NOT EXECUTED
MSDOS_DIR_NAME(short_node),
MSDOS_NAME_MAX);
/* fill reserved field */
*MSDOS_DIR_NT_RES(short_node) = MSDOS_RES_NT_VALUE;
139e12: c6 45 bc 00 movb $0x0,-0x44(%ebp) <== NOT EXECUTED
/* set up last write date and time */
time_ret = time(NULL);
139e16: c7 04 24 00 00 00 00 movl $0x0,(%esp) <== NOT EXECUTED
139e1d: e8 0e 76 01 00 call 151430 <time> <== NOT EXECUTED
if ( time_ret == -1 )
139e22: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139e25: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
139e28: 74 76 je 139ea0 <msdos_creat_node+0x110><== NOT EXECUTED
return -1;
msdos_date_unix2dos(time_ret, &date, &time_val);
139e2a: 52 push %edx <== NOT EXECUTED
139e2b: 8d 55 e6 lea -0x1a(%ebp),%edx <== NOT EXECUTED
139e2e: 52 push %edx <== NOT EXECUTED
139e2f: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
139e32: 52 push %edx <== NOT EXECUTED
139e33: 50 push %eax <== NOT EXECUTED
139e34: e8 f3 ac 00 00 call 144b2c <msdos_date_unix2dos> <== NOT EXECUTED
*MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);
139e39: 66 8b 45 e6 mov -0x1a(%ebp),%ax <== NOT EXECUTED
139e3d: 66 89 45 c6 mov %ax,-0x3a(%ebp) <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
139e41: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
139e44: 66 89 45 c8 mov %ax,-0x38(%ebp) <== NOT EXECUTED
/* initialize directory/file size */
*MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;
139e48: 8d 7d cc lea -0x34(%ebp),%edi <== NOT EXECUTED
139e4b: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
if (type == MSDOS_DIRECTORY) {
139e52: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139e55: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
139e59: 74 55 je 139eb0 <msdos_creat_node+0x120><== NOT EXECUTED
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;
}
else if (type == MSDOS_HARD_LINK) {
139e5b: 83 7d 0c 03 cmpl $0x3,0xc(%ebp) <== NOT EXECUTED
139e5f: 0f 84 df 01 00 00 je 13a044 <msdos_creat_node+0x2b4><== NOT EXECUTED
* set "last access" date to today
*/
*MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);
}
else { /* regular file... */
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
139e65: 8a 45 bb mov -0x45(%ebp),%al <== NOT EXECUTED
139e68: 83 c8 20 or $0x20,%eax <== NOT EXECUTED
139e6b: 88 43 0b mov %al,0xb(%ebx) <== 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,
139e6e: 57 push %edi <== NOT EXECUTED
139e6f: 53 push %ebx <== NOT EXECUTED
139e70: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED
139e73: 52 push %edx <== NOT EXECUTED
139e74: 56 push %esi <== NOT EXECUTED
139e75: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
139e78: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
139e7b: 6a 01 push $0x1 <== NOT EXECUTED
139e7d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
139e80: e8 cb 22 00 00 call 13c150 <msdos_get_name_node> <== NOT EXECUTED
139e85: 89 c6 mov %eax,%esi <== NOT EXECUTED
name_type, &dir_pos, short_node);
if ( rc != RC_OK )
139e87: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
139e8a: 85 c0 test %eax,%eax <== NOT EXECUTED
139e8c: 75 06 jne 139e94 <msdos_creat_node+0x104><== NOT EXECUTED
/*
* if we create a new file we are done, if directory there are more steps
* to do
*/
if (type == MSDOS_DIRECTORY)
139e8e: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
139e92: 74 28 je 139ebc <msdos_creat_node+0x12c><== 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);
return rc;
}
139e94: 89 f0 mov %esi,%eax <== NOT EXECUTED
139e96: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139e99: 5b pop %ebx <== NOT EXECUTED
139e9a: 5e pop %esi <== NOT EXECUTED
139e9b: 5f pop %edi <== NOT EXECUTED
139e9c: c9 leave <== NOT EXECUTED
139e9d: c3 ret <== NOT EXECUTED
139e9e: 66 90 xchg %ax,%ax <== NOT EXECUTED
fat_file_close(parent_loc->mt_entry, fat_fd);
err:
/* mark the used 32bytes structure on the disk as free */
msdos_set_first_char4file_name(parent_loc->mt_entry, &dir_pos, 0xE5);
return rc;
139ea0: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
}
139ea5: 89 f0 mov %esi,%eax <== NOT EXECUTED
139ea7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
139eaa: 5b pop %ebx <== NOT EXECUTED
139eab: 5e pop %esi <== NOT EXECUTED
139eac: 5f pop %edi <== NOT EXECUTED
139ead: c9 leave <== NOT EXECUTED
139eae: c3 ret <== NOT EXECUTED
139eaf: 90 nop <== NOT EXECUTED
/* initialize directory/file size */
*MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;
if (type == MSDOS_DIRECTORY) {
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;
139eb0: 8a 45 bb mov -0x45(%ebp),%al <== NOT EXECUTED
139eb3: 83 c8 10 or $0x10,%eax <== NOT EXECUTED
139eb6: 88 43 0b mov %al,0xb(%ebx) <== NOT EXECUTED
139eb9: eb b3 jmp 139e6e <msdos_creat_node+0xde> <== NOT EXECUTED
139ebb: 90 nop <== NOT EXECUTED
* to do
*/
if (type == MSDOS_DIRECTORY)
{
/* open new directory as fat-file */
rc = fat_file_open(parent_loc->mt_entry, &dir_pos, &fat_fd);
139ebc: 51 push %ecx <== NOT EXECUTED
139ebd: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
139ec0: 50 push %eax <== NOT EXECUTED
139ec1: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED
139ec4: 51 push %ecx <== NOT EXECUTED
139ec5: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
139ec8: ff 70 10 pushl 0x10(%eax) <== NOT EXECUTED
139ecb: e8 88 13 ff ff call 12b258 <fat_file_open> <== NOT EXECUTED
139ed0: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
139ed2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139ed5: 85 c0 test %eax,%eax <== NOT EXECUTED
139ed7: 0f 85 13 01 00 00 jne 139ff0 <msdos_creat_node+0x260><== NOT EXECUTED
/*
* we opened fat-file for node we just created, so initialize fat-file
* descritor
*/
fat_fd->fat_file_size = 0;
139edd: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
139ee0: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
139ee7: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
139eee: 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,
139ef5: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
139efa: 8b bd 34 ff ff ff mov -0xcc(%ebp),%edi <== NOT EXECUTED
139f00: 89 de mov %ebx,%esi <== NOT EXECUTED
139f02: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,
139f04: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax <== NOT EXECUTED
139f0a: b1 08 mov $0x8,%cl <== NOT EXECUTED
139f0c: 89 c7 mov %eax,%edi <== NOT EXECUTED
139f0e: 89 de mov %ebx,%esi <== NOT EXECUTED
139f10: 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,
139f12: 8b 35 64 da 16 00 mov 0x16da64,%esi <== NOT EXECUTED
139f18: b1 0b mov $0xb,%cl <== NOT EXECUTED
139f1a: 8b bd 34 ff ff ff mov -0xcc(%ebp),%edi <== NOT EXECUTED
139f20: 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,
139f22: 8b 35 68 da 16 00 mov 0x16da68,%esi <== NOT EXECUTED
139f28: b1 0b mov $0xb,%cl <== NOT EXECUTED
139f2a: 89 c7 mov %eax,%edi <== NOT EXECUTED
139f2c: 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)) &&
139f2e: 8b 95 44 ff ff ff mov -0xbc(%ebp),%edx <== NOT EXECUTED
139f34: 83 7a 20 01 cmpl $0x1,0x20(%edx) <== NOT EXECUTED
139f38: 0f 84 da 00 00 00 je 13a018 <msdos_creat_node+0x288><== 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)) =
139f3e: 8b 95 44 ff ff ff mov -0xbc(%ebp),%edx <== NOT EXECUTED
139f44: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
139f47: 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)) =
139f4b: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
139f4e: 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,
139f52: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
139f55: 8d 8d 50 ff ff ff lea -0xb0(%ebp),%ecx <== NOT EXECUTED
139f5b: 51 push %ecx <== NOT EXECUTED
139f5c: 6a 40 push $0x40 <== NOT EXECUTED
139f5e: 6a 00 push $0x0 <== NOT EXECUTED
139f60: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
139f63: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
139f66: ff 70 10 pushl 0x10(%eax) <== NOT EXECUTED
139f69: e8 ba 0d ff ff call 12ad28 <fat_file_write> <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2,
(uint8_t *)dot_dotdot);
if (ret < 0)
139f6e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
139f71: 85 c0 test %eax,%eax <== NOT EXECUTED
139f73: 0f 88 97 00 00 00 js 13a010 <msdos_creat_node+0x280><== NOT EXECUTED
rc = -1;
goto error;
}
/* increment fat-file size by cluster size */
fat_fd->fat_file_size += fs_info->fat.vol.bpc;
139f79: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
139f7c: 8b 8d 40 ff ff ff mov -0xc0(%ebp),%ecx <== NOT EXECUTED
139f82: 0f b7 51 06 movzwl 0x6(%ecx),%edx <== NOT EXECUTED
139f86: 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)) =
139f89: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
139f8c: 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)) =
139f93: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
139f96: 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,
139f9d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
139fa0: 8d 95 50 ff ff ff lea -0xb0(%ebp),%edx <== NOT EXECUTED
139fa6: 52 push %edx <== NOT EXECUTED
139fa7: 6a 20 push $0x20 <== NOT EXECUTED
139fa9: 6a 00 push $0x0 <== NOT EXECUTED
139fab: 50 push %eax <== NOT EXECUTED
139fac: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
139faf: ff 71 10 pushl 0x10(%ecx) <== NOT EXECUTED
139fb2: e8 71 0d ff ff call 12ad28 <fat_file_write> <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
(uint8_t *)DOT_NODE_P(dot_dotdot));
if (ret < 0)
139fb7: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
139fba: 85 c0 test %eax,%eax <== NOT EXECUTED
139fbc: 78 52 js 13a010 <msdos_creat_node+0x280><== 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);
139fbe: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
139fc1: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
139fc4: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
139fc7: ff 70 10 pushl 0x10(%eax) <== NOT EXECUTED
139fca: e8 c1 19 00 00 call 13b990 <msdos_set_first_cluster_num><== NOT EXECUTED
139fcf: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
139fd1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
139fd4: 85 c0 test %eax,%eax <== NOT EXECUTED
139fd6: 0f 84 2d 01 00 00 je 13a109 <msdos_creat_node+0x379><== NOT EXECUTED
fat_file_close(parent_loc->mt_entry, fat_fd);
}
return RC_OK;
error:
fat_file_close(parent_loc->mt_entry, fat_fd);
139fdc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
139fdf: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
139fe2: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
139fe5: ff 71 10 pushl 0x10(%ecx) <== NOT EXECUTED
139fe8: e8 ab 11 ff ff call 12b198 <fat_file_close> <== NOT EXECUTED
139fed: 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);
139ff0: 50 push %eax <== NOT EXECUTED
139ff1: 68 e5 00 00 00 push $0xe5 <== NOT EXECUTED
139ff6: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
139ff9: 50 push %eax <== NOT EXECUTED
139ffa: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
139ffd: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
13a000: e8 3b 1a 00 00 call 13ba40 <msdos_set_first_char4file_name><== NOT EXECUTED
return rc;
13a005: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a008: e9 87 fe ff ff jmp 139e94 <msdos_creat_node+0x104><== NOT EXECUTED
13a00d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* write first cluster num of a new directory to disk */
rc = msdos_set_first_cluster_num(parent_loc->mt_entry, fat_fd);
if (rc != RC_OK)
goto error;
fat_file_close(parent_loc->mt_entry, fat_fd);
13a010: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
13a015: eb c5 jmp 139fdc <msdos_creat_node+0x24c><== NOT EXECUTED
13a017: 90 nop <== 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)) &&
13a018: 8b 52 24 mov 0x24(%edx),%edx <== NOT EXECUTED
13a01b: 85 d2 test %edx,%edx <== NOT EXECUTED
13a01d: 0f 85 1b ff ff ff jne 139f3e <msdos_creat_node+0x1ae><== NOT EXECUTED
(fs_info->fat.vol.type & FAT_FAT32))
13a023: 8b 8d 40 ff ff ff mov -0xc0(%ebp),%ecx <== NOT EXECUTED
13a029: f6 41 0a 04 testb $0x4,0xa(%ecx) <== NOT EXECUTED
13a02d: 0f 84 0b ff ff ff je 139f3e <msdos_creat_node+0x1ae><== NOT EXECUTED
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
13a033: 66 c7 45 8a 00 00 movw $0x0,-0x76(%ebp) <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
13a039: 66 c7 45 84 00 00 movw $0x0,-0x7c(%ebp) <== 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)) &&
13a03f: e9 0e ff ff ff jmp 139f52 <msdos_creat_node+0x1c2><== NOT EXECUTED
* node to the newly created
*/
/*
* read the original directory entry
*/
sec = fat_cluster_num_to_sector_num(parent_loc->mt_entry,
13a044: 8b 4d 1c mov 0x1c(%ebp),%ecx <== NOT EXECUTED
13a047: 8b 51 20 mov 0x20(%ecx),%edx <== NOT EXECUTED
13a04a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13a04d: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED
13a050: 89 85 38 ff ff ff mov %eax,-0xc8(%ebp) <== 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;
13a056: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
13a059: 85 d2 test %edx,%edx <== NOT EXECUTED
13a05b: 0f 85 97 00 00 00 jne 13a0f8 <msdos_creat_node+0x368><== NOT EXECUTED
13a061: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
13a065: 0f 84 8d 00 00 00 je 13a0f8 <msdos_creat_node+0x368><== NOT EXECUTED
return fs_info->vol.rdir_loc;
13a06b: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
link_fd->dir_pos.sname.cln);
sec += (link_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
13a06e: 8b 45 1c mov 0x1c(%ebp),%eax <== NOT EXECUTED
13a071: 8b 40 24 mov 0x24(%eax),%eax <== NOT EXECUTED
13a074: 89 85 3c ff ff ff mov %eax,-0xc4(%ebp) <== NOT EXECUTED
byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
ret = _fat_block_read(parent_loc->mt_entry,
13a07a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a07d: 8d 45 90 lea -0x70(%ebp),%eax <== NOT EXECUTED
13a080: 50 push %eax <== NOT EXECUTED
13a081: 6a 20 push $0x20 <== NOT EXECUTED
13a083: 8b 8d 40 ff ff ff mov -0xc0(%ebp),%ecx <== NOT EXECUTED
13a089: 0f b7 01 movzwl (%ecx),%eax <== NOT EXECUTED
13a08c: 48 dec %eax <== NOT EXECUTED
13a08d: 23 85 3c ff ff ff and -0xc4(%ebp),%eax <== NOT EXECUTED
13a093: 50 push %eax <== NOT EXECUTED
13a094: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
13a098: 8b 85 3c ff ff ff mov -0xc4(%ebp),%eax <== NOT EXECUTED
13a09e: d3 e8 shr %cl,%eax <== NOT EXECUTED
13a0a0: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
13a0a3: 50 push %eax <== NOT EXECUTED
13a0a4: ff b5 38 ff ff ff pushl -0xc8(%ebp) <== NOT EXECUTED
13a0aa: e8 d5 1b ff ff call 12bc84 <_fat_block_read> <== NOT EXECUTED
sec, byte, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
link_node);
if (ret < 0) {
13a0af: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13a0b2: 85 c0 test %eax,%eax <== NOT EXECUTED
13a0b4: 0f 88 e6 fd ff ff js 139ea0 <msdos_creat_node+0x110><== NOT EXECUTED
return -1;
}
/*
* copy various attributes
*/
*MSDOS_DIR_ATTR(short_node) =*MSDOS_DIR_ATTR(link_node);
13a0ba: 8a 45 9b mov -0x65(%ebp),%al <== NOT EXECUTED
*MSDOS_DIR_CRT_TIME_TENTH(short_node)=*MSDOS_DIR_CRT_TIME_TENTH(link_node);
13a0bd: 8a 55 9d mov -0x63(%ebp),%dl <== NOT EXECUTED
13a0c0: 88 55 bd mov %dl,-0x43(%ebp) <== NOT EXECUTED
*MSDOS_DIR_CRT_TIME(short_node) =*MSDOS_DIR_CRT_TIME(link_node);
13a0c3: 66 8b 55 9e mov -0x62(%ebp),%dx <== NOT EXECUTED
13a0c7: 66 89 55 be mov %dx,-0x42(%ebp) <== NOT EXECUTED
*MSDOS_DIR_CRT_DATE(short_node) =*MSDOS_DIR_CRT_DATE(link_node);
13a0cb: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
13a0ce: 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);
13a0d2: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
13a0d5: 89 17 mov %edx,(%edi) <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(short_node) =
13a0d7: 66 8b 55 aa mov -0x56(%ebp),%dx <== NOT EXECUTED
13a0db: 66 89 55 ca mov %dx,-0x36(%ebp) <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(link_node);
*MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =
13a0df: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
13a0e2: 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;
13a0e6: 83 c8 20 or $0x20,%eax <== NOT EXECUTED
13a0e9: 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);
13a0ec: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13a0ef: 66 89 45 c2 mov %ax,-0x3e(%ebp) <== NOT EXECUTED
13a0f3: e9 76 fd ff ff jmp 139e6e <msdos_creat_node+0xde> <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
13a0f8: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
13a0fb: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
13a0ff: d3 e2 shl %cl,%edx <== NOT EXECUTED
13a101: 03 50 30 add 0x30(%eax),%edx <== NOT EXECUTED
13a104: e9 65 ff ff ff jmp 13a06e <msdos_creat_node+0x2de><== NOT EXECUTED
/* write first cluster num of a new directory to disk */
rc = msdos_set_first_cluster_num(parent_loc->mt_entry, fat_fd);
if (rc != RC_OK)
goto error;
fat_file_close(parent_loc->mt_entry, fat_fd);
13a109: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13a10c: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13a10f: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13a112: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
13a115: e8 7e 10 ff ff call 12b198 <fat_file_close> <== NOT EXECUTED
13a11a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a11d: e9 72 fd ff ff jmp 139e94 <msdos_creat_node+0x104><== NOT EXECUTED
00144c50 <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)
{
144c50: 55 push %ebp <== NOT EXECUTED
144c51: 89 e5 mov %esp,%ebp <== NOT EXECUTED
144c53: 57 push %edi <== NOT EXECUTED
144c54: 56 push %esi <== NOT EXECUTED
144c55: 53 push %ebx <== NOT EXECUTED
144c56: 8b 7d 08 mov 0x8(%ebp),%edi <== 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) {
144c59: 0f b7 05 44 2a 17 00 movzwl 0x172a44,%eax <== NOT EXECUTED
144c60: 39 f8 cmp %edi,%eax <== NOT EXECUTED
144c62: 0f 84 dc 00 00 00 je 144d44 <msdos_date_dos2unix+0xf4><== NOT EXECUTED
lastdosdate = dd;
144c68: 66 89 3d 44 2a 17 00 mov %di,0x172a44 <== NOT EXECUTED
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
144c6f: 89 fb mov %edi,%ebx <== NOT EXECUTED
144c71: 81 e3 00 fe 00 00 and $0xfe00,%ebx <== NOT EXECUTED
for (y = 0; y < year; y++)
144c77: c1 eb 09 shr $0x9,%ebx <== NOT EXECUTED
144c7a: 0f 84 cb 00 00 00 je 144d4b <msdos_date_dos2unix+0xfb><== NOT EXECUTED
144c80: 31 c0 xor %eax,%eax <== NOT EXECUTED
144c82: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
144c84: ba 6e 01 00 00 mov $0x16e,%edx <== NOT EXECUTED
144c89: eb 13 jmp 144c9e <msdos_date_dos2unix+0x4e><== NOT EXECUTED
144c8b: 90 nop <== NOT EXECUTED
days += y & 0x03 ? 365 : 366;
144c8c: 89 ca mov %ecx,%edx <== NOT EXECUTED
144c8e: 83 e2 03 and $0x3,%edx <== NOT EXECUTED
144c91: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED
144c94: 19 d2 sbb %edx,%edx <== NOT EXECUTED
144c96: f7 d2 not %edx <== NOT EXECUTED
144c98: 81 c2 6e 01 00 00 add $0x16e,%edx <== NOT EXECUTED
144c9e: 01 d0 add %edx,%eax <== 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++)
144ca0: 41 inc %ecx <== NOT EXECUTED
144ca1: 39 cb cmp %ecx,%ebx <== NOT EXECUTED
144ca3: 77 e7 ja 144c8c <msdos_date_dos2unix+0x3c><== NOT EXECUTED
days += y & 0x03 ? 365 : 366;
months = year & 0x03 ? regyear : leapyear;
144ca5: 83 e3 03 and $0x3,%ebx <== NOT EXECUTED
144ca8: 0f 84 8a 00 00 00 je 144d38 <msdos_date_dos2unix+0xe8><== NOT EXECUTED
144cae: bb b8 da 16 00 mov $0x16dab8,%ebx <== NOT EXECUTED
/*
* Prevent going from 0 to 0xffffffff in the following
* loop.
*/
month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;
144cb3: 89 fe mov %edi,%esi <== NOT EXECUTED
144cb5: 81 e6 e0 01 00 00 and $0x1e0,%esi <== NOT EXECUTED
if (month == 0) {
144cbb: c1 ee 05 shr $0x5,%esi <== NOT EXECUTED
144cbe: 74 13 je 144cd3 <msdos_date_dos2unix+0x83><== NOT EXECUTED
month = 1;
}
for (m = 0; m < month - 1; m++)
144cc0: 4e dec %esi <== NOT EXECUTED
144cc1: 74 10 je 144cd3 <msdos_date_dos2unix+0x83><== NOT EXECUTED
144cc3: 31 d2 xor %edx,%edx <== NOT EXECUTED
144cc5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
days += months[m];
144cc8: 0f b7 0c 53 movzwl (%ebx,%edx,2),%ecx <== NOT EXECUTED
144ccc: 01 c8 add %ecx,%eax <== NOT EXECUTED
*/
month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;
if (month == 0) {
month = 1;
}
for (m = 0; m < month - 1; m++)
144cce: 42 inc %edx <== NOT EXECUTED
144ccf: 39 f2 cmp %esi,%edx <== NOT EXECUTED
144cd1: 72 f5 jb 144cc8 <msdos_date_dos2unix+0x78><== NOT EXECUTED
days += months[m];
days += ((dd & MSDOS_DD_DAY_MASK) >> MSDOS_DD_DAY_SHIFT) - 1;
lastseconds = (days + DAYSTO1980) * SECONDSPERDAY;
144cd3: 83 e7 1f and $0x1f,%edi <== NOT EXECUTED
144cd6: 8d 54 38 ff lea -0x1(%eax,%edi,1),%edx <== NOT EXECUTED
144cda: 8d 04 92 lea (%edx,%edx,4),%eax <== NOT EXECUTED
144cdd: 8d 04 82 lea (%edx,%eax,4),%eax <== NOT EXECUTED
144ce0: 8d 04 c2 lea (%edx,%eax,8),%eax <== NOT EXECUTED
144ce3: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
144ce6: 29 d0 sub %edx,%eax <== NOT EXECUTED
144ce8: c1 e0 07 shl $0x7,%eax <== NOT EXECUTED
144ceb: 05 00 a6 ce 12 add $0x12cea600,%eax <== NOT EXECUTED
144cf0: a3 48 2a 17 00 mov %eax,0x172a48 <== NOT EXECUTED
144cf5: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
144cf8: 81 e2 00 f8 00 00 and $0xf800,%edx <== NOT EXECUTED
144cfe: c1 ea 0b shr $0xb,%edx <== NOT EXECUTED
144d01: 8d 14 52 lea (%edx,%edx,2),%edx <== NOT EXECUTED
144d04: 8d 0c 92 lea (%edx,%edx,4),%ecx <== NOT EXECUTED
144d07: 89 ca mov %ecx,%edx <== NOT EXECUTED
144d09: c1 e2 04 shl $0x4,%edx <== NOT EXECUTED
144d0c: 29 ca sub %ecx,%edx <== NOT EXECUTED
144d0e: c1 e2 04 shl $0x4,%edx <== NOT EXECUTED
144d11: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
144d14: 81 e1 e0 07 00 00 and $0x7e0,%ecx <== NOT EXECUTED
144d1a: c1 e9 05 shr $0x5,%ecx <== NOT EXECUTED
144d1d: 8d 0c 49 lea (%ecx,%ecx,2),%ecx <== NOT EXECUTED
144d20: 8d 0c 89 lea (%ecx,%ecx,4),%ecx <== NOT EXECUTED
144d23: 8d 0c 8a lea (%edx,%ecx,4),%ecx <== NOT EXECUTED
144d26: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
144d29: 83 e2 1f and $0x1f,%edx <== NOT EXECUTED
144d2c: 8d 14 11 lea (%ecx,%edx,1),%edx <== NOT EXECUTED
144d2f: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
}
return seconds + lastseconds;
}
144d32: 5b pop %ebx <== NOT EXECUTED
144d33: 5e pop %esi <== NOT EXECUTED
144d34: 5f pop %edi <== NOT EXECUTED
144d35: c9 leave <== NOT EXECUTED
144d36: c3 ret <== NOT EXECUTED
144d37: 90 nop <== NOT EXECUTED
lastdosdate = dd;
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
for (y = 0; y < year; y++)
days += y & 0x03 ? 365 : 366;
months = year & 0x03 ? regyear : leapyear;
144d38: bb d0 da 16 00 mov $0x16dad0,%ebx <== NOT EXECUTED
144d3d: e9 71 ff ff ff jmp 144cb3 <msdos_date_dos2unix+0x63><== NOT EXECUTED
144d42: 66 90 xchg %ax,%ax <== 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) {
144d44: a1 48 2a 17 00 mov 0x172a48,%eax <== NOT EXECUTED
144d49: eb aa jmp 144cf5 <msdos_date_dos2unix+0xa5><== NOT EXECUTED
lastdosdate = dd;
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
for (y = 0; y < year; y++)
144d4b: 31 c0 xor %eax,%eax <== NOT EXECUTED
144d4d: bb d0 da 16 00 mov $0x16dad0,%ebx <== NOT EXECUTED
144d52: e9 5c ff ff ff jmp 144cb3 <msdos_date_dos2unix+0x63><== NOT EXECUTED
00144b2c <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)
{
144b2c: 55 push %ebp <== NOT EXECUTED
144b2d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
144b2f: 57 push %edi <== NOT EXECUTED
144b30: 56 push %esi <== NOT EXECUTED
144b31: 53 push %ebx <== NOT EXECUTED
144b32: 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) {
144b35: 39 0d 38 2a 17 00 cmp %ecx,0x172a38 <== NOT EXECUTED
144b3b: 0f 84 f3 00 00 00 je 144c34 <msdos_date_unix2dos+0x108><== NOT EXECUTED
lasttime = t;
144b41: 89 0d 38 2a 17 00 mov %ecx,0x172a38 <== NOT EXECUTED
lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)
144b47: be 89 88 88 88 mov $0x88888889,%esi <== NOT EXECUTED
144b4c: 89 c8 mov %ecx,%eax <== NOT EXECUTED
144b4e: f7 e6 mul %esi <== NOT EXECUTED
144b50: 89 d3 mov %edx,%ebx <== NOT EXECUTED
144b52: c1 eb 05 shr $0x5,%ebx <== NOT EXECUTED
144b55: 89 d8 mov %ebx,%eax <== NOT EXECUTED
144b57: f7 e6 mul %esi <== NOT EXECUTED
144b59: c1 ea 05 shr $0x5,%edx <== NOT EXECUTED
144b5c: 8d 04 52 lea (%edx,%edx,2),%eax <== NOT EXECUTED
144b5f: 8d 04 80 lea (%eax,%eax,4),%eax <== NOT EXECUTED
144b62: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
144b65: 29 c3 sub %eax,%ebx <== NOT EXECUTED
144b67: c1 e3 05 shl $0x5,%ebx <== NOT EXECUTED
144b6a: ba c5 b3 a2 91 mov $0x91a2b3c5,%edx <== NOT EXECUTED
144b6f: 89 c8 mov %ecx,%eax <== NOT EXECUTED
144b71: f7 e2 mul %edx <== NOT EXECUTED
144b73: c1 ea 0b shr $0xb,%edx <== NOT EXECUTED
144b76: be 18 00 00 00 mov $0x18,%esi <== NOT EXECUTED
144b7b: 89 d0 mov %edx,%eax <== NOT EXECUTED
144b7d: 31 d2 xor %edx,%edx <== NOT EXECUTED
144b7f: f7 f6 div %esi <== NOT EXECUTED
144b81: c1 e2 0b shl $0xb,%edx <== NOT EXECUTED
144b84: 01 d3 add %edx,%ebx <== NOT EXECUTED
144b86: 66 be 3c 00 mov $0x3c,%si <== NOT EXECUTED
144b8a: 89 c8 mov %ecx,%eax <== NOT EXECUTED
144b8c: 31 d2 xor %edx,%edx <== NOT EXECUTED
144b8e: f7 f6 div %esi <== NOT EXECUTED
144b90: d1 ea shr %edx <== NOT EXECUTED
144b92: 01 d3 add %edx,%ebx <== NOT EXECUTED
144b94: 66 89 1d 42 2a 17 00 mov %bx,0x172a42 <== 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);
144b9b: ba 07 45 2e c2 mov $0xc22e4507,%edx <== NOT EXECUTED
144ba0: 89 c8 mov %ecx,%eax <== NOT EXECUTED
144ba2: f7 e2 mul %edx <== NOT EXECUTED
144ba4: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
if (days != lastday) {
144ba7: 3b 15 3c 2a 17 00 cmp 0x172a3c,%edx <== NOT EXECUTED
144bad: 0f 84 91 00 00 00 je 144c44 <msdos_date_unix2dos+0x118><== NOT EXECUTED
lastday = days;
144bb3: 89 15 3c 2a 17 00 mov %edx,0x172a3c <== NOT EXECUTED
144bb9: be b2 07 00 00 mov $0x7b2,%esi <== NOT EXECUTED
144bbe: eb 03 jmp 144bc3 <msdos_date_unix2dos+0x97><== NOT EXECUTED
for (year = 1970;; year++) {
inc = year & 0x03 ? 365 : 366;
if (days < inc)
break;
days -= inc;
144bc0: 29 c2 sub %eax,%edx <== NOT EXECUTED
* and month stuff.
*/
days = t / (SECONDSPERDAY);
if (days != lastday) {
lastday = days;
for (year = 1970;; year++) {
144bc2: 46 inc %esi <== NOT EXECUTED
inc = year & 0x03 ? 365 : 366;
144bc3: 89 f1 mov %esi,%ecx <== NOT EXECUTED
144bc5: 83 e1 03 and $0x3,%ecx <== NOT EXECUTED
144bc8: 83 f9 01 cmp $0x1,%ecx <== NOT EXECUTED
144bcb: 19 c0 sbb %eax,%eax <== NOT EXECUTED
144bcd: f7 d0 not %eax <== NOT EXECUTED
144bcf: 05 6e 01 00 00 add $0x16e,%eax <== NOT EXECUTED
if (days < inc)
144bd4: 39 c2 cmp %eax,%edx <== NOT EXECUTED
144bd6: 73 e8 jae 144bc0 <msdos_date_unix2dos+0x94><== NOT EXECUTED
break;
days -= inc;
}
months = year & 0x03 ? regyear : leapyear;
144bd8: 85 c9 test %ecx,%ecx <== NOT EXECUTED
144bda: 74 50 je 144c2c <msdos_date_unix2dos+0x100><== NOT EXECUTED
144bdc: bf b8 da 16 00 mov $0x16dab8,%edi <== NOT EXECUTED
144be1: 31 c0 xor %eax,%eax <== NOT EXECUTED
144be3: 90 nop <== NOT EXECUTED
for (month = 0; month < 12; month++) {
if (days < months[month])
144be4: 0f b7 0c 47 movzwl (%edi,%eax,2),%ecx <== NOT EXECUTED
144be8: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
144bea: 77 08 ja 144bf4 <msdos_date_unix2dos+0xc8><== NOT EXECUTED
break;
days -= months[month];
144bec: 29 ca sub %ecx,%edx <== NOT EXECUTED
if (days < inc)
break;
days -= inc;
}
months = year & 0x03 ? regyear : leapyear;
for (month = 0; month < 12; month++) {
144bee: 40 inc %eax <== NOT EXECUTED
144bef: 83 f8 0c cmp $0xc,%eax <== NOT EXECUTED
144bf2: 75 f0 jne 144be4 <msdos_date_unix2dos+0xb8><== NOT EXECUTED
if (days < months[month])
break;
days -= months[month];
}
lastddate = ((days + 1) << MSDOS_DD_DAY_SHIFT)
144bf4: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
144bf7: 8d 54 10 21 lea 0x21(%eax,%edx,1),%edx <== NOT EXECUTED
144bfb: 66 89 15 40 2a 17 00 mov %dx,0x172a40 <== 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)
144c02: 81 fe bc 07 00 00 cmp $0x7bc,%esi <== NOT EXECUTED
144c08: 76 11 jbe 144c1b <msdos_date_unix2dos+0xef><== NOT EXECUTED
lastddate += (year - 1980) <<
144c0a: c1 e6 09 shl $0x9,%esi <== NOT EXECUTED
144c0d: 8d 94 16 00 88 ff ff lea -0x7800(%esi,%edx,1),%edx <== NOT EXECUTED
144c14: 66 89 15 40 2a 17 00 mov %dx,0x172a40 <== NOT EXECUTED
MSDOS_DD_YEAR_SHIFT;
}
}
*dtp = lastdtime;
144c1b: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
144c1e: 66 89 18 mov %bx,(%eax) <== NOT EXECUTED
*ddp = lastddate;
144c21: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
144c24: 66 89 10 mov %dx,(%eax) <== NOT EXECUTED
}
144c27: 5b pop %ebx <== NOT EXECUTED
144c28: 5e pop %esi <== NOT EXECUTED
144c29: 5f pop %edi <== NOT EXECUTED
144c2a: c9 leave <== NOT EXECUTED
144c2b: c3 ret <== NOT EXECUTED
inc = year & 0x03 ? 365 : 366;
if (days < inc)
break;
days -= inc;
}
months = year & 0x03 ? regyear : leapyear;
144c2c: bf d0 da 16 00 mov $0x16dad0,%edi <== NOT EXECUTED
144c31: eb ae jmp 144be1 <msdos_date_unix2dos+0xb5><== NOT EXECUTED
144c33: 90 nop <== 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) {
144c34: 66 8b 1d 42 2a 17 00 mov 0x172a42,%bx <== NOT EXECUTED
144c3b: 66 8b 15 40 2a 17 00 mov 0x172a40,%dx <== NOT EXECUTED
144c42: eb d7 jmp 144c1b <msdos_date_unix2dos+0xef><== 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);
if (days != lastday) {
144c44: 66 8b 15 40 2a 17 00 mov 0x172a40,%dx <== NOT EXECUTED
144c4b: eb ce jmp 144c1b <msdos_date_unix2dos+0xef><== NOT EXECUTED
00144e8c <msdos_dir_chmod>:
* RC_OK always
*/
int
msdos_dir_chmod(rtems_filesystem_location_info_t *pathloc,
mode_t mode)
{
144e8c: 55 push %ebp <== NOT EXECUTED
144e8d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return RC_OK;
}
144e8f: 31 c0 xor %eax,%eax <== NOT EXECUTED
144e91: c9 leave <== NOT EXECUTED
144e92: c3 ret <== NOT EXECUTED
001457e4 <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)
{
1457e4: 55 push %ebp <== NOT EXECUTED
1457e5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1457e7: 57 push %edi <== NOT EXECUTED
1457e8: 56 push %esi <== NOT EXECUTED
1457e9: 53 push %ebx <== NOT EXECUTED
1457ea: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
1457ed: 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;
1457f0: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
1457f3: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
1457f6: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
1457f9: 6a 00 push $0x0 <== NOT EXECUTED
1457fb: 6a 00 push $0x0 <== NOT EXECUTED
1457fd: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
145803: e8 f0 d6 fc ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
145808: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
14580b: 85 c0 test %eax,%eax <== NOT EXECUTED
14580d: 75 29 jne 145838 <msdos_dir_close+0x54> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
14580f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
145812: 57 push %edi <== NOT EXECUTED
145813: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
145816: e8 7d 59 fe ff call 12b198 <fat_file_close> <== NOT EXECUTED
14581b: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
14581d: 58 pop %eax <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rtems_semaphore_release(fs_info->vol_sema);
14581e: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
145824: e8 cb d7 fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
145829: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
14582c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
14582e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
145831: 5b pop %ebx <== NOT EXECUTED
145832: 5e pop %esi <== NOT EXECUTED
145833: 5f pop %edi <== NOT EXECUTED
145834: c9 leave <== NOT EXECUTED
145835: c3 ret <== NOT EXECUTED
145836: 66 90 xchg %ax,%ax <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
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 );
145838: e8 4f 0f 00 00 call 14678c <__errno> <== NOT EXECUTED
14583d: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
145843: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
145848: eb e2 jmp 14582c <msdos_dir_close+0x48> <== NOT EXECUTED
0013b7e8 <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
)
{
13b7e8: 55 push %ebp <== NOT EXECUTED
13b7e9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13b7eb: 57 push %edi <== NOT EXECUTED
13b7ec: 56 push %esi <== NOT EXECUTED
13b7ed: 53 push %ebx <== NOT EXECUTED
13b7ee: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
13b7f1: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13b7f4: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
13b7f7: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
uint32_t j = 0, i = 0;
/* dir is not empty */
*ret_val = false;
13b7fa: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13b7fd: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
13b800: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13b803: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
13b809: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
13b80c: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
13b813: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13b816: 0f b7 00 movzwl (%eax),%eax <== NOT EXECUTED
13b819: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
while ((ret = fat_file_read(mt_entry, fat_fd, j * fs_info->fat.vol.bps,
13b81c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b81f: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
13b822: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13b825: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13b828: 0f af 45 d8 imul -0x28(%ebp),%eax <== NOT EXECUTED
13b82c: 50 push %eax <== NOT EXECUTED
13b82d: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13b830: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13b833: e8 5c f7 fe ff call 12af94 <fat_file_read> <== NOT EXECUTED
13b838: 89 c7 mov %eax,%edi <== NOT EXECUTED
13b83a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13b83d: 85 c0 test %eax,%eax <== NOT EXECUTED
13b83f: 0f 84 b1 00 00 00 je 13b8f6 <msdos_dir_is_empty+0x10e><== NOT EXECUTED
fs_info->fat.vol.bps,
fs_info->cl_buf)) != FAT_EOF)
{
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
13b845: 83 ff 1f cmp $0x1f,%edi <== NOT EXECUTED
13b848: 0f 8e b0 00 00 00 jle 13b8fe <msdos_dir_is_empty+0x116><== NOT EXECUTED
return -1;
assert(ret == fs_info->fat.vol.bps);
13b84e: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13b851: 0f b7 00 movzwl (%eax),%eax <== NOT EXECUTED
13b854: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
13b857: 39 c7 cmp %eax,%edi <== NOT EXECUTED
13b859: 0f 85 a6 00 00 00 jne 13b905 <msdos_dir_is_empty+0x11d><== NOT EXECUTED
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (i = 0;
13b85f: 85 c0 test %eax,%eax <== NOT EXECUTED
13b861: 0f 84 81 00 00 00 je 13b8e8 <msdos_dir_is_empty+0x100><== NOT EXECUTED
fs_info->cl_buf)) != FAT_EOF)
{
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
return -1;
assert(ret == fs_info->fat.vol.bps);
13b867: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13b86a: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
13b870: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
13b873: 89 c3 mov %eax,%ebx <== NOT EXECUTED
13b875: 31 f6 xor %esi,%esi <== NOT EXECUTED
13b877: 90 nop <== 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)) ==
13b878: 80 3b e5 cmpb $0xe5,(%ebx) <== NOT EXECUTED
13b87b: 74 47 je 13b8c4 <msdos_dir_is_empty+0xdc><== NOT EXECUTED
13b87d: 0f b6 43 0b movzbl 0xb(%ebx),%eax <== NOT EXECUTED
13b881: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
13b884: 83 f8 0f cmp $0xf,%eax <== NOT EXECUTED
13b887: 74 3b je 13b8c4 <msdos_dir_is_empty+0xdc><== 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,
13b889: 51 push %ecx <== NOT EXECUTED
13b88a: 6a 0b push $0xb <== NOT EXECUTED
13b88c: ff 35 64 da 16 00 pushl 0x16da64 <== NOT EXECUTED
13b892: 53 push %ebx <== NOT EXECUTED
13b893: e8 cc 0b 01 00 call 14c464 <strncmp> <== NOT EXECUTED
13b898: 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)) ==
13b89b: 85 c0 test %eax,%eax <== NOT EXECUTED
13b89d: 74 25 je 13b8c4 <msdos_dir_is_empty+0xdc><== 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)),
13b89f: 52 push %edx <== NOT EXECUTED
13b8a0: 6a 0b push $0xb <== NOT EXECUTED
13b8a2: ff 35 68 da 16 00 pushl 0x16da68 <== NOT EXECUTED
13b8a8: 53 push %ebx <== NOT EXECUTED
13b8a9: e8 b6 0b 01 00 call 14c464 <strncmp> <== NOT EXECUTED
13b8ae: 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)) ==
13b8b1: 85 c0 test %eax,%eax <== NOT EXECUTED
13b8b3: 74 0f je 13b8c4 <msdos_dir_is_empty+0xdc><== NOT EXECUTED
continue;
/*
* Nothing more to look at.
*/
if ((*MSDOS_DIR_NAME(entry)) ==
13b8b5: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
13b8b8: 74 1e je 13b8d8 <msdos_dir_is_empty+0xf0><== NOT EXECUTED
*/
return RC_OK;
}
j++;
}
*ret_val = true;
13b8ba: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
}
13b8bc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13b8bf: 5b pop %ebx <== NOT EXECUTED
13b8c0: 5e pop %esi <== NOT EXECUTED
13b8c1: 5f pop %edi <== NOT EXECUTED
13b8c2: c9 leave <== NOT EXECUTED
13b8c3: c3 ret <== 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)
13b8c4: 83 c6 20 add $0x20,%esi <== NOT EXECUTED
13b8c7: 83 c3 20 add $0x20,%ebx <== 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;
13b8ca: 39 f7 cmp %esi,%edi <== NOT EXECUTED
13b8cc: 77 aa ja 13b878 <msdos_dir_is_empty+0x90><== NOT EXECUTED
/*
* Short file name entries mean not empty.
*/
return RC_OK;
}
j++;
13b8ce: ff 45 d8 incl -0x28(%ebp) <== NOT EXECUTED
13b8d1: e9 46 ff ff ff jmp 13b81c <msdos_dir_is_empty+0x34><== NOT EXECUTED
13b8d6: 66 90 xchg %ax,%ax <== NOT EXECUTED
* Nothing more to look at.
*/
if ((*MSDOS_DIR_NAME(entry)) ==
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
{
*ret_val = true;
13b8d8: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13b8db: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
13b8de: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
j++;
}
*ret_val = true;
return RC_OK;
}
13b8e0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13b8e3: 5b pop %ebx <== NOT EXECUTED
13b8e4: 5e pop %esi <== NOT EXECUTED
13b8e5: 5f pop %edi <== NOT EXECUTED
13b8e6: c9 leave <== NOT EXECUTED
13b8e7: c3 ret <== NOT EXECUTED
*/
if ((*MSDOS_DIR_NAME(entry)) ==
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
{
*ret_val = true;
return RC_OK;
13b8e8: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13b8eb: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
13b8f1: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
13b8f4: eb d8 jmp 13b8ce <msdos_dir_is_empty+0xe6><== NOT EXECUTED
*/
return RC_OK;
}
j++;
}
*ret_val = true;
13b8f6: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13b8f9: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
13b8fc: eb bc jmp 13b8ba <msdos_dir_is_empty+0xd2><== NOT EXECUTED
while ((ret = fat_file_read(mt_entry, fat_fd, j * fs_info->fat.vol.bps,
fs_info->fat.vol.bps,
fs_info->cl_buf)) != FAT_EOF)
{
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
13b8fe: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
13b903: eb b7 jmp 13b8bc <msdos_dir_is_empty+0xd4><== NOT EXECUTED
return -1;
assert(ret == fs_info->fat.vol.bps);
13b905: 68 33 79 16 00 push $0x167933 <== NOT EXECUTED
13b90a: 68 2c 7a 16 00 push $0x167a2c <== NOT EXECUTED
13b90f: 68 b5 03 00 00 push $0x3b5 <== NOT EXECUTED
13b914: 68 80 79 16 00 push $0x167980 <== NOT EXECUTED
13b919: e8 c6 28 fd ff call 10e1e4 <__assert_func> <== NOT EXECUTED
00144e94 <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)
{
144e94: 55 push %ebp <== NOT EXECUTED
144e95: 89 e5 mov %esp,%ebp <== NOT EXECUTED
144e97: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
switch (whence)
144e9a: 83 7d 14 01 cmpl $0x1,0x14(%ebp) <== NOT EXECUTED
144e9e: 76 18 jbe 144eb8 <msdos_dir_lseek+0x24> <== 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 );
144ea0: e8 e7 18 00 00 call 14678c <__errno> <== NOT EXECUTED
144ea5: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
144eab: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
144eb0: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
break;
}
return RC_OK;
}
144eb5: c9 leave <== NOT EXECUTED
144eb6: c3 ret <== NOT EXECUTED
144eb7: 90 nop <== NOT EXECUTED
* set apropriately).
*/
rtems_off64_t
msdos_dir_lseek(rtems_libio_t *iop, rtems_off64_t offset, int whence)
{
switch (whence)
144eb8: 31 c0 xor %eax,%eax <== NOT EXECUTED
144eba: 31 d2 xor %edx,%edx <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return RC_OK;
}
144ebc: c9 leave <== NOT EXECUTED
144ebd: c3 ret <== NOT EXECUTED
0014584c <msdos_dir_open>:
* set apropriately)
*/
int
msdos_dir_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
14584c: 55 push %ebp <== NOT EXECUTED
14584d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
14584f: 57 push %edi <== NOT EXECUTED
145850: 56 push %esi <== NOT EXECUTED
145851: 53 push %ebx <== NOT EXECUTED
145852: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
145855: 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;
145858: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
14585b: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
14585e: 8b 73 38 mov 0x38(%ebx),%esi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
145861: 6a 00 push $0x0 <== NOT EXECUTED
145863: 6a 00 push $0x0 <== NOT EXECUTED
145865: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
14586b: e8 88 d6 fc ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
145870: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
145873: 85 c0 test %eax,%eax <== NOT EXECUTED
145875: 75 3d jne 1458b4 <msdos_dir_open+0x68> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
rc = fat_file_reopen(fat_fd);
145877: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14587a: 56 push %esi <== NOT EXECUTED
14587b: e8 b4 4e fe ff call 12a734 <fat_file_reopen> <== NOT EXECUTED
145880: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
145882: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
145885: 85 c0 test %eax,%eax <== NOT EXECUTED
145887: 75 0e jne 145897 <msdos_dir_open+0x4b> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
iop->offset = 0;
145889: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
145890: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
145897: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14589a: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
1458a0: e8 4f d7 fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
1458a5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1458a8: 89 f0 mov %esi,%eax <== NOT EXECUTED
1458aa: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1458ad: 5b pop %ebx <== NOT EXECUTED
1458ae: 5e pop %esi <== NOT EXECUTED
1458af: 5f pop %edi <== NOT EXECUTED
1458b0: c9 leave <== NOT EXECUTED
1458b1: c3 ret <== NOT EXECUTED
1458b2: 66 90 xchg %ax,%ax <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
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 );
1458b4: e8 d3 0e 00 00 call 14678c <__errno> <== NOT EXECUTED
1458b9: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1458bf: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
1458c4: eb e2 jmp 1458a8 <msdos_dir_open+0x5c> <== NOT EXECUTED
00145108 <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)
{
145108: 55 push %ebp <== NOT EXECUTED
145109: 89 e5 mov %esp,%ebp <== NOT EXECUTED
14510b: 57 push %edi <== NOT EXECUTED
14510c: 56 push %esi <== NOT EXECUTED
14510d: 53 push %ebx <== NOT EXECUTED
14510e: 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;
145114: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
145117: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED
14511a: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
14511d: 89 85 b4 fe ff ff mov %eax,-0x14c(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
145123: 8b 4a 38 mov 0x38(%edx),%ecx <== NOT EXECUTED
145126: 89 8d 88 fe ff ff mov %ecx,-0x178(%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);
14512c: 8b 5a 0c mov 0xc(%edx),%ebx <== NOT EXECUTED
14512f: 8b 72 10 mov 0x10(%edx),%esi <== 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) &&
145132: 83 79 20 01 cmpl $0x1,0x20(%ecx) <== NOT EXECUTED
145136: 0f 84 0a 05 00 00 je 145646 <msdos_dir_read+0x53e> <== NOT EXECUTED
14513c: 8b 85 b4 fe ff ff mov -0x14c(%ebp),%eax <== NOT EXECUTED
145142: 0f b7 40 06 movzwl 0x6(%eax),%eax <== NOT EXECUTED
145146: 89 85 84 fe ff ff mov %eax,-0x17c(%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,
14514c: 8b 95 b4 fe ff ff mov -0x14c(%ebp),%edx <== NOT EXECUTED
145152: 8b 82 94 00 00 00 mov 0x94(%edx),%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;
145158: 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;
14515f: 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,
145166: 52 push %edx <== NOT EXECUTED
145167: 6a 00 push $0x0 <== NOT EXECUTED
145169: 6a 00 push $0x0 <== NOT EXECUTED
14516b: 50 push %eax <== NOT EXECUTED
14516c: e8 87 dd fc ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
145171: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
145174: 85 c0 test %eax,%eax <== NOT EXECUTED
145176: 0f 85 4b 06 00 00 jne 1457c7 <msdos_dir_read+0x6bf> <== 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);
count = (count / sizeof(struct dirent)) * sizeof(struct dirent);
14517c: ba f1 f0 f0 f0 mov $0xf0f0f0f1,%edx <== NOT EXECUTED
145181: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
145184: f7 e2 mul %edx <== NOT EXECUTED
145186: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
145189: 89 d0 mov %edx,%eax <== NOT EXECUTED
14518b: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
14518e: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
145191: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED
145194: 89 95 98 fe ff ff mov %edx,-0x168(%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)
14519a: 85 d2 test %edx,%edx <== NOT EXECUTED
14519c: 0f 84 38 06 00 00 je 1457da <msdos_dir_read+0x6d2> <== 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);
1451a2: 6a 00 push $0x0 <== NOT EXECUTED
1451a4: 68 10 01 00 00 push $0x110 <== NOT EXECUTED
1451a9: 56 push %esi <== NOT EXECUTED
1451aa: 53 push %ebx <== NOT EXECUTED
1451ab: e8 b4 6f 01 00 call 15c164 <__divdi3> <== NOT EXECUTED
1451b0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1451b3: 89 85 ac fe ff ff mov %eax,-0x154(%ebp) <== NOT EXECUTED
1451b9: c7 85 8c fe ff ff 00 movl $0x0,-0x174(%ebp) <== NOT EXECUTED
1451c0: 00 00 00
1451c3: c7 85 a4 fe ff ff 00 movl $0x0,-0x15c(%ebp) <== NOT EXECUTED
1451ca: 00 00 00
1451cd: c6 85 97 fe ff ff 00 movb $0x0,-0x169(%ebp) <== NOT EXECUTED
1451d4: c7 85 a8 fe ff ff ff movl $0xffffffff,-0x158(%ebp) <== NOT EXECUTED
1451db: ff ff ff
1451de: c7 85 9c fe ff ff 00 movl $0x0,-0x164(%ebp) <== NOT EXECUTED
1451e5: 00 00 00
* fit in the directory entry name field.
*/
lfn_entries--;
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
1451e8: 8d 95 c0 fe ff ff lea -0x140(%ebp),%edx <== NOT EXECUTED
1451ee: 89 95 70 fe ff ff mov %edx,-0x190(%ebp) <== NOT EXECUTED
* also the checksum of the short entry.
*/
lfn_entries = (*MSDOS_DIR_ENTRY_TYPE(entry) &
MSDOS_LAST_LONG_ENTRY_MASK);
lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
1451f4: 8d 8d d0 fe ff ff lea -0x130(%ebp),%ecx <== NOT EXECUTED
1451fa: 89 8d 74 fe ff ff mov %ecx,-0x18c(%ebp) <== 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),
145200: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
145203: 8b 85 b4 fe ff ff mov -0x14c(%ebp),%eax <== NOT EXECUTED
145209: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
14520f: ff b5 84 fe ff ff pushl -0x17c(%ebp) <== NOT EXECUTED
145215: ff b5 8c fe ff ff pushl -0x174(%ebp) <== NOT EXECUTED
14521b: ff b5 88 fe ff ff pushl -0x178(%ebp) <== NOT EXECUTED
145221: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
145224: ff 72 28 pushl 0x28(%edx) <== NOT EXECUTED
145227: e8 68 5d fe ff call 12af94 <fat_file_read> <== NOT EXECUTED
14522c: 89 85 b0 fe ff ff mov %eax,-0x150(%ebp) <== NOT EXECUTED
bts2rd, fs_info->cl_buf);
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
145232: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
145235: 83 f8 1f cmp $0x1f,%eax <== NOT EXECUTED
145238: 0f 8e 53 05 00 00 jle 145791 <msdos_dir_read+0x689> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
}
for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + i;
14523e: 8b 8d b4 fe ff ff mov -0x14c(%ebp),%ecx <== NOT EXECUTED
145244: 8b 99 98 00 00 00 mov 0x98(%ecx),%ebx <== NOT EXECUTED
/*
* Is this directory from here on empty ?
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
14524a: 8a 03 mov (%ebx),%al <== NOT EXECUTED
14524c: 84 c0 test %al,%al <== NOT EXECUTED
14524e: 0f 84 5c 03 00 00 je 1455b0 <msdos_dir_read+0x4a8> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
}
for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + i;
145254: 89 de mov %ebx,%esi <== NOT EXECUTED
145256: 31 d2 xor %edx,%edx <== NOT EXECUTED
145258: eb 2f jmp 145289 <msdos_dir_read+0x181> <== NOT EXECUTED
14525a: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* Is the directory entry empty */
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) == MSDOS_THIS_DIR_ENTRY_EMPTY)
continue;
/* Is the directory entry empty a volume label */
if (((*MSDOS_DIR_ATTR(entry)) & MSDOS_ATTR_VOLUME_ID) &&
14525c: 83 e1 3f and $0x3f,%ecx <== NOT EXECUTED
14525f: 83 f9 0f cmp $0xf,%ecx <== NOT EXECUTED
145262: 74 74 je 1452d8 <msdos_dir_read+0x1d0> <== NOT EXECUTED
{
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)
145264: 83 c2 20 add $0x20,%edx <== NOT EXECUTED
145267: 3b 95 b0 fe ff ff cmp -0x150(%ebp),%edx <== NOT EXECUTED
14526d: 73 58 jae 1452c7 <msdos_dir_read+0x1bf> <== NOT EXECUTED
{
char* entry = (char*) fs_info->cl_buf + i;
14526f: 89 d6 mov %edx,%esi <== NOT EXECUTED
145271: 8b 8d b4 fe ff ff mov -0x14c(%ebp),%ecx <== NOT EXECUTED
145277: 03 b1 98 00 00 00 add 0x98(%ecx),%esi <== NOT EXECUTED
/*
* Is this directory from here on empty ?
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
14527d: 89 f3 mov %esi,%ebx <== NOT EXECUTED
14527f: 8a 06 mov (%esi),%al <== NOT EXECUTED
145281: 84 c0 test %al,%al <== NOT EXECUTED
145283: 0f 84 27 03 00 00 je 1455b0 <msdos_dir_read+0x4a8> <== 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)
145289: 3c e5 cmp $0xe5,%al <== NOT EXECUTED
14528b: 74 d7 je 145264 <msdos_dir_read+0x15c> <== NOT EXECUTED
continue;
/* Is the directory entry empty a volume label */
if (((*MSDOS_DIR_ATTR(entry)) & MSDOS_ATTR_VOLUME_ID) &&
14528d: 0f b6 4b 0b movzbl 0xb(%ebx),%ecx <== NOT EXECUTED
145291: f6 c1 08 test $0x8,%cl <== NOT EXECUTED
145294: 75 c6 jne 14525c <msdos_dir_read+0x154> <== 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) ==
145296: 83 e1 3f and $0x3f,%ecx <== NOT EXECUTED
145299: 83 f9 0f cmp $0xf,%ecx <== NOT EXECUTED
14529c: 74 3a je 1452d8 <msdos_dir_read+0x1d0> <== NOT EXECUTED
fat_dir_pos_t dir_pos;
/*
* Skip active entries until get the entry to start from.
*/
if (start)
14529e: 8b bd ac fe ff ff mov -0x154(%ebp),%edi <== NOT EXECUTED
1452a4: 85 ff test %edi,%edi <== NOT EXECUTED
1452a6: 0f 84 8c 00 00 00 je 145338 <msdos_dir_read+0x230> <== NOT EXECUTED
{
lfn_start = FAT_FILE_SHORT_NAME;
start--;
1452ac: ff 8d ac fe ff ff decl -0x154(%ebp) <== NOT EXECUTED
1452b2: c7 85 a8 fe ff ff ff movl $0xffffffff,-0x158(%ebp) <== NOT EXECUTED
1452b9: 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)
1452bc: 83 c2 20 add $0x20,%edx <== NOT EXECUTED
1452bf: 3b 95 b0 fe ff ff cmp -0x150(%ebp),%edx <== NOT EXECUTED
1452c5: 72 a8 jb 14526f <msdos_dir_read+0x167> <== NOT EXECUTED
1452c7: 8b 95 84 fe ff ff mov -0x17c(%ebp),%edx <== NOT EXECUTED
1452cd: 01 95 8c fe ff ff add %edx,-0x174(%ebp) <== NOT EXECUTED
1452d3: e9 28 ff ff ff jmp 145200 <msdos_dir_read+0xf8> <== NOT EXECUTED
int q;
/*
* Is this is the first entry of a LFN ?
*/
if (lfn_start == FAT_FILE_SHORT_NAME)
1452d8: 83 bd a8 fe ff ff ff cmpl $0xffffffff,-0x158(%ebp) <== NOT EXECUTED
1452df: 0f 84 33 02 00 00 je 145518 <msdos_dir_read+0x410> <== NOT EXECUTED
1452e5: 8b 8d a4 fe ff ff mov -0x15c(%ebp),%ecx <== NOT EXECUTED
1452eb: 89 8d a0 fe ff ff mov %ecx,-0x160(%ebp) <== NOT EXECUTED
1452f1: 8a 85 97 fe ff ff mov -0x169(%ebp),%al <== NOT EXECUTED
1452f7: 88 85 90 fe ff ff mov %al,-0x170(%ebp) <== 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) &
1452fd: 0f b6 0b movzbl (%ebx),%ecx <== NOT EXECUTED
145300: 83 e1 3f and $0x3f,%ecx <== NOT EXECUTED
145303: 89 8d a4 fe ff ff mov %ecx,-0x15c(%ebp) <== NOT EXECUTED
145309: 8b 85 a0 fe ff ff mov -0x160(%ebp),%eax <== NOT EXECUTED
14530f: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
145311: 0f 84 71 02 00 00 je 145588 <msdos_dir_read+0x480> <== NOT EXECUTED
145317: 89 85 a4 fe ff ff mov %eax,-0x15c(%ebp) <== NOT EXECUTED
14531d: 8a 8d 90 fe ff ff mov -0x170(%ebp),%cl <== NOT EXECUTED
145323: 88 8d 97 fe ff ff mov %cl,-0x169(%ebp) <== NOT EXECUTED
145329: c7 85 a8 fe ff ff ff movl $0xffffffff,-0x158(%ebp) <== NOT EXECUTED
145330: ff ff ff
145333: e9 2c ff ff ff jmp 145264 <msdos_dir_read+0x15c> <== 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,
145338: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14533b: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
14533e: 50 push %eax <== NOT EXECUTED
14533f: ff b5 8c fe ff ff pushl -0x174(%ebp) <== NOT EXECUTED
145345: 6a 01 push $0x1 <== NOT EXECUTED
145347: ff b5 88 fe ff ff pushl -0x178(%ebp) <== NOT EXECUTED
14534d: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
145350: ff 71 28 pushl 0x28(%ecx) <== NOT EXECUTED
145353: 89 95 80 fe ff ff mov %edx,-0x180(%ebp) <== NOT EXECUTED
145359: e8 7a 56 fe ff call 12a9d8 <fat_file_ioctl> <== NOT EXECUTED
j * bts2rd, &cur_cln);
if (rc != RC_OK)
14535e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
145361: 85 c0 test %eax,%eax <== NOT EXECUTED
145363: 8b 95 80 fe ff ff mov -0x180(%ebp),%edx <== NOT EXECUTED
145369: 0f 85 62 03 00 00 jne 1456d1 <msdos_dir_read+0x5c9> <== 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;
14536f: c7 45 d8 ff ff ff ff movl $0xffffffff,-0x28(%ebp) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
145376: 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;
14537d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
145380: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
dir_pos.sname.ofs = i;
145383: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
rc = fat_file_open(iop->pathinfo.mt_entry, &dir_pos, &tmp_fat_fd);
145386: 51 push %ecx <== NOT EXECUTED
145387: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
14538a: 51 push %ecx <== NOT EXECUTED
14538b: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
14538e: 50 push %eax <== NOT EXECUTED
14538f: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
145392: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED
145395: 89 95 80 fe ff ff mov %edx,-0x180(%ebp) <== NOT EXECUTED
14539b: e8 b8 5e fe ff call 12b258 <fat_file_open> <== NOT EXECUTED
if (rc != RC_OK)
1453a0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1453a3: 85 c0 test %eax,%eax <== NOT EXECUTED
1453a5: 8b 95 80 fe ff ff mov -0x180(%ebp),%edx <== NOT EXECUTED
1453ab: 0f 85 43 03 00 00 jne 1456f4 <msdos_dir_read+0x5ec> <== 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;
1453b1: 8b 8d 9c fe ff ff mov -0x164(%ebp),%ecx <== NOT EXECUTED
1453b7: 89 8d c4 fe ff ff mov %ecx,-0x13c(%ebp) <== NOT EXECUTED
1453bd: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp) <== NOT EXECUTED
1453c4: 00 00 00
tmp_dirent.d_reclen = sizeof(struct dirent);
1453c7: 66 c7 85 cc fe ff ff movw $0x110,-0x134(%ebp) <== NOT EXECUTED
1453ce: 10 01
tmp_dirent.d_ino = tmp_fat_fd->ino;
1453d0: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1453d3: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
1453d6: 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)
1453dc: 83 bd a8 fe ff ff ff cmpl $0xffffffff,-0x158(%ebp) <== NOT EXECUTED
1453e3: 74 41 je 145426 <msdos_dir_read+0x31e> <== NOT EXECUTED
1453e5: 31 c0 xor %eax,%eax <== NOT EXECUTED
1453e7: 31 ff xor %edi,%edi <== NOT EXECUTED
1453e9: c6 85 90 fe ff ff 00 movb $0x0,-0x170(%ebp) <== NOT EXECUTED
1453f0: 89 f9 mov %edi,%ecx <== NOT EXECUTED
1453f2: 88 8d a0 fe ff ff mov %cl,-0x160(%ebp) <== NOT EXECUTED
1453f8: 89 df mov %ebx,%edi <== NOT EXECUTED
1453fa: 31 db xor %ebx,%ebx <== NOT EXECUTED
1453fc: eb 0c jmp 14540a <msdos_dir_read+0x302> <== NOT EXECUTED
1453fe: 66 90 xchg %ax,%ax <== 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;
145400: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
145402: 83 e1 01 and $0x1,%ecx <== NOT EXECUTED
145405: f7 d9 neg %ecx <== NOT EXECUTED
145407: 83 e1 80 and $0xffffff80,%ecx <== NOT EXECUTED
14540a: d0 eb shr %bl <== NOT EXECUTED
14540c: 02 0c 07 add (%edi,%eax,1),%cl <== NOT EXECUTED
14540f: 8d 1c 19 lea (%ecx,%ebx,1),%ebx <== NOT EXECUTED
{
uint8_t cs = 0;
uint8_t* p = (uint8_t*) entry;
int i;
for (i = 0; i < 11; i++, p++)
145412: 40 inc %eax <== NOT EXECUTED
145413: 83 f8 0b cmp $0xb,%eax <== NOT EXECUTED
145416: 75 e8 jne 145400 <msdos_dir_read+0x2f8> <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entries || (lfn_checksum != cs))
145418: 8b 85 a4 fe ff ff mov -0x15c(%ebp),%eax <== NOT EXECUTED
14541e: 85 c0 test %eax,%eax <== NOT EXECUTED
145420: 0f 84 36 01 00 00 je 14555c <msdos_dir_read+0x454> <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
145426: c7 85 a8 fe ff ff 08 movl $0x8,-0x158(%ebp) <== NOT EXECUTED
14542d: 00 00 00
145430: b8 08 00 00 00 mov $0x8,%eax <== NOT EXECUTED
145435: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
const char *src_tmp;
/*
* find last non-blank character of base name
*/
for ((i = MSDOS_SHORT_BASE_LEN ,
145438: 80 7c 06 ff 20 cmpb $0x20,-0x1(%esi,%eax,1) <== NOT EXECUTED
14543d: 0f 85 2c 02 00 00 jne 14566f <msdos_dir_read+0x567> <== NOT EXECUTED
145443: 48 dec %eax <== NOT EXECUTED
145444: 75 f2 jne 145438 <msdos_dir_read+0x330> <== NOT EXECUTED
145446: 89 85 a8 fe ff ff mov %eax,-0x158(%ebp) <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
14544c: 8d 85 d0 fe ff ff lea -0x130(%ebp),%eax <== NOT EXECUTED
145452: 66 90 xchg %ax,%ax <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
}
/*
* find last non-blank character of extension
*/
for ((i = MSDOS_SHORT_EXT_LEN ,
145454: 80 7e 0a 20 cmpb $0x20,0xa(%esi) <== NOT EXECUTED
145458: 0f 85 2c 03 00 00 jne 14578a <msdos_dir_read+0x682> <== NOT EXECUTED
src_tmp = src + MSDOS_SHORT_BASE_LEN+MSDOS_SHORT_EXT_LEN-1);
((i > 0) &&
(*src_tmp == ' '));
i--,src_tmp--)
14545e: 8d 4e 09 lea 0x9(%esi),%ecx <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
}
/*
* find last non-blank character of extension
*/
for ((i = MSDOS_SHORT_EXT_LEN ,
145461: 80 7e 09 20 cmpb $0x20,0x9(%esi) <== NOT EXECUTED
145465: 0f 85 a7 02 00 00 jne 145712 <msdos_dir_read+0x60a> <== NOT EXECUTED
14546b: 80 79 ff 20 cmpb $0x20,-0x1(%ecx) <== NOT EXECUTED
14546f: 0f 85 48 03 00 00 jne 1457bd <msdos_dir_read+0x6b5> <== NOT EXECUTED
while (i-- > 0) {
*dst++ = tolower((unsigned char)(*src_tmp++));
len++;
}
}
*dst = '\0'; /* terminate string */
145475: 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(
145478: 8b 85 a8 fe ff ff mov -0x158(%ebp),%eax <== NOT EXECUTED
14547e: 66 89 85 ce fe ff ff mov %ax,-0x132(%ebp) <== NOT EXECUTED
145485: c7 85 a8 fe ff ff ff movl $0xffffffff,-0x158(%ebp) <== NOT EXECUTED
14548c: ff ff ff
else
{
tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);
}
memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
14548f: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
145492: 03 85 9c fe ff ff add -0x164(%ebp),%eax <== NOT EXECUTED
145498: b9 44 00 00 00 mov $0x44,%ecx <== NOT EXECUTED
14549d: 89 c7 mov %eax,%edi <== NOT EXECUTED
14549f: 8b b5 70 fe ff ff mov -0x190(%ebp),%esi <== NOT EXECUTED
1454a5: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
iop->offset = iop->offset + sizeof(struct dirent);
1454a7: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
1454aa: 81 41 0c 10 01 00 00 addl $0x110,0xc(%ecx) <== NOT EXECUTED
1454b1: 83 51 10 00 adcl $0x0,0x10(%ecx) <== 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);
1454b5: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1454b8: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1454bb: ff 71 28 pushl 0x28(%ecx) <== NOT EXECUTED
1454be: 89 95 80 fe ff ff mov %edx,-0x180(%ebp) <== NOT EXECUTED
1454c4: e8 cf 5c fe ff call 12b198 <fat_file_close> <== NOT EXECUTED
if (rc != RC_OK)
1454c9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1454cc: 85 c0 test %eax,%eax <== NOT EXECUTED
1454ce: 8b 95 80 fe ff ff mov -0x180(%ebp),%edx <== NOT EXECUTED
1454d4: 0f 85 f7 01 00 00 jne 1456d1 <msdos_dir_read+0x5c9> <== NOT EXECUTED
}
memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
iop->offset = iop->offset + sizeof(struct dirent);
cmpltd += (sizeof(struct dirent));
1454da: 81 85 9c fe ff ff 10 addl $0x110,-0x164(%ebp) <== NOT EXECUTED
1454e1: 01 00 00
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
}
if (count <= 0)
1454e4: 81 ad 98 fe ff ff 10 subl $0x110,-0x168(%ebp) <== NOT EXECUTED
1454eb: 01 00 00
1454ee: 0f 85 70 fd ff ff jne 145264 <msdos_dir_read+0x15c> <== 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)
1454f4: 8b bd 9c fe ff ff mov -0x164(%ebp),%edi <== NOT EXECUTED
break;
}
j++;
}
rtems_semaphore_release(fs_info->vol_sema);
1454fa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1454fd: 8b 8d b4 fe ff ff mov -0x14c(%ebp),%ecx <== NOT EXECUTED
145503: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
145509: e8 e6 da fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return cmpltd;
14550e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
145511: e9 b7 00 00 00 jmp 1455cd <msdos_dir_read+0x4c5> <== NOT EXECUTED
145516: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (lfn_start == FAT_FILE_SHORT_NAME)
{
/*
* The first entry must have the last long entry flag set.
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry) &
145518: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
14551b: a8 40 test $0x40,%al <== NOT EXECUTED
14551d: 0f 84 41 fd ff ff je 145264 <msdos_dir_read+0x15c> <== NOT EXECUTED
continue;
/*
* Remember the start location of the long file name.
*/
lfn_start =
145523: 8b 8d 8c fe ff ff mov -0x174(%ebp),%ecx <== NOT EXECUTED
145529: 01 d1 add %edx,%ecx <== NOT EXECUTED
14552b: c1 e9 05 shr $0x5,%ecx <== NOT EXECUTED
14552e: 89 8d a8 fe ff ff mov %ecx,-0x158(%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) &
145534: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
145537: 89 85 a0 fe ff ff mov %eax,-0x160(%ebp) <== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK);
lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
14553d: 8a 43 0d mov 0xd(%ebx),%al <== NOT EXECUTED
145540: 88 85 90 fe ff ff mov %al,-0x170(%ebp) <== NOT EXECUTED
memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
145546: b9 00 01 00 00 mov $0x100,%ecx <== NOT EXECUTED
14554b: 31 c0 xor %eax,%eax <== NOT EXECUTED
14554d: 8b bd 74 fe ff ff mov -0x18c(%ebp),%edi <== NOT EXECUTED
145553: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
145555: e9 a3 fd ff ff jmp 1452fd <msdos_dir_read+0x1f5> <== NOT EXECUTED
14555a: 66 90 xchg %ax,%ax <== NOT EXECUTED
int i;
for (i = 0; i < 11; i++, p++)
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entries || (lfn_checksum != cs))
14555c: 38 9d 97 fe ff ff cmp %bl,-0x169(%ebp) <== NOT EXECUTED
145562: 0f 85 be fe ff ff jne 145426 <msdos_dir_read+0x31e> <== 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);
145568: 31 c0 xor %eax,%eax <== NOT EXECUTED
14556a: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
14556f: 8b bd 74 fe ff ff mov -0x18c(%ebp),%edi <== NOT EXECUTED
145575: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
145577: f7 d1 not %ecx <== NOT EXECUTED
145579: 49 dec %ecx <== NOT EXECUTED
14557a: 66 89 8d ce fe ff ff mov %cx,-0x132(%ebp) <== NOT EXECUTED
145581: e9 09 ff ff ff jmp 14548f <msdos_dir_read+0x387> <== NOT EXECUTED
145586: 66 90 xchg %ax,%ax <== NOT EXECUTED
* be orphaned entries depending on the history of the
* disk.
*/
if ((lfn_entries != (*MSDOS_DIR_ENTRY_TYPE(entry) &
MSDOS_LAST_LONG_ENTRY_MASK)) ||
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
145588: 8a 5b 0d mov 0xd(%ebx),%bl <== NOT EXECUTED
14558b: 88 9d 97 fe ff ff mov %bl,-0x169(%ebp) <== 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) &
145591: 8a 85 90 fe ff ff mov -0x170(%ebp),%al <== NOT EXECUTED
145597: 38 c3 cmp %al,%bl <== NOT EXECUTED
145599: 74 3c je 1455d7 <msdos_dir_read+0x4cf> <== NOT EXECUTED
14559b: 88 85 97 fe ff ff mov %al,-0x169(%ebp) <== NOT EXECUTED
1455a1: c7 85 a8 fe ff ff ff movl $0xffffffff,-0x158(%ebp) <== NOT EXECUTED
1455a8: ff ff ff
1455ab: e9 b4 fc ff ff jmp 145264 <msdos_dir_read+0x15c> <== NOT EXECUTED
* Is this directory from here on empty ?
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
{
rtems_semaphore_release(fs_info->vol_sema);
1455b0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1455b3: 8b 85 b4 fe ff ff mov -0x14c(%ebp),%eax <== NOT EXECUTED
1455b9: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
1455bf: e8 30 da fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return cmpltd;
1455c4: 8b bd 9c fe ff ff mov -0x164(%ebp),%edi <== NOT EXECUTED
1455ca: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
j++;
}
rtems_semaphore_release(fs_info->vol_sema);
return cmpltd;
}
1455cd: 89 f8 mov %edi,%eax <== NOT EXECUTED
1455cf: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1455d2: 5b pop %ebx <== NOT EXECUTED
1455d3: 5e pop %esi <== NOT EXECUTED
1455d4: 5f pop %edi <== NOT EXECUTED
1455d5: c9 leave <== NOT EXECUTED
1455d6: c3 ret <== 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--;
1455d7: 8b 8d a0 fe ff ff mov -0x160(%ebp),%ecx <== NOT EXECUTED
1455dd: 49 dec %ecx <== NOT EXECUTED
1455de: 89 8d a4 fe ff ff mov %ecx,-0x15c(%ebp) <== NOT EXECUTED
p = entry + 1;
1455e4: 46 inc %esi <== NOT EXECUTED
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
1455e5: 8d 04 49 lea (%ecx,%ecx,2),%eax <== NOT EXECUTED
1455e8: 8d 3c 81 lea (%ecx,%eax,4),%edi <== NOT EXECUTED
1455eb: 8d 8c 3d d0 fe ff ff lea -0x130(%ebp,%edi,1),%ecx <== NOT EXECUTED
1455f2: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
1455f7: 89 95 a0 fe ff ff mov %edx,-0x160(%ebp) <== NOT EXECUTED
1455fd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
145600: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED
for (q = 0; q < MSDOS_LFN_LEN_PER_ENTRY; q++)
{
if (o >= (sizeof(tmp_dirent.d_name) - 1))
145603: 81 ff fe 00 00 00 cmp $0xfe,%edi <== NOT EXECUTED
145609: 77 30 ja 14563b <msdos_dir_read+0x533> <== NOT EXECUTED
break;
tmp_dirent.d_name[o++] = *p;
14560b: 8a 1e mov (%esi),%bl <== NOT EXECUTED
14560d: 88 19 mov %bl,(%ecx) <== NOT EXECUTED
14560f: 47 inc %edi <== NOT EXECUTED
if (*p == '\0')
145610: 80 3e 00 cmpb $0x0,(%esi) <== NOT EXECUTED
145613: 74 26 je 14563b <msdos_dir_read+0x533> <== NOT EXECUTED
break;
switch (q)
145615: 83 fa 04 cmp $0x4,%edx <== NOT EXECUTED
145618: 74 1a je 145634 <msdos_dir_read+0x52c> <== NOT EXECUTED
14561a: 83 fa 0a cmp $0xa,%edx <== NOT EXECUTED
14561d: 74 0d je 14562c <msdos_dir_read+0x524> <== 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++)
14561f: 83 f8 0c cmp $0xc,%eax <== NOT EXECUTED
145622: 7f 17 jg 14563b <msdos_dir_read+0x533> <== NOT EXECUTED
break;
case 10:
p += 4;
break;
default:
p += 2;
145624: 83 c6 02 add $0x2,%esi <== NOT EXECUTED
* fit in the directory entry name field.
*/
lfn_entries--;
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
145627: 40 inc %eax <== NOT EXECUTED
145628: 41 inc %ecx <== NOT EXECUTED
145629: eb d5 jmp 145600 <msdos_dir_read+0x4f8> <== NOT EXECUTED
14562b: 90 nop <== NOT EXECUTED
{
case 4:
p += 5;
break;
case 10:
p += 4;
14562c: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
* fit in the directory entry name field.
*/
lfn_entries--;
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
14562f: 40 inc %eax <== NOT EXECUTED
145630: 41 inc %ecx <== NOT EXECUTED
145631: eb cd jmp 145600 <msdos_dir_read+0x4f8> <== NOT EXECUTED
145633: 90 nop <== NOT EXECUTED
break;
switch (q)
{
case 4:
p += 5;
145634: 83 c6 05 add $0x5,%esi <== NOT EXECUTED
* fit in the directory entry name field.
*/
lfn_entries--;
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
145637: 40 inc %eax <== NOT EXECUTED
145638: 41 inc %ecx <== NOT EXECUTED
145639: eb c5 jmp 145600 <msdos_dir_read+0x4f8> <== NOT EXECUTED
14563b: 8b 95 a0 fe ff ff mov -0x160(%ebp),%edx <== NOT EXECUTED
145641: e9 1e fc ff ff jmp 145264 <msdos_dir_read+0x15c> <== 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) &&
145646: 8b 79 24 mov 0x24(%ecx),%edi <== NOT EXECUTED
145649: 85 ff test %edi,%edi <== NOT EXECUTED
14564b: 0f 85 eb fa ff ff jne 14513c <msdos_dir_read+0x34> <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?
145651: 8b 95 b4 fe ff ff mov -0x14c(%ebp),%edx <== NOT EXECUTED
145657: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
14565b: 0f 84 db fa ff ff je 14513c <msdos_dir_read+0x34> <== 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) &&
145661: 8b 49 18 mov 0x18(%ecx),%ecx <== NOT EXECUTED
145664: 89 8d 84 fe ff ff mov %ecx,-0x17c(%ebp) <== NOT EXECUTED
14566a: e9 dd fa ff ff jmp 14514c <msdos_dir_read+0x44> <== NOT EXECUTED
14566f: 89 85 a8 fe ff ff mov %eax,-0x158(%ebp) <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
145675: 85 c0 test %eax,%eax <== NOT EXECUTED
145677: 0f 8e cf fd ff ff jle 14544c <msdos_dir_read+0x344> <== 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)
14567d: 8d bd d0 fe ff ff lea -0x130(%ebp),%edi <== NOT EXECUTED
145683: 03 bd a8 fe ff ff add -0x158(%ebp),%edi <== NOT EXECUTED
145689: 89 f3 mov %esi,%ebx <== NOT EXECUTED
14568b: 8d 85 d0 fe ff ff lea -0x130(%ebp),%eax <== NOT EXECUTED
145691: 89 b5 a0 fe ff ff mov %esi,-0x160(%ebp) <== NOT EXECUTED
145697: eb 0c jmp 1456a5 <msdos_dir_read+0x59d> <== NOT EXECUTED
145699: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
*dst++ = tolower((unsigned char)(*src_tmp++));
14569c: 89 f1 mov %esi,%ecx <== NOT EXECUTED
14569e: 88 08 mov %cl,(%eax) <== NOT EXECUTED
1456a0: 40 inc %eax <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
1456a1: 39 f8 cmp %edi,%eax <== NOT EXECUTED
1456a3: 74 21 je 1456c6 <msdos_dir_read+0x5be> <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
1456a5: 8a 0b mov (%ebx),%cl <== NOT EXECUTED
1456a7: 43 inc %ebx <== NOT EXECUTED
1456a8: 0f b6 f1 movzbl %cl,%esi <== NOT EXECUTED
1456ab: 8b 0d e8 da 16 00 mov 0x16dae8,%ecx <== NOT EXECUTED
1456b1: 0f be 4c 31 01 movsbl 0x1(%ecx,%esi,1),%ecx <== NOT EXECUTED
1456b6: 83 e1 03 and $0x3,%ecx <== NOT EXECUTED
1456b9: 49 dec %ecx <== NOT EXECUTED
1456ba: 75 e0 jne 14569c <msdos_dir_read+0x594> <== NOT EXECUTED
1456bc: 8d 4e 20 lea 0x20(%esi),%ecx <== NOT EXECUTED
1456bf: 88 08 mov %cl,(%eax) <== NOT EXECUTED
1456c1: 40 inc %eax <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
1456c2: 39 f8 cmp %edi,%eax <== NOT EXECUTED
1456c4: 75 df jne 1456a5 <msdos_dir_read+0x59d> <== NOT EXECUTED
1456c6: 8b b5 a0 fe ff ff mov -0x160(%ebp),%esi <== NOT EXECUTED
1456cc: e9 83 fd ff ff jmp 145454 <msdos_dir_read+0x34c> <== NOT EXECUTED
1456d1: 89 c7 mov %eax,%edi <== NOT EXECUTED
/* inode number extracted, close fat-file */
rc = fat_file_close(iop->pathinfo.mt_entry, tmp_fat_fd);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
1456d3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1456d6: 8b 85 b4 fe ff ff mov -0x14c(%ebp),%eax <== NOT EXECUTED
1456dc: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
1456e2: e8 0d d9 fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
1456e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
j++;
}
rtems_semaphore_release(fs_info->vol_sema);
return cmpltd;
}
1456ea: 89 f8 mov %edi,%eax <== NOT EXECUTED
1456ec: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1456ef: 5b pop %ebx <== NOT EXECUTED
1456f0: 5e pop %esi <== NOT EXECUTED
1456f1: 5f pop %edi <== NOT EXECUTED
1456f2: c9 leave <== NOT EXECUTED
1456f3: c3 ret <== NOT EXECUTED
1456f4: 89 c7 mov %eax,%edi <== NOT EXECUTED
dir_pos.sname.cln = cur_cln;
dir_pos.sname.ofs = i;
rc = fat_file_open(iop->pathinfo.mt_entry, &dir_pos, &tmp_fat_fd);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
1456f6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1456f9: 8b 95 b4 fe ff ff mov -0x14c(%ebp),%edx <== NOT EXECUTED
1456ff: ff b2 94 00 00 00 pushl 0x94(%edx) <== NOT EXECUTED
145705: e8 ea d8 fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
14570a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
14570d: e9 bb fe ff ff jmp 1455cd <msdos_dir_read+0x4c5> <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
}
/*
* find last non-blank character of extension
*/
for ((i = MSDOS_SHORT_EXT_LEN ,
145712: bf 02 00 00 00 mov $0x2,%edi <== NOT EXECUTED
{};
/*
* extension is not empty
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
145717: c6 00 2e movb $0x2e,(%eax) <== NOT EXECUTED
14571a: 8d 48 01 lea 0x1(%eax),%ecx <== NOT EXECUTED
14571d: 89 8d a0 fe ff ff mov %ecx,-0x160(%ebp) <== NOT EXECUTED
len += i + 1; /* extension + dot */
145723: 8b 8d a8 fe ff ff mov -0x158(%ebp),%ecx <== NOT EXECUTED
145729: 8d 4c 39 01 lea 0x1(%ecx,%edi,1),%ecx <== NOT EXECUTED
14572d: 89 8d a8 fe ff ff mov %ecx,-0x158(%ebp) <== 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)
145733: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
145735: 89 95 90 fe ff ff mov %edx,-0x170(%ebp) <== NOT EXECUTED
14573b: eb 0c jmp 145749 <msdos_dir_read+0x641> <== NOT EXECUTED
14573d: 8d 76 00 lea 0x0(%esi),%esi <== 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++));
145740: 88 5c 08 01 mov %bl,0x1(%eax,%ecx,1) <== NOT EXECUTED
145744: 41 inc %ecx <== NOT EXECUTED
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
len += i + 1; /* extension + dot */
src_tmp = src + MSDOS_SHORT_BASE_LEN;
while (i-- > 0) {
145745: 39 f9 cmp %edi,%ecx <== NOT EXECUTED
145747: 74 22 je 14576b <msdos_dir_read+0x663> <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
145749: 0f b6 5c 0e 08 movzbl 0x8(%esi,%ecx,1),%ebx <== NOT EXECUTED
14574e: 8b 15 e8 da 16 00 mov 0x16dae8,%edx <== NOT EXECUTED
145754: 0f be 54 1a 01 movsbl 0x1(%edx,%ebx,1),%edx <== NOT EXECUTED
145759: 83 e2 03 and $0x3,%edx <== NOT EXECUTED
14575c: 4a dec %edx <== NOT EXECUTED
14575d: 75 e1 jne 145740 <msdos_dir_read+0x638> <== NOT EXECUTED
14575f: 83 c3 20 add $0x20,%ebx <== NOT EXECUTED
145762: 88 5c 08 01 mov %bl,0x1(%eax,%ecx,1) <== NOT EXECUTED
145766: 41 inc %ecx <== NOT EXECUTED
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
len += i + 1; /* extension + dot */
src_tmp = src + MSDOS_SHORT_BASE_LEN;
while (i-- > 0) {
145767: 39 f9 cmp %edi,%ecx <== NOT EXECUTED
145769: 75 de jne 145749 <msdos_dir_read+0x641> <== NOT EXECUTED
14576b: 8b 95 90 fe ff ff mov -0x170(%ebp),%edx <== NOT EXECUTED
145771: 8b 85 a0 fe ff ff mov -0x160(%ebp),%eax <== NOT EXECUTED
145777: 01 c8 add %ecx,%eax <== NOT EXECUTED
145779: 03 8d a8 fe ff ff add -0x158(%ebp),%ecx <== NOT EXECUTED
14577f: 89 8d a8 fe ff ff mov %ecx,-0x158(%ebp) <== NOT EXECUTED
145785: e9 eb fc ff ff jmp 145475 <msdos_dir_read+0x36d> <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
}
/*
* find last non-blank character of extension
*/
for ((i = MSDOS_SHORT_EXT_LEN ,
14578a: bf 03 00 00 00 mov $0x3,%edi <== NOT EXECUTED
14578f: eb 86 jmp 145717 <msdos_dir_read+0x60f> <== 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);
145791: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
145794: 8b 85 b4 fe ff ff mov -0x14c(%ebp),%eax <== NOT EXECUTED
14579a: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
1457a0: e8 4f d8 fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
1457a5: e8 e2 0f 00 00 call 14678c <__errno> <== NOT EXECUTED
1457aa: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1457b0: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
1457b5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1457b8: e9 10 fe ff ff jmp 1455cd <msdos_dir_read+0x4c5> <== 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);
1457bd: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
1457c2: e9 50 ff ff ff jmp 145717 <msdos_dir_read+0x60f> <== 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);
1457c7: e8 c0 0f 00 00 call 14678c <__errno> <== NOT EXECUTED
1457cc: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1457d2: 83 cf ff or $0xffffffff,%edi <== NOT EXECUTED
1457d5: e9 f3 fd ff ff jmp 1455cd <msdos_dir_read+0x4c5> <== NOT EXECUTED
{
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)
1457da: 31 ff xor %edi,%edi <== NOT EXECUTED
1457dc: e9 19 fd ff ff jmp 1454fa <msdos_dir_read+0x3f2> <== NOT EXECUTED
00144f64 <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)
{
144f64: 55 push %ebp <== NOT EXECUTED
144f65: 89 e5 mov %esp,%ebp <== NOT EXECUTED
144f67: 57 push %edi <== NOT EXECUTED
144f68: 56 push %esi <== NOT EXECUTED
144f69: 53 push %ebx <== NOT EXECUTED
144f6a: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
144f6d: 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;
144f70: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
144f73: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
144f76: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
144f79: 8b 3b mov (%ebx),%edi <== NOT EXECUTED
bool is_empty = false;
144f7b: c6 45 e7 00 movb $0x0,-0x19(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
144f7f: 6a 00 push $0x0 <== NOT EXECUTED
144f81: 6a 00 push $0x0 <== NOT EXECUTED
144f83: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
144f89: e8 6a df fc ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
144f8e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
144f91: 85 c0 test %eax,%eax <== NOT EXECUTED
144f93: 0f 85 c7 00 00 00 jne 145060 <msdos_dir_rmnod+0xfc> <== 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)
144f99: 83 7f 08 01 cmpl $0x1,0x8(%edi) <== NOT EXECUTED
144f9d: 0f 87 8d 00 00 00 ja 145030 <msdos_dir_rmnod+0xcc> <== NOT EXECUTED
}
/*
* You cannot remove a node that still has children
*/
rc = msdos_dir_is_empty(pathloc->mt_entry, fat_fd, &is_empty);
144fa3: 51 push %ecx <== NOT EXECUTED
144fa4: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
144fa7: 50 push %eax <== NOT EXECUTED
144fa8: 57 push %edi <== NOT EXECUTED
144fa9: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
144fac: e8 37 68 ff ff call 13b7e8 <msdos_dir_is_empty> <== NOT EXECUTED
144fb1: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
144fb3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
144fb6: 85 c0 test %eax,%eax <== NOT EXECUTED
144fb8: 75 56 jne 145010 <msdos_dir_rmnod+0xac> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (!is_empty)
144fba: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
144fbe: 0f 84 b0 00 00 00 je 145074 <msdos_dir_rmnod+0x110> <== NOT EXECUTED
}
/*
* You cannot remove the file system root node.
*/
if (pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access)
144fc4: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
144fc7: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
144fca: 3b 13 cmp (%ebx),%edx <== NOT EXECUTED
144fcc: 74 62 je 145030 <msdos_dir_rmnod+0xcc> <== 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,
144fce: 52 push %edx <== NOT EXECUTED
144fcf: 68 e5 00 00 00 push $0xe5 <== NOT EXECUTED
144fd4: 8d 57 20 lea 0x20(%edi),%edx <== NOT EXECUTED
144fd7: 52 push %edx <== NOT EXECUTED
144fd8: 50 push %eax <== NOT EXECUTED
144fd9: e8 62 6a ff ff call 13ba40 <msdos_set_first_char4file_name><== NOT EXECUTED
144fde: 89 c6 mov %eax,%esi <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
144fe0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
144fe3: 85 c0 test %eax,%eax <== NOT EXECUTED
144fe5: 75 29 jne 145010 <msdos_dir_rmnod+0xac> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
144fe7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
144fea: 57 push %edi <== NOT EXECUTED
144feb: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
144fee: e8 91 59 fe ff call 12a984 <fat_file_mark_removed> <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
144ff3: 58 pop %eax <== NOT EXECUTED
144ff4: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
144ff7: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
144ffd: e8 f2 df fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
145002: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
145005: 89 f0 mov %esi,%eax <== NOT EXECUTED
145007: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
14500a: 5b pop %ebx <== NOT EXECUTED
14500b: 5e pop %esi <== NOT EXECUTED
14500c: 5f pop %edi <== NOT EXECUTED
14500d: c9 leave <== NOT EXECUTED
14500e: c3 ret <== NOT EXECUTED
14500f: 90 nop <== NOT EXECUTED
/* mark file removed */
rc = msdos_set_first_char4file_name(pathloc->mt_entry, &fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
145010: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
145013: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
145016: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
14501c: e8 d3 df fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
145021: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
145024: 89 f0 mov %esi,%eax <== NOT EXECUTED
145026: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
145029: 5b pop %ebx <== NOT EXECUTED
14502a: 5e pop %esi <== NOT EXECUTED
14502b: 5f pop %edi <== NOT EXECUTED
14502c: c9 leave <== NOT EXECUTED
14502d: c3 ret <== NOT EXECUTED
14502e: 66 90 xchg %ax,%ax <== NOT EXECUTED
/*
* You cannot remove the file system root node.
*/
if (pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access)
{
rtems_semaphore_release(fs_info->vol_sema);
145030: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
145033: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
145036: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
14503c: e8 b3 df fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EBUSY);
145041: e8 46 17 00 00 call 14678c <__errno> <== NOT EXECUTED
145046: c7 00 10 00 00 00 movl $0x10,(%eax) <== NOT EXECUTED
14504c: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
145051: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
145054: 89 f0 mov %esi,%eax <== NOT EXECUTED
145056: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
145059: 5b pop %ebx <== NOT EXECUTED
14505a: 5e pop %esi <== NOT EXECUTED
14505b: 5f pop %edi <== NOT EXECUTED
14505c: c9 leave <== NOT EXECUTED
14505d: c3 ret <== NOT EXECUTED
14505e: 66 90 xchg %ax,%ax <== NOT EXECUTED
bool is_empty = false;
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);
145060: e8 27 17 00 00 call 14678c <__errno> <== NOT EXECUTED
145065: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
14506b: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
145070: eb 93 jmp 145005 <msdos_dir_rmnod+0xa1> <== NOT EXECUTED
145072: 66 90 xchg %ax,%ax <== NOT EXECUTED
return rc;
}
if (!is_empty)
{
rtems_semaphore_release(fs_info->vol_sema);
145074: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
145077: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
14507a: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
145080: e8 6f df fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTEMPTY);
145085: e8 02 17 00 00 call 14678c <__errno> <== NOT EXECUTED
14508a: c7 00 5a 00 00 00 movl $0x5a,(%eax) <== NOT EXECUTED
145090: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
145095: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
145098: e9 68 ff ff ff jmp 145005 <msdos_dir_rmnod+0xa1> <== NOT EXECUTED
00144ec0 <msdos_dir_stat>:
int
msdos_dir_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
144ec0: 55 push %ebp <== NOT EXECUTED
144ec1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
144ec3: 57 push %edi <== NOT EXECUTED
144ec4: 56 push %esi <== NOT EXECUTED
144ec5: 53 push %ebx <== NOT EXECUTED
144ec6: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
144ec9: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
144ecc: 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;
144ecf: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
144ed2: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
144ed5: 8b 38 mov (%eax),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
144ed7: 6a 00 push $0x0 <== NOT EXECUTED
144ed9: 6a 00 push $0x0 <== NOT EXECUTED
144edb: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
144ee1: e8 12 e0 fc ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
144ee6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
144ee9: 85 c0 test %eax,%eax <== NOT EXECUTED
144eeb: 75 63 jne 144f50 <msdos_dir_stat+0x90> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
buf->st_dev = fs_info->fat.vol.dev;
144eed: 8b 46 54 mov 0x54(%esi),%eax <== NOT EXECUTED
144ef0: 8b 56 58 mov 0x58(%esi),%edx <== NOT EXECUTED
144ef3: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
144ef5: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
buf->st_ino = fat_fd->ino;
144ef8: 8b 47 0c mov 0xc(%edi),%eax <== NOT EXECUTED
144efb: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
buf->st_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
144efe: c7 43 0c ff 41 00 00 movl $0x41ff,0xc(%ebx) <== NOT EXECUTED
buf->st_rdev = 0ll;
144f05: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
144f0c: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) <== NOT EXECUTED
buf->st_size = fat_fd->fat_file_size;
144f13: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
144f16: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
144f19: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
144f20: c1 e8 09 shr $0x9,%eax <== NOT EXECUTED
144f23: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
buf->st_blksize = fs_info->fat.vol.bps;
144f26: 0f b7 06 movzwl (%esi),%eax <== NOT EXECUTED
144f29: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
buf->st_mtime = fat_fd->mtime;
144f2c: 8b 47 40 mov 0x40(%edi),%eax <== NOT EXECUTED
144f2f: 89 43 30 mov %eax,0x30(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
144f32: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
144f35: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
144f3b: e8 b4 e0 fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
144f40: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
144f42: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
144f45: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
144f48: 5b pop %ebx <== NOT EXECUTED
144f49: 5e pop %esi <== NOT EXECUTED
144f4a: 5f pop %edi <== NOT EXECUTED
144f4b: c9 leave <== NOT EXECUTED
144f4c: c3 ret <== NOT EXECUTED
144f4d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
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);
144f50: e8 37 18 00 00 call 14678c <__errno> <== NOT EXECUTED
144f55: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
144f5b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
144f60: eb e3 jmp 144f45 <msdos_dir_stat+0x85> <== NOT EXECUTED
001450a0 <msdos_dir_sync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set apropriately).
*/
int
msdos_dir_sync(rtems_libio_t *iop)
{
1450a0: 55 push %ebp <== NOT EXECUTED
1450a1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1450a3: 57 push %edi <== NOT EXECUTED
1450a4: 56 push %esi <== NOT EXECUTED
1450a5: 53 push %ebx <== NOT EXECUTED
1450a6: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
1450a9: 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;
1450ac: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
1450af: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
1450b2: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
1450b5: 6a 00 push $0x0 <== NOT EXECUTED
1450b7: 6a 00 push $0x0 <== NOT EXECUTED
1450b9: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
1450bf: e8 34 de fc ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
1450c4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1450c7: 85 c0 test %eax,%eax <== NOT EXECUTED
1450c9: 75 29 jne 1450f4 <msdos_dir_sync+0x54> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
1450cb: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1450ce: 57 push %edi <== NOT EXECUTED
1450cf: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
1450d2: e8 9d 57 fe ff call 12a874 <fat_file_datasync> <== NOT EXECUTED
1450d7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
1450d9: 5f pop %edi <== NOT EXECUTED
1450da: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
1450e0: e8 0f df fc ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
1450e5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1450e8: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1450ea: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1450ed: 5b pop %ebx <== NOT EXECUTED
1450ee: 5e pop %esi <== NOT EXECUTED
1450ef: 5f pop %edi <== NOT EXECUTED
1450f0: c9 leave <== NOT EXECUTED
1450f1: c3 ret <== NOT EXECUTED
1450f2: 66 90 xchg %ax,%ax <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
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);
1450f4: e8 93 16 00 00 call 14678c <__errno> <== NOT EXECUTED
1450f9: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1450ff: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
145104: eb e2 jmp 1450e8 <msdos_dir_sync+0x48> <== NOT EXECUTED
0013a36c <msdos_eval4make>:
msdos_eval4make(
const char *path,
rtems_filesystem_location_info_t *pathloc,
const char **name
)
{
13a36c: 55 push %ebp <== NOT EXECUTED
13a36d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a36f: 57 push %edi <== NOT EXECUTED
13a370: 56 push %esi <== NOT EXECUTED
13a371: 53 push %ebx <== NOT EXECUTED
13a372: 83 ec 40 sub $0x40,%esp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
13a375: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13a378: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
13a37b: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
13a37e: 89 45 c0 mov %eax,-0x40(%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,
13a381: 6a 00 push $0x0 <== NOT EXECUTED
13a383: 6a 00 push $0x0 <== NOT EXECUTED
13a385: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13a38b: e8 68 8b fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13a390: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a393: 85 c0 test %eax,%eax <== NOT EXECUTED
13a395: 0f 85 75 02 00 00 jne 13a610 <msdos_eval4make+0x2a4> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
if (!pathloc->node_access)
13a39b: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
13a39e: 8b 01 mov (%ecx),%eax <== NOT EXECUTED
13a3a0: 85 c0 test %eax,%eax <== NOT EXECUTED
13a3a2: 0f 84 9c 01 00 00 je 13a544 <msdos_eval4make+0x1d8> <== NOT EXECUTED
goto err;
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
13a3a8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a3ab: 50 push %eax <== NOT EXECUTED
13a3ac: e8 83 03 ff ff call 12a734 <fat_file_reopen> <== NOT EXECUTED
13a3b1: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc != RC_OK)
13a3b3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a3b6: 85 c0 test %eax,%eax <== NOT EXECUTED
13a3b8: 75 72 jne 13a42c <msdos_eval4make+0xc0> <== NOT EXECUTED
13a3ba: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED
13a3c1: 8d 75 e4 lea -0x1c(%ebp),%esi <== NOT EXECUTED
goto err;
while (!done)
{
type = msdos_get_token(&path[i], strlen(&path[i]), &token, &token_len);
13a3c4: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13a3c7: 03 55 c4 add -0x3c(%ebp),%edx <== NOT EXECUTED
13a3ca: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
13a3cf: 89 d7 mov %edx,%edi <== NOT EXECUTED
13a3d1: 31 c0 xor %eax,%eax <== NOT EXECUTED
13a3d3: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
13a3d5: f7 d1 not %ecx <== NOT EXECUTED
13a3d7: 49 dec %ecx <== NOT EXECUTED
13a3d8: 56 push %esi <== NOT EXECUTED
13a3d9: 8d 7d e0 lea -0x20(%ebp),%edi <== NOT EXECUTED
13a3dc: 57 push %edi <== NOT EXECUTED
13a3dd: 51 push %ecx <== NOT EXECUTED
13a3de: 52 push %edx <== NOT EXECUTED
13a3df: e8 c8 18 00 00 call 13bcac <msdos_get_token> <== NOT EXECUTED
i += token_len;
13a3e4: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13a3e7: 01 55 c4 add %edx,-0x3c(%ebp) <== NOT EXECUTED
fat_fd = pathloc->node_access;
13a3ea: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
13a3ed: 8b 39 mov (%ecx),%edi <== NOT EXECUTED
switch (type)
13a3ef: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a3f2: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
13a3f5: 0f 84 09 01 00 00 je 13a504 <msdos_eval4make+0x198> <== NOT EXECUTED
13a3fb: 77 53 ja 13a450 <msdos_eval4make+0xe4> <== NOT EXECUTED
13a3fd: 85 c0 test %eax,%eax <== NOT EXECUTED
13a3ff: 75 c3 jne 13a3c4 <msdos_eval4make+0x58> <== NOT EXECUTED
done = true;
}
break;
case MSDOS_NO_MORE_PATH:
errno = EEXIST;
13a401: 89 7d bc mov %edi,-0x44(%ebp) <== NOT EXECUTED
13a404: e8 83 c3 00 00 call 14678c <__errno> <== NOT EXECUTED
13a409: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED
13a40f: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
rc = -1;
goto error;
13a414: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return RC_OK;
error:
fat_file_close(pathloc->mt_entry, fat_fd);
13a417: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13a41a: 52 push %edx <== NOT EXECUTED
13a41b: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13a41e: ff 70 10 pushl 0x10(%eax) <== NOT EXECUTED
13a421: e8 72 0d ff ff call 12b198 <fat_file_close> <== NOT EXECUTED
13a426: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a429: eb 03 jmp 13a42e <msdos_eval4make+0xc2> <== NOT EXECUTED
13a42b: 90 nop <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
if (rc != RC_OK)
13a42c: 89 c7 mov %eax,%edi <== NOT EXECUTED
error:
fat_file_close(pathloc->mt_entry, fat_fd);
err:
rtems_semaphore_release(fs_info->vol_sema);
13a42e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a431: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
13a434: ff b2 94 00 00 00 pushl 0x94(%edx) <== NOT EXECUTED
13a43a: e8 b5 8b fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
13a43f: 89 fb mov %edi,%ebx <== NOT EXECUTED
return rc;
13a441: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13a444: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13a446: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a449: 5b pop %ebx <== NOT EXECUTED
13a44a: 5e pop %esi <== NOT EXECUTED
13a44b: 5f pop %edi <== NOT EXECUTED
13a44c: c9 leave <== NOT EXECUTED
13a44d: c3 ret <== NOT EXECUTED
13a44e: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
type = msdos_get_token(&path[i], strlen(&path[i]), &token, &token_len);
i += token_len;
fat_fd = pathloc->node_access;
switch (type)
13a450: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
13a453: 74 23 je 13a478 <msdos_eval4make+0x10c> <== NOT EXECUTED
13a455: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
13a458: 0f 85 66 ff ff ff jne 13a3c4 <msdos_eval4make+0x58> <== NOT EXECUTED
case MSDOS_CURRENT_DIR:
break;
case MSDOS_INVALID_TOKEN:
errno = ENAMETOOLONG;
13a45e: 89 7d bc mov %edi,-0x44(%ebp) <== NOT EXECUTED
13a461: e8 26 c3 00 00 call 14678c <__errno> <== NOT EXECUTED
13a466: c7 00 5b 00 00 00 movl $0x5b,(%eax) <== NOT EXECUTED
13a46c: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
rc = -1;
goto error;
13a471: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
13a474: eb a1 jmp 13a417 <msdos_eval4make+0xab> <== NOT EXECUTED
13a476: 66 90 xchg %ax,%ax <== NOT EXECUTED
case MSDOS_NAME:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
13a478: 83 7f 10 01 cmpl $0x1,0x10(%edi) <== NOT EXECUTED
13a47c: 0f 85 a3 01 00 00 jne 13a625 <msdos_eval4make+0x2b9> <== 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);
13a482: 51 push %ecx <== NOT EXECUTED
13a483: 52 push %edx <== NOT EXECUTED
13a484: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13a487: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13a48a: e8 89 1d 00 00 call 13c218 <msdos_find_name> <== NOT EXECUTED
if (rc)
13a48f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a492: 85 c0 test %eax,%eax <== NOT EXECUTED
13a494: 0f 84 2a ff ff ff je 13a3c4 <msdos_eval4make+0x58> <== NOT EXECUTED
13a49a: 89 fa mov %edi,%edx <== NOT EXECUTED
{
if (rc != MSDOS_NAME_NOT_FOUND_ERR)
13a49c: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
13a4a1: 75 46 jne 13a4e9 <msdos_eval4make+0x17d> <== NOT EXECUTED
break;
}
}
*name = &path[i - token_len];
13a4a3: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
13a4a6: 2b 45 e4 sub -0x1c(%ebp),%eax <== NOT EXECUTED
13a4a9: 03 45 08 add 0x8(%ebp),%eax <== NOT EXECUTED
13a4ac: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
13a4af: 89 07 mov %eax,(%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++)
13a4b1: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13a4b4: 03 75 c4 add -0x3c(%ebp),%esi <== NOT EXECUTED
13a4b7: 8a 06 mov (%esi),%al <== NOT EXECUTED
13a4b9: 84 c0 test %al,%al <== NOT EXECUTED
13a4bb: 0f 84 17 01 00 00 je 13a5d8 <msdos_eval4make+0x26c> <== NOT EXECUTED
13a4c1: 89 d7 mov %edx,%edi <== NOT EXECUTED
13a4c3: eb 0f jmp 13a4d4 <msdos_eval4make+0x168> <== NOT EXECUTED
13a4c5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
13a4c8: 8a 46 01 mov 0x1(%esi),%al <== NOT EXECUTED
13a4cb: 46 inc %esi <== NOT EXECUTED
13a4cc: 84 c0 test %al,%al <== NOT EXECUTED
13a4ce: 0f 84 04 01 00 00 je 13a5d8 <msdos_eval4make+0x26c> <== NOT EXECUTED
{
if (!msdos_is_separator(path[i]))
13a4d4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a4d7: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
13a4da: 50 push %eax <== NOT EXECUTED
13a4db: e8 ec 5a fd ff call 10ffcc <rtems_filesystem_is_separator><== NOT EXECUTED
13a4e0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a4e3: 85 c0 test %eax,%eax <== NOT EXECUTED
13a4e5: 75 e1 jne 13a4c8 <msdos_eval4make+0x15c> <== NOT EXECUTED
13a4e7: 89 fa mov %edi,%edx <== NOT EXECUTED
{
errno = ENOENT;
13a4e9: 89 55 bc mov %edx,-0x44(%ebp) <== NOT EXECUTED
13a4ec: e8 9b c2 00 00 call 14678c <__errno> <== NOT EXECUTED
13a4f1: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
13a4f7: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
rc = -1;
goto error;
13a4fc: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
13a4ff: e9 13 ff ff ff jmp 13a417 <msdos_eval4make+0xab> <== NOT EXECUTED
{
case MSDOS_UP_DIR:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
13a504: 83 7f 10 01 cmpl $0x1,0x10(%edi) <== NOT EXECUTED
13a508: 0f 85 17 01 00 00 jne 13a625 <msdos_eval4make+0x2b9> <== NOT EXECUTED
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access)
13a50e: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
13a511: 8b 41 10 mov 0x10(%ecx),%eax <== NOT EXECUTED
}
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
13a514: 3b 78 1c cmp 0x1c(%eax),%edi <== NOT EXECUTED
13a517: 74 43 je 13a55c <msdos_eval4make+0x1f0> <== NOT EXECUTED
pathloc, name);
}
}
else
{
rc = msdos_find_name(pathloc, token, token_len);
13a519: 50 push %eax <== NOT EXECUTED
13a51a: 52 push %edx <== NOT EXECUTED
13a51b: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13a51e: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13a521: e8 f2 1c 00 00 call 13c218 <msdos_find_name> <== NOT EXECUTED
if (rc != RC_OK)
13a526: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a529: 85 c0 test %eax,%eax <== NOT EXECUTED
13a52b: 0f 84 93 fe ff ff je 13a3c4 <msdos_eval4make+0x58> <== NOT EXECUTED
13a531: 89 fa mov %edi,%edx <== NOT EXECUTED
13a533: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
13a535: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
13a53a: 0f 85 d7 fe ff ff jne 13a417 <msdos_eval4make+0xab> <== NOT EXECUTED
13a540: eb a7 jmp 13a4e9 <msdos_eval4make+0x17d> <== NOT EXECUTED
13a542: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
if (!pathloc->node_access)
{
errno = ENOENT;
13a544: e8 43 c2 00 00 call 14678c <__errno> <== NOT EXECUTED
13a549: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
13a54f: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
rc = -1;
goto err;
13a554: e9 d5 fe ff ff jmp 13a42e <msdos_eval4make+0xc2> <== NOT EXECUTED
13a559: 8d 76 00 lea 0x0(%esi),%esi <== 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)
13a55c: 8b 15 20 d3 16 00 mov 0x16d320,%edx <== NOT EXECUTED
13a562: 3b 7a 18 cmp 0x18(%edx),%edi <== NOT EXECUTED
13a565: 0f 84 59 fe ff ff je 13a3c4 <msdos_eval4make+0x58> <== NOT EXECUTED
13a56b: 89 fa mov %edi,%edx <== NOT EXECUTED
13a56d: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
break; /* Throw out the .. in this case */
}
else
{
newloc = pathloc->mt_entry->mt_point_node;
13a56f: 8d 45 cc lea -0x34(%ebp),%eax <== NOT EXECUTED
13a572: 8d 77 08 lea 0x8(%edi),%esi <== NOT EXECUTED
13a575: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
13a57a: 89 c7 mov %eax,%edi <== NOT EXECUTED
13a57c: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
*pathloc = newloc;
13a57e: 89 c6 mov %eax,%esi <== NOT EXECUTED
13a580: b1 05 mov $0x5,%cl <== NOT EXECUTED
13a582: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
13a585: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, fat_fd);
13a587: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13a58a: 52 push %edx <== NOT EXECUTED
13a58b: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13a58e: ff 70 10 pushl 0x10(%eax) <== NOT EXECUTED
13a591: e8 02 0c ff ff call 12b198 <fat_file_close> <== NOT EXECUTED
13a596: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13a598: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a59b: 85 c0 test %eax,%eax <== NOT EXECUTED
13a59d: 0f 85 8b fe ff ff jne 13a42e <msdos_eval4make+0xc2> <== NOT EXECUTED
goto err;
rtems_semaphore_release(fs_info->vol_sema);
13a5a3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a5a6: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
13a5a9: ff b2 94 00 00 00 pushl 0x94(%edx) <== NOT EXECUTED
13a5af: e8 40 8a fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return (*pathloc->ops->evalformake_h)(&path[i-token_len],
13a5b4: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13a5b7: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
13a5ba: 8b 41 0c mov 0xc(%ecx),%eax <== NOT EXECUTED
13a5bd: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13a5c0: 51 push %ecx <== NOT EXECUTED
13a5c1: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
13a5c4: 2b 55 e4 sub -0x1c(%ebp),%edx <== NOT EXECUTED
13a5c7: 03 55 08 add 0x8(%ebp),%edx <== NOT EXECUTED
13a5ca: 52 push %edx <== NOT EXECUTED
13a5cb: ff 50 04 call *0x4(%eax) <== NOT EXECUTED
13a5ce: 89 c3 mov %eax,%ebx <== NOT EXECUTED
13a5d0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a5d3: e9 6c fe ff ff jmp 13a444 <msdos_eval4make+0xd8> <== NOT EXECUTED
rc = -1;
goto error;
}
}
fat_fd = pathloc->node_access;
13a5d8: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13a5db: 8b 10 mov (%eax),%edx <== NOT EXECUTED
if (fat_fd->fat_file_type != FAT_DIRECTORY)
13a5dd: 83 7a 10 01 cmpl $0x1,0x10(%edx) <== NOT EXECUTED
13a5e1: 75 44 jne 13a627 <msdos_eval4make+0x2bb> <== 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;
13a5e3: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13a5e6: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
13a5e9: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
13a5ec: 8b 80 8c 00 00 00 mov 0x8c(%eax),%eax <== NOT EXECUTED
13a5f2: 89 42 08 mov %eax,0x8(%edx) <== NOT EXECUTED
goto error;
}
msdos_set_handlers(pathloc);
rtems_semaphore_release(fs_info->vol_sema);
13a5f5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a5f8: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
13a5fb: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
13a601: e8 ee 89 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
13a606: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a609: e9 36 fe ff ff jmp 13a444 <msdos_eval4make+0xd8> <== NOT EXECUTED
13a60e: 66 90 xchg %ax,%ax <== NOT EXECUTED
bool done = false;
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);
13a610: e8 77 c1 00 00 call 14678c <__errno> <== NOT EXECUTED
13a615: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13a61b: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
13a620: e9 1f fe ff ff jmp 13a444 <msdos_eval4make+0xd8> <== NOT EXECUTED
13a625: 89 fa mov %edi,%edx <== NOT EXECUTED
fat_fd = pathloc->node_access;
if (fat_fd->fat_file_type != FAT_DIRECTORY)
{
errno = ENOTDIR;
13a627: 89 55 bc mov %edx,-0x44(%ebp) <== NOT EXECUTED
13a62a: e8 5d c1 00 00 call 14678c <__errno> <== NOT EXECUTED
13a62f: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
13a635: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
rc = -1;
goto error;
13a63a: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
13a63d: e9 d5 fd ff ff jmp 13a417 <msdos_eval4make+0xab> <== NOT EXECUTED
0013a124 <msdos_eval_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
13a124: 55 push %ebp <== NOT EXECUTED
13a125: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a127: 57 push %edi <== NOT EXECUTED
13a128: 56 push %esi <== NOT EXECUTED
13a129: 53 push %ebx <== NOT EXECUTED
13a12a: 83 ec 40 sub $0x40,%esp <== NOT EXECUTED
13a12d: 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;
13a130: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
13a133: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
13a136: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = NULL;
rtems_filesystem_location_info_t newloc;
int i = 0;
int token_len = 0;
13a139: 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,
13a140: 6a 00 push $0x0 <== NOT EXECUTED
13a142: 6a 00 push $0x0 <== NOT EXECUTED
13a144: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13a14a: e8 a9 8d fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13a14f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a152: 85 c0 test %eax,%eax <== NOT EXECUTED
13a154: 0f 85 fa 01 00 00 jne 13a354 <msdos_eval_path+0x230> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
if (!pathloc->node_access)
13a15a: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
13a15c: 85 c0 test %eax,%eax <== NOT EXECUTED
13a15e: 0f 84 4c 01 00 00 je 13a2b0 <msdos_eval_path+0x18c> <== NOT EXECUTED
goto err;
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
13a164: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a167: 50 push %eax <== NOT EXECUTED
13a168: e8 c7 05 ff ff call 12a734 <fat_file_reopen> <== NOT EXECUTED
13a16d: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
13a16f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a172: 85 c0 test %eax,%eax <== NOT EXECUTED
13a174: 75 7e jne 13a1f4 <msdos_eval_path+0xd0> <== NOT EXECUTED
13a176: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED
13a17d: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
goto err;
while ((type != MSDOS_NO_MORE_PATH) && (type != MSDOS_INVALID_TOKEN))
{
type = msdos_get_token(&pathname[i], pathnamelen, &token, &token_len);
13a180: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13a183: 50 push %eax <== NOT EXECUTED
13a184: 8d 4d e0 lea -0x20(%ebp),%ecx <== NOT EXECUTED
13a187: 51 push %ecx <== NOT EXECUTED
13a188: 57 push %edi <== NOT EXECUTED
13a189: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13a18c: 03 45 c4 add -0x3c(%ebp),%eax <== NOT EXECUTED
13a18f: 50 push %eax <== NOT EXECUTED
13a190: e8 17 1b 00 00 call 13bcac <msdos_get_token> <== NOT EXECUTED
pathnamelen -= token_len;
13a195: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13a198: 29 cf sub %ecx,%edi <== NOT EXECUTED
i += token_len;
13a19a: 01 4d c4 add %ecx,-0x3c(%ebp) <== NOT EXECUTED
fat_fd = pathloc->node_access;
13a19d: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
switch (type)
13a19f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a1a2: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
13a1a5: 0f 84 e5 00 00 00 je 13a290 <msdos_eval_path+0x16c> <== NOT EXECUTED
13a1ab: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
13a1ae: 0f 84 b0 00 00 00 je 13a264 <msdos_eval_path+0x140> <== NOT EXECUTED
13a1b4: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
13a1b7: 74 5f je 13a218 <msdos_eval_path+0xf4> <== NOT EXECUTED
rc = fat_file_reopen(fat_fd);
if (rc != RC_OK)
goto err;
while ((type != MSDOS_NO_MORE_PATH) && (type != MSDOS_INVALID_TOKEN))
13a1b9: 85 c0 test %eax,%eax <== NOT EXECUTED
13a1bb: 74 05 je 13a1c2 <msdos_eval_path+0x9e> <== NOT EXECUTED
13a1bd: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
13a1c0: 75 be jne 13a180 <msdos_eval_path+0x5c> <== 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;
13a1c2: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
13a1c5: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
if (fat_fd->fat_file_type == FAT_DIRECTORY)
13a1c8: 83 7a 10 01 cmpl $0x1,0x10(%edx) <== NOT EXECUTED
13a1cc: 0f 84 72 01 00 00 je 13a344 <msdos_eval_path+0x220> <== NOT EXECUTED
loc->handlers = fs_info->directory_handlers;
else
loc->handlers = fs_info->file_handlers;
13a1d2: 8b 80 90 00 00 00 mov 0x90(%eax),%eax <== NOT EXECUTED
13a1d8: 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);
13a1db: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a1de: 8b 7d c0 mov -0x40(%ebp),%edi <== NOT EXECUTED
13a1e1: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13a1e7: e8 08 8e fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
13a1ec: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a1ef: eb 1b jmp 13a20c <msdos_eval_path+0xe8> <== NOT EXECUTED
13a1f1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
if (rc != RC_OK)
13a1f4: 89 c7 mov %eax,%edi <== NOT EXECUTED
error:
fat_file_close(pathloc->mt_entry, fat_fd);
err:
rtems_semaphore_release(fs_info->vol_sema);
13a1f6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a1f9: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
13a1fc: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13a202: e8 ed 8d fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
13a207: 89 fe mov %edi,%esi <== NOT EXECUTED
return rc;
13a209: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13a20c: 89 f0 mov %esi,%eax <== NOT EXECUTED
13a20e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a211: 5b pop %ebx <== NOT EXECUTED
13a212: 5e pop %esi <== NOT EXECUTED
13a213: 5f pop %edi <== NOT EXECUTED
13a214: c9 leave <== NOT EXECUTED
13a215: c3 ret <== NOT EXECUTED
13a216: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
case MSDOS_UP_DIR:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
13a218: 83 7a 10 01 cmpl $0x1,0x10(%edx) <== NOT EXECUTED
13a21c: 75 78 jne 13a296 <msdos_eval_path+0x172> <== NOT EXECUTED
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access)
13a21e: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
}
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
13a221: 3b 50 1c cmp 0x1c(%eax),%edx <== NOT EXECUTED
13a224: 0f 84 9e 00 00 00 je 13a2c8 <msdos_eval_path+0x1a4> <== 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);
13a22a: 50 push %eax <== NOT EXECUTED
13a22b: 51 push %ecx <== NOT EXECUTED
13a22c: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13a22f: 53 push %ebx <== NOT EXECUTED
13a230: 89 55 bc mov %edx,-0x44(%ebp) <== NOT EXECUTED
13a233: e8 e0 1f 00 00 call 13c218 <msdos_find_name> <== NOT EXECUTED
if (rc != RC_OK)
13a238: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a23b: 85 c0 test %eax,%eax <== NOT EXECUTED
13a23d: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
13a240: 0f 84 3a ff ff ff je 13a180 <msdos_eval_path+0x5c> <== NOT EXECUTED
13a246: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
13a248: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
13a24d: 75 2b jne 13a27a <msdos_eval_path+0x156> <== NOT EXECUTED
{
errno = ENOENT;
13a24f: e8 38 c5 00 00 call 14678c <__errno> <== NOT EXECUTED
13a254: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
13a25a: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
13a25f: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
13a262: eb 16 jmp 13a27a <msdos_eval_path+0x156> <== NOT EXECUTED
case MSDOS_NO_MORE_PATH:
case MSDOS_CURRENT_DIR:
break;
case MSDOS_INVALID_TOKEN:
errno = ENAMETOOLONG;
13a264: 89 55 bc mov %edx,-0x44(%ebp) <== NOT EXECUTED
13a267: e8 20 c5 00 00 call 14678c <__errno> <== NOT EXECUTED
13a26c: c7 00 5b 00 00 00 movl $0x5b,(%eax) <== NOT EXECUTED
13a272: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
rc = -1;
goto error;
13a277: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return RC_OK;
error:
fat_file_close(pathloc->mt_entry, fat_fd);
13a27a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13a27d: 52 push %edx <== NOT EXECUTED
13a27e: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
13a281: e8 12 0f ff ff call 12b198 <fat_file_close> <== NOT EXECUTED
13a286: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a289: e9 68 ff ff ff jmp 13a1f6 <msdos_eval_path+0xd2> <== NOT EXECUTED
13a28e: 66 90 xchg %ax,%ax <== NOT EXECUTED
case MSDOS_NAME:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
13a290: 83 7a 10 01 cmpl $0x1,0x10(%edx) <== NOT EXECUTED
13a294: 74 94 je 13a22a <msdos_eval_path+0x106> <== NOT EXECUTED
{
errno = ENOTSUP;
13a296: 89 55 bc mov %edx,-0x44(%ebp) <== NOT EXECUTED
13a299: e8 ee c4 00 00 call 14678c <__errno> <== NOT EXECUTED
13a29e: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
13a2a4: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
rc = -1;
goto error;
13a2a9: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
13a2ac: eb cc jmp 13a27a <msdos_eval_path+0x156> <== NOT EXECUTED
13a2ae: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
if (!pathloc->node_access)
{
errno = ENOENT;
13a2b0: e8 d7 c4 00 00 call 14678c <__errno> <== NOT EXECUTED
13a2b5: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
13a2bb: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
rc = -1;
goto err;
13a2c0: e9 31 ff ff ff jmp 13a1f6 <msdos_eval_path+0xd2> <== NOT EXECUTED
13a2c5: 8d 76 00 lea 0x0(%esi),%esi <== 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)
13a2c8: 8b 0d 20 d3 16 00 mov 0x16d320,%ecx <== NOT EXECUTED
13a2ce: 3b 51 18 cmp 0x18(%ecx),%edx <== NOT EXECUTED
13a2d1: 0f 84 a9 fe ff ff je 13a180 <msdos_eval_path+0x5c> <== NOT EXECUTED
13a2d7: 89 7d 0c mov %edi,0xc(%ebp) <== NOT EXECUTED
{
break; /* Throw out the .. in this case */
}
else
{
newloc = pathloc->mt_entry->mt_point_node;
13a2da: 8d 7d cc lea -0x34(%ebp),%edi <== NOT EXECUTED
13a2dd: 8d 70 08 lea 0x8(%eax),%esi <== NOT EXECUTED
13a2e0: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
13a2e5: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
*pathloc = newloc;
13a2e7: 8d 75 cc lea -0x34(%ebp),%esi <== NOT EXECUTED
13a2ea: b1 05 mov $0x5,%cl <== NOT EXECUTED
13a2ec: 89 df mov %ebx,%edi <== NOT EXECUTED
13a2ee: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, fat_fd);
13a2f0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13a2f3: 52 push %edx <== NOT EXECUTED
13a2f4: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
13a2f7: e8 9c 0e ff ff call 12b198 <fat_file_close> <== NOT EXECUTED
13a2fc: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13a2fe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a301: 85 c0 test %eax,%eax <== NOT EXECUTED
13a303: 0f 85 ed fe ff ff jne 13a1f6 <msdos_eval_path+0xd2> <== NOT EXECUTED
goto err;
rtems_semaphore_release(fs_info->vol_sema);
13a309: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a30c: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
13a30f: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13a315: e8 da 8c fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return (*pathloc->ops->evalpath_h)(&(pathname[i-token_len]),
13a31a: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13a31d: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
13a320: 53 push %ebx <== NOT EXECUTED
13a321: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13a324: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
13a327: 01 c1 add %eax,%ecx <== NOT EXECUTED
13a329: 51 push %ecx <== NOT EXECUTED
13a32a: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
13a32d: 29 c1 sub %eax,%ecx <== NOT EXECUTED
13a32f: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13a332: 01 c8 add %ecx,%eax <== NOT EXECUTED
13a334: 50 push %eax <== NOT EXECUTED
13a335: ff 12 call *(%edx) <== NOT EXECUTED
13a337: 89 c6 mov %eax,%esi <== NOT EXECUTED
13a339: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13a33c: e9 cb fe ff ff jmp 13a20c <msdos_eval_path+0xe8> <== NOT EXECUTED
13a341: 8d 76 00 lea 0x0(%esi),%esi <== 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;
13a344: 8b 80 8c 00 00 00 mov 0x8c(%eax),%eax <== NOT EXECUTED
13a34a: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
13a34d: e9 89 fe ff ff jmp 13a1db <msdos_eval_path+0xb7> <== NOT EXECUTED
13a352: 66 90 xchg %ax,%ax <== NOT EXECUTED
const char *token;
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);
13a354: e8 33 c4 00 00 call 14678c <__errno> <== NOT EXECUTED
13a359: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13a35f: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
13a364: e9 a3 fe ff ff jmp 13a20c <msdos_eval_path+0xe8> <== NOT EXECUTED
0013a64c <msdos_file_chmod>:
* RC_OK always
*/
int
msdos_file_chmod(rtems_filesystem_location_info_t *pathloc,
mode_t mode)
{
13a64c: 55 push %ebp <== NOT EXECUTED
13a64d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return RC_OK;
}
13a64f: 31 c0 xor %eax,%eax <== NOT EXECUTED
13a651: c9 leave <== NOT EXECUTED
13a652: c3 ret <== NOT EXECUTED
0013abfc <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)
{
13abfc: 55 push %ebp <== NOT EXECUTED
13abfd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13abff: 57 push %edi <== NOT EXECUTED
13ac00: 56 push %esi <== NOT EXECUTED
13ac01: 53 push %ebx <== NOT EXECUTED
13ac02: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
13ac05: 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;
13ac08: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13ac0b: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
13ac0e: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13ac11: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13ac14: 6a 00 push $0x0 <== NOT EXECUTED
13ac16: 6a 00 push $0x0 <== NOT EXECUTED
13ac18: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13ac1e: e8 d5 82 fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13ac23: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ac26: 85 c0 test %eax,%eax <== NOT EXECUTED
13ac28: 0f 85 92 00 00 00 jne 13acc0 <msdos_file_close+0xc4> <== 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))
13ac2e: f6 47 30 01 testb $0x1,0x30(%edi) <== NOT EXECUTED
13ac32: 75 3f jne 13ac73 <msdos_file_close+0x77> <== NOT EXECUTED
{
rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
13ac34: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ac37: 57 push %edi <== NOT EXECUTED
13ac38: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13ac3b: e8 50 0d 00 00 call 13b990 <msdos_set_first_cluster_num><== NOT EXECUTED
13ac40: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
13ac42: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ac45: 85 c0 test %eax,%eax <== NOT EXECUTED
13ac47: 75 57 jne 13aca0 <msdos_file_close+0xa4> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rc = msdos_set_file_size(iop->pathinfo.mt_entry, fat_fd);
13ac49: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ac4c: 57 push %edi <== NOT EXECUTED
13ac4d: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13ac50: e8 cb 0c 00 00 call 13b920 <msdos_set_file_size> <== NOT EXECUTED
13ac55: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
13ac57: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ac5a: 85 c0 test %eax,%eax <== NOT EXECUTED
13ac5c: 75 42 jne 13aca0 <msdos_file_close+0xa4> <== 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);
13ac5e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ac61: 57 push %edi <== NOT EXECUTED
13ac62: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13ac65: e8 2a 0f 00 00 call 13bb94 <msdos_set_dir_wrt_time_and_date><== NOT EXECUTED
13ac6a: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
13ac6c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ac6f: 85 c0 test %eax,%eax <== NOT EXECUTED
13ac71: 75 2d jne 13aca0 <msdos_file_close+0xa4> <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
}
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
13ac73: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ac76: 57 push %edi <== NOT EXECUTED
13ac77: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13ac7a: e8 19 05 ff ff call 12b198 <fat_file_close> <== NOT EXECUTED
13ac7f: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13ac81: 5a pop %edx <== NOT EXECUTED
13ac82: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13ac85: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13ac8b: e8 64 83 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
13ac90: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13ac93: 89 f0 mov %esi,%eax <== NOT EXECUTED
13ac95: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13ac98: 5b pop %ebx <== NOT EXECUTED
13ac99: 5e pop %esi <== NOT EXECUTED
13ac9a: 5f pop %edi <== NOT EXECUTED
13ac9b: c9 leave <== NOT EXECUTED
13ac9c: c3 ret <== NOT EXECUTED
13ac9d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
rc = msdos_set_dir_wrt_time_and_date(iop->pathinfo.mt_entry, fat_fd);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
13aca0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13aca3: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13aca6: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13acac: e8 43 83 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
13acb1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
13acb4: 89 f0 mov %esi,%eax <== NOT EXECUTED
13acb6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13acb9: 5b pop %ebx <== NOT EXECUTED
13acba: 5e pop %esi <== NOT EXECUTED
13acbb: 5f pop %edi <== NOT EXECUTED
13acbc: c9 leave <== NOT EXECUTED
13acbd: c3 ret <== NOT EXECUTED
13acbe: 66 90 xchg %ax,%ax <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
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);
13acc0: e8 c7 ba 00 00 call 14678c <__errno> <== NOT EXECUTED
13acc5: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13accb: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
13acd0: eb c1 jmp 13ac93 <msdos_file_close+0x97> <== NOT EXECUTED
0013a79c <msdos_file_datasync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_datasync(rtems_libio_t *iop)
{
13a79c: 55 push %ebp <== NOT EXECUTED
13a79d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a79f: 57 push %edi <== NOT EXECUTED
13a7a0: 56 push %esi <== NOT EXECUTED
13a7a1: 53 push %ebx <== NOT EXECUTED
13a7a2: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13a7a5: 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;
13a7a8: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
13a7ab: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13a7ae: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13a7b1: 6a 00 push $0x0 <== NOT EXECUTED
13a7b3: 6a 00 push $0x0 <== NOT EXECUTED
13a7b5: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13a7bb: e8 38 87 fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13a7c0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a7c3: 85 c0 test %eax,%eax <== NOT EXECUTED
13a7c5: 75 25 jne 13a7ec <msdos_file_datasync+0x50><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
/* synchronize file data */
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
13a7c7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13a7ca: 57 push %edi <== NOT EXECUTED
13a7cb: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13a7ce: e8 a1 00 ff ff call 12a874 <fat_file_datasync> <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13a7d3: 59 pop %ecx <== NOT EXECUTED
13a7d4: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13a7da: e8 15 88 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
13a7df: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
13a7e1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13a7e4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a7e7: 5b pop %ebx <== NOT EXECUTED
13a7e8: 5e pop %esi <== NOT EXECUTED
13a7e9: 5f pop %edi <== NOT EXECUTED
13a7ea: c9 leave <== NOT EXECUTED
13a7eb: c3 ret <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
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);
13a7ec: e8 9b bf 00 00 call 14678c <__errno> <== NOT EXECUTED
13a7f1: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13a7f7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
13a7fc: eb e6 jmp 13a7e4 <msdos_file_datasync+0x48><== NOT EXECUTED
0013a8e0 <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)
{
13a8e0: 55 push %ebp <== NOT EXECUTED
13a8e1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a8e3: 57 push %edi <== NOT EXECUTED
13a8e4: 56 push %esi <== NOT EXECUTED
13a8e5: 53 push %ebx <== NOT EXECUTED
13a8e6: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
13a8e9: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13a8ec: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13a8ef: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
13a8f2: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
13a8f5: 89 55 dc mov %edx,-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;
13a8f8: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13a8fb: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13a8fe: 8b 73 38 mov 0x38(%ebx),%esi <== NOT EXECUTED
if (length >= fat_fd->fat_file_size)
13a901: 8b 46 18 mov 0x18(%esi),%eax <== NOT EXECUTED
13a904: 31 d2 xor %edx,%edx <== NOT EXECUTED
13a906: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
13a909: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
13a90c: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
13a90f: 39 c2 cmp %eax,%edx <== NOT EXECUTED
13a911: 7e 71 jle 13a984 <msdos_file_ftruncate+0xa4><== NOT EXECUTED
return RC_OK;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13a913: 50 push %eax <== NOT EXECUTED
13a914: 6a 00 push $0x0 <== NOT EXECUTED
13a916: 6a 00 push $0x0 <== NOT EXECUTED
13a918: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
13a91e: 89 4d d8 mov %ecx,-0x28(%ebp) <== NOT EXECUTED
13a921: e8 d2 85 fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13a926: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a929: 85 c0 test %eax,%eax <== NOT EXECUTED
13a92b: 8b 4d d8 mov -0x28(%ebp),%ecx <== NOT EXECUTED
13a92e: 0f 85 84 00 00 00 jne 13a9b8 <msdos_file_ftruncate+0xd8><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
rc = fat_file_truncate(iop->pathinfo.mt_entry, fat_fd, length);
13a934: 57 push %edi <== NOT EXECUTED
13a935: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
13a938: 56 push %esi <== NOT EXECUTED
13a939: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13a93c: 89 4d d8 mov %ecx,-0x28(%ebp) <== NOT EXECUTED
13a93f: e8 30 01 ff ff call 12aa74 <fat_file_truncate> <== NOT EXECUTED
13a944: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13a946: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a949: 85 c0 test %eax,%eax <== NOT EXECUTED
13a94b: 8b 4d d8 mov -0x28(%ebp),%ecx <== NOT EXECUTED
13a94e: 75 18 jne 13a968 <msdos_file_ftruncate+0x88><== 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)
13a950: 8b 46 18 mov 0x18(%esi),%eax <== NOT EXECUTED
13a953: 31 d2 xor %edx,%edx <== NOT EXECUTED
13a955: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
13a958: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
13a95b: 83 7d dc 00 cmpl $0x0,-0x24(%ebp) <== NOT EXECUTED
13a95f: 7f 07 jg 13a968 <msdos_file_ftruncate+0x88><== NOT EXECUTED
13a961: 7c 41 jl 13a9a4 <msdos_file_ftruncate+0xc4><== NOT EXECUTED
13a963: 39 45 c4 cmp %eax,-0x3c(%ebp) <== NOT EXECUTED
13a966: 72 3c jb 13a9a4 <msdos_file_ftruncate+0xc4><== NOT EXECUTED
iop->size = fat_fd->fat_file_size = length;
rtems_semaphore_release(fs_info->vol_sema);
13a968: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a96b: ff b1 94 00 00 00 pushl 0x94(%ecx) <== NOT EXECUTED
13a971: e8 7e 86 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
13a976: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13a979: 89 f8 mov %edi,%eax <== NOT EXECUTED
13a97b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a97e: 5b pop %ebx <== NOT EXECUTED
13a97f: 5e pop %esi <== NOT EXECUTED
13a980: 5f pop %edi <== NOT EXECUTED
13a981: c9 leave <== NOT EXECUTED
13a982: c3 ret <== NOT EXECUTED
13a983: 90 nop <== 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;
if (length >= fat_fd->fat_file_size)
13a984: 7d 0e jge 13a994 <msdos_file_ftruncate+0xb4><== NOT EXECUTED
13a986: 31 ff xor %edi,%edi <== NOT EXECUTED
if (length < fat_fd->fat_file_size)
iop->size = fat_fd->fat_file_size = length;
rtems_semaphore_release(fs_info->vol_sema);
return RC_OK;
}
13a988: 89 f8 mov %edi,%eax <== NOT EXECUTED
13a98a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a98d: 5b pop %ebx <== NOT EXECUTED
13a98e: 5e pop %esi <== NOT EXECUTED
13a98f: 5f pop %edi <== NOT EXECUTED
13a990: c9 leave <== NOT EXECUTED
13a991: c3 ret <== NOT EXECUTED
13a992: 66 90 xchg %ax,%ax <== 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;
if (length >= fat_fd->fat_file_size)
13a994: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
13a997: 39 55 e0 cmp %edx,-0x20(%ebp) <== NOT EXECUTED
13a99a: 0f 87 73 ff ff ff ja 13a913 <msdos_file_ftruncate+0x33><== NOT EXECUTED
13a9a0: eb e4 jmp 13a986 <msdos_file_ftruncate+0xa6><== NOT EXECUTED
13a9a2: 66 90 xchg %ax,%ax <== 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)
iop->size = fat_fd->fat_file_size = length;
13a9a4: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
13a9a7: 89 56 18 mov %edx,0x18(%esi) <== NOT EXECUTED
13a9aa: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
13a9ad: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
13a9b4: eb b2 jmp 13a968 <msdos_file_ftruncate+0x88><== NOT EXECUTED
13a9b6: 66 90 xchg %ax,%ax <== NOT EXECUTED
return RC_OK;
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);
13a9b8: e8 cf bd 00 00 call 14678c <__errno> <== NOT EXECUTED
13a9bd: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13a9c3: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
13a9c8: eb be jmp 13a988 <msdos_file_ftruncate+0xa8><== NOT EXECUTED
0013a644 <msdos_file_ioctl>:
* RETURNS:
*
*/
int
msdos_file_ioctl(rtems_libio_t *iop,uint32_t command, void *buffer)
{
13a644: 55 push %ebp <== NOT EXECUTED
13a645: 89 e5 mov %esp,%ebp <== NOT EXECUTED
int rc = RC_OK;
return rc;
}
13a647: 31 c0 xor %eax,%eax <== NOT EXECUTED
13a649: c9 leave <== NOT EXECUTED
13a64a: c3 ret <== NOT EXECUTED
0013a9cc <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)
{
13a9cc: 55 push %ebp <== NOT EXECUTED
13a9cd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a9cf: 57 push %edi <== NOT EXECUTED
13a9d0: 56 push %esi <== NOT EXECUTED
13a9d1: 53 push %ebx <== NOT EXECUTED
13a9d2: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
13a9d5: 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;
13a9d8: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13a9db: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13a9de: 8b 73 38 mov 0x38(%ebx),%esi <== NOT EXECUTED
uint32_t real_size = 0;
13a9e1: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13a9e8: 6a 00 push $0x0 <== NOT EXECUTED
13a9ea: 6a 00 push $0x0 <== NOT EXECUTED
13a9ec: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13a9f2: e8 01 85 fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13a9f7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a9fa: 85 c0 test %eax,%eax <== NOT EXECUTED
13a9fc: 0f 85 82 00 00 00 jne 13aa84 <msdos_file_lseek+0xb8> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
rc = fat_file_extend(iop->pathinfo.mt_entry, fat_fd, iop->offset,
13aa02: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13aa05: 50 push %eax <== NOT EXECUTED
13aa06: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
13aa09: 56 push %esi <== NOT EXECUTED
13aa0a: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13aa0d: e8 42 01 ff ff call 12ab54 <fat_file_extend> <== NOT EXECUTED
&real_size);
if (rc != RC_OK)
13aa12: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13aa15: 85 c0 test %eax,%eax <== NOT EXECUTED
13aa17: 75 47 jne 13aa60 <msdos_file_lseek+0x94> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (real_size > fat_fd->fat_file_size)
13aa19: 8b 56 18 mov 0x18(%esi),%edx <== NOT EXECUTED
13aa1c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13aa1f: 39 c2 cmp %eax,%edx <== NOT EXECUTED
13aa21: 72 2d jb 13aa50 <msdos_file_lseek+0x84> <== NOT EXECUTED
13aa23: 89 d0 mov %edx,%eax <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset = real_size;
iop->size = fat_fd->fat_file_size;
13aa25: 89 43 04 mov %eax,0x4(%ebx) <== NOT EXECUTED
13aa28: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13aa2f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13aa32: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13aa38: e8 b7 85 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return iop->offset;
13aa3d: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13aa40: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED
13aa43: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13aa46: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13aa49: 5b pop %ebx <== NOT EXECUTED
13aa4a: 5e pop %esi <== NOT EXECUTED
13aa4b: 5f pop %edi <== NOT EXECUTED
13aa4c: c9 leave <== NOT EXECUTED
13aa4d: c3 ret <== NOT EXECUTED
13aa4e: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (real_size > fat_fd->fat_file_size)
fat_fd->fat_file_size = iop->offset = real_size;
13aa50: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
13aa53: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
13aa5a: 89 46 18 mov %eax,0x18(%esi) <== NOT EXECUTED
13aa5d: eb c6 jmp 13aa25 <msdos_file_lseek+0x59> <== NOT EXECUTED
13aa5f: 90 nop <== NOT EXECUTED
rc = fat_file_extend(iop->pathinfo.mt_entry, fat_fd, iop->offset,
&real_size);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
13aa60: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13aa63: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13aa69: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
13aa6c: e8 83 85 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
13aa71: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
13aa74: 89 d0 mov %edx,%eax <== NOT EXECUTED
13aa76: 99 cltd <== NOT EXECUTED
13aa77: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
rtems_semaphore_release(fs_info->vol_sema);
return iop->offset;
}
13aa7a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13aa7d: 5b pop %ebx <== NOT EXECUTED
13aa7e: 5e pop %esi <== NOT EXECUTED
13aa7f: 5f pop %edi <== NOT EXECUTED
13aa80: c9 leave <== NOT EXECUTED
13aa81: c3 ret <== NOT EXECUTED
13aa82: 66 90 xchg %ax,%ax <== NOT EXECUTED
uint32_t real_size = 0;
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);
13aa84: e8 03 bd 00 00 call 14678c <__errno> <== NOT EXECUTED
13aa89: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13aa8f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
13aa94: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
13aa99: eb ab jmp 13aa46 <msdos_file_lseek+0x7a> <== NOT EXECUTED
0013acd4 <msdos_file_open>:
* and errno set appropriately
*/
int
msdos_file_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
13acd4: 55 push %ebp <== NOT EXECUTED
13acd5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13acd7: 57 push %edi <== NOT EXECUTED
13acd8: 56 push %esi <== NOT EXECUTED
13acd9: 53 push %ebx <== NOT EXECUTED
13acda: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
13acdd: 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;
13ace0: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13ace3: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13ace6: 8b 43 38 mov 0x38(%ebx),%eax <== NOT EXECUTED
13ace9: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13acec: 6a 00 push $0x0 <== NOT EXECUTED
13acee: 6a 00 push $0x0 <== NOT EXECUTED
13acf0: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13acf6: e8 fd 81 fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13acfb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13acfe: 85 c0 test %eax,%eax <== NOT EXECUTED
13ad00: 75 56 jne 13ad58 <msdos_file_open+0x84> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
rc = fat_file_reopen(fat_fd);
13ad02: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ad05: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13ad08: e8 27 fa fe ff call 12a734 <fat_file_reopen> <== NOT EXECUTED
13ad0d: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc != RC_OK)
13ad0f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ad12: 85 c0 test %eax,%eax <== NOT EXECUTED
13ad14: 75 14 jne 13ad2a <msdos_file_open+0x56> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
13ad16: f6 43 15 02 testb $0x2,0x15(%ebx) <== NOT EXECUTED
13ad1a: 75 2c jne 13ad48 <msdos_file_open+0x74> <== NOT EXECUTED
13ad1c: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13ad1f: 8b 41 18 mov 0x18(%ecx),%eax <== NOT EXECUTED
13ad22: 31 d2 xor %edx,%edx <== NOT EXECUTED
iop->offset = fat_fd->fat_file_size;
iop->size = fat_fd->fat_file_size;
13ad24: 89 43 04 mov %eax,0x4(%ebx) <== NOT EXECUTED
13ad27: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13ad2a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ad2d: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13ad33: e8 bc 82 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
13ad38: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13ad3b: 89 f0 mov %esi,%eax <== NOT EXECUTED
13ad3d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13ad40: 5b pop %ebx <== NOT EXECUTED
13ad41: 5e pop %esi <== NOT EXECUTED
13ad42: 5f pop %edi <== NOT EXECUTED
13ad43: c9 leave <== NOT EXECUTED
13ad44: c3 ret <== NOT EXECUTED
13ad45: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
iop->offset = fat_fd->fat_file_size;
13ad48: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13ad4b: 8b 41 18 mov 0x18(%ecx),%eax <== NOT EXECUTED
13ad4e: 31 d2 xor %edx,%edx <== NOT EXECUTED
13ad50: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
13ad53: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
13ad56: eb cc jmp 13ad24 <msdos_file_open+0x50> <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
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);
13ad58: e8 2f ba 00 00 call 14678c <__errno> <== NOT EXECUTED
13ad5d: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13ad63: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
13ad68: eb d1 jmp 13ad3b <msdos_file_open+0x67> <== NOT EXECUTED
0013ab88 <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)
{
13ab88: 55 push %ebp <== NOT EXECUTED
13ab89: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ab8b: 57 push %edi <== NOT EXECUTED
13ab8c: 56 push %esi <== NOT EXECUTED
13ab8d: 53 push %ebx <== NOT EXECUTED
13ab8e: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13ab91: 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;
13ab94: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13ab97: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13ab9a: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13ab9d: 6a 00 push $0x0 <== NOT EXECUTED
13ab9f: 6a 00 push $0x0 <== NOT EXECUTED
13aba1: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13aba7: e8 4c 83 fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13abac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13abaf: 85 c0 test %eax,%eax <== NOT EXECUTED
13abb1: 75 35 jne 13abe8 <msdos_file_read+0x60> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
ret = fat_file_read(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
13abb3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13abb6: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13abb9: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13abbc: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
13abbf: 57 push %edi <== NOT EXECUTED
13abc0: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13abc3: e8 cc 03 ff ff call 12af94 <fat_file_read> <== NOT EXECUTED
13abc8: 89 c3 mov %eax,%ebx <== NOT EXECUTED
buffer);
rtems_semaphore_release(fs_info->vol_sema);
13abca: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
13abcd: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13abd3: e8 1c 84 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return ret;
13abd8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13abdb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13abdd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13abe0: 5b pop %ebx <== NOT EXECUTED
13abe1: 5e pop %esi <== NOT EXECUTED
13abe2: 5f pop %edi <== NOT EXECUTED
13abe3: c9 leave <== NOT EXECUTED
13abe4: c3 ret <== NOT EXECUTED
13abe5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
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);
13abe8: e8 9f bb 00 00 call 14678c <__errno> <== NOT EXECUTED
13abed: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13abf3: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
13abf8: eb e1 jmp 13abdb <msdos_file_read+0x53> <== NOT EXECUTED
0013a6f8 <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)
{
13a6f8: 55 push %ebp <== NOT EXECUTED
13a6f9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a6fb: 57 push %edi <== NOT EXECUTED
13a6fc: 56 push %esi <== NOT EXECUTED
13a6fd: 53 push %ebx <== NOT EXECUTED
13a6fe: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
13a701: 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;
13a704: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
13a707: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
13a70a: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
13a70c: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13a70f: 6a 00 push $0x0 <== NOT EXECUTED
13a711: 6a 00 push $0x0 <== NOT EXECUTED
13a713: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13a719: e8 da 87 fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13a71e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a721: 85 c0 test %eax,%eax <== NOT EXECUTED
13a723: 75 63 jne 13a788 <msdos_file_rmnod+0x90> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
/* mark file removed */
rc = msdos_set_first_char4file_name(pathloc->mt_entry,
13a725: 52 push %edx <== NOT EXECUTED
13a726: 68 e5 00 00 00 push $0xe5 <== NOT EXECUTED
13a72b: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13a72e: 83 c0 20 add $0x20,%eax <== NOT EXECUTED
13a731: 50 push %eax <== NOT EXECUTED
13a732: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
13a735: e8 06 13 00 00 call 13ba40 <msdos_set_first_char4file_name><== NOT EXECUTED
13a73a: 89 c6 mov %eax,%esi <== NOT EXECUTED
&fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
13a73c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a73f: 85 c0 test %eax,%eax <== NOT EXECUTED
13a741: 75 29 jne 13a76c <msdos_file_rmnod+0x74> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
13a743: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13a746: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13a749: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
13a74c: e8 33 02 ff ff call 12a984 <fat_file_mark_removed> <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13a751: 58 pop %eax <== NOT EXECUTED
13a752: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13a758: e8 97 88 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return RC_OK;
13a75d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13a760: 89 f0 mov %esi,%eax <== NOT EXECUTED
13a762: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a765: 5b pop %ebx <== NOT EXECUTED
13a766: 5e pop %esi <== NOT EXECUTED
13a767: 5f pop %edi <== NOT EXECUTED
13a768: c9 leave <== NOT EXECUTED
13a769: c3 ret <== NOT EXECUTED
13a76a: 66 90 xchg %ax,%ax <== NOT EXECUTED
rc = msdos_set_first_char4file_name(pathloc->mt_entry,
&fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
13a76c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a76f: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13a775: e8 7a 88 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
13a77a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
rtems_semaphore_release(fs_info->vol_sema);
return RC_OK;
}
13a77d: 89 f0 mov %esi,%eax <== NOT EXECUTED
13a77f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a782: 5b pop %ebx <== NOT EXECUTED
13a783: 5e pop %esi <== NOT EXECUTED
13a784: 5f pop %edi <== NOT EXECUTED
13a785: c9 leave <== NOT EXECUTED
13a786: c3 ret <== NOT EXECUTED
13a787: 90 nop <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
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);
13a788: e8 ff bf 00 00 call 14678c <__errno> <== NOT EXECUTED
13a78d: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13a793: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
13a798: eb c6 jmp 13a760 <msdos_file_rmnod+0x68> <== NOT EXECUTED
0013a654 <msdos_file_stat>:
int
msdos_file_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
13a654: 55 push %ebp <== NOT EXECUTED
13a655: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a657: 57 push %edi <== NOT EXECUTED
13a658: 56 push %esi <== NOT EXECUTED
13a659: 53 push %ebx <== NOT EXECUTED
13a65a: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13a65d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13a660: 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;
13a663: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
13a666: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
13a669: 8b 38 mov (%eax),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13a66b: 6a 00 push $0x0 <== NOT EXECUTED
13a66d: 6a 00 push $0x0 <== NOT EXECUTED
13a66f: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13a675: e8 7e 88 fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13a67a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a67d: 85 c0 test %eax,%eax <== NOT EXECUTED
13a67f: 75 63 jne 13a6e4 <msdos_file_stat+0x90> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
buf->st_dev = fs_info->fat.vol.dev;
13a681: 8b 46 54 mov 0x54(%esi),%eax <== NOT EXECUTED
13a684: 8b 56 58 mov 0x58(%esi),%edx <== NOT EXECUTED
13a687: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
13a689: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
buf->st_ino = fat_fd->ino;
13a68c: 8b 47 0c mov 0xc(%edi),%eax <== NOT EXECUTED
13a68f: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
buf->st_mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
13a692: c7 43 0c ff 81 00 00 movl $0x81ff,0xc(%ebx) <== NOT EXECUTED
buf->st_rdev = 0ll;
13a699: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
13a6a0: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) <== NOT EXECUTED
buf->st_size = fat_fd->fat_file_size;
13a6a7: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
13a6aa: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
13a6ad: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
13a6b4: c1 e8 09 shr $0x9,%eax <== NOT EXECUTED
13a6b7: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
buf->st_blksize = fs_info->fat.vol.bps;
13a6ba: 0f b7 06 movzwl (%esi),%eax <== NOT EXECUTED
13a6bd: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
buf->st_mtime = fat_fd->mtime;
13a6c0: 8b 47 40 mov 0x40(%edi),%eax <== NOT EXECUTED
13a6c3: 89 43 30 mov %eax,0x30(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13a6c6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a6c9: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13a6cf: e8 20 89 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
13a6d4: 31 c0 xor %eax,%eax <== NOT EXECUTED
return RC_OK;
13a6d6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13a6d9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a6dc: 5b pop %ebx <== NOT EXECUTED
13a6dd: 5e pop %esi <== NOT EXECUTED
13a6de: 5f pop %edi <== NOT EXECUTED
13a6df: c9 leave <== NOT EXECUTED
13a6e0: c3 ret <== NOT EXECUTED
13a6e1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
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);
13a6e4: e8 a3 c0 00 00 call 14678c <__errno> <== NOT EXECUTED
13a6e9: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13a6ef: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
13a6f4: eb e3 jmp 13a6d9 <msdos_file_stat+0x85> <== NOT EXECUTED
0013a800 <msdos_file_sync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_sync(rtems_libio_t *iop)
{
13a800: 55 push %ebp <== NOT EXECUTED
13a801: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13a803: 57 push %edi <== NOT EXECUTED
13a804: 56 push %esi <== NOT EXECUTED
13a805: 53 push %ebx <== NOT EXECUTED
13a806: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
13a809: 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;
13a80c: 8b 73 38 mov 0x38(%ebx),%esi <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
13a80f: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13a812: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
13a815: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13a818: 6a 00 push $0x0 <== NOT EXECUTED
13a81a: 6a 00 push $0x0 <== NOT EXECUTED
13a81c: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13a822: e8 d1 86 fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13a827: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a82a: 85 c0 test %eax,%eax <== NOT EXECUTED
13a82c: 0f 85 9a 00 00 00 jne 13a8cc <msdos_file_sync+0xcc> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
/* synchronize file data */
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
13a832: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13a835: 56 push %esi <== NOT EXECUTED
13a836: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13a839: e8 36 00 ff ff call 12a874 <fat_file_datasync> <== NOT EXECUTED
13a83e: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13a840: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a843: 85 c0 test %eax,%eax <== NOT EXECUTED
13a845: 75 65 jne 13a8ac <msdos_file_sync+0xac> <== NOT EXECUTED
/*
* if fat-file descriptor is not marked "removed" - synchronize file
* metadata
*/
if (!FAT_FILE_IS_REMOVED(fat_fd))
13a847: f6 46 30 01 testb $0x1,0x30(%esi) <== NOT EXECUTED
13a84b: 75 3f jne 13a88c <msdos_file_sync+0x8c> <== NOT EXECUTED
{
rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
13a84d: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13a850: 56 push %esi <== NOT EXECUTED
13a851: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13a854: e8 37 11 00 00 call 13b990 <msdos_set_first_cluster_num><== NOT EXECUTED
13a859: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13a85b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a85e: 85 c0 test %eax,%eax <== NOT EXECUTED
13a860: 75 4a jne 13a8ac <msdos_file_sync+0xac> <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rc = msdos_set_file_size(iop->pathinfo.mt_entry, fat_fd);
13a862: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13a865: 56 push %esi <== NOT EXECUTED
13a866: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13a869: e8 b2 10 00 00 call 13b920 <msdos_set_file_size> <== NOT EXECUTED
13a86e: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13a870: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a873: 85 c0 test %eax,%eax <== NOT EXECUTED
13a875: 75 35 jne 13a8ac <msdos_file_sync+0xac> <== 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);
13a877: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13a87a: 56 push %esi <== NOT EXECUTED
13a87b: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13a87e: e8 11 13 00 00 call 13bb94 <msdos_set_dir_wrt_time_and_date><== NOT EXECUTED
13a883: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13a885: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13a888: 85 c0 test %eax,%eax <== NOT EXECUTED
13a88a: 75 20 jne 13a8ac <msdos_file_sync+0xac> <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
}
rtems_semaphore_release(fs_info->vol_sema);
13a88c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a88f: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13a892: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13a898: e8 57 87 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
13a89d: 31 ff xor %edi,%edi <== NOT EXECUTED
return RC_OK;
13a89f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13a8a2: 89 f8 mov %edi,%eax <== NOT EXECUTED
13a8a4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a8a7: 5b pop %ebx <== NOT EXECUTED
13a8a8: 5e pop %esi <== NOT EXECUTED
13a8a9: 5f pop %edi <== NOT EXECUTED
13a8aa: c9 leave <== NOT EXECUTED
13a8ab: c3 ret <== NOT EXECUTED
return rc;
}
rc = msdos_set_dir_wrt_time_and_date(iop->pathinfo.mt_entry, fat_fd);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
13a8ac: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13a8af: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13a8b2: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13a8b8: e8 37 87 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
13a8bd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
rtems_semaphore_release(fs_info->vol_sema);
return RC_OK;
}
13a8c0: 89 f8 mov %edi,%eax <== NOT EXECUTED
13a8c2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13a8c5: 5b pop %ebx <== NOT EXECUTED
13a8c6: 5e pop %esi <== NOT EXECUTED
13a8c7: 5f pop %edi <== NOT EXECUTED
13a8c8: c9 leave <== NOT EXECUTED
13a8c9: c3 ret <== NOT EXECUTED
13a8ca: 66 90 xchg %ax,%ax <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
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);
13a8cc: e8 bb be 00 00 call 14678c <__errno> <== NOT EXECUTED
13a8d1: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13a8d7: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
13a8dc: eb c4 jmp 13a8a2 <msdos_file_sync+0xa2> <== NOT EXECUTED
0013aa9c <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)
{
13aa9c: 55 push %ebp <== NOT EXECUTED
13aa9d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13aa9f: 57 push %edi <== NOT EXECUTED
13aaa0: 56 push %esi <== NOT EXECUTED
13aaa1: 53 push %ebx <== NOT EXECUTED
13aaa2: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
13aaa5: 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;
13aaa8: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
13aaab: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
13aaae: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
13aab1: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13aab4: 6a 00 push $0x0 <== NOT EXECUTED
13aab6: 6a 00 push $0x0 <== NOT EXECUTED
13aab8: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13aabe: e8 35 84 fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13aac3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13aac6: 85 c0 test %eax,%eax <== NOT EXECUTED
13aac8: 0f 85 8a 00 00 00 jne 13ab58 <msdos_file_write+0xbc> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
ret = fat_file_write(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
13aace: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13aad1: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13aad4: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13aad7: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
13aada: 57 push %edi <== NOT EXECUTED
13aadb: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13aade: e8 45 02 ff ff call 12ad28 <fat_file_write> <== NOT EXECUTED
13aae3: 89 c6 mov %eax,%esi <== NOT EXECUTED
buffer);
if (ret < 0)
13aae5: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13aae8: 85 c0 test %eax,%eax <== NOT EXECUTED
13aaea: 78 7e js 13ab6a <msdos_file_write+0xce> <== 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)
13aaec: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13aaef: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED
13aaf2: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
13aaf5: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
13aaf8: 8b 47 18 mov 0x18(%edi),%eax <== NOT EXECUTED
13aafb: 31 d2 xor %edx,%edx <== NOT EXECUTED
13aafd: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
13ab00: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
13ab03: 89 f0 mov %esi,%eax <== NOT EXECUTED
13ab05: 99 cltd <== NOT EXECUTED
13ab06: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED
13ab09: 13 55 d4 adc -0x2c(%ebp),%edx <== NOT EXECUTED
13ab0c: 83 fa 00 cmp $0x0,%edx <== NOT EXECUTED
13ab0f: 7d 2b jge 13ab3c <msdos_file_write+0xa0> <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset + ret;
iop->size = fat_fd->fat_file_size;
13ab11: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
13ab14: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
13ab17: 89 43 04 mov %eax,0x4(%ebx) <== NOT EXECUTED
13ab1a: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13ab1d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ab20: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13ab23: ff b2 94 00 00 00 pushl 0x94(%edx) <== NOT EXECUTED
13ab29: e8 c6 84 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return ret;
13ab2e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13ab31: 89 f0 mov %esi,%eax <== NOT EXECUTED
13ab33: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13ab36: 5b pop %ebx <== NOT EXECUTED
13ab37: 5e pop %esi <== NOT EXECUTED
13ab38: 5f pop %edi <== NOT EXECUTED
13ab39: c9 leave <== NOT EXECUTED
13ab3a: c3 ret <== NOT EXECUTED
13ab3b: 90 nop <== 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)
13ab3c: 7f 05 jg 13ab43 <msdos_file_write+0xa7> <== NOT EXECUTED
13ab3e: 3b 45 d8 cmp -0x28(%ebp),%eax <== NOT EXECUTED
13ab41: 76 ce jbe 13ab11 <msdos_file_write+0x75> <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset + ret;
13ab43: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
13ab46: 8d 04 16 lea (%esi,%edx,1),%eax <== NOT EXECUTED
13ab49: 89 47 18 mov %eax,0x18(%edi) <== NOT EXECUTED
13ab4c: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
13ab4f: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
13ab56: eb b9 jmp 13ab11 <msdos_file_write+0x75> <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
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);
13ab58: e8 2f bc 00 00 call 14678c <__errno> <== NOT EXECUTED
13ab5d: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13ab63: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
13ab68: eb c7 jmp 13ab31 <msdos_file_write+0x95> <== NOT EXECUTED
ret = fat_file_write(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
buffer);
if (ret < 0)
{
rtems_semaphore_release(fs_info->vol_sema);
13ab6a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ab6d: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13ab70: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
13ab76: e8 79 84 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
13ab7b: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
return -1;
13ab80: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ab83: eb ac jmp 13ab31 <msdos_file_write+0x95> <== NOT EXECUTED
00144d58 <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)
{
144d58: 55 push %ebp <== NOT EXECUTED
144d59: 89 e5 mov %esp,%ebp <== NOT EXECUTED
144d5b: 57 push %edi <== NOT EXECUTED
144d5c: 56 push %esi <== NOT EXECUTED
144d5d: 53 push %ebx <== NOT EXECUTED
144d5e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
144d61: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
144d64: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
144d67: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
144d6a: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
/*
* Fill the dos filename string with blanks. These are DOS's pad
* characters.
*/
for (i = 0; i <= 10; i++)
dn[i] = ' ';
144d6c: c6 04 0e 20 movb $0x20,(%esi,%ecx,1) <== NOT EXECUTED
/*
* Fill the dos filename string with blanks. These are DOS's pad
* characters.
*/
for (i = 0; i <= 10; i++)
144d70: 41 inc %ecx <== NOT EXECUTED
144d71: 83 f9 0b cmp $0xb,%ecx <== NOT EXECUTED
144d74: 75 f6 jne 144d6c <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) {
144d76: 8a 1a mov (%edx),%bl <== NOT EXECUTED
144d78: 80 fb 2e cmp $0x2e,%bl <== NOT EXECUTED
144d7b: 0f 84 e3 00 00 00 je 144e64 <msdos_filename_unix2dos+0x10c><== NOT EXECUTED
}
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
144d81: 85 c0 test %eax,%eax <== NOT EXECUTED
144d83: 75 11 jne 144d96 <msdos_filename_unix2dos+0x3e><== NOT EXECUTED
144d85: e9 cd 00 00 00 jmp 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
144d8a: 66 90 xchg %ax,%ax <== NOT EXECUTED
144d8c: 48 dec %eax <== NOT EXECUTED
144d8d: 0f 84 c4 00 00 00 je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
un++;
144d93: 42 inc %edx <== NOT EXECUTED
}
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
144d94: 8a 1a mov (%edx),%bl <== NOT EXECUTED
144d96: 80 fb 2e cmp $0x2e,%bl <== NOT EXECUTED
144d99: 74 f1 je 144d8c <msdos_filename_unix2dos+0x34><== 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++) {
144d9b: 88 d9 mov %bl,%cl <== NOT EXECUTED
144d9d: 84 db test %bl,%bl <== NOT EXECUTED
144d9f: 0f 84 b2 00 00 00 je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
if (msdos_map[c] == 0)
144da5: 0f b6 db movzbl %bl,%ebx <== NOT EXECUTED
144da8: 8a 9b a0 89 16 00 mov 0x1689a0(%ebx),%bl <== NOT EXECUTED
144dae: 84 db test %bl,%bl <== NOT EXECUTED
144db0: 74 4c je 144dfe <msdos_filename_unix2dos+0xa6><== NOT EXECUTED
break;
dn[i] = msdos_map[c];
144db2: 88 1e mov %bl,(%esi) <== NOT EXECUTED
un++;
144db4: 42 inc %edx <== NOT EXECUTED
unlen--;
144db5: 48 dec %eax <== NOT EXECUTED
144db6: c7 45 ec 01 00 00 00 movl $0x1,-0x14(%ebp) <== NOT EXECUTED
144dbd: 8d 76 00 lea 0x0(%esi),%esi <== 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++) {
144dc0: 85 c0 test %eax,%eax <== NOT EXECUTED
144dc2: 0f 84 8f 00 00 00 je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
144dc8: 8a 0a mov (%edx),%cl <== NOT EXECUTED
144dca: 84 c9 test %cl,%cl <== NOT EXECUTED
144dcc: 0f 84 85 00 00 00 je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
144dd2: 80 f9 2e cmp $0x2e,%cl <== NOT EXECUTED
144dd5: 74 27 je 144dfe <msdos_filename_unix2dos+0xa6><== NOT EXECUTED
if (msdos_map[c] == 0)
144dd7: 0f b6 f9 movzbl %cl,%edi <== NOT EXECUTED
144dda: 0f b6 bf a0 89 16 00 movzbl 0x1689a0(%edi),%edi <== NOT EXECUTED
144de1: 89 fb mov %edi,%ebx <== NOT EXECUTED
144de3: 84 db test %bl,%bl <== NOT EXECUTED
144de5: 74 17 je 144dfe <msdos_filename_unix2dos+0xa6><== NOT EXECUTED
break;
dn[i] = msdos_map[c];
144de7: 8b 4d ec mov -0x14(%ebp),%ecx <== NOT EXECUTED
144dea: 88 1c 0e mov %bl,(%esi,%ecx,1) <== NOT EXECUTED
un++;
144ded: 42 inc %edx <== NOT EXECUTED
unlen--;
144dee: 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++) {
144def: 41 inc %ecx <== NOT EXECUTED
144df0: 89 4d ec mov %ecx,-0x14(%ebp) <== NOT EXECUTED
144df3: 83 f9 08 cmp $0x8,%ecx <== NOT EXECUTED
144df6: 75 c8 jne 144dc0 <msdos_filename_unix2dos+0x68><== NOT EXECUTED
/*
* Strip any further characters up to a '.' or the end of the
* string.
*/
while (unlen && (c = *un)) {
144df8: 85 c0 test %eax,%eax <== NOT EXECUTED
144dfa: 74 5b je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
144dfc: 8a 0a mov (%edx),%cl <== NOT EXECUTED
144dfe: 84 c9 test %cl,%cl <== NOT EXECUTED
144e00: 74 55 je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
un++;
144e02: 42 inc %edx <== NOT EXECUTED
unlen--;
144e03: 48 dec %eax <== NOT EXECUTED
/* Make sure we've skipped over the dot before stopping. */
if (c == '.')
144e04: 80 f9 2e cmp $0x2e,%cl <== NOT EXECUTED
144e07: 75 ef jne 144df8 <msdos_filename_unix2dos+0xa0><== 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++) {
144e09: 85 c0 test %eax,%eax <== NOT EXECUTED
144e0b: 74 4a je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
144e0d: 8a 0a mov (%edx),%cl <== NOT EXECUTED
144e0f: 84 c9 test %cl,%cl <== NOT EXECUTED
144e11: 74 44 je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
if (msdos_map[c] == 0)
144e13: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
144e16: 8a 89 a0 89 16 00 mov 0x1689a0(%ecx),%cl <== NOT EXECUTED
144e1c: 84 c9 test %cl,%cl <== NOT EXECUTED
144e1e: 74 37 je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
break;
dn[i] = msdos_map[c];
144e20: 88 4e 08 mov %cl,0x8(%esi) <== 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++) {
144e23: 48 dec %eax <== NOT EXECUTED
144e24: 74 31 je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
144e26: 8a 4a 01 mov 0x1(%edx),%cl <== NOT EXECUTED
144e29: 84 c9 test %cl,%cl <== NOT EXECUTED
144e2b: 74 2a je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
if (msdos_map[c] == 0)
144e2d: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
144e30: 8a 89 a0 89 16 00 mov 0x1689a0(%ecx),%cl <== NOT EXECUTED
144e36: 84 c9 test %cl,%cl <== NOT EXECUTED
144e38: 74 1d je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
break;
dn[i] = msdos_map[c];
144e3a: 88 4e 09 mov %cl,0x9(%esi) <== 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++) {
144e3d: 48 dec %eax <== NOT EXECUTED
144e3e: 74 17 je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
144e40: 8a 42 02 mov 0x2(%edx),%al <== NOT EXECUTED
144e43: 84 c0 test %al,%al <== NOT EXECUTED
144e45: 74 10 je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
if (msdos_map[c] == 0)
144e47: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
144e4a: 8a 80 a0 89 16 00 mov 0x1689a0(%eax),%al <== NOT EXECUTED
144e50: 84 c0 test %al,%al <== NOT EXECUTED
144e52: 74 03 je 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
break;
dn[i] = msdos_map[c];
144e54: 88 46 0a mov %al,0xa(%esi) <== NOT EXECUTED
un++;
unlen--;
}
return 0;
}
144e57: 31 c0 xor %eax,%eax <== NOT EXECUTED
144e59: 83 c4 08 add $0x8,%esp <== NOT EXECUTED
144e5c: 5b pop %ebx <== NOT EXECUTED
144e5d: 5e pop %esi <== NOT EXECUTED
144e5e: 5f pop %edi <== NOT EXECUTED
144e5f: c9 leave <== NOT EXECUTED
144e60: c3 ret <== NOT EXECUTED
144e61: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/*
* The filenames "." and ".." are handled specially, since they
* don't follow dos filename rules.
*/
if (un[0] == '.' && unlen == 1) {
144e64: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
144e67: 74 1c je 144e85 <msdos_filename_unix2dos+0x12d><== NOT EXECUTED
dn[0] = '.';
return 0;
}
if (un[0] == '.' && un[1] == '.' && unlen == 2) {
144e69: 80 7a 01 2e cmpb $0x2e,0x1(%edx) <== NOT EXECUTED
144e6d: 0f 85 0e ff ff ff jne 144d81 <msdos_filename_unix2dos+0x29><== NOT EXECUTED
144e73: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
144e76: 0f 85 05 ff ff ff jne 144d81 <msdos_filename_unix2dos+0x29><== NOT EXECUTED
dn[0] = '.';
144e7c: c6 06 2e movb $0x2e,(%esi) <== NOT EXECUTED
dn[1] = '.';
144e7f: c6 46 01 2e movb $0x2e,0x1(%esi) <== NOT EXECUTED
return 0;
144e83: eb d2 jmp 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
/*
* The filenames "." and ".." are handled specially, since they
* don't follow dos filename rules.
*/
if (un[0] == '.' && unlen == 1) {
dn[0] = '.';
144e85: c6 06 2e movb $0x2e,(%esi) <== NOT EXECUTED
return 0;
144e88: eb cd jmp 144e57 <msdos_filename_unix2dos+0xff><== NOT EXECUTED
0013c218 <msdos_find_name>:
msdos_find_name(
rtems_filesystem_location_info_t *parent_loc,
const char *name,
int name_len
)
{
13c218: 55 push %ebp <== NOT EXECUTED
13c219: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c21b: 57 push %edi <== NOT EXECUTED
13c21c: 56 push %esi <== NOT EXECUTED
13c21d: 53 push %ebx <== NOT EXECUTED
13c21e: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
13c221: 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;
13c224: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13c227: 8b 41 10 mov 0x10(%ecx),%eax <== NOT EXECUTED
13c22a: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
13c22d: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = NULL;
13c230: 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);
13c237: 8d 5d b4 lea -0x4c(%ebp),%ebx <== NOT EXECUTED
13c23a: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13c23f: 31 c0 xor %eax,%eax <== NOT EXECUTED
13c241: 89 df mov %ebx,%edi <== NOT EXECUTED
13c243: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
name_type = msdos_long_to_short (name,
13c245: 6a 0b push $0xb <== NOT EXECUTED
13c247: 53 push %ebx <== NOT EXECUTED
13c248: 52 push %edx <== NOT EXECUTED
13c249: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13c24c: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
13c24f: e8 30 fb ff ff call 13bd84 <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,
13c254: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13c257: 53 push %ebx <== NOT EXECUTED
13c258: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED
13c25b: 56 push %esi <== NOT EXECUTED
13c25c: 50 push %eax <== NOT EXECUTED
13c25d: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
13c260: 52 push %edx <== NOT EXECUTED
13c261: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13c264: 6a 00 push $0x0 <== NOT EXECUTED
13c266: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13c269: e8 e2 fe ff ff call 13c150 <msdos_get_name_node> <== NOT EXECUTED
13c26e: 89 c7 mov %eax,%edi <== NOT EXECUTED
&dir_pos, node_entry);
if (rc != RC_OK)
13c270: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13c273: 85 c0 test %eax,%eax <== NOT EXECUTED
13c275: 75 62 jne 13c2d9 <msdos_find_name+0xc1> <== NOT EXECUTED
return rc;
if (((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_VOLUME_ID) ||
13c277: 0f b6 45 bf movzbl -0x41(%ebp),%eax <== NOT EXECUTED
13c27b: a8 08 test $0x8,%al <== NOT EXECUTED
13c27d: 75 65 jne 13c2e4 <msdos_find_name+0xcc> <== NOT EXECUTED
13c27f: 83 e0 3f and $0x3f,%eax <== NOT EXECUTED
13c282: 83 f8 0f cmp $0xf,%eax <== NOT EXECUTED
13c285: 74 5d je 13c2e4 <msdos_find_name+0xcc> <== 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);
13c287: 51 push %ecx <== NOT EXECUTED
13c288: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13c28b: 50 push %eax <== NOT EXECUTED
13c28c: 56 push %esi <== NOT EXECUTED
13c28d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13c290: ff 70 10 pushl 0x10(%eax) <== NOT EXECUTED
13c293: e8 c0 ef fe ff call 12b258 <fat_file_open> <== NOT EXECUTED
13c298: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13c29a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c29d: 85 c0 test %eax,%eax <== NOT EXECUTED
13c29f: 75 38 jne 13c2d9 <msdos_find_name+0xc1> <== NOT EXECUTED
return rc;
fat_fd->dir_pos = dir_pos;
13c2a1: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13c2a4: 8d 7a 20 lea 0x20(%edx),%edi <== NOT EXECUTED
13c2a7: b9 04 00 00 00 mov $0x4,%ecx <== NOT EXECUTED
13c2ac: 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)
13c2ae: 83 7a 08 01 cmpl $0x1,0x8(%edx) <== NOT EXECUTED
13c2b2: 74 40 je 13c2f4 <msdos_find_name+0xdc> <== NOT EXECUTED
fat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
}
}
/* close fat-file corresponded to the node we searched in */
rc = fat_file_close(parent_loc->mt_entry, parent_loc->node_access);
13c2b4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c2b7: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13c2ba: ff 30 pushl (%eax) <== NOT EXECUTED
13c2bc: ff 70 10 pushl 0x10(%eax) <== NOT EXECUTED
13c2bf: e8 d4 ee fe ff call 12b198 <fat_file_close> <== NOT EXECUTED
13c2c4: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13c2c6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c2c9: 85 c0 test %eax,%eax <== NOT EXECUTED
13c2cb: 0f 85 97 00 00 00 jne 13c368 <msdos_find_name+0x150> <== NOT EXECUTED
fat_file_close(parent_loc->mt_entry, fat_fd);
return rc;
}
/* update node_info_ptr field */
parent_loc->node_access = fat_fd;
13c2d1: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13c2d4: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13c2d7: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
return rc;
}
13c2d9: 89 f8 mov %edi,%eax <== NOT EXECUTED
13c2db: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c2de: 5b pop %ebx <== NOT EXECUTED
13c2df: 5e pop %esi <== NOT EXECUTED
13c2e0: 5f pop %edi <== NOT EXECUTED
13c2e1: c9 leave <== NOT EXECUTED
13c2e2: c3 ret <== NOT EXECUTED
13c2e3: 90 nop <== NOT EXECUTED
}
/* update node_info_ptr field */
parent_loc->node_access = fat_fd;
return rc;
13c2e4: bf 01 7d 00 00 mov $0x7d01,%edi <== NOT EXECUTED
}
13c2e9: 89 f8 mov %edi,%eax <== NOT EXECUTED
13c2eb: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c2ee: 5b pop %ebx <== NOT EXECUTED
13c2ef: 5e pop %esi <== NOT EXECUTED
13c2f0: 5f pop %edi <== NOT EXECUTED
13c2f1: c9 leave <== NOT EXECUTED
13c2f2: c3 ret <== NOT EXECUTED
13c2f3: 90 nop <== NOT EXECUTED
* 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)
{
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);
13c2f4: 0f b7 43 14 movzwl 0x14(%ebx),%eax <== NOT EXECUTED
13c2f8: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
13c2fb: 0f b7 4b 1a movzwl 0x1a(%ebx),%ecx <== NOT EXECUTED
13c2ff: 09 c8 or %ecx,%eax <== NOT EXECUTED
13c301: 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));
13c304: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c307: 0f b7 43 16 movzwl 0x16(%ebx),%eax <== NOT EXECUTED
13c30b: 50 push %eax <== NOT EXECUTED
13c30c: 0f b7 43 18 movzwl 0x18(%ebx),%eax <== NOT EXECUTED
13c310: 50 push %eax <== NOT EXECUTED
13c311: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
13c314: e8 37 89 00 00 call 144c50 <msdos_date_dos2unix> <== NOT EXECUTED
13c319: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
13c31c: 89 42 40 mov %eax,0x40(%edx) <== NOT EXECUTED
if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)
13c31f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c322: f6 45 bf 10 testb $0x10,-0x41(%ebp) <== NOT EXECUTED
13c326: 75 68 jne 13c390 <msdos_find_name+0x178> <== NOT EXECUTED
return rc;
}
}
else
{
fat_fd->fat_file_size = CF_LE_L(*MSDOS_DIR_FILE_SIZE(node_entry));
13c328: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13c32b: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
13c32e: 89 50 18 mov %edx,0x18(%eax) <== NOT EXECUTED
fat_fd->fat_file_type = FAT_FILE;
13c331: c7 40 10 05 00 00 00 movl $0x5,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_FILE_SIZE;
13c338: 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;
13c33f: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
13c346: 8b 48 1c mov 0x1c(%eax),%ecx <== NOT EXECUTED
13c349: 89 48 38 mov %ecx,0x38(%eax) <== NOT EXECUTED
if ((fat_fd->fat_file_size != 0) &&
13c34c: 8b 50 18 mov 0x18(%eax),%edx <== NOT EXECUTED
13c34f: 85 d2 test %edx,%edx <== NOT EXECUTED
13c351: 74 31 je 13c384 <msdos_find_name+0x16c> <== NOT EXECUTED
(fat_fd->fat_file_size <= fs_info->fat.vol.bpc))
13c353: 8b 75 a4 mov -0x5c(%ebp),%esi <== NOT EXECUTED
13c356: 0f b7 5e 06 movzwl 0x6(%esi),%ebx <== NOT EXECUTED
13c35a: 39 da cmp %ebx,%edx <== NOT EXECUTED
13c35c: 77 26 ja 13c384 <msdos_find_name+0x16c> <== NOT EXECUTED
{
fat_fd->map.last_cln = fat_fd->cln;
13c35e: 89 48 3c mov %ecx,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) &&
13c361: e9 4e ff ff ff jmp 13c2b4 <msdos_find_name+0x9c> <== NOT EXECUTED
13c366: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* close fat-file corresponded to the node we searched in */
rc = fat_file_close(parent_loc->mt_entry, parent_loc->node_access);
if (rc != RC_OK)
{
fat_file_close(parent_loc->mt_entry, fat_fd);
13c368: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c36b: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13c36e: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13c371: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
13c374: e8 1f ee fe ff call 12b198 <fat_file_close> <== NOT EXECUTED
return rc;
13c379: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c37c: e9 58 ff ff ff jmp 13c2d9 <msdos_find_name+0xc1> <== NOT EXECUTED
13c381: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
fat_fd->map.last_cln = fat_fd->cln;
}
else
{
fat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
13c384: c7 40 3c ff ff ff ff movl $0xffffffff,0x3c(%eax) <== NOT EXECUTED
13c38b: e9 24 ff ff ff jmp 13c2b4 <msdos_find_name+0x9c> <== NOT EXECUTED
fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)
{
fat_fd->fat_file_type = FAT_DIRECTORY;
13c390: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13c393: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
13c39a: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
rc = fat_file_size(parent_loc->mt_entry, fat_fd);
13c3a1: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c3a4: 50 push %eax <== NOT EXECUTED
13c3a5: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13c3a8: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
13c3ab: e8 94 e3 fe ff call 12a744 <fat_file_size> <== NOT EXECUTED
13c3b0: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13c3b2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c3b5: 85 c0 test %eax,%eax <== NOT EXECUTED
13c3b7: 75 05 jne 13c3be <msdos_find_name+0x1a6> <== NOT EXECUTED
13c3b9: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13c3bc: eb 81 jmp 13c33f <msdos_find_name+0x127> <== NOT EXECUTED
{
fat_file_close(parent_loc->mt_entry, fat_fd);
13c3be: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c3c1: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13c3c4: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13c3c7: ff 71 10 pushl 0x10(%ecx) <== NOT EXECUTED
13c3ca: e8 c9 ed fe ff call 12b198 <fat_file_close> <== NOT EXECUTED
return rc;
13c3cf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c3d2: e9 02 ff ff ff jmp 13c2d9 <msdos_find_name+0xc1> <== NOT EXECUTED
0013af68 <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
)
{
13af68: 55 push %ebp <== NOT EXECUTED
13af69: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13af6b: 57 push %edi <== NOT EXECUTED
13af6c: 56 push %esi <== NOT EXECUTED
13af6d: 53 push %ebx <== NOT EXECUTED
13af6e: 81 ec 8c 00 00 00 sub $0x8c,%esp <== NOT EXECUTED
13af74: 8a 45 10 mov 0x10(%ebp),%al <== NOT EXECUTED
13af77: 88 45 cc mov %al,-0x34(%ebp) <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
13af7a: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13af7d: 8b 52 34 mov 0x34(%edx),%edx <== NOT EXECUTED
13af80: 89 55 90 mov %edx,-0x70(%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);
13af83: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13af86: 85 c0 test %eax,%eax <== NOT EXECUTED
13af88: 0f 8e 40 08 00 00 jle 13b7ce <msdos_find_name_in_fat_file+0x866><== NOT EXECUTED
static inline void
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
13af8e: 8b 4d 20 mov 0x20(%ebp),%ecx <== NOT EXECUTED
13af91: c7 01 00 00 00 00 movl $0x0,(%ecx) <== NOT EXECUTED
dir_pos->sname.ofs = 0;
13af97: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
13af9e: c7 41 08 ff ff ff ff movl $0xffffffff,0x8(%ecx) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
13afa5: 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))
13afac: 80 7d cc 00 cmpb $0x0,-0x34(%ebp) <== NOT EXECUTED
13afb0: 74 0a je 13afbc <msdos_find_name_in_fat_file+0x54><== NOT EXECUTED
13afb2: 83 7d 1c 01 cmpl $0x1,0x1c(%ebp) <== NOT EXECUTED
13afb6: 0f 84 13 05 00 00 je 13b4cf <msdos_find_name_in_fat_file+0x567><== NOT EXECUTED
lfn_entries = 0;
else
lfn_entries =
13afbc: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
13afbf: 83 c1 0c add $0xc,%ecx <== NOT EXECUTED
13afc2: bb 4f ec c4 4e mov $0x4ec4ec4f,%ebx <== NOT EXECUTED
13afc7: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13afc9: f7 eb imul %ebx <== NOT EXECUTED
13afcb: c1 fa 02 sar $0x2,%edx <== NOT EXECUTED
13afce: c1 f9 1f sar $0x1f,%ecx <== NOT EXECUTED
13afd1: 29 ca sub %ecx,%edx <== NOT EXECUTED
13afd3: 89 55 88 mov %edx,-0x78(%ebp) <== NOT EXECUTED
((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
13afd6: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
13afd9: 83 79 20 01 cmpl $0x1,0x20(%ecx) <== NOT EXECUTED
13afdd: 0f 84 ba 04 00 00 je 13b49d <msdos_find_name_in_fat_file+0x535><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
bts2rd = fat_fd->fat_file_size;
else
bts2rd = fs_info->fat.vol.bpc;
13afe3: 8b 45 90 mov -0x70(%ebp),%eax <== NOT EXECUTED
13afe6: 0f b7 40 06 movzwl 0x6(%eax),%eax <== NOT EXECUTED
13afea: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
assert(name_len > 0);
fat_dir_pos_init(dir_pos);
lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;
13afed: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) <== NOT EXECUTED
13aff4: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
13affb: 8b 55 90 mov -0x70(%ebp),%edx <== NOT EXECUTED
13affe: 8b 92 98 00 00 00 mov 0x98(%edx),%edx <== NOT EXECUTED
13b004: 89 55 8c mov %edx,-0x74(%ebp) <== NOT EXECUTED
13b007: c7 45 80 00 00 00 00 movl $0x0,-0x80(%ebp) <== NOT EXECUTED
13b00e: c6 45 98 00 movb $0x0,-0x68(%ebp) <== NOT EXECUTED
13b012: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
13b019: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%ebp) <== NOT EXECUTED
13b020: c7 45 9c 00 00 00 00 movl $0x0,-0x64(%ebp) <== NOT EXECUTED
13b027: c7 45 a0 00 00 00 00 movl $0x0,-0x60(%ebp) <== NOT EXECUTED
13b02e: c6 45 a4 00 movb $0x0,-0x5c(%ebp) <== NOT EXECUTED
13b032: 31 d2 xor %edx,%edx <== NOT EXECUTED
13b034: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED
/*
* Remainder is not empty so is this entry empty ?
*/
empty_space_count++;
if (empty_space_count == (lfn_entries + 1))
13b03b: 8b 4d 88 mov -0x78(%ebp),%ecx <== NOT EXECUTED
13b03e: 41 inc %ecx <== NOT EXECUTED
13b03f: 89 4d 84 mov %ecx,-0x7c(%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),
13b042: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b045: ff 75 8c pushl -0x74(%ebp) <== NOT EXECUTED
13b048: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
13b04b: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
13b04e: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13b051: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13b054: 88 95 70 ff ff ff mov %dl,-0x90(%ebp) <== NOT EXECUTED
13b05a: e8 35 ff fe ff call 12af94 <fat_file_read> <== NOT EXECUTED
13b05f: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13b062: 85 c0 test %eax,%eax <== NOT EXECUTED
13b064: 8a 95 70 ff ff ff mov -0x90(%ebp),%dl <== NOT EXECUTED
13b06a: 0f 84 99 06 00 00 je 13b709 <msdos_find_name_in_fat_file+0x7a1><== 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)
13b070: 83 f8 1f cmp $0x1f,%eax <== NOT EXECUTED
13b073: 0f 8e e0 05 00 00 jle 13b659 <msdos_find_name_in_fat_file+0x6f1><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
assert(ret == bts2rd);
13b079: 3b 45 c8 cmp -0x38(%ebp),%eax <== NOT EXECUTED
13b07c: 0f 85 33 07 00 00 jne 13b7b5 <msdos_find_name_in_fat_file+0x84d><== NOT EXECUTED
13b082: 8b 75 90 mov -0x70(%ebp),%esi <== NOT EXECUTED
13b085: 8b b6 98 00 00 00 mov 0x98(%esi),%esi <== NOT EXECUTED
13b08b: 89 75 8c mov %esi,-0x74(%ebp) <== NOT EXECUTED
13b08e: 89 f3 mov %esi,%ebx <== NOT EXECUTED
13b090: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
13b097: 90 nop <== NOT EXECUTED
13b098: 89 d8 mov %ebx,%eax <== 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) ==
13b09a: 8a 0b mov (%ebx),%cl <== 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)
13b09c: 8b 75 d0 mov -0x30(%ebp),%esi <== NOT EXECUTED
13b09f: 85 f6 test %esi,%esi <== NOT EXECUTED
13b0a1: 75 0c jne 13b0af <msdos_find_name_in_fat_file+0x147><== NOT EXECUTED
13b0a3: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
13b0a6: 89 7d c0 mov %edi,-0x40(%ebp) <== NOT EXECUTED
13b0a9: 8b 75 c4 mov -0x3c(%ebp),%esi <== NOT EXECUTED
13b0ac: 89 75 9c mov %esi,-0x64(%ebp) <== NOT EXECUTED
{
empty_space_entry = dir_entry;
empty_space_offset = dir_offset;
}
if (remainder_empty)
13b0af: 84 c9 test %cl,%cl <== NOT EXECUTED
13b0b1: 0f 84 53 02 00 00 je 13b30a <msdos_find_name_in_fat_file+0x3a2><== NOT EXECUTED
printf ("MSFS:[3.2] esf:%i esc%i\n", empty_space_found, empty_space_count);
#endif
}
break;
}
else if (entry_empty)
13b0b7: 80 f9 e5 cmp $0xe5,%cl <== NOT EXECUTED
13b0ba: 0f 84 a0 00 00 00 je 13b160 <msdos_find_name_in_fat_file+0x1f8><== 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)
13b0c0: 80 7d cc 00 cmpb $0x0,-0x34(%ebp) <== NOT EXECUTED
13b0c4: 74 14 je 13b0da <msdos_find_name_in_fat_file+0x172><== NOT EXECUTED
13b0c6: 80 7d 98 00 cmpb $0x0,-0x68(%ebp) <== NOT EXECUTED
13b0ca: 75 0e jne 13b0da <msdos_find_name_in_fat_file+0x172><== NOT EXECUTED
13b0cc: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
13b0d3: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%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) ==
13b0da: 0f b6 73 0b movzbl 0xb(%ebx),%esi <== NOT EXECUTED
13b0de: 83 e6 3f and $0x3f,%esi <== NOT EXECUTED
13b0e1: 83 fe 0f cmp $0xf,%esi <== NOT EXECUTED
13b0e4: 0f 84 8e 00 00 00 je 13b178 <msdos_find_name_in_fat_file+0x210><== 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)
13b0ea: 84 d2 test %dl,%dl <== NOT EXECUTED
13b0ec: 74 42 je 13b130 <msdos_find_name_in_fat_file+0x1c8><== NOT EXECUTED
13b0ee: 8d 7b 0a lea 0xa(%ebx),%edi <== NOT EXECUTED
13b0f1: 31 f6 xor %esi,%esi <== NOT EXECUTED
13b0f3: c6 45 94 00 movb $0x0,-0x6c(%ebp) <== NOT EXECUTED
13b0f7: 89 f2 mov %esi,%edx <== NOT EXECUTED
13b0f9: 88 55 a8 mov %dl,-0x58(%ebp) <== NOT EXECUTED
13b0fc: 89 de mov %ebx,%esi <== NOT EXECUTED
13b0fe: 88 cb mov %cl,%bl <== NOT EXECUTED
13b100: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
13b102: eb 0d jmp 13b111 <msdos_find_name_in_fat_file+0x1a9><== 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;
13b104: 89 ca mov %ecx,%edx <== NOT EXECUTED
13b106: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
13b109: f7 da neg %edx <== NOT EXECUTED
13b10b: 83 e2 80 and $0xffffff80,%edx <== 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++)
13b10e: 40 inc %eax <== NOT EXECUTED
13b10f: 8a 18 mov (%eax),%bl <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
13b111: d0 e9 shr %cl <== NOT EXECUTED
13b113: 01 da add %ebx,%edx <== NOT EXECUTED
13b115: 8d 0c 0a lea (%edx,%ecx,1),%ecx <== 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++)
13b118: 39 f8 cmp %edi,%eax <== NOT EXECUTED
13b11a: 75 e8 jne 13b104 <msdos_find_name_in_fat_file+0x19c><== NOT EXECUTED
13b11c: 89 f3 mov %esi,%ebx <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entry || (lfn_checksum != cs))
13b11e: 8b 75 a0 mov -0x60(%ebp),%esi <== NOT EXECUTED
13b121: 85 f6 test %esi,%esi <== NOT EXECUTED
13b123: 75 0b jne 13b130 <msdos_find_name_in_fat_file+0x1c8><== NOT EXECUTED
13b125: 38 4d a4 cmp %cl,-0x5c(%ebp) <== NOT EXECUTED
13b128: 0f 84 8e 00 00 00 je 13b1bc <msdos_find_name_in_fat_file+0x254><== NOT EXECUTED
13b12e: 66 90 xchg %ax,%ax <== 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 ||
13b130: 83 7d 1c 01 cmpl $0x1,0x1c(%ebp) <== NOT EXECUTED
13b134: 74 6e je 13b1a4 <msdos_find_name_in_fat_file+0x23c><== NOT EXECUTED
memcpy(name_dir_entry, entry,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
}
lfn_start.cln = FAT_FILE_SHORT_NAME;
13b136: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
13b13d: 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)
13b13f: 83 45 d4 20 addl $0x20,-0x2c(%ebp) <== NOT EXECUTED
13b143: 83 c3 20 add $0x20,%ebx <== 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;
13b146: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13b149: 39 45 c8 cmp %eax,-0x38(%ebp) <== NOT EXECUTED
13b14c: 0f 87 46 ff ff ff ja 13b098 <msdos_find_name_in_fat_file+0x130><== NOT EXECUTED
13b152: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
13b155: 01 4d 80 add %ecx,-0x80(%ebp) <== NOT EXECUTED
}
if (remainder_empty)
break;
dir_offset++;
13b158: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
13b15b: e9 e2 fe ff ff jmp 13b042 <msdos_find_name_in_fat_file+0xda><== NOT EXECUTED
}
break;
}
else if (entry_empty)
{
if (create_node)
13b160: 80 7d cc 00 cmpb $0x0,-0x34(%ebp) <== NOT EXECUTED
13b164: 74 d9 je 13b13f <msdos_find_name_in_fat_file+0x1d7><== NOT EXECUTED
{
/*
* Remainder is not empty so is this entry empty ?
*/
empty_space_count++;
13b166: ff 45 d0 incl -0x30(%ebp) <== NOT EXECUTED
if (empty_space_count == (lfn_entries + 1))
13b169: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
13b16c: 39 7d 84 cmp %edi,-0x7c(%ebp) <== NOT EXECUTED
13b16f: 75 ce jne 13b13f <msdos_find_name_in_fat_file+0x1d7><== NOT EXECUTED
13b171: c6 45 98 01 movb $0x1,-0x68(%ebp) <== NOT EXECUTED
13b175: eb c8 jmp 13b13f <msdos_find_name_in_fat_file+0x1d7><== NOT EXECUTED
13b177: 90 nop <== 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)
13b178: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
13b17c: 0f 84 ae 00 00 00 je 13b230 <msdos_find_name_in_fat_file+0x2c8><== NOT EXECUTED
13b182: 8a 45 a4 mov -0x5c(%ebp),%al <== 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) &
13b185: be 3f 00 00 00 mov $0x3f,%esi <== NOT EXECUTED
13b18a: 21 ce and %ecx,%esi <== NOT EXECUTED
13b18c: 3b 75 a0 cmp -0x60(%ebp),%esi <== NOT EXECUTED
13b18f: 0f 84 b7 00 00 00 je 13b24c <msdos_find_name_in_fat_file+0x2e4><== NOT EXECUTED
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
{
#if MSDOS_FIND_PRINT
printf ("MSFS:[4.4] no match\n");
#endif
lfn_start.cln = FAT_FILE_SHORT_NAME;
13b195: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
13b19c: 88 45 a4 mov %al,-0x5c(%ebp) <== NOT EXECUTED
continue;
13b19f: eb 9e jmp 13b13f <msdos_find_name_in_fat_file+0x1d7><== NOT EXECUTED
13b1a1: 8d 76 00 lea 0x0(%esi),%esi <== 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 ||
13b1a4: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
13b1a8: 75 8c jne 13b136 <msdos_find_name_in_fat_file+0x1ce><== NOT EXECUTED
((name_type == MSDOS_NAME_SHORT) &&
(lfn_start.cln == FAT_FILE_SHORT_NAME) &&
(memcmp(MSDOS_DIR_NAME(entry),
13b1aa: b9 0b 00 00 00 mov $0xb,%ecx <== NOT EXECUTED
13b1af: 89 de mov %ebx,%esi <== NOT EXECUTED
13b1b1: 8b 7d 24 mov 0x24(%ebp),%edi <== 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 ||
13b1b4: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NOT EXECUTED
13b1b6: 0f 85 7a ff ff ff jne 13b136 <msdos_find_name_in_fat_file+0x1ce><== 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,
13b1bc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b1bf: ff 75 20 pushl 0x20(%ebp) <== NOT EXECUTED
13b1c2: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
13b1c5: 6a 01 push $0x1 <== NOT EXECUTED
13b1c7: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13b1ca: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13b1cd: e8 06 f8 fe ff call 12a9d8 <fat_file_ioctl> <== NOT EXECUTED
dir_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
13b1d2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13b1d5: 85 c0 test %eax,%eax <== NOT EXECUTED
13b1d7: 75 4e jne 13b227 <msdos_find_name_in_fat_file+0x2bf><== NOT EXECUTED
return rc;
dir_pos->sname.ofs = dir_entry;
13b1d9: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED
13b1dc: 8b 4d 20 mov 0x20(%ebp),%ecx <== NOT EXECUTED
13b1df: 89 71 04 mov %esi,0x4(%ecx) <== NOT EXECUTED
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
13b1e2: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
13b1e5: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
13b1e8: 74 23 je 13b20d <msdos_find_name_in_fat_file+0x2a5><== NOT EXECUTED
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
13b1ea: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b1ed: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
13b1f0: 52 push %edx <== NOT EXECUTED
13b1f1: 0f af 45 c8 imul -0x38(%ebp),%eax <== NOT EXECUTED
13b1f5: 50 push %eax <== NOT EXECUTED
13b1f6: 6a 01 push $0x1 <== NOT EXECUTED
13b1f8: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13b1fb: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13b1fe: e8 d5 f7 fe ff call 12a9d8 <fat_file_ioctl> <== NOT EXECUTED
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
13b203: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13b206: 85 c0 test %eax,%eax <== NOT EXECUTED
13b208: 75 1d jne 13b227 <msdos_find_name_in_fat_file+0x2bf><== NOT EXECUTED
13b20a: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
13b20d: 8b 7d 20 mov 0x20(%ebp),%edi <== NOT EXECUTED
13b210: 89 47 08 mov %eax,0x8(%edi) <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
13b213: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13b216: 89 47 0c mov %eax,0xc(%edi) <== NOT EXECUTED
memcpy(name_dir_entry, entry,
13b219: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
13b21e: 8b 7d 24 mov 0x24(%ebp),%edi <== NOT EXECUTED
13b221: 89 de mov %ebx,%esi <== NOT EXECUTED
13b223: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
13b225: 31 c0 xor %eax,%eax <== NOT EXECUTED
empty_space_entry = 0;
read_cluster = true;
}
return 0;
}
13b227: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13b22a: 5b pop %ebx <== NOT EXECUTED
13b22b: 5e pop %esi <== NOT EXECUTED
13b22c: 5f pop %edi <== NOT EXECUTED
13b22d: c9 leave <== NOT EXECUTED
13b22e: c3 ret <== NOT EXECUTED
13b22f: 90 nop <== NOT EXECUTED
/*
* The first entry must have the last long entry
* flag set.
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry) &
13b230: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
13b233: f6 c1 40 test $0x40,%cl <== NOT EXECUTED
13b236: 74 0c je 13b244 <msdos_find_name_in_fat_file+0x2dc><== 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) &
13b238: 83 e1 3f and $0x3f,%ecx <== NOT EXECUTED
13b23b: 3b 4d 88 cmp -0x78(%ebp),%ecx <== NOT EXECUTED
13b23e: 0f 84 1e 02 00 00 je 13b462 <msdos_find_name_in_fat_file+0x4fa><== NOT EXECUTED
memcpy(name_dir_entry, entry,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
}
lfn_start.cln = FAT_FILE_SHORT_NAME;
13b244: 31 d2 xor %edx,%edx <== NOT EXECUTED
13b246: e9 f4 fe ff ff jmp 13b13f <msdos_find_name_in_fat_file+0x1d7><== NOT EXECUTED
13b24b: 90 nop <== NOT EXECUTED
* could be orphaned entries depending on the history
* of the disk.
*/
if ((lfn_entry != (*MSDOS_DIR_ENTRY_TYPE(entry) &
MSDOS_LAST_LONG_ENTRY_MASK)) ||
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
13b24c: 8a 4b 0d mov 0xd(%ebx),%cl <== NOT EXECUTED
13b24f: 88 4d a4 mov %cl,-0x5c(%ebp) <== 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) &
13b252: 38 c1 cmp %al,%cl <== NOT EXECUTED
13b254: 0f 85 3b ff ff ff jne 13b195 <msdos_find_name_in_fat_file+0x22d><== NOT EXECUTED
#endif
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
}
lfn_entry--;
13b25a: ff 4d a0 decl -0x60(%ebp) <== NOT EXECUTED
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
13b25d: 8b 7d a0 mov -0x60(%ebp),%edi <== NOT EXECUTED
13b260: 8d 04 7f lea (%edi,%edi,2),%eax <== NOT EXECUTED
13b263: 8d 04 87 lea (%edi,%eax,4),%eax <== NOT EXECUTED
13b266: 89 85 7c ff ff ff mov %eax,-0x84(%ebp) <== NOT EXECUTED
13b26c: 8d 4b 01 lea 0x1(%ebx),%ecx <== NOT EXECUTED
13b26f: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
13b274: 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]))
13b276: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
13b279: 03 bd 7c ff ff ff add -0x84(%ebp),%edi <== NOT EXECUTED
13b27f: 89 7d a8 mov %edi,-0x58(%ebp) <== NOT EXECUTED
13b282: 89 b5 74 ff ff ff mov %esi,-0x8c(%ebp) <== NOT EXECUTED
13b288: 89 9d 78 ff ff ff mov %ebx,-0x88(%ebp) <== NOT EXECUTED
13b28e: 89 d3 mov %edx,%ebx <== NOT EXECUTED
13b290: 8b bd 7c ff ff ff mov -0x84(%ebp),%edi <== 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')
13b296: 8a 11 mov (%ecx),%dl <== NOT EXECUTED
13b298: 84 d2 test %dl,%dl <== NOT EXECUTED
13b29a: 74 36 je 13b2d2 <msdos_find_name_in_fat_file+0x36a><== NOT EXECUTED
((o + i) != name_len))
lfn_start.cln = FAT_FILE_SHORT_NAME;
break;
}
if (((o + i) >= name_len) || (*p != name[o + i]))
13b29c: 8d 34 38 lea (%eax,%edi,1),%esi <== NOT EXECUTED
13b29f: 39 75 18 cmp %esi,0x18(%ebp) <== NOT EXECUTED
13b2a2: 0f 8e 18 02 00 00 jle 13b4c0 <msdos_find_name_in_fat_file+0x558><== NOT EXECUTED
13b2a8: 8b 75 a8 mov -0x58(%ebp),%esi <== NOT EXECUTED
13b2ab: 3a 14 06 cmp (%esi,%eax,1),%dl <== NOT EXECUTED
13b2ae: 0f 85 0c 02 00 00 jne 13b4c0 <msdos_find_name_in_fat_file+0x558><== NOT EXECUTED
{
lfn_start.cln = FAT_FILE_SHORT_NAME;
break;
}
switch (i)
13b2b4: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
13b2b7: 74 4a je 13b303 <msdos_find_name_in_fat_file+0x39b><== NOT EXECUTED
13b2b9: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
13b2bc: 74 3e je 13b2fc <msdos_find_name_in_fat_file+0x394><== 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++)
13b2be: 83 fb 0c cmp $0xc,%ebx <== NOT EXECUTED
13b2c1: 0f 8f b9 01 00 00 jg 13b480 <msdos_find_name_in_fat_file+0x518><== NOT EXECUTED
break;
case 10:
p += 4;
break;
default:
p += 2;
13b2c7: 83 c1 02 add $0x2,%ecx <== NOT EXECUTED
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
}
lfn_entry--;
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
13b2ca: 40 inc %eax <== NOT EXECUTED
13b2cb: 43 inc %ebx <== 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')
13b2cc: 8a 11 mov (%ecx),%dl <== NOT EXECUTED
13b2ce: 84 d2 test %dl,%dl <== NOT EXECUTED
13b2d0: 75 ca jne 13b29c <msdos_find_name_in_fat_file+0x334><== NOT EXECUTED
13b2d2: 8b b5 74 ff ff ff mov -0x8c(%ebp),%esi <== NOT EXECUTED
13b2d8: 8b 9d 78 ff ff ff mov -0x88(%ebp),%ebx <== 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) &&
13b2de: 39 75 88 cmp %esi,-0x78(%ebp) <== NOT EXECUTED
13b2e1: 0f 85 9f 01 00 00 jne 13b486 <msdos_find_name_in_fat_file+0x51e><== NOT EXECUTED
13b2e7: 03 85 7c ff ff ff add -0x84(%ebp),%eax <== NOT EXECUTED
13b2ed: 3b 45 18 cmp 0x18(%ebp),%eax <== NOT EXECUTED
13b2f0: 0f 85 d0 01 00 00 jne 13b4c6 <msdos_find_name_in_fat_file+0x55e><== NOT EXECUTED
13b2f6: e9 8b 01 00 00 jmp 13b486 <msdos_find_name_in_fat_file+0x51e><== NOT EXECUTED
13b2fb: 90 nop <== NOT EXECUTED
{
case 4:
p += 5;
break;
case 10:
p += 4;
13b2fc: 83 c1 04 add $0x4,%ecx <== NOT EXECUTED
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
}
lfn_entry--;
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
13b2ff: 40 inc %eax <== NOT EXECUTED
13b300: 43 inc %ebx <== NOT EXECUTED
13b301: eb c9 jmp 13b2cc <msdos_find_name_in_fat_file+0x364><== NOT EXECUTED
}
switch (i)
{
case 4:
p += 5;
13b303: 83 c1 05 add $0x5,%ecx <== NOT EXECUTED
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
}
lfn_entry--;
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
13b306: 40 inc %eax <== NOT EXECUTED
13b307: 43 inc %ebx <== NOT EXECUTED
13b308: eb c2 jmp 13b2cc <msdos_find_name_in_fat_file+0x364><== NOT EXECUTED
#endif
/*
* If just looking and there is no more entries in the
* directory - return name-not-found
*/
if (!create_node)
13b30a: 80 7d cc 00 cmpb $0x0,-0x34(%ebp) <== NOT EXECUTED
13b30e: 0f 84 ff 03 00 00 je 13b713 <msdos_find_name_in_fat_file+0x7ab><== 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)
13b314: 80 7d 98 00 cmpb $0x0,-0x68(%ebp) <== NOT EXECUTED
13b318: 75 12 jne 13b32c <msdos_find_name_in_fat_file+0x3c4><== NOT EXECUTED
{
empty_space_count +=
entries_per_block - (dir_entry / MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
13b31a: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
13b31d: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
13b320: 01 45 d0 add %eax,-0x30(%ebp) <== 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 +=
13b323: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13b326: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
13b329: 29 45 d0 sub %eax,-0x30(%ebp) <== 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)
13b32c: 83 7d 1c 02 cmpl $0x2,0x1c(%ebp) <== NOT EXECUTED
13b330: 0f 84 0d 04 00 00 je 13b743 <msdos_find_name_in_fat_file+0x7db><== 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)
13b336: c6 45 a8 00 movb $0x0,-0x58(%ebp) <== NOT EXECUTED
13b33a: 83 7d 88 00 cmpl $0x0,-0x78(%ebp) <== NOT EXECUTED
13b33e: 74 28 je 13b368 <msdos_find_name_in_fat_file+0x400><== NOT EXECUTED
{
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);
13b340: 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(
13b343: 89 c3 mov %eax,%ebx <== NOT EXECUTED
13b345: 83 c3 0b add $0xb,%ebx <== NOT EXECUTED
13b348: 31 d2 xor %edx,%edx <== NOT EXECUTED
13b34a: eb 0b jmp 13b357 <msdos_find_name_in_fat_file+0x3ef><== 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 =
13b34c: 8a 55 a8 mov -0x58(%ebp),%dl <== NOT EXECUTED
13b34f: 83 e2 01 and $0x1,%edx <== NOT EXECUTED
13b352: f7 da neg %edx <== NOT EXECUTED
13b354: 83 e2 80 and $0xffffff80,%edx <== NOT EXECUTED
13b357: 8a 4d a8 mov -0x58(%ebp),%cl <== NOT EXECUTED
13b35a: d0 e9 shr %cl <== NOT EXECUTED
13b35c: 02 10 add (%eax),%dl <== NOT EXECUTED
13b35e: 01 ca add %ecx,%edx <== NOT EXECUTED
13b360: 88 55 a8 mov %dl,-0x58(%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++)
13b363: 40 inc %eax <== NOT EXECUTED
13b364: 39 d8 cmp %ebx,%eax <== NOT EXECUTED
13b366: 75 e4 jne 13b34c <msdos_find_name_in_fat_file+0x3e4><== 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)
13b368: 83 7d d0 00 cmpl $0x0,-0x30(%ebp) <== NOT EXECUTED
13b36c: 0f 85 ab 03 00 00 jne 13b71d <msdos_find_name_in_fat_file+0x7b5><== NOT EXECUTED
13b372: b0 01 mov $0x1,%al <== NOT EXECUTED
13b374: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%ebp) <== NOT EXECUTED
}
/*
* Have we read past the empty block ? If so go back and read it again.
*/
if (dir_offset != empty_space_offset)
13b37b: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
13b37e: 89 4d 9c mov %ecx,-0x64(%ebp) <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
13b381: 83 7d 88 00 cmpl $0x0,-0x78(%ebp) <== NOT EXECUTED
13b385: 0f 88 23 04 00 00 js 13b7ae <msdos_find_name_in_fat_file+0x846><== NOT EXECUTED
read_cluster = true;
/*
* Handle the entry writes.
*/
lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;
13b38b: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) <== NOT EXECUTED
13b392: 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,
13b399: 8b 75 9c mov -0x64(%ebp),%esi <== NOT EXECUTED
13b39c: 0f af 75 c8 imul -0x38(%ebp),%esi <== NOT EXECUTED
13b3a0: 89 75 98 mov %esi,-0x68(%ebp) <== NOT EXECUTED
13b3a3: 31 f6 xor %esi,%esi <== NOT EXECUTED
*/
while (lfn_entry < (lfn_entries + 1))
{
int length = 0;
if (read_cluster)
13b3a5: 84 c0 test %al,%al <== NOT EXECUTED
13b3a7: 0f 85 11 02 00 00 jne 13b5be <msdos_find_name_in_fat_file+0x656><== NOT EXECUTED
#if MSDOS_FIND_PRINT
printf ("MSFS:[9.4] clear write: %d\n", ret);
#endif
if (ret == -1)
return ret;
else if (ret != bts2rd)
13b3ad: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
13b3b0: 89 55 94 mov %edx,-0x6c(%ebp) <== NOT EXECUTED
#if MSDOS_FIND_PRINT
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
13b3b3: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
13b3b6: 39 4d c8 cmp %ecx,-0x38(%ebp) <== NOT EXECUTED
13b3b9: 0f 86 73 03 00 00 jbe 13b732 <msdos_find_name_in_fat_file+0x7ca><== NOT EXECUTED
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + dir_entry;
13b3bf: 8b 5d c0 mov -0x40(%ebp),%ebx <== NOT EXECUTED
13b3c2: 8b 7d 90 mov -0x70(%ebp),%edi <== NOT EXECUTED
13b3c5: 03 9f 98 00 00 00 add 0x98(%edi),%ebx <== NOT EXECUTED
char* p;
const char* n;
int i;
length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
lfn_entry++;
13b3cb: 8d 46 01 lea 0x1(%esi),%eax <== NOT EXECUTED
13b3ce: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
length, lfn_entry);
#endif
/*
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
13b3d1: 8b 55 88 mov -0x78(%ebp),%edx <== NOT EXECUTED
13b3d4: 42 inc %edx <== NOT EXECUTED
13b3d5: 89 55 a4 mov %edx,-0x5c(%ebp) <== NOT EXECUTED
13b3d8: 39 c2 cmp %eax,%edx <== NOT EXECUTED
13b3da: 0f 84 fb 00 00 00 je 13b4db <msdos_find_name_in_fat_file+0x573><== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
break;
13b3e0: 8a 45 88 mov -0x78(%ebp),%al <== NOT EXECUTED
13b3e3: 40 inc %eax <== NOT EXECUTED
13b3e4: 88 45 a0 mov %al,-0x60(%ebp) <== NOT EXECUTED
13b3e7: f7 d6 not %esi <== NOT EXECUTED
13b3e9: 8b 4d 88 mov -0x78(%ebp),%ecx <== NOT EXECUTED
13b3ec: 8d 14 0e lea (%esi,%ecx,1),%edx <== NOT EXECUTED
13b3ef: 8d 04 52 lea (%edx,%edx,2),%eax <== NOT EXECUTED
13b3f2: 8d 04 82 lea (%edx,%eax,4),%eax <== NOT EXECUTED
13b3f5: 03 45 14 add 0x14(%ebp),%eax <== NOT EXECUTED
13b3f8: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
13b3fb: 8b 75 c0 mov -0x40(%ebp),%esi <== NOT EXECUTED
13b3fe: 89 75 d0 mov %esi,-0x30(%ebp) <== NOT EXECUTED
13b401: c7 45 c4 20 00 00 00 movl $0x20,-0x3c(%ebp) <== 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)
13b408: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
13b40c: 0f 84 bf 02 00 00 je 13b6d1 <msdos_find_name_in_fat_file+0x769><== NOT EXECUTED
13b412: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
/*
* Clear the entry before loading the data.
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
13b414: 89 df mov %ebx,%edi <== NOT EXECUTED
13b416: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13b41b: 31 c0 xor %eax,%eax <== NOT EXECUTED
13b41d: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
13b41f: 8a 55 a8 mov -0x58(%ebp),%dl <== NOT EXECUTED
13b422: 88 53 0d mov %dl,0xd(%ebx) <== NOT EXECUTED
p = entry + 1;
13b425: 8d 4b 01 lea 0x1(%ebx),%ecx <== NOT EXECUTED
13b428: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
13b42b: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
13b430: 89 df mov %ebx,%edi <== NOT EXECUTED
13b432: 66 90 xchg %ax,%ax <== NOT EXECUTED
13b434: 8d 72 ff lea -0x1(%edx),%esi <== 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;
13b437: 8a 18 mov (%eax),%bl <== NOT EXECUTED
13b439: 88 19 mov %bl,(%ecx) <== NOT EXECUTED
if (*n != 0)
n++;
13b43b: 80 38 01 cmpb $0x1,(%eax) <== NOT EXECUTED
13b43e: 83 d8 ff sbb $0xffffffff,%eax <== NOT EXECUTED
switch (i)
13b441: 83 fe 04 cmp $0x4,%esi <== NOT EXECUTED
13b444: 0f 84 2e 02 00 00 je 13b678 <msdos_find_name_in_fat_file+0x710><== NOT EXECUTED
13b44a: 83 fe 0a cmp $0xa,%esi <== NOT EXECUTED
13b44d: 0f 84 19 02 00 00 je 13b66c <msdos_find_name_in_fat_file+0x704><== 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++)
13b453: 83 fa 0c cmp $0xc,%edx <== NOT EXECUTED
13b456: 0f 8f 28 02 00 00 jg 13b684 <msdos_find_name_in_fat_file+0x71c><== NOT EXECUTED
break;
case 10:
p += 4;
break;
default:
p += 2;
13b45c: 83 c1 02 add $0x2,%ecx <== NOT EXECUTED
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
13b45f: 42 inc %edx <== NOT EXECUTED
13b460: eb d2 jmp 13b434 <msdos_find_name_in_fat_file+0x4cc><== NOT EXECUTED
continue;
/*
* Get the checksum of the short entry.
*/
lfn_start.cln = dir_offset;
13b462: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
13b465: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
lfn_start.ofs = dir_entry;
13b468: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
13b46b: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
lfn_entry = lfn_entries;
lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
13b46e: 8a 43 0d mov 0xd(%ebx),%al <== NOT EXECUTED
13b471: 8a 0b mov (%ebx),%cl <== NOT EXECUTED
13b473: 8b 75 88 mov -0x78(%ebp),%esi <== NOT EXECUTED
13b476: 89 75 a0 mov %esi,-0x60(%ebp) <== NOT EXECUTED
13b479: 31 d2 xor %edx,%edx <== NOT EXECUTED
13b47b: e9 05 fd ff ff jmp 13b185 <msdos_find_name_in_fat_file+0x21d><== NOT EXECUTED
13b480: 8b 9d 78 ff ff ff mov -0x88(%ebp),%ebx <== NOT EXECUTED
p += 2;
break;
}
}
lfn_matched = ((lfn_entry == 0) &&
13b486: 8b 7d a0 mov -0x60(%ebp),%edi <== NOT EXECUTED
13b489: 85 ff test %edi,%edi <== NOT EXECUTED
13b48b: 0f 85 b3 fd ff ff jne 13b244 <msdos_find_name_in_fat_file+0x2dc><== 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(
13b491: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
13b495: 0f 95 c2 setne %dl <== NOT EXECUTED
13b498: e9 a2 fc ff ff jmp 13b13f <msdos_find_name_in_fat_file+0x1d7><== 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) &&
13b49d: 8b 79 24 mov 0x24(%ecx),%edi <== NOT EXECUTED
13b4a0: 85 ff test %edi,%edi <== NOT EXECUTED
13b4a2: 0f 85 3b fb ff ff jne 13afe3 <msdos_find_name_in_fat_file+0x7b><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
13b4a8: 8b 75 90 mov -0x70(%ebp),%esi <== NOT EXECUTED
13b4ab: f6 46 0a 03 testb $0x3,0xa(%esi) <== NOT EXECUTED
13b4af: 0f 84 2e fb ff ff je 13afe3 <msdos_find_name_in_fat_file+0x7b><== NOT EXECUTED
bts2rd = fat_fd->fat_file_size;
13b4b5: 8b 79 18 mov 0x18(%ecx),%edi <== NOT EXECUTED
13b4b8: 89 7d c8 mov %edi,-0x38(%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) &&
13b4bb: e9 2d fb ff ff jmp 13afed <msdos_find_name_in_fat_file+0x85><== NOT EXECUTED
13b4c0: 8b 9d 78 ff ff ff mov -0x88(%ebp),%ebx <== NOT EXECUTED
break;
}
if (((o + i) >= name_len) || (*p != name[o + i]))
{
lfn_start.cln = FAT_FILE_SHORT_NAME;
13b4c6: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
break;
13b4cd: eb b7 jmp 13b486 <msdos_find_name_in_fat_file+0x51e><== 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))
13b4cf: c7 45 88 00 00 00 00 movl $0x0,-0x78(%ebp) <== NOT EXECUTED
13b4d6: e9 fb fa ff ff jmp 13afd6 <msdos_find_name_in_fat_file+0x6e><== NOT EXECUTED
length, lfn_entry);
#endif
/*
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
13b4db: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
13b4de: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
13b4e1: c7 45 c4 20 00 00 00 movl $0x20,-0x3c(%ebp) <== NOT EXECUTED
{
/* get current cluster number */
int rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
13b4e8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b4eb: ff 75 20 pushl 0x20(%ebp) <== NOT EXECUTED
13b4ee: ff 75 94 pushl -0x6c(%ebp) <== NOT EXECUTED
13b4f1: 6a 01 push $0x1 <== NOT EXECUTED
13b4f3: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13b4f6: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13b4f9: e8 da f4 fe ff call 12a9d8 <fat_file_ioctl> <== NOT EXECUTED
empty_space_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
13b4fe: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13b501: 85 c0 test %eax,%eax <== NOT EXECUTED
13b503: 0f 85 1e fd ff ff jne 13b227 <msdos_find_name_in_fat_file+0x2bf><== NOT EXECUTED
return rc;
dir_pos->sname.ofs = dir_entry;
13b509: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
13b50c: 8b 45 20 mov 0x20(%ebp),%eax <== NOT EXECUTED
13b50f: 89 50 04 mov %edx,0x4(%eax) <== NOT EXECUTED
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
13b512: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
13b515: 83 fa ff cmp $0xffffffff,%edx <== NOT EXECUTED
13b518: 0f 84 e3 01 00 00 je 13b701 <msdos_find_name_in_fat_file+0x799><== NOT EXECUTED
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
13b51e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b521: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
13b524: 50 push %eax <== NOT EXECUTED
13b525: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
13b528: 0f af c2 imul %edx,%eax <== NOT EXECUTED
13b52b: 50 push %eax <== NOT EXECUTED
13b52c: 6a 01 push $0x1 <== NOT EXECUTED
13b52e: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13b531: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13b534: e8 9f f4 fe ff call 12a9d8 <fat_file_ioctl> <== NOT EXECUTED
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
13b539: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13b53c: 85 c0 test %eax,%eax <== NOT EXECUTED
13b53e: 0f 85 e3 fc ff ff jne 13b227 <msdos_find_name_in_fat_file+0x2bf><== NOT EXECUTED
13b544: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
13b547: 8b 4d 20 mov 0x20(%ebp),%ecx <== NOT EXECUTED
13b54a: 89 41 08 mov %eax,0x8(%ecx) <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
13b54d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13b550: 89 41 0c mov %eax,0xc(%ecx) <== NOT EXECUTED
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
13b553: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
13b558: 89 df mov %ebx,%edi <== NOT EXECUTED
13b55a: 8b 75 24 mov 0x24(%ebp),%esi <== NOT EXECUTED
13b55d: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
13b55f: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
13b562: 8b 75 a4 mov -0x5c(%ebp),%esi <== NOT EXECUTED
13b565: 89 75 d4 mov %esi,-0x2c(%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,
13b568: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b56b: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
13b56e: 8b 75 90 mov -0x70(%ebp),%esi <== NOT EXECUTED
13b571: 03 86 98 00 00 00 add 0x98(%esi),%eax <== NOT EXECUTED
13b577: 50 push %eax <== NOT EXECUTED
13b578: 52 push %edx <== NOT EXECUTED
13b579: 8b 45 94 mov -0x6c(%ebp),%eax <== NOT EXECUTED
13b57c: 03 45 c0 add -0x40(%ebp),%eax <== NOT EXECUTED
13b57f: 50 push %eax <== NOT EXECUTED
13b580: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13b583: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13b586: e8 9d f7 fe ff call 12ad28 <fat_file_write> <== NOT EXECUTED
(empty_space_offset * bts2rd) + empty_space_entry,
length, fs_info->cl_buf + empty_space_entry);
if (ret == -1)
13b58b: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13b58e: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
13b591: 0f 84 0f 02 00 00 je 13b7a6 <msdos_find_name_in_fat_file+0x83e><== NOT EXECUTED
return ret;
else if (ret != length)
13b597: 39 45 c4 cmp %eax,-0x3c(%ebp) <== NOT EXECUTED
13b59a: 0f 85 b9 00 00 00 jne 13b659 <msdos_find_name_in_fat_file+0x6f1><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
13b5a0: 8b 7d c8 mov -0x38(%ebp),%edi <== NOT EXECUTED
13b5a3: 01 7d 98 add %edi,-0x68(%ebp) <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
13b5a6: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13b5a9: 39 45 88 cmp %eax,-0x78(%ebp) <== NOT EXECUTED
13b5ac: 0f 8c fc 01 00 00 jl 13b7ae <msdos_find_name_in_fat_file+0x846><== NOT EXECUTED
if (ret == -1)
return ret;
else if (ret != length)
rtems_set_errno_and_return_minus_one(EIO);
empty_space_offset++;
13b5b2: ff 45 9c incl -0x64(%ebp) <== NOT EXECUTED
13b5b5: c7 45 c0 00 00 00 00 movl $0x0,-0x40(%ebp) <== NOT EXECUTED
13b5bc: 89 c6 mov %eax,%esi <== 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,
13b5be: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b5c1: 8b 7d 90 mov -0x70(%ebp),%edi <== NOT EXECUTED
13b5c4: ff b7 98 00 00 00 pushl 0x98(%edi) <== NOT EXECUTED
13b5ca: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
13b5cd: ff 75 98 pushl -0x68(%ebp) <== NOT EXECUTED
13b5d0: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13b5d3: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13b5d6: e8 b9 f9 fe ff call 12af94 <fat_file_read> <== NOT EXECUTED
(empty_space_offset * bts2rd), bts2rd,
fs_info->cl_buf);
if (ret != bts2rd)
13b5db: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13b5de: 3b 45 c8 cmp -0x38(%ebp),%eax <== NOT EXECUTED
13b5e1: 0f 84 c6 fd ff ff je 13b3ad <msdos_find_name_in_fat_file+0x445><== NOT EXECUTED
{
if (ret != FAT_EOF)
13b5e7: 85 c0 test %eax,%eax <== NOT EXECUTED
13b5e9: 75 6e jne 13b659 <msdos_find_name_in_fat_file+0x6f1><== 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,
13b5eb: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13b5ee: 50 push %eax <== NOT EXECUTED
13b5ef: ff 75 98 pushl -0x68(%ebp) <== NOT EXECUTED
13b5f2: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13b5f5: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13b5f8: e8 57 f5 fe ff call 12ab54 <fat_file_extend> <== NOT EXECUTED
&new_length);
if (ret != RC_OK)
13b5fd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13b600: 85 c0 test %eax,%eax <== NOT EXECUTED
13b602: 0f 85 1f fc ff ff jne 13b227 <msdos_find_name_in_fat_file+0x2bf><== 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))
13b608: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13b60b: 89 45 94 mov %eax,-0x6c(%ebp) <== NOT EXECUTED
13b60e: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
13b611: 39 d0 cmp %edx,%eax <== NOT EXECUTED
13b613: 75 44 jne 13b659 <msdos_find_name_in_fat_file+0x6f1><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
memset(fs_info->cl_buf, 0, bts2rd);
13b615: 8b 4d 90 mov -0x70(%ebp),%ecx <== NOT EXECUTED
13b618: 8b 91 98 00 00 00 mov 0x98(%ecx),%edx <== NOT EXECUTED
13b61e: 31 c0 xor %eax,%eax <== NOT EXECUTED
13b620: 89 d7 mov %edx,%edi <== NOT EXECUTED
13b622: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
13b625: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
ret = fat_file_write(mt_entry, fat_fd,
13b627: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b62a: 8b 45 90 mov -0x70(%ebp),%eax <== NOT EXECUTED
13b62d: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13b633: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
13b636: ff 75 98 pushl -0x68(%ebp) <== NOT EXECUTED
13b639: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13b63c: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13b63f: e8 e4 f6 fe ff call 12ad28 <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)
13b644: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13b647: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
13b64a: 0f 84 56 01 00 00 je 13b7a6 <msdos_find_name_in_fat_file+0x83e><== NOT EXECUTED
return ret;
else if (ret != bts2rd)
13b650: 3b 45 c8 cmp -0x38(%ebp),%eax <== NOT EXECUTED
13b653: 0f 84 5a fd ff ff je 13b3b3 <msdos_find_name_in_fat_file+0x44b><== NOT EXECUTED
(empty_space_offset * bts2rd) + empty_space_entry,
length, fs_info->cl_buf + empty_space_entry);
if (ret == -1)
return ret;
else if (ret != length)
rtems_set_errno_and_return_minus_one(EIO);
13b659: e8 2e b1 00 00 call 14678c <__errno> <== NOT EXECUTED
13b65e: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13b664: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13b667: e9 bb fb ff ff jmp 13b227 <msdos_find_name_in_fat_file+0x2bf><== NOT EXECUTED
{
case 4:
p += 5;
break;
case 10:
p += 4;
13b66c: 83 c1 04 add $0x4,%ecx <== NOT EXECUTED
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
13b66f: 42 inc %edx <== NOT EXECUTED
13b670: e9 bf fd ff ff jmp 13b434 <msdos_find_name_in_fat_file+0x4cc><== NOT EXECUTED
13b675: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
n++;
switch (i)
{
case 4:
p += 5;
13b678: 83 c1 05 add $0x5,%ecx <== NOT EXECUTED
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
13b67b: 42 inc %edx <== NOT EXECUTED
13b67c: e9 b3 fd ff ff jmp 13b434 <msdos_find_name_in_fat_file+0x4cc><== NOT EXECUTED
13b681: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
13b684: 89 fb mov %edi,%ebx <== NOT EXECUTED
break;
case 10:
p += 4;
break;
default:
p += 2;
13b686: 8a 45 a0 mov -0x60(%ebp),%al <== NOT EXECUTED
13b689: 2a 45 d4 sub -0x2c(%ebp),%al <== NOT EXECUTED
break;
}
}
*MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
13b68c: 88 07 mov %al,(%edi) <== NOT EXECUTED
if (lfn_entry == 1)
13b68e: 83 7d d4 01 cmpl $0x1,-0x2c(%ebp) <== NOT EXECUTED
13b692: 74 50 je 13b6e4 <msdos_find_name_in_fat_file+0x77c><== NOT EXECUTED
*MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
*MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;
13b694: 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)
13b698: 83 45 d0 20 addl $0x20,-0x30(%ebp) <== NOT EXECUTED
#if MSDOS_FIND_PRINT
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
13b69c: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
13b69f: 39 4d c8 cmp %ecx,-0x38(%ebp) <== NOT EXECUTED
13b6a2: 76 55 jbe 13b6f9 <msdos_find_name_in_fat_file+0x791><== NOT EXECUTED
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + dir_entry;
13b6a4: 8b 5d d0 mov -0x30(%ebp),%ebx <== NOT EXECUTED
13b6a7: 8b 75 90 mov -0x70(%ebp),%esi <== NOT EXECUTED
13b6aa: 03 9e 98 00 00 00 add 0x98(%esi),%ebx <== NOT EXECUTED
char* p;
const char* n;
int i;
length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
13b6b0: 83 45 c4 20 addl $0x20,-0x3c(%ebp) <== NOT EXECUTED
lfn_entry++;
13b6b4: ff 45 d4 incl -0x2c(%ebp) <== NOT EXECUTED
13b6b7: 83 6d cc 0d subl $0xd,-0x34(%ebp) <== NOT EXECUTED
length, lfn_entry);
#endif
/*
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
13b6bb: 8b 7d a4 mov -0x5c(%ebp),%edi <== NOT EXECUTED
13b6be: 39 7d d4 cmp %edi,-0x2c(%ebp) <== NOT EXECUTED
13b6c1: 0f 84 21 fe ff ff je 13b4e8 <msdos_find_name_in_fat_file+0x580><== 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)
13b6c7: 83 7d dc ff cmpl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
13b6cb: 0f 85 43 fd ff ff jne 13b414 <msdos_find_name_in_fat_file+0x4ac><== NOT EXECUTED
{
lfn_start.cln = empty_space_offset;
13b6d1: 8b 7d 9c mov -0x64(%ebp),%edi <== NOT EXECUTED
13b6d4: 89 7d dc mov %edi,-0x24(%ebp) <== NOT EXECUTED
lfn_start.ofs = dir_entry;
13b6d7: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
13b6da: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
13b6dd: e9 32 fd ff ff jmp 13b414 <msdos_find_name_in_fat_file+0x4ac><== NOT EXECUTED
13b6e2: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
}
*MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
if (lfn_entry == 1)
*MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
13b6e4: 83 c8 40 or $0x40,%eax <== NOT EXECUTED
13b6e7: 88 07 mov %al,(%edi) <== NOT EXECUTED
*MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;
13b6e9: 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)
13b6ed: 83 45 d0 20 addl $0x20,-0x30(%ebp) <== NOT EXECUTED
#if MSDOS_FIND_PRINT
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
13b6f1: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
13b6f4: 39 4d c8 cmp %ecx,-0x38(%ebp) <== NOT EXECUTED
13b6f7: 77 ab ja 13b6a4 <msdos_find_name_in_fat_file+0x73c><== NOT EXECUTED
13b6f9: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
13b6fc: e9 67 fe ff ff jmp 13b568 <msdos_find_name_in_fat_file+0x600><== NOT EXECUTED
if (rc != RC_OK)
return rc;
dir_pos->sname.ofs = dir_entry;
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
13b701: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13b704: e9 3e fe ff ff jmp 13b547 <msdos_find_name_in_fat_file+0x5df><== NOT EXECUTED
}
/*
* If we are not to create the entry return a not found error.
*/
if (!create_node)
13b709: 80 7d cc 00 cmpb $0x0,-0x34(%ebp) <== NOT EXECUTED
13b70d: 0f 85 19 fc ff ff jne 13b32c <msdos_find_name_in_fat_file+0x3c4><== NOT EXECUTED
if (ret == -1)
return ret;
else if (ret != length)
rtems_set_errno_and_return_minus_one(EIO);
empty_space_offset++;
13b713: b8 01 7d 00 00 mov $0x7d01,%eax <== NOT EXECUTED
13b718: e9 0a fb ff ff jmp 13b227 <msdos_find_name_in_fat_file+0x2bf><== NOT EXECUTED
}
/*
* Have we read past the empty block ? If so go back and read it again.
*/
if (dir_offset != empty_space_offset)
13b71d: b0 01 mov $0x1,%al <== NOT EXECUTED
13b71f: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
13b722: 39 55 9c cmp %edx,-0x64(%ebp) <== NOT EXECUTED
13b725: 0f 85 56 fc ff ff jne 13b381 <msdos_find_name_in_fat_file+0x419><== NOT EXECUTED
13b72b: 31 c0 xor %eax,%eax <== NOT EXECUTED
13b72d: e9 49 fc ff ff jmp 13b37b <msdos_find_name_in_fat_file+0x413><== NOT EXECUTED
#if MSDOS_FIND_PRINT
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
13b732: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
13b735: 31 d2 xor %edx,%edx <== NOT EXECUTED
13b737: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED
13b73e: e9 25 fe ff ff jmp 13b568 <msdos_find_name_in_fat_file+0x600><== NOT EXECUTED
*/
lfn_checksum = 0;
if (name_type == MSDOS_NAME_LONG)
{
int slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
13b743: 8b 45 9c mov -0x64(%ebp),%eax <== NOT EXECUTED
13b746: 0f af 45 c8 imul -0x38(%ebp),%eax <== NOT EXECUTED
13b74a: 03 45 c0 add -0x40(%ebp),%eax <== NOT EXECUTED
13b74d: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
13b750: 8b 7d 88 mov -0x78(%ebp),%edi <== NOT EXECUTED
13b753: 8d 74 07 01 lea 0x1(%edi,%eax,1),%esi <== NOT EXECUTED
13b757: 31 c0 xor %eax,%eax <== NOT EXECUTED
13b759: 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 == '.'))
13b75c: 8a 14 01 mov (%ecx,%eax,1),%dl <== NOT EXECUTED
13b75f: 80 fa 20 cmp $0x20,%dl <== NOT EXECUTED
13b762: 74 3c je 13b7a0 <msdos_find_name_in_fat_file+0x838><== NOT EXECUTED
13b764: 80 fa 2e cmp $0x2e,%dl <== NOT EXECUTED
13b767: 74 37 je 13b7a0 <msdos_find_name_in_fat_file+0x838><== 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++)
13b769: 40 inc %eax <== NOT EXECUTED
13b76a: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
13b76d: 75 ed jne 13b75c <msdos_find_name_in_fat_file+0x7f4><== NOT EXECUTED
if ((*c == ' ') || (*c == '.'))
*c = '~';
*c++ = '~';
13b76f: 8b 45 24 mov 0x24(%ebp),%eax <== NOT EXECUTED
13b772: c6 40 03 7e movb $0x7e,0x3(%eax) <== NOT EXECUTED
13b776: 89 c2 mov %eax,%edx <== NOT EXECUTED
13b778: 83 c2 04 add $0x4,%edx <== NOT EXECUTED
13b77b: 8b 1d 28 7a 16 00 mov 0x167a28,%ebx <== NOT EXECUTED
13b781: b9 0c 00 00 00 mov $0xc,%ecx <== NOT EXECUTED
for (i = 0; i < 4; i++, c++)
*c = hex[(num >> ((3 - i) * 4)) & 0xf];
13b786: 89 f0 mov %esi,%eax <== NOT EXECUTED
13b788: d3 f8 sar %cl,%eax <== NOT EXECUTED
13b78a: 83 e0 0f and $0xf,%eax <== NOT EXECUTED
13b78d: 8a 04 03 mov (%ebx,%eax,1),%al <== NOT EXECUTED
13b790: 88 02 mov %al,(%edx) <== NOT EXECUTED
int i;
for (i = 0; i < 3; i++, c++)
if ((*c == ' ') || (*c == '.'))
*c = '~';
*c++ = '~';
for (i = 0; i < 4; i++, c++)
13b792: 42 inc %edx <== NOT EXECUTED
13b793: 83 e9 04 sub $0x4,%ecx <== NOT EXECUTED
13b796: 83 f9 fc cmp $0xfffffffc,%ecx <== NOT EXECUTED
13b799: 75 eb jne 13b786 <msdos_find_name_in_fat_file+0x81e><== NOT EXECUTED
13b79b: e9 96 fb ff ff jmp 13b336 <msdos_find_name_in_fat_file+0x3ce><== 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 == '.'))
*c = '~';
13b7a0: c6 04 01 7e movb $0x7e,(%ecx,%eax,1) <== NOT EXECUTED
13b7a4: eb c3 jmp 13b769 <msdos_find_name_in_fat_file+0x801><== NOT EXECUTED
if (ret == -1)
return ret;
else if (ret != length)
rtems_set_errno_and_return_minus_one(EIO);
empty_space_offset++;
13b7a6: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
13b7a9: e9 79 fa ff ff jmp 13b227 <msdos_find_name_in_fat_file+0x2bf><== NOT EXECUTED
13b7ae: 31 c0 xor %eax,%eax <== NOT EXECUTED
13b7b0: e9 72 fa ff ff jmp 13b227 <msdos_find_name_in_fat_file+0x2bf><== NOT EXECUTED
#endif
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
rtems_set_errno_and_return_minus_one(EIO);
assert(ret == bts2rd);
13b7b5: 68 18 79 16 00 push $0x167918 <== NOT EXECUTED
13b7ba: 68 0b 7a 16 00 push $0x167a0b <== NOT EXECUTED
13b7bf: 68 49 04 00 00 push $0x449 <== NOT EXECUTED
13b7c4: 68 80 79 16 00 push $0x167980 <== NOT EXECUTED
13b7c9: e8 16 2a fd ff call 10e1e4 <__assert_func> <== 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);
13b7ce: 68 26 79 16 00 push $0x167926 <== NOT EXECUTED
13b7d3: 68 0b 7a 16 00 push $0x167a0b <== NOT EXECUTED
13b7d8: 68 19 04 00 00 push $0x419 <== NOT EXECUTED
13b7dd: 68 80 79 16 00 push $0x167980 <== NOT EXECUTED
13b7e2: e8 fd 29 fd ff call 10e1e4 <__assert_func> <== NOT EXECUTED
0013ae30 <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
)
{
13ae30: 55 push %ebp <== NOT EXECUTED
13ae31: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ae33: 57 push %edi <== NOT EXECUTED
13ae34: 56 push %esi <== NOT EXECUTED
13ae35: 53 push %ebx <== NOT EXECUTED
13ae36: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
int rc = RC_OK;
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
13ae39: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13ae3c: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
13ae3f: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
uint32_t bts2rd = 0;
uint32_t i = 0, j = 0;
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
13ae42: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13ae45: 83 7a 20 01 cmpl $0x1,0x20(%edx) <== NOT EXECUTED
13ae49: 0f 84 d1 00 00 00 je 13af20 <msdos_find_node_by_cluster_num_in_fat_file+0xf0><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
bts2rd = fat_fd->fat_file_size;
else
bts2rd = fs_info->fat.vol.bpc;
13ae4f: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13ae52: 0f b7 5a 06 movzwl 0x6(%edx),%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) &&
13ae56: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13ae59: 8b 90 98 00 00 00 mov 0x98(%eax),%edx <== NOT EXECUTED
13ae5f: c7 45 e0 00 00 00 00 movl $0x0,-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,
13ae66: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ae69: 52 push %edx <== NOT EXECUTED
13ae6a: 53 push %ebx <== NOT EXECUTED
13ae6b: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13ae6e: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13ae71: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13ae74: e8 1b 01 ff ff call 12af94 <fat_file_read> <== NOT EXECUTED
13ae79: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13ae7c: 85 c0 test %eax,%eax <== NOT EXECUTED
13ae7e: 74 4c je 13aecc <msdos_find_node_by_cluster_num_in_fat_file+0x9c><== NOT EXECUTED
fs_info->cl_buf)) != FAT_EOF)
{
if ( ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE )
13ae80: 83 f8 1f cmp $0x1f,%eax <== NOT EXECUTED
13ae83: 0f 8e b4 00 00 00 jle 13af3d <msdos_find_node_by_cluster_num_in_fat_file+0x10d><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
assert(ret == bts2rd);
13ae89: 39 d8 cmp %ebx,%eax <== NOT EXECUTED
13ae8b: 0f 85 be 00 00 00 jne 13af4f <msdos_find_node_by_cluster_num_in_fat_file+0x11f><== NOT EXECUTED
13ae91: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13ae94: 8b 90 98 00 00 00 mov 0x98(%eax),%edx <== NOT EXECUTED
13ae9a: 31 ff xor %edi,%edi <== NOT EXECUTED
13ae9c: 8d 34 3a lea (%edx,%edi,1),%esi <== NOT EXECUTED
for (i = 0; i < bts2rd; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + i;
/* if this and all rest entries are empty - return not-found */
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
13ae9f: 8a 04 3a mov (%edx,%edi,1),%al <== NOT EXECUTED
13aea2: 84 c0 test %al,%al <== NOT EXECUTED
13aea4: 74 26 je 13aecc <msdos_find_node_by_cluster_num_in_fat_file+0x9c><== 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)) ==
13aea6: 3c e5 cmp $0xe5,%al <== NOT EXECUTED
13aea8: 74 14 je 13aebe <msdos_find_node_by_cluster_num_in_fat_file+0x8e><== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY)
continue;
/* if get a non-empty entry - compare clusters num */
if (MSDOS_EXTRACT_CLUSTER_NUM(entry) == cl4find)
13aeaa: 0f b7 44 3a 14 movzwl 0x14(%edx,%edi,1),%eax <== NOT EXECUTED
13aeaf: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
13aeb2: 0f b7 4c 3a 1a movzwl 0x1a(%edx,%edi,1),%ecx <== NOT EXECUTED
13aeb7: 09 c8 or %ecx,%eax <== NOT EXECUTED
13aeb9: 3b 45 10 cmp 0x10(%ebp),%eax <== NOT EXECUTED
13aebc: 74 1e je 13aedc <msdos_find_node_by_cluster_num_in_fat_file+0xac><== 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)
13aebe: 83 c7 20 add $0x20,%edi <== NOT EXECUTED
13aec1: 39 fb cmp %edi,%ebx <== NOT EXECUTED
13aec3: 77 d7 ja 13ae9c <msdos_find_node_by_cluster_num_in_fat_file+0x6c><== NOT EXECUTED
13aec5: 01 5d e0 add %ebx,-0x20(%ebp) <== NOT EXECUTED
13aec8: eb 9c jmp 13ae66 <msdos_find_node_by_cluster_num_in_fat_file+0x36><== NOT EXECUTED
13aeca: 66 90 xchg %ax,%ax <== 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,
13aecc: b8 01 7d 00 00 mov $0x7d01,%eax <== NOT EXECUTED
}
}
j++;
}
return MSDOS_NAME_NOT_FOUND_ERR;
}
13aed1: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13aed4: 5b pop %ebx <== NOT EXECUTED
13aed5: 5e pop %esi <== NOT EXECUTED
13aed6: 5f pop %edi <== NOT EXECUTED
13aed7: c9 leave <== NOT EXECUTED
13aed8: c3 ret <== NOT EXECUTED
13aed9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* if get a non-empty entry - compare clusters num */
if (MSDOS_EXTRACT_CLUSTER_NUM(entry) == cl4find)
{
/* on success fill aux structure and copy all 32 bytes */
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM, j * bts2rd,
13aedc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13aedf: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
13aee2: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13aee5: 6a 01 push $0x1 <== NOT EXECUTED
13aee7: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13aeea: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13aeed: e8 e6 fa fe ff call 12a9d8 <fat_file_ioctl> <== NOT EXECUTED
&dir_pos->sname.cln);
if (rc != RC_OK)
13aef2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13aef5: 85 c0 test %eax,%eax <== NOT EXECUTED
13aef7: 75 d8 jne 13aed1 <msdos_find_node_by_cluster_num_in_fat_file+0xa1><== NOT EXECUTED
return rc;
dir_pos->sname.ofs = i;
13aef9: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
13aefc: 89 7a 04 mov %edi,0x4(%edx) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
13aeff: c7 42 08 ff ff ff ff movl $0xffffffff,0x8(%edx) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
13af06: c7 42 0c ff ff ff ff movl $0xffffffff,0xc(%edx) <== NOT EXECUTED
memcpy(dir_entry, entry,
13af0d: b9 08 00 00 00 mov $0x8,%ecx <== NOT EXECUTED
13af12: 8b 7d 18 mov 0x18(%ebp),%edi <== NOT EXECUTED
13af15: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
}
}
j++;
}
return MSDOS_NAME_NOT_FOUND_ERR;
}
13af17: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13af1a: 5b pop %ebx <== NOT EXECUTED
13af1b: 5e pop %esi <== NOT EXECUTED
13af1c: 5f pop %edi <== NOT EXECUTED
13af1d: c9 leave <== NOT EXECUTED
13af1e: c3 ret <== NOT EXECUTED
13af1f: 90 nop <== 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) &&
13af20: 8b 4a 24 mov 0x24(%edx),%ecx <== NOT EXECUTED
13af23: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13af25: 0f 85 24 ff ff ff jne 13ae4f <msdos_find_node_by_cluster_num_in_fat_file+0x1f><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
13af2b: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
13af2f: 0f 84 1a ff ff ff je 13ae4f <msdos_find_node_by_cluster_num_in_fat_file+0x1f><== NOT EXECUTED
bts2rd = fat_fd->fat_file_size;
13af35: 8b 5a 18 mov 0x18(%edx),%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) &&
13af38: e9 19 ff ff ff jmp 13ae56 <msdos_find_node_by_cluster_num_in_fat_file+0x26><== 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 )
rtems_set_errno_and_return_minus_one( EIO );
13af3d: e8 4a b8 00 00 call 14678c <__errno> <== NOT EXECUTED
13af42: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13af48: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
13af4d: eb 82 jmp 13aed1 <msdos_find_node_by_cluster_num_in_fat_file+0xa1><== NOT EXECUTED
assert(ret == bts2rd);
13af4f: 68 18 79 16 00 push $0x167918 <== NOT EXECUTED
13af54: 68 e0 79 16 00 push $0x1679e0 <== NOT EXECUTED
13af59: 68 95 06 00 00 push $0x695 <== NOT EXECUTED
13af5e: 68 80 79 16 00 push $0x167980 <== NOT EXECUTED
13af63: e8 7c 32 fd ff call 10e1e4 <__assert_func> <== NOT EXECUTED
00124a7c <msdos_format>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
124a7c: 55 push %ebp <== NOT EXECUTED
124a7d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
124a7f: 57 push %edi <== NOT EXECUTED
124a80: 56 push %esi <== NOT EXECUTED
124a81: 53 push %ebx <== NOT EXECUTED
124a82: 81 ec 2c 03 00 00 sub $0x32c,%esp <== NOT EXECUTED
124a88: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
124a8b: 8b 5d 0c mov 0xc(%ebp),%ebx <== 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,
124a8e: 57 push %edi <== NOT EXECUTED
124a8f: 68 6c 32 16 00 push $0x16326c <== NOT EXECUTED
124a94: 6a 01 push $0x1 <== NOT EXECUTED
124a96: 53 push %ebx <== NOT EXECUTED
124a97: e8 08 fe ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
"formating: %s\n", devname);
/*
* sanity check on device
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
124a9c: 57 push %edi <== NOT EXECUTED
124a9d: 68 7b 32 16 00 push $0x16327b <== NOT EXECUTED
124aa2: 6a 02 push $0x2 <== NOT EXECUTED
124aa4: 53 push %ebx <== NOT EXECUTED
124aa5: e8 fa fd ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
"stat check: %s\n", devname);
if (ret_val == 0) {
rc = stat(devname, &stat_buf);
124aaa: 83 c4 18 add $0x18,%esp <== NOT EXECUTED
124aad: 8d 45 94 lea -0x6c(%ebp),%eax <== NOT EXECUTED
124ab0: 50 push %eax <== NOT EXECUTED
124ab1: 57 push %edi <== NOT EXECUTED
124ab2: e8 c9 b3 fe ff call 10fe80 <stat> <== NOT EXECUTED
ret_val = rc;
}
/* rtems feature: no block devices, all are character devices */
if ((ret_val == 0) &&
124ab7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124aba: 85 c0 test %eax,%eax <== NOT EXECUTED
124abc: 74 0e je 124acc <msdos_format+0x50> <== NOT EXECUTED
124abe: 89 c6 mov %eax,%esi <== NOT EXECUTED
}
if (dd != NULL) {
rtems_disk_release(dd);
}
return ret_val;
}
124ac0: 89 f0 mov %esi,%eax <== NOT EXECUTED
124ac2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124ac5: 5b pop %ebx <== NOT EXECUTED
124ac6: 5e pop %esi <== NOT EXECUTED
124ac7: 5f pop %edi <== NOT EXECUTED
124ac8: c9 leave <== NOT EXECUTED
124ac9: c3 ret <== NOT EXECUTED
124aca: 66 90 xchg %ax,%ax <== NOT EXECUTED
ret_val = rc;
}
/* rtems feature: no block devices, all are character devices */
if ((ret_val == 0) &&
(!S_ISBLK(stat_buf.st_mode))) {
124acc: 8b 45 a0 mov -0x60(%ebp),%eax <== NOT EXECUTED
124acf: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
124ad4: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
124ad9: 74 1d je 124af8 <msdos_format+0x7c> <== 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;
124adb: e8 ac 1c 02 00 call 14678c <__errno> <== NOT EXECUTED
124ae0: c7 00 19 00 00 00 movl $0x19,(%eax) <== NOT EXECUTED
124ae6: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
}
if (dd != NULL) {
rtems_disk_release(dd);
}
return ret_val;
}
124aeb: 89 f0 mov %esi,%eax <== NOT EXECUTED
124aed: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124af0: 5b pop %ebx <== NOT EXECUTED
124af1: 5e pop %esi <== NOT EXECUTED
124af2: 5f pop %edi <== NOT EXECUTED
124af3: c9 leave <== NOT EXECUTED
124af4: c3 ret <== NOT EXECUTED
124af5: 8d 76 00 lea 0x0(%esi),%esi <== 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);
124af8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
124afb: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
124afe: ff 75 ac pushl -0x54(%ebp) <== NOT EXECUTED
124b01: e8 7e 89 fe ff call 10d484 <rtems_disk_obtain> <== NOT EXECUTED
124b06: 89 85 2c fd ff ff mov %eax,-0x2d4(%ebp) <== NOT EXECUTED
if (dd == NULL) {
124b0c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124b0f: 85 c0 test %eax,%eax <== NOT EXECUTED
124b11: 74 c8 je 124adb <msdos_format+0x5f> <== NOT EXECUTED
/*
* open device for writing
*/
if (ret_val == 0) {
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
124b13: 52 push %edx <== NOT EXECUTED
124b14: 68 07 33 16 00 push $0x163307 <== NOT EXECUTED
124b19: 6a 02 push $0x2 <== NOT EXECUTED
124b1b: 53 push %ebx <== NOT EXECUTED
124b1c: e8 83 fd ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
"open device\n");
fd = open(devname, O_RDWR);
124b21: 5e pop %esi <== NOT EXECUTED
124b22: 58 pop %eax <== NOT EXECUTED
124b23: 6a 02 push $0x2 <== NOT EXECUTED
124b25: 57 push %edi <== NOT EXECUTED
124b26: e8 25 ad fe ff call 10f850 <open> <== NOT EXECUTED
124b2b: 89 85 30 fd ff ff mov %eax,-0x2d0(%ebp) <== NOT EXECUTED
if (fd == -1)
124b31: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124b34: 40 inc %eax <== NOT EXECUTED
124b35: 0f 84 51 01 00 00 je 124c8c <msdos_format+0x210> <== 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));
124b3b: 8d 85 44 ff ff ff lea -0xbc(%ebp),%eax <== NOT EXECUTED
124b41: 89 85 cc fc ff ff mov %eax,-0x334(%ebp) <== NOT EXECUTED
124b47: b9 50 00 00 00 mov $0x50,%ecx <== NOT EXECUTED
124b4c: 31 c0 xor %eax,%eax <== NOT EXECUTED
124b4e: 8b bd cc fc ff ff mov -0x334(%ebp),%edi <== NOT EXECUTED
124b54: f3 aa rep stos %al,%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;
124b56: 8b 95 2c fd ff ff mov -0x2d4(%ebp),%edx <== NOT EXECUTED
124b5c: 8b 42 20 mov 0x20(%edx),%eax <== NOT EXECUTED
124b5f: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp) <== NOT EXECUTED
fmt_params->totl_sector_cnt = dd->size;
124b65: 8b 52 1c mov 0x1c(%edx),%edx <== NOT EXECUTED
124b68: 89 95 48 ff ff ff mov %edx,-0xb8(%ebp) <== NOT EXECUTED
total_size = dd->block_size * dd->size;
124b6e: 89 d6 mov %edx,%esi <== NOT EXECUTED
124b70: 0f af f0 imul %eax,%esi <== NOT EXECUTED
124b73: 31 ff xor %edi,%edi <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
124b75: 51 push %ecx <== NOT EXECUTED
124b76: 57 push %edi <== NOT EXECUTED
124b77: 56 push %esi <== NOT EXECUTED
124b78: 52 push %edx <== NOT EXECUTED
124b79: 50 push %eax <== NOT EXECUTED
124b7a: 68 2c 33 16 00 push $0x16332c <== NOT EXECUTED
124b7f: 6a 02 push $0x2 <== NOT EXECUTED
124b81: 53 push %ebx <== NOT EXECUTED
124b82: e8 1d fd ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
}
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
124b87: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
124b8a: 85 db test %ebx,%ebx <== NOT EXECUTED
124b8c: 0f 84 12 07 00 00 je 1252a4 <msdos_format+0x828> <== NOT EXECUTED
(rqdata->fat_num == 0)) {
124b92: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
}
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
124b95: 85 c0 test %eax,%eax <== NOT EXECUTED
124b97: 0f 84 df 00 00 00 je 124c7c <msdos_format+0x200> <== NOT EXECUTED
(rqdata->fat_num == 0)) {
fmt_params->fat_num = 2;
}
else if (rqdata->fat_num <= 6) {
124b9d: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
124ba0: 0f 87 1a 01 00 00 ja 124cc0 <msdos_format+0x244> <== NOT EXECUTED
fmt_params->fat_num = rqdata->fat_num;
124ba6: 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,
124bac: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
124baf: 50 push %eax <== NOT EXECUTED
124bb0: 68 8b 32 16 00 push $0x16328b <== NOT EXECUTED
124bb5: 6a 02 push $0x2 <== NOT EXECUTED
124bb7: 53 push %ebx <== NOT EXECUTED
124bb8: e8 e7 fc ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
/*
* determine FAT type and sectors per cluster
* depends on
*/
if (ret_val == 0) {
fmt_params->sectors_per_cluster = 1;
124bbd: c7 85 50 ff ff ff 01 movl $0x1,-0xb0(%ebp) <== NOT EXECUTED
124bc4: 00 00 00
124bc7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ((rqdata != NULL) &&
(rqdata->fattype == MSDOS_FMT_FAT12)) {
124bca: 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) &&
124bcd: 3c 01 cmp $0x1,%al <== NOT EXECUTED
124bcf: 0f 84 73 0b 00 00 je 125748 <msdos_format+0xccc> <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT12)) {
fmt_params->fattype = FAT_FAT12;
}
else if ((rqdata != NULL) &&
124bd5: 3c 02 cmp $0x2,%al <== NOT EXECUTED
124bd7: 0f 84 83 0b 00 00 je 125760 <msdos_format+0xce4> <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT16)) {
fmt_params->fattype = FAT_FAT16;
}
else if ((rqdata != NULL) &&
124bdd: 3c 03 cmp $0x3,%al <== NOT EXECUTED
124bdf: 0f 84 07 0d 00 00 je 1258ec <msdos_format+0xe70> <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT32)) {
fmt_params->fattype = FAT_FAT32;
}
else if ((rqdata != NULL) &&
124be5: 84 c0 test %al,%al <== NOT EXECUTED
124be7: 0f 85 03 07 00 00 jne 1252f0 <msdos_format+0x874> <== 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
124bed: 8b 85 48 ff ff ff mov -0xb8(%ebp),%eax <== NOT EXECUTED
124bf3: 3d a7 7f 00 00 cmp $0x7fa7,%eax <== NOT EXECUTED
124bf8: 0f 87 8a 0b 00 00 ja 125788 <msdos_format+0xd0c> <== NOT EXECUTED
< ((uint32_t)FAT_FAT12_MAX_CLN)*8) {
fmt_params->fattype = FAT_FAT12;
124bfe: c6 85 76 ff ff ff 01 movb $0x1,-0x8a(%ebp) <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
124c05: c7 85 50 ff ff ff 02 movl $0x2,-0xb0(%ebp) <== NOT EXECUTED
124c0c: 00 00 00
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
124c0f: 85 db test %ebx,%ebx <== NOT EXECUTED
124c11: 0f 84 bd 0c 00 00 je 1258d4 <msdos_format+0xe58> <== NOT EXECUTED
124c17: c7 85 f8 fc ff ff 00 movl $0x0,-0x308(%ebp) <== NOT EXECUTED
124c1e: 00 00 00
(rqdata->sectors_per_cluster > 0)) {
124c21: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
124c24: 85 c0 test %eax,%eax <== NOT EXECUTED
124c26: 0f 85 f8 09 00 00 jne 125624 <msdos_format+0xba8> <== NOT EXECUTED
124c2c: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx <== NOT EXECUTED
124c32: 89 d0 mov %edx,%eax <== 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) {
124c34: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
124c3a: 89 8d 34 fd ff ff mov %ecx,-0x2cc(%ebp) <== NOT EXECUTED
124c40: 31 f6 xor %esi,%esi <== NOT EXECUTED
124c42: 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
124c47: bf 00 80 00 00 mov $0x8000,%edi <== 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) {
124c4c: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
124c4e: 76 14 jbe 124c64 <msdos_format+0x1e8> <== NOT EXECUTED
124c50: 89 d0 mov %edx,%eax <== 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) {
124c52: d1 e9 shr %ecx <== NOT EXECUTED
124c54: 46 inc %esi <== NOT EXECUTED
124c55: 83 fe 08 cmp $0x8,%esi <== NOT EXECUTED
124c58: 0f 84 1c 0d 00 00 je 12597a <msdos_format+0xefe> <== NOT EXECUTED
124c5e: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (fmt_params->sectors_per_cluster >= onebit) {
124c60: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
124c62: 77 ec ja 124c50 <msdos_format+0x1d4> <== NOT EXECUTED
fmt_params->sectors_per_cluster = onebit;
if (fmt_params->sectors_per_cluster
124c64: 89 f8 mov %edi,%eax <== NOT EXECUTED
124c66: 31 d2 xor %edx,%edx <== NOT EXECUTED
124c68: f7 b5 34 fd ff ff divl -0x2cc(%ebp) <== NOT EXECUTED
124c6e: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
124c70: 0f 83 96 06 00 00 jae 12530c <msdos_format+0x890> <== NOT EXECUTED
124c76: 89 c8 mov %ecx,%eax <== NOT EXECUTED
124c78: eb d8 jmp 124c52 <msdos_format+0x1d6> <== NOT EXECUTED
124c7a: 66 90 xchg %ax,%ax <== NOT EXECUTED
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
(rqdata->fat_num == 0)) {
fmt_params->fat_num = 2;
124c7c: c6 85 74 ff ff ff 02 movb $0x2,-0x8c(%ebp) <== NOT EXECUTED
ret_val = EINVAL;
}
}
if (ret_val == 0)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
124c83: 6a 02 push $0x2 <== NOT EXECUTED
124c85: e9 26 ff ff ff jmp 124bb0 <msdos_format+0x134> <== NOT EXECUTED
124c8a: 66 90 xchg %ax,%ax <== NOT EXECUTED
*/
if (ret_val == 0) {
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"open device\n");
fd = open(devname, O_RDWR);
if (fd == -1)
124c8c: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
124c91: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* free any data structures (not needed now)
*/
if (fd != -1) {
close(fd);
}
if (dd != NULL) {
124c94: 8b 8d 2c fd ff ff mov -0x2d4(%ebp),%ecx <== NOT EXECUTED
124c9a: 85 c9 test %ecx,%ecx <== NOT EXECUTED
124c9c: 0f 84 1e fe ff ff je 124ac0 <msdos_format+0x44> <== NOT EXECUTED
rtems_disk_release(dd);
124ca2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124ca5: ff b5 2c fd ff ff pushl -0x2d4(%ebp) <== NOT EXECUTED
124cab: e8 b0 89 fe ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
124cb0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return ret_val;
}
124cb3: 89 f0 mov %esi,%eax <== NOT EXECUTED
124cb5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124cb8: 5b pop %ebx <== NOT EXECUTED
124cb9: 5e pop %esi <== NOT EXECUTED
124cba: 5f pop %edi <== NOT EXECUTED
124cbb: c9 leave <== NOT EXECUTED
124cbc: c3 ret <== NOT EXECUTED
124cbd: 8d 76 00 lea 0x0(%esi),%esi <== 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) {
124cc0: c7 85 f8 fc ff ff 16 movl $0x16,-0x308(%ebp) <== NOT EXECUTED
124cc7: 00 00 00
}
/*
* determine location and size of root directory
* for formatting
*/
if (fmt_params->root_dir_sectors > 0) {
124cca: 8b b5 60 ff ff ff mov -0xa0(%ebp),%esi <== NOT EXECUTED
124cd0: 85 f6 test %esi,%esi <== NOT EXECUTED
124cd2: 0f 84 64 05 00 00 je 12523c <msdos_format+0x7c0> <== NOT EXECUTED
fmt_params->root_dir_start_sec =
124cd8: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
124cdf: 0f af 85 54 ff ff ff imul -0xac(%ebp),%eax <== NOT EXECUTED
124ce6: 03 85 4c ff ff ff add -0xb4(%ebp),%eax <== NOT EXECUTED
124cec: 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;
124cf2: 8b 85 60 ff ff ff mov -0xa0(%ebp),%eax <== NOT EXECUTED
124cf8: 89 85 68 ff ff ff mov %eax,-0x98(%ebp) <== NOT EXECUTED
fmt_params->root_dir_fmt_sec_cnt = fmt_params->sectors_per_cluster;
}
/*
* determine usable OEMName
*/
if (ret_val == 0) {
124cfe: 8b 8d f8 fc ff ff mov -0x308(%ebp),%ecx <== NOT EXECUTED
124d04: 85 c9 test %ecx,%ecx <== NOT EXECUTED
124d06: 0f 85 84 00 00 00 jne 124d90 <msdos_format+0x314> <== NOT EXECUTED
const char *from;
char *to = fmt_params->OEMName;
int cnt;
from = "RTEMS"; /* default: make "from" point to OS Name */
if ((rqdata != NULL) &&
124d0c: 85 db test %ebx,%ebx <== NOT EXECUTED
124d0e: 0f 84 58 09 00 00 je 12566c <msdos_format+0xbf0> <== NOT EXECUTED
(rqdata->OEMName != NULL)) {
124d14: 8b 0b mov (%ebx),%ecx <== 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) &&
124d16: 85 c9 test %ecx,%ecx <== NOT EXECUTED
124d18: 0f 84 4e 09 00 00 je 12566c <msdos_format+0xbf0> <== NOT EXECUTED
124d1e: 8b 35 e8 da 16 00 mov 0x16dae8,%esi <== NOT EXECUTED
124d24: 8d 85 78 ff ff ff lea -0x88(%ebp),%eax <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
124d2a: 8d 55 80 lea -0x80(%ebp),%edx <== NOT EXECUTED
124d2d: 89 95 d4 fc ff ff mov %edx,-0x32c(%ebp) <== NOT EXECUTED
124d33: eb 13 jmp 124d48 <msdos_format+0x2cc> <== NOT EXECUTED
124d35: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
for (cnt = 0;
cnt < (sizeof(fmt_params->OEMName)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
*to++ = *from++;
124d38: 88 50 ff mov %dl,-0x1(%eax) <== NOT EXECUTED
124d3b: 41 inc %ecx <== NOT EXECUTED
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
}
*to = '\0';
124d3c: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
124d3f: 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;
124d40: 3b 85 d4 fc ff ff cmp -0x32c(%ebp),%eax <== NOT EXECUTED
124d46: 74 1c je 124d64 <msdos_format+0x2e8> <== NOT EXECUTED
cnt < (sizeof(fmt_params->OEMName)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
124d48: 8a 11 mov (%ecx),%dl <== NOT EXECUTED
124d4a: 0f b6 fa movzbl %dl,%edi <== NOT EXECUTED
124d4d: f6 44 3e 01 97 testb $0x97,0x1(%esi,%edi,1) <== NOT EXECUTED
124d52: 75 e4 jne 124d38 <msdos_format+0x2bc> <== NOT EXECUTED
/*
* non-printable character in given name, so keep stuck
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
124d54: c6 40 ff 20 movb $0x20,-0x1(%eax) <== NOT EXECUTED
}
*to = '\0';
124d58: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
124d5b: 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;
124d5c: 3b 85 d4 fc ff ff cmp -0x32c(%ebp),%eax <== NOT EXECUTED
124d62: 75 e4 jne 124d48 <msdos_format+0x2cc> <== 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) &&
124d64: 85 db test %ebx,%ebx <== NOT EXECUTED
124d66: 0f 84 0c 09 00 00 je 125678 <msdos_format+0xbfc> <== NOT EXECUTED
(rqdata->VolLabel != NULL)) {
124d6c: 8b 4b 04 mov 0x4(%ebx),%ecx <== 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) &&
124d6f: 85 c9 test %ecx,%ecx <== NOT EXECUTED
124d71: 0f 84 01 09 00 00 je 125678 <msdos_format+0xbfc> <== NOT EXECUTED
(rqdata->VolLabel != NULL)) {
from = rqdata->VolLabel;
fmt_params->VolLabel_present = true;
124d77: c6 45 8c 01 movb $0x1,-0x74(%ebp) <== NOT EXECUTED
124d7b: 8d 45 81 lea -0x7f(%ebp),%eax <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
124d7e: 8d bd 44 ff ff ff lea -0xbc(%ebp),%edi <== NOT EXECUTED
124d84: 83 c7 48 add $0x48,%edi <== NOT EXECUTED
124d87: 89 9d 34 fd ff ff mov %ebx,-0x2cc(%ebp) <== NOT EXECUTED
124d8d: eb 45 jmp 124dd4 <msdos_format+0x358> <== NOT EXECUTED
124d8f: 90 nop <== NOT EXECUTED
}
/*
* Phuuu.... That's it.
*/
if (ret_val != 0) {
rtems_set_errno_and_return_minus_one(ret_val);
124d90: e8 f7 19 02 00 call 14678c <__errno> <== NOT EXECUTED
124d95: 8b 8d f8 fc ff ff mov -0x308(%ebp),%ecx <== NOT EXECUTED
124d9b: 89 08 mov %ecx,(%eax) <== NOT EXECUTED
124d9d: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
/*
* cleanup:
* sync and unlock disk
* free any data structures (not needed now)
*/
if (fd != -1) {
124da2: 83 bd 30 fd ff ff ff cmpl $0xffffffff,-0x2d0(%ebp) <== NOT EXECUTED
124da9: 0f 84 e5 fe ff ff je 124c94 <msdos_format+0x218> <== NOT EXECUTED
124daf: 90 nop <== NOT EXECUTED
close(fd);
124db0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124db3: ff b5 30 fd ff ff pushl -0x2d0(%ebp) <== NOT EXECUTED
124db9: e8 56 96 fe ff call 10e414 <close> <== NOT EXECUTED
124dbe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124dc1: e9 ce fe ff ff jmp 124c94 <msdos_format+0x218> <== NOT EXECUTED
124dc6: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
for (cnt = 0;
cnt < (sizeof(fmt_params->VolLabel)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
*to++ = *from++;
124dc8: 88 50 ff mov %dl,-0x1(%eax) <== NOT EXECUTED
124dcb: 41 inc %ecx <== NOT EXECUTED
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
}
*to = '\0';
124dcc: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
124dcf: 40 inc %eax <== NOT EXECUTED
if ((rqdata != NULL) &&
(rqdata->VolLabel != NULL)) {
from = rqdata->VolLabel;
fmt_params->VolLabel_present = true;
}
for (cnt = 0;
124dd0: 39 f8 cmp %edi,%eax <== NOT EXECUTED
124dd2: 74 18 je 124dec <msdos_format+0x370> <== NOT EXECUTED
cnt < (sizeof(fmt_params->VolLabel)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
124dd4: 8a 11 mov (%ecx),%dl <== NOT EXECUTED
124dd6: 0f b6 da movzbl %dl,%ebx <== NOT EXECUTED
124dd9: f6 44 1e 01 97 testb $0x97,0x1(%esi,%ebx,1) <== NOT EXECUTED
124dde: 75 e8 jne 124dc8 <msdos_format+0x34c> <== NOT EXECUTED
/*
* non-printable character in given name, so keep stuck
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
124de0: c6 40 ff 20 movb $0x20,-0x1(%eax) <== NOT EXECUTED
}
*to = '\0';
124de4: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
124de7: 40 inc %eax <== NOT EXECUTED
if ((rqdata != NULL) &&
(rqdata->VolLabel != NULL)) {
from = rqdata->VolLabel;
fmt_params->VolLabel_present = true;
}
for (cnt = 0;
124de8: 39 f8 cmp %edi,%eax <== NOT EXECUTED
124dea: 75 e8 jne 124dd4 <msdos_format+0x358> <== NOT EXECUTED
124dec: 8b 9d 34 fd ff ff mov -0x2cc(%ebp),%ebx <== NOT EXECUTED
{
int ret_val = 0;
int rc;
struct timeval time_value;
rc = rtems_clock_get_tod_timeval(&time_value);
124df2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124df5: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
124df8: 50 push %eax <== NOT EXECUTED
124df9: e8 4e d7 fe ff call 11254c <rtems_clock_get_tod_timeval><== NOT EXECUTED
if (rc == RTEMS_SUCCESSFUL) {
124dfe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124e01: 85 c0 test %eax,%eax <== NOT EXECUTED
124e03: 0f 85 6f 09 00 00 jne 125778 <msdos_format+0xcfc> <== NOT EXECUTED
*volid_ptr = time_value.tv_sec + time_value.tv_sec;
124e09: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
124e0c: d1 e0 shl %eax <== NOT EXECUTED
124e0e: 89 45 90 mov %eax,-0x70(%ebp) <== 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) &&
124e11: 85 db test %ebx,%ebx <== NOT EXECUTED
124e13: 74 0a je 124e1f <msdos_format+0x3a3> <== NOT EXECUTED
(rqdata != NULL) &&
!(rqdata->quick_format)) {
124e15: 80 7b 16 00 cmpb $0x0,0x16(%ebx) <== NOT EXECUTED
124e19: 0f 84 55 04 00 00 je 125274 <msdos_format+0x7f8> <== NOT EXECUTED
*/
if (ret_val == 0) {
/*
* Read the current MBR to obtain the partition table.
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
124e1f: 50 push %eax <== NOT EXECUTED
124e20: 68 b8 32 16 00 push $0x1632b8 <== NOT EXECUTED
124e25: 6a 02 push $0x2 <== NOT EXECUTED
124e27: 53 push %ebx <== NOT EXECUTED
124e28: e8 77 fa ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
"read MRB sector\n");
ret_val = msdos_format_read_sec(fd,
124e2d: 8b b5 44 ff ff ff mov -0xbc(%ebp),%esi <== 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)) {
124e33: 6a 00 push $0x0 <== NOT EXECUTED
124e35: 6a 00 push $0x0 <== NOT EXECUTED
124e37: 6a 00 push $0x0 <== NOT EXECUTED
124e39: ff b5 30 fd ff ff pushl -0x2d0(%ebp) <== NOT EXECUTED
124e3f: e8 ec a0 00 00 call 12ef30 <lseek> <== NOT EXECUTED
124e44: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
124e47: 85 d2 test %edx,%edx <== NOT EXECUTED
124e49: 0f 88 19 04 00 00 js 125268 <msdos_format+0x7ec> <== NOT EXECUTED
ret_val = -1;
}
if (ret_val == 0) {
if (0 > read(fd,buffer,sector_size)) {
124e4f: 57 push %edi <== NOT EXECUTED
124e50: 56 push %esi <== NOT EXECUTED
124e51: 8d 85 44 fd ff ff lea -0x2bc(%ebp),%eax <== NOT EXECUTED
124e57: 89 85 d0 fc ff ff mov %eax,-0x330(%ebp) <== NOT EXECUTED
124e5d: 50 push %eax <== NOT EXECUTED
124e5e: ff b5 30 fd ff ff pushl -0x2d0(%ebp) <== NOT EXECUTED
124e64: e8 73 ac fe ff call 10fadc <read> <== NOT EXECUTED
124e69: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124e6c: 85 c0 test %eax,%eax <== NOT EXECUTED
124e6e: 0f 88 f4 03 00 00 js 125268 <msdos_format+0x7ec> <== 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,
124e74: 57 push %edi <== NOT EXECUTED
124e75: 68 14 33 16 00 push $0x163314 <== NOT EXECUTED
124e7a: 6a 02 push $0x2 <== NOT EXECUTED
124e7c: 53 push %ebx <== NOT EXECUTED
124e7d: e8 22 fa ff ff call 1248a4 <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) {
124e82: 8b 85 48 ff ff ff mov -0xb8(%ebp),%eax <== NOT EXECUTED
124e88: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124e8b: 3d ff ff 00 00 cmp $0xffff,%eax <== NOT EXECUTED
124e90: 0f 86 2e 04 00 00 jbe 1252c4 <msdos_format+0x848> <== 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)) {
124e96: 88 85 34 fd ff ff mov %al,-0x2cc(%ebp) <== NOT EXECUTED
124e9c: 89 c1 mov %eax,%ecx <== NOT EXECUTED
124e9e: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
124ea1: 88 8d f8 fc ff ff mov %cl,-0x308(%ebp) <== NOT EXECUTED
124ea7: 89 c2 mov %eax,%edx <== NOT EXECUTED
124ea9: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
124eac: 88 95 08 fd ff ff mov %dl,-0x2f8(%ebp) <== NOT EXECUTED
124eb2: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
124eb5: 88 85 18 fd ff ff mov %al,-0x2e8(%ebp) <== NOT EXECUTED
124ebb: c6 85 e8 fc ff ff 00 movb $0x0,-0x318(%ebp) <== NOT EXECUTED
124ec2: 31 f6 xor %esi,%esi <== 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);
124ec4: 31 d2 xor %edx,%edx <== NOT EXECUTED
124ec6: b9 be 01 00 00 mov $0x1be,%ecx <== NOT EXECUTED
124ecb: 8b bd d0 fc ff ff mov -0x330(%ebp),%edi <== NOT EXECUTED
124ed1: 88 d0 mov %dl,%al <== NOT EXECUTED
124ed3: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
memset(mbr + RTEMS_IDE_PARTITION_TABLE_OFFSET + RTEMS_IDE_PARTITION_TABLE_SIZE,
124ed5: 66 c7 85 42 ff ff ff movw $0x0,-0xbe(%ebp) <== NOT EXECUTED
124edc: 00 00
* with 0xEB,....
*/
/*
* fill OEMName
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
124ede: 8b 85 77 ff ff ff mov -0x89(%ebp),%eax <== NOT EXECUTED
124ee4: 89 85 47 fd ff ff mov %eax,-0x2b9(%ebp) <== NOT EXECUTED
124eea: 8b 85 7b ff ff ff mov -0x85(%ebp),%eax <== NOT EXECUTED
124ef0: 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);
124ef6: 8b 85 44 ff ff ff mov -0xbc(%ebp),%eax <== NOT EXECUTED
124efc: 88 85 4f fd ff ff mov %al,-0x2b1(%ebp) <== NOT EXECUTED
124f02: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
124f05: 88 85 50 fd ff ff mov %al,-0x2b0(%ebp) <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
124f0b: 8b 85 50 ff ff ff mov -0xb0(%ebp),%eax <== NOT EXECUTED
124f11: 88 85 51 fd ff ff mov %al,-0x2af(%ebp) <== NOT EXECUTED
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
124f17: 8b 85 4c ff ff ff mov -0xb4(%ebp),%eax <== NOT EXECUTED
124f1d: 88 85 52 fd ff ff mov %al,-0x2ae(%ebp) <== NOT EXECUTED
124f23: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
124f26: 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 */
124f2c: 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);
124f33: 8b 85 5c ff ff ff mov -0xa4(%ebp),%eax <== NOT EXECUTED
124f39: 88 85 55 fd ff ff mov %al,-0x2ab(%ebp) <== NOT EXECUTED
124f3f: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
124f42: 88 85 56 fd ff ff mov %al,-0x2aa(%ebp) <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
124f48: 89 f1 mov %esi,%ecx <== NOT EXECUTED
124f4a: 88 8d 57 fd ff ff mov %cl,-0x2a9(%ebp) <== NOT EXECUTED
124f50: 8a 85 e8 fc ff ff mov -0x318(%ebp),%al <== NOT EXECUTED
124f56: 88 85 58 fd ff ff mov %al,-0x2a8(%ebp) <== NOT EXECUTED
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
124f5c: 8a 85 75 ff ff ff mov -0x8b(%ebp),%al <== NOT EXECUTED
124f62: 88 85 59 fd ff ff mov %al,-0x2a7(%ebp) <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
124f68: 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... */
124f6f: c6 85 5e fd ff ff 06 movb $0x6,-0x2a2(%ebp) <== NOT EXECUTED
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
124f76: c6 85 60 fd ff ff 01 movb $0x1,-0x2a0(%ebp) <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
124f7d: 8a 8d 34 fd ff ff mov -0x2cc(%ebp),%cl <== NOT EXECUTED
124f83: 88 8d 64 fd ff ff mov %cl,-0x29c(%ebp) <== NOT EXECUTED
124f89: 8a 85 f8 fc ff ff mov -0x308(%ebp),%al <== NOT EXECUTED
124f8f: 88 85 65 fd ff ff mov %al,-0x29b(%ebp) <== NOT EXECUTED
124f95: 8a 8d 08 fd ff ff mov -0x2f8(%ebp),%cl <== NOT EXECUTED
124f9b: 88 8d 66 fd ff ff mov %cl,-0x29a(%ebp) <== NOT EXECUTED
124fa1: 8a 85 18 fd ff ff mov -0x2e8(%ebp),%al <== NOT EXECUTED
124fa7: 88 85 67 fd ff ff mov %al,-0x299(%ebp) <== NOT EXECUTED
if (fmt_params->fattype != FAT_FAT32) {
124fad: 80 bd 76 ff ff ff 04 cmpb $0x4,-0x8a(%ebp) <== NOT EXECUTED
124fb4: 0f 84 2e 08 00 00 je 1257e8 <msdos_format+0xd6c> <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_FAT(mbr ,fmt_params->sectors_per_fat);
124fba: 8b 85 54 ff ff ff mov -0xac(%ebp),%eax <== NOT EXECUTED
124fc0: 88 85 5a fd ff ff mov %al,-0x2a6(%ebp) <== NOT EXECUTED
124fc6: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
124fc9: 88 85 5b fd ff ff mov %al,-0x2a5(%ebp) <== NOT EXECUTED
FAT_SET_BR_DRVNUM(mbr , 0); /* only needed for INT13... */
124fcf: c6 85 68 fd ff ff 00 movb $0x0,-0x298(%ebp) <== NOT EXECUTED
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
124fd6: c6 85 69 fd ff ff 00 movb $0x0,-0x297(%ebp) <== NOT EXECUTED
FAT_SET_BR_BOOTSIG(mbr , FAT_BR_BOOTSIG_VAL);
124fdd: c6 85 6a fd ff ff 29 movb $0x29,-0x296(%ebp) <== NOT EXECUTED
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
124fe4: 8b 45 90 mov -0x70(%ebp),%eax <== NOT EXECUTED
124fe7: 88 85 6b fd ff ff mov %al,-0x295(%ebp) <== NOT EXECUTED
124fed: 0f b6 d4 movzbl %ah,%edx <== NOT EXECUTED
124ff0: 88 95 6c fd ff ff mov %dl,-0x294(%ebp) <== NOT EXECUTED
124ff6: 89 c2 mov %eax,%edx <== NOT EXECUTED
124ff8: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
124ffb: 88 95 6d fd ff ff mov %dl,-0x293(%ebp) <== NOT EXECUTED
125001: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
125004: 88 85 6e fd ff ff mov %al,-0x292(%ebp) <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),
12500a: 8d 85 6f fd ff ff lea -0x291(%ebp),%eax <== NOT EXECUTED
125010: b9 0b 00 00 00 mov $0xb,%ecx <== NOT EXECUTED
125015: 89 c7 mov %eax,%edi <== NOT EXECUTED
125017: 8b b5 d4 fc ff ff mov -0x32c(%ebp),%esi <== NOT EXECUTED
12501d: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
fmt_params->VolLabel,
FAT_BR_VOLLAB_SIZE);
memcpy(FAT_GET_ADDR_BR_FILSYSTYPE(mbr),
12501f: 80 bd 76 ff ff ff 01 cmpb $0x1,-0x8a(%ebp) <== NOT EXECUTED
125026: 0f 84 d6 08 00 00 je 125902 <msdos_format+0xe86> <== NOT EXECUTED
12502c: b8 c9 32 16 00 mov $0x1632c9,%eax <== NOT EXECUTED
125031: 8b 10 mov (%eax),%edx <== NOT EXECUTED
125033: 89 95 7a fd ff ff mov %edx,-0x286(%ebp) <== NOT EXECUTED
125039: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED
12503c: 89 85 7e fd ff ff mov %eax,-0x282(%ebp) <== NOT EXECUTED
FAT_BR_FILSYSTYPE_SIZE);
}
/*
* add boot record signature
*/
FAT_SET_BR_SIGNATURE(mbr, FAT_BR_SIGNATURE_VAL);
125042: c6 85 42 ff ff ff 55 movb $0x55,-0xbe(%ebp) <== NOT EXECUTED
125049: 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);
125050: c6 85 44 fd ff ff eb movb $0xeb,-0x2bc(%ebp) <== NOT EXECUTED
FAT_SET_VAL8(mbr,1,0x3c);
125057: c6 85 45 fd ff ff 3c movb $0x3c,-0x2bb(%ebp) <== NOT EXECUTED
FAT_SET_VAL8(mbr,2,0x90);
12505e: 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,
125065: 56 push %esi <== NOT EXECUTED
125066: 68 db 32 16 00 push $0x1632db <== NOT EXECUTED
12506b: 6a 02 push $0x2 <== NOT EXECUTED
12506d: 53 push %ebx <== NOT EXECUTED
12506e: e8 31 f8 ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
"write MRB sector\n");
ret_val = msdos_format_write_sec(fd,
125073: 8d 95 44 fd ff ff lea -0x2bc(%ebp),%edx <== NOT EXECUTED
125079: 89 14 24 mov %edx,(%esp) <== NOT EXECUTED
12507c: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
125082: 31 d2 xor %edx,%edx <== NOT EXECUTED
125084: 8b 85 30 fd ff ff mov -0x2d0(%ebp),%eax <== NOT EXECUTED
12508a: e8 59 f8 ff ff call 1248e8 <msdos_format_write_sec><== NOT EXECUTED
12508f: 89 c6 mov %eax,%esi <== NOT EXECUTED
0,
fmt_params.bytes_per_sector,
tmp_sec);
}
if ((ret_val == 0) &&
125091: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125094: 85 c0 test %eax,%eax <== NOT EXECUTED
125096: 0f 85 06 fd ff ff jne 124da2 <msdos_format+0x326> <== NOT EXECUTED
12509c: 8b 8d 6c ff ff ff mov -0x94(%ebp),%ecx <== NOT EXECUTED
1250a2: 85 c9 test %ecx,%ecx <== NOT EXECUTED
1250a4: 0f 85 82 05 00 00 jne 12562c <msdos_format+0xbb0> <== NOT EXECUTED
}
}
/*
* for FAT32: initialize info sector on disk
*/
if ((ret_val == 0) &&
1250aa: 8b 85 70 ff ff ff mov -0x90(%ebp),%eax <== NOT EXECUTED
1250b0: 85 c0 test %eax,%eax <== NOT EXECUTED
1250b2: 0f 85 98 04 00 00 jne 125550 <msdos_format+0xad4> <== NOT EXECUTED
/*
* write FAT as all empty
* -> write all FAT sectors as zero
*/
if (ret_val == 0) {
ret_val = msdos_format_fill_sectors
1250b8: 57 push %edi <== NOT EXECUTED
1250b9: 6a 00 push $0x0 <== NOT EXECUTED
1250bb: ff b5 44 ff ff ff pushl -0xbc(%ebp) <== NOT EXECUTED
1250c1: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
1250c8: 0f af 85 54 ff ff ff imul -0xac(%ebp),%eax <== NOT EXECUTED
1250cf: 50 push %eax <== NOT EXECUTED
1250d0: 8b 8d 4c ff ff ff mov -0xb4(%ebp),%ecx <== NOT EXECUTED
1250d6: 8b 95 30 fd ff ff mov -0x2d0(%ebp),%edx <== NOT EXECUTED
1250dc: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1250de: e8 55 f8 ff ff call 124938 <msdos_format_fill_sectors><== NOT EXECUTED
1250e3: 89 c6 mov %eax,%esi <== NOT EXECUTED
}
/*
* clear/init root directory
* -> write all directory sectors as 0x00
*/
if (ret_val == 0) {
1250e5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1250e8: 85 c0 test %eax,%eax <== NOT EXECUTED
1250ea: 0f 85 b2 fc ff ff jne 124da2 <msdos_format+0x326> <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
1250f0: 56 push %esi <== NOT EXECUTED
1250f1: 6a 00 push $0x0 <== NOT EXECUTED
1250f3: ff b5 44 ff ff ff pushl -0xbc(%ebp) <== NOT EXECUTED
1250f9: ff b5 68 ff ff ff pushl -0x98(%ebp) <== NOT EXECUTED
1250ff: 8b 8d 64 ff ff ff mov -0x9c(%ebp),%ecx <== NOT EXECUTED
125105: 8b 95 30 fd ff ff mov -0x2d0(%ebp),%edx <== NOT EXECUTED
12510b: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12510d: e8 26 f8 ff ff call 124938 <msdos_format_fill_sectors><== NOT EXECUTED
125112: 89 c6 mov %eax,%esi <== NOT EXECUTED
0x00);
}
/*
* write volume label to first entry of directory
*/
if ((ret_val == 0) && fmt_params.VolLabel_present) {
125114: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125117: 85 c0 test %eax,%eax <== NOT EXECUTED
125119: 0f 85 91 fc ff ff jne 124db0 <msdos_format+0x334> <== NOT EXECUTED
12511f: 80 7d 8c 00 cmpb $0x0,-0x74(%ebp) <== NOT EXECUTED
125123: 0f 84 87 fc ff ff je 124db0 <msdos_format+0x334> <== NOT EXECUTED
memset(tmp_sec,0,sizeof(tmp_sec));
125129: b9 00 02 00 00 mov $0x200,%ecx <== NOT EXECUTED
12512e: 8b bd d0 fc ff ff mov -0x330(%ebp),%edi <== NOT EXECUTED
125134: 31 c0 xor %eax,%eax <== NOT EXECUTED
125136: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
125138: b1 0b mov $0xb,%cl <== NOT EXECUTED
12513a: 8b bd d0 fc ff ff mov -0x330(%ebp),%edi <== NOT EXECUTED
125140: 8b b5 d4 fc ff ff mov -0x32c(%ebp),%esi <== NOT EXECUTED
125146: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
*MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;
125148: 8d 9d 4f fd ff ff lea -0x2b1(%ebp),%ebx <== NOT EXECUTED
12514e: c6 85 4f fd ff ff 08 movb $0x8,-0x2b1(%ebp) <== NOT EXECUTED
ret_val = msdos_format_write_sec
125155: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125158: 8d 95 44 fd ff ff lea -0x2bc(%ebp),%edx <== NOT EXECUTED
12515e: 52 push %edx <== NOT EXECUTED
12515f: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
125165: 8b 95 64 ff ff ff mov -0x9c(%ebp),%edx <== NOT EXECUTED
12516b: 8b 85 30 fd ff ff mov -0x2d0(%ebp),%eax <== NOT EXECUTED
125171: e8 72 f7 ff ff call 1248e8 <msdos_format_write_sec><== NOT EXECUTED
125176: 89 c6 mov %eax,%esi <== 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){
125178: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12517b: 85 c0 test %eax,%eax <== NOT EXECUTED
12517d: 0f 85 2d fc ff ff jne 124db0 <msdos_format+0x334> <== NOT EXECUTED
125183: 80 7d 8c 00 cmpb $0x0,-0x74(%ebp) <== NOT EXECUTED
125187: 0f 84 23 fc ff ff je 124db0 <msdos_format+0x334> <== NOT EXECUTED
/*
* empty sector: all clusters are free/do not link further on
*/
memset(tmp_sec,0,sizeof(tmp_sec));
12518d: b9 00 02 00 00 mov $0x200,%ecx <== NOT EXECUTED
125192: 8b bd d0 fc ff ff mov -0x330(%ebp),%edi <== NOT EXECUTED
125198: 31 c0 xor %eax,%eax <== NOT EXECUTED
12519a: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
switch(fmt_params.fattype) {
12519c: 8a 85 76 ff ff ff mov -0x8a(%ebp),%al <== NOT EXECUTED
1251a2: 3c 02 cmp $0x2,%al <== NOT EXECUTED
1251a4: 0f 84 da 04 00 00 je 125684 <msdos_format+0xc08> <== NOT EXECUTED
1251aa: 3c 04 cmp $0x4,%al <== NOT EXECUTED
1251ac: 0f 84 1a 05 00 00 je 1256cc <msdos_format+0xc50> <== NOT EXECUTED
1251b2: fe c8 dec %al <== NOT EXECUTED
1251b4: 0f 84 f2 04 00 00 je 1256ac <msdos_format+0xc30> <== NOT EXECUTED
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
break;
default:
ret_val = -1;
errno = EINVAL;
1251ba: e8 cd 15 02 00 call 14678c <__errno> <== NOT EXECUTED
1251bf: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
}
if (fmt_params.fattype == FAT_FAT32) {
1251c5: 80 bd 76 ff ff ff 04 cmpb $0x4,-0x8a(%ebp) <== NOT EXECUTED
1251cc: 0f 84 84 07 00 00 je 125956 <msdos_format+0xeda> <== NOT EXECUTED
1251d2: be ff ff ff ff mov $0xffffffff,%esi <== 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;
1251d7: 80 bd 74 ff ff ff 00 cmpb $0x0,-0x8c(%ebp) <== NOT EXECUTED
1251de: 0f 84 cc fb ff ff je 124db0 <msdos_format+0x334> <== NOT EXECUTED
1251e4: 85 f6 test %esi,%esi <== NOT EXECUTED
1251e6: 0f 85 c4 fb ff ff jne 124db0 <msdos_format+0x334> <== NOT EXECUTED
1251ec: 8b 95 54 ff ff ff mov -0xac(%ebp),%edx <== NOT EXECUTED
1251f2: 31 ff xor %edi,%edi <== NOT EXECUTED
1251f4: 8b 9d 30 fd ff ff mov -0x2d0(%ebp),%ebx <== NOT EXECUTED
1251fa: eb 0a jmp 125206 <msdos_format+0x78a> <== NOT EXECUTED
1251fc: 85 c0 test %eax,%eax <== NOT EXECUTED
1251fe: 75 35 jne 125235 <msdos_format+0x7b9> <== NOT EXECUTED
125200: 8b 95 54 ff ff ff mov -0xac(%ebp),%edx <== NOT EXECUTED
(i < fmt_params.fat_num) && (ret_val == 0);
i++) {
ret_val = msdos_format_write_sec
125206: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125209: 0f af d7 imul %edi,%edx <== NOT EXECUTED
12520c: 03 95 4c ff ff ff add -0xb4(%ebp),%edx <== NOT EXECUTED
125212: 8d 8d 44 fd ff ff lea -0x2bc(%ebp),%ecx <== NOT EXECUTED
125218: 51 push %ecx <== NOT EXECUTED
125219: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
12521f: 89 d8 mov %ebx,%eax <== NOT EXECUTED
125221: e8 c2 f6 ff ff call 1248e8 <msdos_format_write_sec><== NOT EXECUTED
*/
FAT_SET_VAL32(tmp_sec,8,FAT_FAT32_EOC);
}
for (i = 0;
(i < fmt_params.fat_num) && (ret_val == 0);
i++) {
125226: 47 inc %edi <== 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;
125227: 0f b6 95 74 ff ff ff movzbl -0x8c(%ebp),%edx <== NOT EXECUTED
12522e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125231: 39 fa cmp %edi,%edx <== NOT EXECUTED
125233: 7f c7 jg 1251fc <msdos_format+0x780> <== NOT EXECUTED
125235: 89 c6 mov %eax,%esi <== NOT EXECUTED
125237: e9 74 fb ff ff jmp 124db0 <msdos_format+0x334> <== NOT EXECUTED
}
else {
/*
* for FAT32: root directory is in cluster 2
*/
fmt_params->root_dir_start_sec =
12523c: 0f b6 85 74 ff ff ff movzbl -0x8c(%ebp),%eax <== NOT EXECUTED
125243: 0f af 85 54 ff ff ff imul -0xac(%ebp),%eax <== NOT EXECUTED
12524a: 03 85 4c ff ff ff add -0xb4(%ebp),%eax <== NOT EXECUTED
125250: 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;
125256: 8b 85 50 ff ff ff mov -0xb0(%ebp),%eax <== NOT EXECUTED
12525c: 89 85 68 ff ff ff mov %eax,-0x98(%ebp) <== NOT EXECUTED
125262: e9 97 fa ff ff jmp 124cfe <msdos_format+0x282> <== NOT EXECUTED
125267: 90 nop <== 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)) {
125268: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
12526d: e9 30 fb ff ff jmp 124da2 <msdos_format+0x326> <== NOT EXECUTED
125272: 66 90 xchg %ax,%ax <== NOT EXECUTED
* if requested, write whole disk/partition with 0xe5
*/
if ((ret_val == 0) &&
(rqdata != NULL) &&
!(rqdata->quick_format)) {
ret_val = msdos_format_fill_sectors
125274: 52 push %edx <== NOT EXECUTED
125275: 6a e5 push $0xffffffe5 <== NOT EXECUTED
125277: ff b5 44 ff ff ff pushl -0xbc(%ebp) <== NOT EXECUTED
12527d: ff b5 48 ff ff ff pushl -0xb8(%ebp) <== NOT EXECUTED
125283: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
125285: 8b 95 30 fd ff ff mov -0x2d0(%ebp),%edx <== NOT EXECUTED
12528b: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12528d: e8 a6 f6 ff ff call 124938 <msdos_format_fill_sectors><== NOT EXECUTED
125292: 89 c6 mov %eax,%esi <== NOT EXECUTED
0xe5);
}
/*
* create master boot record
*/
if (ret_val == 0) {
125294: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125297: 85 c0 test %eax,%eax <== NOT EXECUTED
125299: 0f 85 03 fb ff ff jne 124da2 <msdos_format+0x326> <== NOT EXECUTED
12529f: e9 7b fb ff ff jmp 124e1f <msdos_format+0x3a3> <== NOT EXECUTED
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
(rqdata->fat_num == 0)) {
fmt_params->fat_num = 2;
1252a4: c6 85 74 ff ff ff 02 movb $0x2,-0x8c(%ebp) <== NOT EXECUTED
ret_val = EINVAL;
}
}
if (ret_val == 0)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
1252ab: 6a 02 push $0x2 <== NOT EXECUTED
1252ad: 68 8b 32 16 00 push $0x16328b <== NOT EXECUTED
1252b2: 6a 02 push $0x2 <== NOT EXECUTED
1252b4: 6a 00 push $0x0 <== NOT EXECUTED
1252b6: e8 e9 f5 ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
/*
* determine FAT type and sectors per cluster
* depends on
*/
if (ret_val == 0) {
fmt_params->sectors_per_cluster = 1;
1252bb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1252be: e9 2a f9 ff ff jmp 124bed <msdos_format+0x171> <== NOT EXECUTED
1252c3: 90 nop <== 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) {
1252c4: 89 c6 mov %eax,%esi <== NOT EXECUTED
1252c6: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
1252c9: 88 85 e8 fc ff ff mov %al,-0x318(%ebp) <== NOT EXECUTED
1252cf: c6 85 18 fd ff ff 00 movb $0x0,-0x2e8(%ebp) <== NOT EXECUTED
1252d6: c6 85 08 fd ff ff 00 movb $0x0,-0x2f8(%ebp) <== NOT EXECUTED
1252dd: c6 85 f8 fc ff ff 00 movb $0x0,-0x308(%ebp) <== NOT EXECUTED
1252e4: c6 85 34 fd ff ff 00 movb $0x0,-0x2cc(%ebp) <== NOT EXECUTED
1252eb: e9 d4 fb ff ff jmp 124ec4 <msdos_format+0x448> <== NOT EXECUTED
fmt_params->fattype = FAT_FAT32;
}
else if ((rqdata != NULL) &&
(rqdata->fattype != MSDOS_FMT_FATANY)) {
ret_val = -1;
errno = EINVAL;
1252f0: e8 97 14 02 00 call 14678c <__errno> <== NOT EXECUTED
1252f5: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1252fb: c7 85 f8 fc ff ff ff movl $0xffffffff,-0x308(%ebp) <== NOT EXECUTED
125302: ff ff ff
125305: e9 17 f9 ff ff jmp 124c21 <msdos_format+0x1a5> <== NOT EXECUTED
12530a: 66 90 xchg %ax,%ax <== 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) {
12530c: 89 8d 50 ff ff ff mov %ecx,-0xb0(%ebp) <== NOT EXECUTED
}
}
}
}
if (ret_val == 0) {
125312: 8b 85 f8 fc ff ff mov -0x308(%ebp),%eax <== NOT EXECUTED
125318: 85 c0 test %eax,%eax <== NOT EXECUTED
12531a: 0f 85 aa f9 ff ff jne 124cca <msdos_format+0x24e> <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
125320: ff b5 50 ff ff ff pushl -0xb0(%ebp) <== NOT EXECUTED
125326: 68 9f 32 16 00 push $0x16329f <== NOT EXECUTED
12532b: 6a 02 push $0x2 <== NOT EXECUTED
12532d: 53 push %ebx <== NOT EXECUTED
12532e: e8 71 f5 ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
"sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
if (fmt_params->fattype == FAT_FAT32) {
125333: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125336: 80 bd 76 ff ff ff 04 cmpb $0x4,-0x8a(%ebp) <== NOT EXECUTED
12533d: 0f 84 69 04 00 00 je 1257ac <msdos_format+0xd30> <== NOT EXECUTED
fmt_params->fsinfo_sec = 1;
}
else {
/* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
fmt_params->rsvd_sector_cnt = 1;
125343: c7 85 4c ff ff ff 01 movl $0x1,-0xb4(%ebp) <== NOT EXECUTED
12534a: 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) &&
12534d: 85 db test %ebx,%ebx <== NOT EXECUTED
12534f: 0f 84 db 03 00 00 je 125730 <msdos_format+0xcb4> <== NOT EXECUTED
(rqdata->files_per_root_dir > 0)) {
125355: 8b 4b 10 mov 0x10(%ebx),%ecx <== 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) &&
125358: 85 c9 test %ecx,%ecx <== NOT EXECUTED
12535a: 0f 84 d0 03 00 00 je 125730 <msdos_format+0xcb4> <== NOT EXECUTED
(rqdata->files_per_root_dir > 0)) {
fmt_params->files_per_root_dir = rqdata->files_per_root_dir;
125360: 49 dec %ecx <== NOT EXECUTED
}
else {
fmt_params->files_per_root_dir = 64;
}
}
fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
125361: 8b 85 44 ff ff ff mov -0xbc(%ebp),%eax <== NOT EXECUTED
125367: 89 85 34 fd ff ff mov %eax,-0x2cc(%ebp) <== NOT EXECUTED
12536d: 89 c7 mov %eax,%edi <== NOT EXECUTED
12536f: d1 e7 shl %edi <== NOT EXECUTED
125371: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
125374: 01 f9 add %edi,%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 %
125376: 89 c8 mov %ecx,%eax <== NOT EXECUTED
125378: 31 d2 xor %edx,%edx <== NOT EXECUTED
12537a: f7 f7 div %edi <== NOT EXECUTED
12537c: 29 d1 sub %edx,%ecx <== NOT EXECUTED
12537e: 89 8d 5c ff ff ff mov %ecx,-0xa4(%ebp) <== NOT EXECUTED
125384: 89 c8 mov %ecx,%eax <== NOT EXECUTED
125386: c1 e0 05 shl $0x5,%eax <== 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)
125389: 8b 8d 34 fd ff ff mov -0x2cc(%ebp),%ecx <== NOT EXECUTED
12538f: 49 dec %ecx <== NOT EXECUTED
125390: 89 8d e8 fc ff ff mov %ecx,-0x318(%ebp) <== NOT EXECUTED
125396: 01 c8 add %ecx,%eax <== NOT EXECUTED
125398: 31 d2 xor %edx,%edx <== NOT EXECUTED
12539a: f7 b5 34 fd ff ff divl -0x2cc(%ebp) <== 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 =
1253a0: 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 -
1253a6: 8b bd 48 ff ff ff mov -0xb8(%ebp),%edi <== NOT EXECUTED
1253ac: 2b bd 4c ff ff ff sub -0xb4(%ebp),%edi <== NOT EXECUTED
1253b2: 29 c7 sub %eax,%edi <== NOT EXECUTED
/*
* check values to get legal arrangement of FAT type and cluster count
*/
ret_val = msdos_format_eval_sectors_per_cluster
1253b4: 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,
1253ba: 0f b6 b5 74 ff ff ff movzbl -0x8c(%ebp),%esi <== NOT EXECUTED
/*
* check values to get legal arrangement of FAT type and cluster count
*/
ret_val = msdos_format_eval_sectors_per_cluster
1253c1: 0f b6 85 76 ff ff ff movzbl -0x8a(%ebp),%eax <== NOT EXECUTED
1253c8: 89 85 18 fd ff ff mov %eax,-0x2e8(%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) {
1253ce: b8 00 80 00 00 mov $0x8000,%eax <== NOT EXECUTED
1253d3: 31 d2 xor %edx,%edx <== NOT EXECUTED
1253d5: f7 b5 34 fd ff ff divl -0x2cc(%ebp) <== NOT EXECUTED
1253db: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
1253dd: 76 07 jbe 1253e6 <msdos_format+0x96a> <== NOT EXECUTED
1253df: 90 nop <== NOT EXECUTED
sectors_per_cluster /= 2;
1253e0: 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) {
1253e2: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
1253e4: 77 fa ja 1253e0 <msdos_format+0x964> <== 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)) ||
1253e6: 89 f2 mov %esi,%edx <== NOT EXECUTED
1253e8: 0f b6 f2 movzbl %dl,%esi <== NOT EXECUTED
1253eb: 89 b5 e4 fc ff ff mov %esi,-0x31c(%ebp) <== NOT EXECUTED
1253f1: 89 de mov %ebx,%esi <== 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;
1253f3: 89 f8 mov %edi,%eax <== NOT EXECUTED
1253f5: 31 d2 xor %edx,%edx <== NOT EXECUTED
1253f7: f7 f1 div %ecx <== NOT EXECUTED
1253f9: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (fattype == FAT_FAT12) {
1253fb: 83 bd 18 fd ff ff 01 cmpl $0x1,-0x2e8(%ebp) <== NOT EXECUTED
125402: 0f 84 cc 00 00 00 je 1254d4 <msdos_format+0xa58> <== NOT EXECUTED
fat_capacity = fatdata_cluster_cnt * 3 / 2;
}
else if (fattype == FAT_FAT16) {
125408: 83 bd 18 fd ff ff 02 cmpl $0x2,-0x2e8(%ebp) <== NOT EXECUTED
12540f: 0f 84 fb 00 00 00 je 125510 <msdos_format+0xa94> <== NOT EXECUTED
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
}
sectors_per_fat = ((fat_capacity
125415: 8b 95 e8 fc ff ff mov -0x318(%ebp),%edx <== NOT EXECUTED
12541b: 8d 04 82 lea (%edx,%eax,4),%eax <== NOT EXECUTED
12541e: 31 d2 xor %edx,%edx <== NOT EXECUTED
125420: f7 b5 34 fd ff ff divl -0x2cc(%ebp) <== NOT EXECUTED
125426: 89 85 08 fd ff ff mov %eax,-0x2f8(%ebp) <== NOT EXECUTED
12542c: b2 01 mov $0x1,%dl <== NOT EXECUTED
finished = true;
}
/*
* when maximum cluster size is exceeded, we have invalid data, abort...
*/
if ((sectors_per_cluster * bytes_per_sector)
12542e: 8b 85 34 fd ff ff mov -0x2cc(%ebp),%eax <== NOT EXECUTED
125434: 0f af c1 imul %ecx,%eax <== NOT EXECUTED
125437: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
12543c: 76 26 jbe 125464 <msdos_format+0x9e8> <== NOT EXECUTED
12543e: 89 f3 mov %esi,%ebx <== NOT EXECUTED
finished = true;
}
} while (!finished);
if (ret_val != 0) {
rtems_set_errno_and_return_minus_one(ret_val);
125440: e8 47 13 02 00 call 14678c <__errno> <== NOT EXECUTED
125445: c7 00 16 00 00 00 movl $0x16,(%eax) <== 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;
12544b: c7 85 50 ff ff ff 00 movl $0x0,-0xb0(%ebp) <== NOT EXECUTED
125452: 00 00 00
125455: c7 85 f8 fc ff ff ff movl $0xffffffff,-0x308(%ebp) <== NOT EXECUTED
12545c: ff ff ff
12545f: e9 66 f8 ff ff jmp 124cca <msdos_format+0x24e> <== NOT EXECUTED
if ((sectors_per_cluster * bytes_per_sector)
> MS_BYTES_PER_CLUSTER_LIMIT) {
ret_val = EINVAL;
finished = true;
}
} while (!finished);
125464: 84 d2 test %dl,%dl <== NOT EXECUTED
125466: 74 8b je 1253f3 <msdos_format+0x977> <== NOT EXECUTED
125468: 89 f3 mov %esi,%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;
12546a: 8b 85 08 fd ff ff mov -0x2f8(%ebp),%eax <== NOT EXECUTED
125470: 89 85 54 ff ff ff mov %eax,-0xac(%ebp) <== 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;
125476: 89 8d 50 ff ff ff mov %ecx,-0xb0(%ebp) <== NOT EXECUTED
/*
* determine media code
*/
if (ret_val == 0) {
if ((rqdata != NULL) &&
12547c: 85 f6 test %esi,%esi <== NOT EXECUTED
12547e: 0f 84 94 01 00 00 je 125618 <msdos_format+0xb9c> <== NOT EXECUTED
125484: 80 7e 15 00 cmpb $0x0,0x15(%esi) <== NOT EXECUTED
125488: 0f 84 8a 01 00 00 je 125618 <msdos_format+0xb9c> <== NOT EXECUTED
(rqdata->media != 0)) {
const char valid_media_codes[] =
{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};
12548e: 8d 7d dc lea -0x24(%ebp),%edi <== NOT EXECUTED
125491: be 64 33 16 00 mov $0x163364,%esi <== NOT EXECUTED
125496: b9 09 00 00 00 mov $0x9,%ecx <== NOT EXECUTED
12549b: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
if (NULL==memchr(valid_media_codes,
rqdata->media,
12549d: 8a 53 15 mov 0x15(%ebx),%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,
1254a0: 57 push %edi <== NOT EXECUTED
1254a1: 6a 09 push $0x9 <== NOT EXECUTED
1254a3: 0f b6 c2 movzbl %dl,%eax <== NOT EXECUTED
1254a6: 50 push %eax <== NOT EXECUTED
1254a7: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
1254aa: 50 push %eax <== NOT EXECUTED
1254ab: 88 95 e0 fc ff ff mov %dl,-0x320(%ebp) <== NOT EXECUTED
1254b1: e8 3a 42 02 00 call 1496f0 <memchr> <== NOT EXECUTED
1254b6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1254b9: 85 c0 test %eax,%eax <== NOT EXECUTED
1254bb: 8a 95 e0 fc ff ff mov -0x320(%ebp),%dl <== NOT EXECUTED
1254c1: 0f 84 99 04 00 00 je 125960 <msdos_format+0xee4> <== NOT EXECUTED
sizeof(valid_media_codes))) {
ret_val = -1;
errno = EINVAL;
}
else {
fmt_params->media_code = rqdata->media;
1254c7: 88 95 75 ff ff ff mov %dl,-0x8b(%ebp) <== NOT EXECUTED
1254cd: e9 f8 f7 ff ff jmp 124cca <msdos_format+0x24e> <== NOT EXECUTED
1254d2: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
}
sectors_per_fat = ((fat_capacity
1254d4: 8d 04 40 lea (%eax,%eax,2),%eax <== NOT EXECUTED
1254d7: d1 e8 shr %eax <== NOT EXECUTED
1254d9: 03 85 e8 fc ff ff add -0x318(%ebp),%eax <== NOT EXECUTED
1254df: 31 d2 xor %edx,%edx <== NOT EXECUTED
1254e1: f7 b5 34 fd ff ff divl -0x2cc(%ebp) <== NOT EXECUTED
1254e7: 89 85 08 fd ff ff mov %eax,-0x2f8(%ebp) <== 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)) ||
1254ed: 0f af 85 e4 fc ff ff imul -0x31c(%ebp),%eax <== NOT EXECUTED
1254f4: 8d 44 01 ff lea -0x1(%ecx,%eax,1),%eax <== NOT EXECUTED
1254f8: 31 d2 xor %edx,%edx <== NOT EXECUTED
1254fa: f7 f1 div %ecx <== NOT EXECUTED
1254fc: 29 c3 sub %eax,%ebx <== NOT EXECUTED
1254fe: 81 fb f5 0f 00 00 cmp $0xff5,%ebx <== NOT EXECUTED
125504: 76 40 jbe 125546 <msdos_format+0xaca> <== NOT EXECUTED
((fattype == FAT_FAT16) && (data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
sectors_per_cluster *= 2;
125506: d1 e1 shl %ecx <== NOT EXECUTED
125508: 31 d2 xor %edx,%edx <== NOT EXECUTED
12550a: e9 1f ff ff ff jmp 12542e <msdos_format+0x9b2> <== NOT EXECUTED
12550f: 90 nop <== NOT EXECUTED
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
}
sectors_per_fat = ((fat_capacity
125510: 8b 95 e8 fc ff ff mov -0x318(%ebp),%edx <== NOT EXECUTED
125516: 8d 04 42 lea (%edx,%eax,2),%eax <== NOT EXECUTED
125519: 31 d2 xor %edx,%edx <== NOT EXECUTED
12551b: f7 b5 34 fd ff ff divl -0x2cc(%ebp) <== NOT EXECUTED
125521: 89 85 08 fd ff ff mov %eax,-0x2f8(%ebp) <== 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)) ||
125527: 8b 85 e4 fc ff ff mov -0x31c(%ebp),%eax <== NOT EXECUTED
12552d: 0f af 85 08 fd ff ff imul -0x2f8(%ebp),%eax <== NOT EXECUTED
125534: 8d 44 01 ff lea -0x1(%ecx,%eax,1),%eax <== NOT EXECUTED
125538: 31 d2 xor %edx,%edx <== NOT EXECUTED
12553a: f7 f1 div %ecx <== NOT EXECUTED
12553c: 29 c3 sub %eax,%ebx <== NOT EXECUTED
12553e: 81 fb f5 ff 00 00 cmp $0xfff5,%ebx <== NOT EXECUTED
125544: 77 c0 ja 125506 <msdos_format+0xa8a> <== NOT EXECUTED
((fattype == FAT_FAT16) && (data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
sectors_per_cluster *= 2;
125546: b2 01 mov $0x1,%dl <== NOT EXECUTED
125548: e9 e1 fe ff ff jmp 12542e <msdos_format+0x9b2> <== NOT EXECUTED
12554d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
\*=========================================================================*/
{
/*
* clear fsinfo sector data
*/
memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);
125550: b9 00 02 00 00 mov $0x200,%ecx <== NOT EXECUTED
125555: b0 00 mov $0x0,%al <== NOT EXECUTED
125557: 8b bd d0 fc ff ff mov -0x330(%ebp),%edi <== NOT EXECUTED
12555d: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
/*
* write LEADSIG, STRUCTSIG, TRAILSIG
*/
FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
12555f: c6 85 44 fd ff ff 52 movb $0x52,-0x2bc(%ebp) <== NOT EXECUTED
125566: c6 85 45 fd ff ff 52 movb $0x52,-0x2bb(%ebp) <== NOT EXECUTED
12556d: c6 85 46 fd ff ff 61 movb $0x61,-0x2ba(%ebp) <== NOT EXECUTED
125574: c6 85 47 fd ff ff 41 movb $0x41,-0x2b9(%ebp) <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
12557b: c6 85 28 ff ff ff 72 movb $0x72,-0xd8(%ebp) <== NOT EXECUTED
125582: c6 85 29 ff ff ff 72 movb $0x72,-0xd7(%ebp) <== NOT EXECUTED
125589: c6 85 2a ff ff ff 41 movb $0x41,-0xd6(%ebp) <== NOT EXECUTED
125590: c6 85 2b ff ff ff 61 movb $0x61,-0xd5(%ebp) <== NOT EXECUTED
FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
125597: c6 85 42 ff ff ff 55 movb $0x55,-0xbe(%ebp) <== NOT EXECUTED
12559e: 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,
1255a5: c6 85 2c ff ff ff ff movb $0xff,-0xd4(%ebp) <== NOT EXECUTED
1255ac: c6 85 2d ff ff ff ff movb $0xff,-0xd3(%ebp) <== NOT EXECUTED
1255b3: c6 85 2e ff ff ff ff movb $0xff,-0xd2(%ebp) <== NOT EXECUTED
1255ba: c6 85 2f ff ff ff ff movb $0xff,-0xd1(%ebp) <== NOT EXECUTED
0xffffffff);
FAT_SET_FSINFO_NEXT_FREE_CLUSTER (fsinfo+FAT_FSI_INFO,
1255c1: c6 85 30 ff ff ff ff movb $0xff,-0xd0(%ebp) <== NOT EXECUTED
1255c8: c6 85 31 ff ff ff ff movb $0xff,-0xcf(%ebp) <== NOT EXECUTED
1255cf: c6 85 32 ff ff ff ff movb $0xff,-0xce(%ebp) <== NOT EXECUTED
1255d6: c6 85 33 ff ff ff ff movb $0xff,-0xcd(%ebp) <== NOT EXECUTED
}
/*
* write fsinfo sector
*/
if ((ret_val == 0) &&
(fmt_params.fsinfo_sec != 0)) {
1255dd: 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) &&
1255e3: 0f 84 cf fa ff ff je 1250b8 <msdos_format+0x63c> <== NOT EXECUTED
(fmt_params.fsinfo_sec != 0)) {
ret_val = msdos_format_write_sec(fd,
1255e9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1255ec: 8d 85 44 fd ff ff lea -0x2bc(%ebp),%eax <== NOT EXECUTED
1255f2: 50 push %eax <== NOT EXECUTED
1255f3: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
1255f9: 8b 85 30 fd ff ff mov -0x2d0(%ebp),%eax <== NOT EXECUTED
1255ff: e8 e4 f2 ff ff call 1248e8 <msdos_format_write_sec><== NOT EXECUTED
125604: 89 c6 mov %eax,%esi <== NOT EXECUTED
}
/*
* write FAT as all empty
* -> write all FAT sectors as zero
*/
if (ret_val == 0) {
125606: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125609: 85 c0 test %eax,%eax <== NOT EXECUTED
12560b: 0f 85 91 f7 ff ff jne 124da2 <msdos_format+0x326> <== NOT EXECUTED
125611: e9 a2 fa ff ff jmp 1250b8 <msdos_format+0x63c> <== NOT EXECUTED
125616: 66 90 xchg %ax,%ax <== NOT EXECUTED
else {
fmt_params->media_code = rqdata->media;
}
}
else {
fmt_params->media_code = FAT_BR_MEDIA_FIXED;
125618: c6 85 75 ff ff ff f8 movb $0xf8,-0x8b(%ebp) <== NOT EXECUTED
12561f: e9 a6 f6 ff ff jmp 124cca <msdos_format+0x24e> <== NOT EXECUTED
125624: 89 c2 mov %eax,%edx <== NOT EXECUTED
125626: e9 09 f6 ff ff jmp 124c34 <msdos_format+0x1b8> <== NOT EXECUTED
12562b: 90 nop <== NOT EXECUTED
if ((ret_val == 0) &&
(fmt_params.mbr_copy_sec != 0)) {
/*
* write copy of MBR
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
12562c: 52 push %edx <== NOT EXECUTED
12562d: 68 ed 32 16 00 push $0x1632ed <== NOT EXECUTED
125632: 6a 02 push $0x2 <== NOT EXECUTED
125634: 53 push %ebx <== NOT EXECUTED
125635: e8 6a f2 ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
"write back up MRB sector\n");
ret_val = msdos_format_write_sec(fd,
12563a: 8d 8d 44 fd ff ff lea -0x2bc(%ebp),%ecx <== NOT EXECUTED
125640: 89 0c 24 mov %ecx,(%esp) <== NOT EXECUTED
125643: 8b 8d 44 ff ff ff mov -0xbc(%ebp),%ecx <== NOT EXECUTED
125649: 8b 95 6c ff ff ff mov -0x94(%ebp),%edx <== NOT EXECUTED
12564f: 8b 85 30 fd ff ff mov -0x2d0(%ebp),%eax <== NOT EXECUTED
125655: e8 8e f2 ff ff call 1248e8 <msdos_format_write_sec><== NOT EXECUTED
12565a: 89 c6 mov %eax,%esi <== NOT EXECUTED
}
}
/*
* for FAT32: initialize info sector on disk
*/
if ((ret_val == 0) &&
12565c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12565f: 85 c0 test %eax,%eax <== NOT EXECUTED
125661: 0f 84 43 fa ff ff je 1250aa <msdos_format+0x62e> <== NOT EXECUTED
125667: e9 36 f7 ff ff jmp 124da2 <msdos_format+0x326> <== 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) &&
12566c: b9 f2 18 16 00 mov $0x1618f2,%ecx <== NOT EXECUTED
125671: e9 a8 f6 ff ff jmp 124d1e <msdos_format+0x2a2> <== NOT EXECUTED
125676: 66 90 xchg %ax,%ax <== 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) &&
125678: b9 75 fd 15 00 mov $0x15fd75,%ecx <== NOT EXECUTED
12567d: e9 f9 f6 ff ff jmp 124d7b <msdos_format+0x2ff> <== NOT EXECUTED
125682: 66 90 xchg %ax,%ax <== NOT EXECUTED
FAT_SET_VAL8(tmp_sec,2,(FAT_FAT12_EOC >> 4));
break;
case FAT_FAT16:
/* FAT entry 0: 0xff00|media_type */
FAT_SET_VAL16(tmp_sec,0,0xff00|fmt_params.media_code);
125684: 8a 85 75 ff ff ff mov -0x8b(%ebp),%al <== NOT EXECUTED
12568a: 88 85 44 fd ff ff mov %al,-0x2bc(%ebp) <== NOT EXECUTED
125690: 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);
125697: c6 85 46 fd ff ff f8 movb $0xf8,-0x2ba(%ebp) <== NOT EXECUTED
12569e: c6 85 47 fd ff ff ff movb $0xff,-0x2b9(%ebp) <== NOT EXECUTED
break;
1256a5: e9 2d fb ff ff jmp 1251d7 <msdos_format+0x75b> <== NOT EXECUTED
1256aa: 66 90 xchg %ax,%ax <== NOT EXECUTED
memset(tmp_sec,0,sizeof(tmp_sec));
switch(fmt_params.fattype) {
case FAT_FAT12:
/* LSBits of FAT entry 0: media_type */
FAT_SET_VAL8(tmp_sec,0,(fmt_params.media_code));
1256ac: 8a 85 75 ff ff ff mov -0x8b(%ebp),%al <== NOT EXECUTED
1256b2: 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)));
1256b8: c6 85 45 fd ff ff 8f movb $0x8f,-0x2bb(%ebp) <== NOT EXECUTED
/* MSBits of FAT entry 1: MSBits of EOC */
FAT_SET_VAL8(tmp_sec,2,(FAT_FAT12_EOC >> 4));
1256bf: c6 85 46 fd ff ff ff movb $0xff,-0x2ba(%ebp) <== NOT EXECUTED
break;
1256c6: e9 0c fb ff ff jmp 1251d7 <msdos_format+0x75b> <== NOT EXECUTED
1256cb: 90 nop <== NOT EXECUTED
FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);
break;
case FAT_FAT32:
/* FAT entry 0: 0xffffff00|media_type */
FAT_SET_VAL32(tmp_sec,0,0xffffff00|fmt_params.media_code);
1256cc: 0f b6 85 75 ff ff ff movzbl -0x8b(%ebp),%eax <== NOT EXECUTED
1256d3: 0d 00 ff ff ff or $0xffffff00,%eax <== NOT EXECUTED
1256d8: 88 85 44 fd ff ff mov %al,-0x2bc(%ebp) <== NOT EXECUTED
1256de: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
1256e1: 88 85 45 fd ff ff mov %al,-0x2bb(%ebp) <== NOT EXECUTED
1256e7: c6 85 46 fd ff ff ff movb $0xff,-0x2ba(%ebp) <== NOT EXECUTED
1256ee: c6 85 47 fd ff ff ff movb $0xff,-0x2b9(%ebp) <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
1256f5: c6 85 48 fd ff ff f8 movb $0xf8,-0x2b8(%ebp) <== NOT EXECUTED
1256fc: c6 85 49 fd ff ff ff movb $0xff,-0x2b7(%ebp) <== NOT EXECUTED
125703: c6 85 4a fd ff ff ff movb $0xff,-0x2b6(%ebp) <== NOT EXECUTED
12570a: c6 85 4b fd ff ff 0f movb $0xf,-0x2b5(%ebp) <== 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);
125711: c6 85 4c fd ff ff f8 movb $0xf8,-0x2b4(%ebp) <== NOT EXECUTED
125718: c6 85 4d fd ff ff ff movb $0xff,-0x2b3(%ebp) <== NOT EXECUTED
12571f: c6 85 4e fd ff ff ff movb $0xff,-0x2b2(%ebp) <== NOT EXECUTED
125726: c6 03 0f movb $0xf,(%ebx) <== NOT EXECUTED
125729: e9 a9 fa ff ff jmp 1251d7 <msdos_format+0x75b> <== NOT EXECUTED
12572e: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ((rqdata != NULL) &&
(rqdata->files_per_root_dir > 0)) {
fmt_params->files_per_root_dir = rqdata->files_per_root_dir;
}
else {
if (fmt_params->fattype == FAT_FAT16) {
125730: 80 bd 76 ff ff ff 02 cmpb $0x2,-0x8a(%ebp) <== NOT EXECUTED
125737: 0f 84 08 02 00 00 je 125945 <msdos_format+0xec9> <== NOT EXECUTED
fmt_params->files_per_root_dir = 512;
}
else {
fmt_params->files_per_root_dir = 64;
12573d: b9 3f 00 00 00 mov $0x3f,%ecx <== NOT EXECUTED
125742: e9 1a fc ff ff jmp 125361 <msdos_format+0x8e5> <== NOT EXECUTED
125747: 90 nop <== NOT EXECUTED
*/
if (ret_val == 0) {
fmt_params->sectors_per_cluster = 1;
if ((rqdata != NULL) &&
(rqdata->fattype == MSDOS_FMT_FAT12)) {
fmt_params->fattype = FAT_FAT12;
125748: c6 85 76 ff ff ff 01 movb $0x1,-0x8a(%ebp) <== NOT EXECUTED
12574f: c7 85 f8 fc ff ff 00 movl $0x0,-0x308(%ebp) <== NOT EXECUTED
125756: 00 00 00
125759: e9 c3 f4 ff ff jmp 124c21 <msdos_format+0x1a5> <== NOT EXECUTED
12575e: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
else if ((rqdata != NULL) &&
(rqdata->fattype == MSDOS_FMT_FAT16)) {
fmt_params->fattype = FAT_FAT16;
125760: c6 85 76 ff ff ff 02 movb $0x2,-0x8a(%ebp) <== NOT EXECUTED
125767: c7 85 f8 fc ff ff 00 movl $0x0,-0x308(%ebp) <== NOT EXECUTED
12576e: 00 00 00
125771: e9 ab f4 ff ff jmp 124c21 <msdos_format+0x1a5> <== NOT EXECUTED
125776: 66 90 xchg %ax,%ax <== NOT EXECUTED
rc = rtems_clock_get_tod_timeval(&time_value);
if (rc == RTEMS_SUCCESSFUL) {
*volid_ptr = time_value.tv_sec + time_value.tv_sec;
}
else {
*volid_ptr = rand();
125778: e8 db 59 02 00 call 14b158 <rand> <== NOT EXECUTED
12577d: 89 45 90 mov %eax,-0x70(%ebp) <== NOT EXECUTED
125780: e9 8c f6 ff ff jmp 124e11 <msdos_format+0x395> <== NOT EXECUTED
125785: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
< ((uint32_t)FAT_FAT12_MAX_CLN)*8) {
fmt_params->fattype = FAT_FAT12;
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
}
else if (fmt_params->totl_sector_cnt
125788: 3d 9f fe 1f 00 cmp $0x1ffe9f,%eax <== NOT EXECUTED
12578d: 0f 87 79 01 00 00 ja 12590c <msdos_format+0xe90> <== NOT EXECUTED
< ((uint32_t)FAT_FAT16_MAX_CLN)*32) {
fmt_params->fattype = FAT_FAT16;
125793: c6 85 76 ff ff ff 02 movb $0x2,-0x8a(%ebp) <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
12579a: c7 85 50 ff ff ff 02 movl $0x2,-0xb0(%ebp) <== NOT EXECUTED
1257a1: 00 00 00
1257a4: e9 66 f4 ff ff jmp 124c0f <msdos_format+0x193> <== NOT EXECUTED
1257a9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
if (fmt_params->fattype == FAT_FAT32) {
/* recommended: for FAT32, always set reserved sector count to 32 */
fmt_params->rsvd_sector_cnt = 32;
1257ac: c7 85 4c ff ff ff 20 movl $0x20,-0xb4(%ebp) <== NOT EXECUTED
1257b3: 00 00 00
/* for FAT32, always set files per root directory 0 */
fmt_params->files_per_root_dir = 0;
1257b6: c7 85 5c ff ff ff 00 movl $0x0,-0xa4(%ebp) <== NOT EXECUTED
1257bd: 00 00 00
/* location of copy of MBR */
fmt_params->mbr_copy_sec = 6;
1257c0: c7 85 6c ff ff ff 06 movl $0x6,-0x94(%ebp) <== NOT EXECUTED
1257c7: 00 00 00
/* location of fsinfo sector */
fmt_params->fsinfo_sec = 1;
1257ca: c7 85 70 ff ff ff 01 movl $0x1,-0x90(%ebp) <== NOT EXECUTED
1257d1: 00 00 00
1257d4: 31 c0 xor %eax,%eax <== NOT EXECUTED
1257d6: 8b 95 44 ff ff ff mov -0xbc(%ebp),%edx <== NOT EXECUTED
1257dc: 89 95 34 fd ff ff mov %edx,-0x2cc(%ebp) <== NOT EXECUTED
1257e2: e9 a2 fb ff ff jmp 125389 <msdos_format+0x90d> <== NOT EXECUTED
1257e7: 90 nop <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
1257e8: 8b 8d 54 ff ff ff mov -0xac(%ebp),%ecx <== NOT EXECUTED
1257ee: 88 8d 68 fd ff ff mov %cl,-0x298(%ebp) <== NOT EXECUTED
1257f4: 0f b6 c5 movzbl %ch,%eax <== NOT EXECUTED
1257f7: 88 85 69 fd ff ff mov %al,-0x297(%ebp) <== NOT EXECUTED
1257fd: 89 c8 mov %ecx,%eax <== NOT EXECUTED
1257ff: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
125802: 88 85 6a fd ff ff mov %al,-0x296(%ebp) <== NOT EXECUTED
125808: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
12580b: 88 8d 6b fd ff ff mov %cl,-0x295(%ebp) <== NOT EXECUTED
FAT_SET_BR_EXT_FLAGS(mbr , 0);
125811: c6 85 6c fd ff ff 00 movb $0x0,-0x294(%ebp) <== NOT EXECUTED
125818: c6 85 6d fd ff ff 00 movb $0x0,-0x293(%ebp) <== NOT EXECUTED
FAT_SET_BR_FSVER(mbr , 0); /* FAT32 Version:0.0 */
12581f: c6 85 6e fd ff ff 00 movb $0x0,-0x292(%ebp) <== NOT EXECUTED
125826: 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 */
12582d: c6 85 70 fd ff ff 02 movb $0x2,-0x290(%ebp) <== NOT EXECUTED
125834: c6 85 71 fd ff ff 00 movb $0x0,-0x28f(%ebp) <== NOT EXECUTED
12583b: c6 85 72 fd ff ff 00 movb $0x0,-0x28e(%ebp) <== NOT EXECUTED
125842: 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*/
125849: c6 85 74 fd ff ff 01 movb $0x1,-0x28c(%ebp) <== NOT EXECUTED
125850: 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 */
125857: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax <== NOT EXECUTED
12585d: 88 85 76 fd ff ff mov %al,-0x28a(%ebp) <== NOT EXECUTED
125863: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
125866: 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);
12586c: 8d b5 78 fd ff ff lea -0x288(%ebp),%esi <== NOT EXECUTED
125872: b9 0c 00 00 00 mov $0xc,%ecx <== NOT EXECUTED
125877: 89 f7 mov %esi,%edi <== NOT EXECUTED
125879: 88 d0 mov %dl,%al <== NOT EXECUTED
12587b: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
FAT_SET_BR_FAT32_DRVNUM(mbr , 0); /* only needed for INT13... */
12587d: c6 85 84 fd ff ff 00 movb $0x0,-0x27c(%ebp) <== NOT EXECUTED
FAT_SET_BR_FAT32_RSVD1(mbr , 0); /* fill with zero */
125884: c6 85 85 fd ff ff 00 movb $0x0,-0x27b(%ebp) <== NOT EXECUTED
FAT_SET_BR_FAT32_BOOTSIG(mbr ,FAT_BR_FAT32_BOOTSIG_VAL);
12588b: c6 85 86 fd ff ff 29 movb $0x29,-0x27a(%ebp) <== NOT EXECUTED
FAT_SET_BR_FAT32_VOLID(mbr , 0); /* not set */
125892: c6 85 87 fd ff ff 00 movb $0x0,-0x279(%ebp) <== NOT EXECUTED
125899: c6 85 88 fd ff ff 00 movb $0x0,-0x278(%ebp) <== NOT EXECUTED
1258a0: c6 85 89 fd ff ff 00 movb $0x0,-0x277(%ebp) <== NOT EXECUTED
1258a7: 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);
1258ae: 8d b5 8b fd ff ff lea -0x275(%ebp),%esi <== NOT EXECUTED
1258b4: b1 0b mov $0xb,%cl <== NOT EXECUTED
1258b6: 89 f7 mov %esi,%edi <== NOT EXECUTED
1258b8: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),
1258ba: c7 85 96 fd ff ff 46 movl $0x33544146,-0x26a(%ebp) <== NOT EXECUTED
1258c1: 41 54 33
1258c4: c7 85 9a fd ff ff 32 movl $0x20202032,-0x266(%ebp) <== NOT EXECUTED
1258cb: 20 20 20
1258ce: e9 6f f7 ff ff jmp 125042 <msdos_format+0x5c6> <== NOT EXECUTED
1258d3: 90 nop <== NOT EXECUTED
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
1258d4: 8b 95 50 ff ff ff mov -0xb0(%ebp),%edx <== NOT EXECUTED
1258da: 89 d0 mov %edx,%eax <== NOT EXECUTED
1258dc: c7 85 f8 fc ff ff 00 movl $0x0,-0x308(%ebp) <== NOT EXECUTED
1258e3: 00 00 00
1258e6: e9 49 f3 ff ff jmp 124c34 <msdos_format+0x1b8> <== NOT EXECUTED
1258eb: 90 nop <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT16)) {
fmt_params->fattype = FAT_FAT16;
}
else if ((rqdata != NULL) &&
(rqdata->fattype == MSDOS_FMT_FAT32)) {
fmt_params->fattype = FAT_FAT32;
1258ec: c6 85 76 ff ff ff 04 movb $0x4,-0x8a(%ebp) <== NOT EXECUTED
1258f3: c7 85 f8 fc ff ff 00 movl $0x0,-0x308(%ebp) <== NOT EXECUTED
1258fa: 00 00 00
1258fd: e9 1f f3 ff ff jmp 124c21 <msdos_format+0x1a5> <== NOT EXECUTED
FAT_SET_BR_BOOTSIG(mbr , FAT_BR_BOOTSIG_VAL);
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),
fmt_params->VolLabel,
FAT_BR_VOLLAB_SIZE);
memcpy(FAT_GET_ADDR_BR_FILSYSTYPE(mbr),
125902: b8 d2 32 16 00 mov $0x1632d2,%eax <== NOT EXECUTED
125907: e9 25 f7 ff ff jmp 125031 <msdos_format+0x5b5> <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
}
else {
#define ONE_GB (1024L * 1024L * 1024L)
uint32_t gigs = (total_size + ONE_GB) / ONE_GB;
12590c: 81 c6 00 00 00 40 add $0x40000000,%esi <== NOT EXECUTED
125912: 83 d7 00 adc $0x0,%edi <== NOT EXECUTED
125915: 0f ac fe 1e shrd $0x1e,%edi,%esi <== NOT EXECUTED
125919: c1 ef 1e shr $0x1e,%edi <== NOT EXECUTED
12591c: 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)
125921: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
125926: eb 03 jmp 12592b <msdos_format+0xeaf> <== 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--)
125928: 49 dec %ecx <== NOT EXECUTED
125929: 74 24 je 12594f <msdos_format+0xed3> <== NOT EXECUTED
if ((gigs & (1 << b)) != 0)
12592b: 89 d0 mov %edx,%eax <== NOT EXECUTED
12592d: d3 e0 shl %cl,%eax <== NOT EXECUTED
12592f: 85 f0 test %esi,%eax <== NOT EXECUTED
125931: 74 f5 je 125928 <msdos_format+0xeac> <== 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;
125933: 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;
12593a: 89 85 50 ff ff ff mov %eax,-0xb0(%ebp) <== NOT EXECUTED
125940: e9 ca f2 ff ff jmp 124c0f <msdos_format+0x193> <== 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;
125945: b9 ff 01 00 00 mov $0x1ff,%ecx <== NOT EXECUTED
12594a: e9 12 fa ff ff jmp 125361 <msdos_format+0x8e5> <== 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--)
12594f: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
125954: eb dd jmp 125933 <msdos_format+0xeb7> <== NOT EXECUTED
default:
ret_val = -1;
errno = EINVAL;
}
if (fmt_params.fattype == FAT_FAT32) {
125956: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
12595b: e9 b1 fd ff ff jmp 125711 <msdos_format+0xc95> <== NOT EXECUTED
{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};
if (NULL==memchr(valid_media_codes,
rqdata->media,
sizeof(valid_media_codes))) {
ret_val = -1;
errno = EINVAL;
125960: e8 27 0e 02 00 call 14678c <__errno> <== NOT EXECUTED
125965: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
12596b: c7 85 f8 fc ff ff ff movl $0xffffffff,-0x308(%ebp) <== NOT EXECUTED
125972: ff ff ff
125975: e9 50 f3 ff ff jmp 124cca <msdos_format+0x24e> <== 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) {
12597a: 89 85 50 ff ff ff mov %eax,-0xb0(%ebp) <== NOT EXECUTED
125980: e9 8d f9 ff ff jmp 125312 <msdos_format+0x896> <== NOT EXECUTED
00124938 <msdos_format_fill_sectors>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
124938: 55 push %ebp <== NOT EXECUTED
124939: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12493b: 57 push %edi <== NOT EXECUTED
12493c: 56 push %esi <== NOT EXECUTED
12493d: 53 push %ebx <== NOT EXECUTED
12493e: 83 ec 38 sub $0x38,%esp <== NOT EXECUTED
124941: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
124944: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
124947: 89 cb mov %ecx,%ebx <== NOT EXECUTED
124949: 0f b6 75 10 movzbl 0x10(%ebp),%esi <== NOT EXECUTED
/*
* allocate and fill buffer
*/
if (ret_val == 0) {
fill_buffer = malloc(sector_size);
12494d: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
124950: e8 b3 a4 fe ff call 10ee08 <malloc> <== NOT EXECUTED
124955: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
if (fill_buffer == NULL) {
124958: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12495b: 85 c0 test %eax,%eax <== NOT EXECUTED
12495d: 0f 84 91 00 00 00 je 1249f4 <msdos_format_fill_sectors+0xbc><== NOT EXECUTED
errno = ENOMEM;
ret_val = -1;
}
else {
memset(fill_buffer,fill_byte,sector_size);
124963: 8b 7d e0 mov -0x20(%ebp),%edi <== NOT EXECUTED
124966: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
124969: 89 f0 mov %esi,%eax <== NOT EXECUTED
12496b: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
12496d: 51 push %ecx <== NOT EXECUTED
12496e: 68 44 32 16 00 push $0x163244 <== NOT EXECUTED
124973: 6a 02 push $0x2 <== NOT EXECUTED
124975: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
124978: e8 27 ff ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
12497d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124980: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
124983: 85 d2 test %edx,%edx <== NOT EXECUTED
124985: 0f 84 d9 00 00 00 je 124a64 <msdos_format_fill_sectors+0x12c><== NOT EXECUTED
12498b: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
12498e: 8d 04 92 lea (%edx,%edx,4),%eax <== NOT EXECUTED
124991: 8d 04 80 lea (%eax,%eax,4),%eax <== NOT EXECUTED
124994: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
124997: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
12499a: 89 d7 mov %edx,%edi <== NOT EXECUTED
12499c: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
1249a1: eb 29 jmp 1249cc <msdos_format_fill_sectors+0x94><== NOT EXECUTED
1249a3: 90 nop <== NOT EXECUTED
if (percent != last_percent) {
if ((percent & 1) == 0)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
last_percent = percent;
}
ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
1249a4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1249a7: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1249aa: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
1249ad: 89 da mov %ebx,%edx <== NOT EXECUTED
1249af: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1249b2: e8 31 ff ff ff call 1248e8 <msdos_format_write_sec><== NOT EXECUTED
start_sector++;
1249b7: 43 inc %ebx <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
1249b8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1249bb: 85 c0 test %eax,%eax <== NOT EXECUTED
1249bd: 75 58 jne 124a17 <msdos_format_fill_sectors+0xdf><== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
last_percent = percent;
}
ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
start_sector++;
sector_cnt--;
1249bf: 83 6d e4 64 subl $0x64,-0x1c(%ebp) <== NOT EXECUTED
1249c3: 89 f1 mov %esi,%ecx <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
1249c5: 4f dec %edi <== NOT EXECUTED
1249c6: 0f 84 98 00 00 00 je 124a64 <msdos_format_fill_sectors+0x12c><== NOT EXECUTED
(sector_cnt > 0)) {
int percent = (sector_cnt * 100) / total_sectors;
1249cc: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1249cf: 31 d2 xor %edx,%edx <== NOT EXECUTED
1249d1: f7 75 08 divl 0x8(%ebp) <== NOT EXECUTED
1249d4: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (percent != last_percent) {
1249d6: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
1249d8: 74 ca je 1249a4 <msdos_format_fill_sectors+0x6c><== NOT EXECUTED
if ((percent & 1) == 0)
1249da: a8 01 test $0x1,%al <== NOT EXECUTED
1249dc: 75 c6 jne 1249a4 <msdos_format_fill_sectors+0x6c><== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
1249de: 50 push %eax <== NOT EXECUTED
1249df: 68 f8 07 16 00 push $0x1607f8 <== NOT EXECUTED
1249e4: 6a 02 push $0x2 <== NOT EXECUTED
1249e6: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
1249e9: e8 b6 fe ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
1249ee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1249f1: eb b1 jmp 1249a4 <msdos_format_fill_sectors+0x6c><== NOT EXECUTED
1249f3: 90 nop <== NOT EXECUTED
* allocate and fill buffer
*/
if (ret_val == 0) {
fill_buffer = malloc(sector_size);
if (fill_buffer == NULL) {
errno = ENOMEM;
1249f4: e8 93 1d 02 00 call 14678c <__errno> <== NOT EXECUTED
1249f9: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
else {
memset(fill_buffer,fill_byte,sector_size);
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
1249ff: 56 push %esi <== NOT EXECUTED
124a00: 68 44 32 16 00 push $0x163244 <== NOT EXECUTED
124a05: 6a 02 push $0x2 <== NOT EXECUTED
124a07: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
124a0a: e8 95 fe ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
124a0f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
124a14: 83 c4 10 add $0x10,%esp <== 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");
124a17: 57 push %edi <== NOT EXECUTED
124a18: 68 89 67 16 00 push $0x166789 <== NOT EXECUTED
124a1d: 6a 02 push $0x2 <== NOT EXECUTED
124a1f: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
124a22: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
124a25: e8 7a fe ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
if (ret_val)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,
124a2a: 53 push %ebx <== NOT EXECUTED
124a2b: 68 4f 32 16 00 push $0x16324f <== NOT EXECUTED
124a30: 6a 01 push $0x1 <== NOT EXECUTED
124a32: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
124a35: e8 6a fe ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
"filling error on sector: %d\n", start_sector);
/*
* cleanup
*/
if (fill_buffer != NULL) {
124a3a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
124a3d: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED
124a40: 85 f6 test %esi,%esi <== NOT EXECUTED
124a42: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
124a45: 74 14 je 124a5b <msdos_format_fill_sectors+0x123><== NOT EXECUTED
free(fill_buffer);
124a47: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
124a4a: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
124a4d: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
124a50: e8 13 9e fe ff call 10e868 <free> <== NOT EXECUTED
124a55: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124a58: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
fill_buffer = NULL;
}
return ret_val;
}
124a5b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124a5e: 5b pop %ebx <== NOT EXECUTED
124a5f: 5e pop %esi <== NOT EXECUTED
124a60: 5f pop %edi <== NOT EXECUTED
124a61: c9 leave <== NOT EXECUTED
124a62: c3 ret <== NOT EXECUTED
124a63: 90 nop <== 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");
124a64: 53 push %ebx <== NOT EXECUTED
124a65: 68 89 67 16 00 push $0x166789 <== NOT EXECUTED
124a6a: 6a 02 push $0x2 <== NOT EXECUTED
124a6c: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
124a6f: e8 30 fe ff ff call 1248a4 <msdos_format_printf> <== NOT EXECUTED
124a74: 31 c0 xor %eax,%eax <== NOT EXECUTED
124a76: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124a79: eb cc jmp 124a47 <msdos_format_fill_sectors+0x10f><== NOT EXECUTED
001248a4 <msdos_format_printf>:
*/
static void
msdos_format_printf (const msdos_format_request_param_t *rqdata,
int info_level,
const char *format, ...)
{
1248a4: 55 push %ebp <== NOT EXECUTED
1248a5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1248a7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1248aa: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
/*
* Formatted output.
*/
static void
msdos_format_printf (const msdos_format_request_param_t *rqdata,
1248ad: 8d 4d 14 lea 0x14(%ebp),%ecx <== NOT EXECUTED
int info_level,
const char *format, ...)
{
va_list args;
va_start (args, format);
if (rqdata != NULL && rqdata->info_level >= info_level)
1248b0: 85 c0 test %eax,%eax <== NOT EXECUTED
1248b2: 74 08 je 1248bc <msdos_format_printf+0x18><== NOT EXECUTED
1248b4: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
1248b7: 39 50 1c cmp %edx,0x1c(%eax) <== NOT EXECUTED
1248ba: 7d 04 jge 1248c0 <msdos_format_printf+0x1c><== NOT EXECUTED
{
vfprintf (stdout, format, args);
fflush (stdout);
}
va_end (args);
}
1248bc: c9 leave <== NOT EXECUTED
1248bd: c3 ret <== NOT EXECUTED
1248be: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
va_list args;
va_start (args, format);
if (rqdata != NULL && rqdata->info_level >= info_level)
{
vfprintf (stdout, format, args);
1248c0: 52 push %edx <== NOT EXECUTED
1248c1: 51 push %ecx <== NOT EXECUTED
1248c2: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1248c5: a1 00 db 16 00 mov 0x16db00,%eax <== NOT EXECUTED
1248ca: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
1248cd: e8 a2 f6 02 00 call 153f74 <vfprintf> <== NOT EXECUTED
fflush (stdout);
1248d2: 58 pop %eax <== NOT EXECUTED
1248d3: a1 00 db 16 00 mov 0x16db00,%eax <== NOT EXECUTED
1248d8: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
1248db: e8 28 22 02 00 call 146b08 <fflush> <== NOT EXECUTED
1248e0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
va_end (args);
}
1248e3: c9 leave <== NOT EXECUTED
1248e4: c3 ret <== NOT EXECUTED
001248e8 <msdos_format_write_sec>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
1248e8: 55 push %ebp <== NOT EXECUTED
1248e9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1248eb: 57 push %edi <== NOT EXECUTED
1248ec: 56 push %esi <== NOT EXECUTED
1248ed: 53 push %ebx <== NOT EXECUTED
1248ee: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
1248f1: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1248f3: 89 ce mov %ecx,%esi <== NOT EXECUTED
int ret_val = 0;
if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {
1248f5: 6a 00 push $0x0 <== NOT EXECUTED
1248f7: 89 c8 mov %ecx,%eax <== NOT EXECUTED
1248f9: f7 e2 mul %edx <== NOT EXECUTED
1248fb: 52 push %edx <== NOT EXECUTED
1248fc: 50 push %eax <== NOT EXECUTED
1248fd: 53 push %ebx <== NOT EXECUTED
1248fe: e8 2d a6 00 00 call 12ef30 <lseek> <== NOT EXECUTED
124903: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124906: 85 d2 test %edx,%edx <== NOT EXECUTED
124908: 78 1e js 124928 <msdos_format_write_sec+0x40><== NOT EXECUTED
ret_val = -1;
}
if (ret_val == 0) {
if (0 > write(fd,buffer,sector_size)) {
12490a: 51 push %ecx <== NOT EXECUTED
12490b: 56 push %esi <== NOT EXECUTED
12490c: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12490f: 53 push %ebx <== NOT EXECUTED
124910: e8 0f da fe ff call 112324 <write> <== NOT EXECUTED
124915: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
124918: 85 c0 test %eax,%eax <== NOT EXECUTED
12491a: 78 0c js 124928 <msdos_format_write_sec+0x40><== NOT EXECUTED
12491c: 31 c0 xor %eax,%eax <== NOT EXECUTED
ret_val = -1;
}
}
return ret_val;
}
12491e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124921: 5b pop %ebx <== NOT EXECUTED
124922: 5e pop %esi <== NOT EXECUTED
124923: 5f pop %edi <== NOT EXECUTED
124924: c9 leave <== NOT EXECUTED
124925: c3 ret <== NOT EXECUTED
124926: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {
ret_val = -1;
}
if (ret_val == 0) {
if (0 > write(fd,buffer,sector_size)) {
124928: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
ret_val = -1;
}
}
return ret_val;
}
12492d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
124930: 5b pop %ebx <== NOT EXECUTED
124931: 5e pop %esi <== NOT EXECUTED
124932: 5f pop %edi <== NOT EXECUTED
124933: c9 leave <== NOT EXECUTED
124934: c3 ret <== NOT EXECUTED
0013ad6c <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)
{
13ad6c: 55 push %ebp <== NOT EXECUTED
13ad6d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ad6f: 56 push %esi <== NOT EXECUTED
13ad70: 53 push %ebx <== NOT EXECUTED
13ad71: 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;
13ad74: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
13ad77: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
13ad7a: 52 push %edx <== NOT EXECUTED
13ad7b: 6a 00 push $0x0 <== NOT EXECUTED
13ad7d: 6a 00 push $0x0 <== NOT EXECUTED
13ad7f: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13ad85: e8 6e 81 fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
13ad8a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ad8d: 85 c0 test %eax,%eax <== NOT EXECUTED
13ad8f: 75 27 jne 13adb8 <msdos_free_node_info+0x4c><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
rc = fat_file_close(pathloc->mt_entry, pathloc->node_access);
13ad91: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ad94: ff 33 pushl (%ebx) <== NOT EXECUTED
13ad96: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
13ad99: e8 fa 03 ff ff call 12b198 <fat_file_close> <== NOT EXECUTED
13ad9e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
13ada0: 58 pop %eax <== NOT EXECUTED
13ada1: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
13ada7: e8 48 82 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
13adac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13adaf: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13adb1: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
13adb4: 5b pop %ebx <== NOT EXECUTED
13adb5: 5e pop %esi <== NOT EXECUTED
13adb6: c9 leave <== NOT EXECUTED
13adb7: c3 ret <== NOT EXECUTED
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
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);
13adb8: e8 cf b9 00 00 call 14678c <__errno> <== NOT EXECUTED
13adbd: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13adc3: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
13adc8: eb e5 jmp 13adaf <msdos_free_node_info+0x43><== NOT EXECUTED
0013bf1c <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
)
{
13bf1c: 55 push %ebp <== NOT EXECUTED
13bf1d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13bf1f: 57 push %edi <== NOT EXECUTED
13bf20: 56 push %esi <== NOT EXECUTED
13bf21: 53 push %ebx <== NOT EXECUTED
13bf22: 81 ec 90 00 00 00 sub $0x90,%esp <== NOT EXECUTED
13bf28: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
13bf2b: 8b 43 34 mov 0x34(%ebx),%eax <== NOT EXECUTED
13bf2e: 89 45 84 mov %eax,-0x7c(%ebp) <== NOT EXECUTED
fat_file_fd_t *fat_fd = NULL;
13bf31: 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);
13bf38: 8d 75 e4 lea -0x1c(%ebp),%esi <== NOT EXECUTED
13bf3b: 56 push %esi <== NOT EXECUTED
13bf3c: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13bf3f: 53 push %ebx <== NOT EXECUTED
13bf40: e8 13 f3 fe ff call 12b258 <fat_file_open> <== NOT EXECUTED
13bf45: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13bf47: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13bf4a: 85 c0 test %eax,%eax <== NOT EXECUTED
13bf4c: 74 0a je 13bf58 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x3c><== NOT EXECUTED
fat_file_close(mt_entry, fat_fd);
return rc;
}
rc = fat_file_close(mt_entry, fat_fd);
return rc;
}
13bf4e: 89 f8 mov %edi,%eax <== NOT EXECUTED
13bf50: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13bf53: 5b pop %ebx <== NOT EXECUTED
13bf54: 5e pop %esi <== NOT EXECUTED
13bf55: 5f pop %edi <== NOT EXECUTED
13bf56: c9 leave <== NOT EXECUTED
13bf57: c3 ret <== NOT EXECUTED
*/
rc = fat_file_open(mt_entry, dir_pos, &fat_fd);
if (rc != RC_OK)
return rc;
fat_fd->cln = cln;
13bf58: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13bf5b: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13bf5e: 89 50 1c mov %edx,0x1c(%eax) <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
13bf61: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
13bf68: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
fat_fd->map.file_cln = 0;
13bf6f: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
13bf76: 89 50 38 mov %edx,0x38(%eax) <== NOT EXECUTED
rc = fat_file_size(mt_entry, fat_fd);
13bf79: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13bf7c: 50 push %eax <== NOT EXECUTED
13bf7d: 53 push %ebx <== NOT EXECUTED
13bf7e: e8 c1 e7 fe ff call 12a744 <fat_file_size> <== NOT EXECUTED
13bf83: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13bf85: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13bf88: 85 c0 test %eax,%eax <== NOT EXECUTED
13bf8a: 0f 85 98 01 00 00 jne 13c128 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x20c><== 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);
13bf90: 8d 4d c4 lea -0x3c(%ebp),%ecx <== NOT EXECUTED
13bf93: 89 8d 74 ff ff ff mov %ecx,-0x8c(%ebp) <== NOT EXECUTED
13bf99: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13bf9e: 8b bd 74 ff ff ff mov -0x8c(%ebp),%edi <== NOT EXECUTED
13bfa4: 31 c0 xor %eax,%eax <== NOT EXECUTED
13bfa6: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);
13bfa8: 6a 0b push $0xb <== NOT EXECUTED
13bfaa: 8d 55 c4 lea -0x3c(%ebp),%edx <== NOT EXECUTED
13bfad: 52 push %edx <== NOT EXECUTED
13bfae: 6a 01 push $0x1 <== NOT EXECUTED
13bfb0: 68 f8 07 16 00 push $0x1607f8 <== NOT EXECUTED
13bfb5: e8 ca fd ff ff call 13bd84 <msdos_long_to_short> <== NOT EXECUTED
rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, ".", 1,
13bfba: 8d 4d c4 lea -0x3c(%ebp),%ecx <== NOT EXECUTED
13bfbd: 51 push %ecx <== NOT EXECUTED
13bfbe: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13bfc1: 6a 01 push $0x1 <== NOT EXECUTED
13bfc3: 6a 01 push $0x1 <== NOT EXECUTED
13bfc5: 68 f8 07 16 00 push $0x1607f8 <== NOT EXECUTED
13bfca: 6a 00 push $0x0 <== NOT EXECUTED
13bfcc: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13bfcf: 53 push %ebx <== NOT EXECUTED
13bfd0: e8 93 ef ff ff call 13af68 <msdos_find_name_in_fat_file><== NOT EXECUTED
13bfd5: 89 c7 mov %eax,%edi <== NOT EXECUTED
MSDOS_NAME_SHORT, dir_pos, dot_node);
if (rc != RC_OK)
13bfd7: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
13bfda: 85 c0 test %eax,%eax <== NOT EXECUTED
13bfdc: 0f 85 46 01 00 00 jne 13c128 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x20c><== 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);
13bfe2: 8d 55 a4 lea -0x5c(%ebp),%edx <== NOT EXECUTED
13bfe5: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13bfea: 89 d7 mov %edx,%edi <== NOT EXECUTED
13bfec: 31 c0 xor %eax,%eax <== NOT EXECUTED
13bfee: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);
13bff0: 6a 0b push $0xb <== NOT EXECUTED
13bff2: 52 push %edx <== NOT EXECUTED
13bff3: 6a 02 push $0x2 <== NOT EXECUTED
13bff5: 68 e3 1e 16 00 push $0x161ee3 <== NOT EXECUTED
13bffa: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) <== NOT EXECUTED
13c000: e8 7f fd ff ff call 13bd84 <msdos_long_to_short> <== NOT EXECUTED
rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, "..", 2,
13c005: 8b 95 7c ff ff ff mov -0x84(%ebp),%edx <== NOT EXECUTED
13c00b: 52 push %edx <== NOT EXECUTED
13c00c: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13c00f: 6a 01 push $0x1 <== NOT EXECUTED
13c011: 6a 02 push $0x2 <== NOT EXECUTED
13c013: 68 e3 1e 16 00 push $0x161ee3 <== NOT EXECUTED
13c018: 6a 00 push $0x0 <== NOT EXECUTED
13c01a: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13c01d: 53 push %ebx <== NOT EXECUTED
13c01e: e8 45 ef ff ff call 13af68 <msdos_find_name_in_fat_file><== NOT EXECUTED
13c023: 89 c7 mov %eax,%edi <== NOT EXECUTED
MSDOS_NAME_SHORT, dir_pos,
dotdot_node);
if (rc != RC_OK)
13c025: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
13c028: 85 c0 test %eax,%eax <== NOT EXECUTED
13c02a: 0f 85 f8 00 00 00 jne 13c128 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x20c><== NOT EXECUTED
{
fat_file_close(mt_entry, fat_fd);
return rc;
}
cl4find = MSDOS_EXTRACT_CLUSTER_NUM(dot_node);
13c030: 66 8b 55 de mov -0x22(%ebp),%dx <== NOT EXECUTED
13c034: 66 89 55 82 mov %dx,-0x7e(%ebp) <== NOT EXECUTED
13c038: 8b 4d d8 mov -0x28(%ebp),%ecx <== NOT EXECUTED
13c03b: 66 89 4d 88 mov %cx,-0x78(%ebp) <== NOT EXECUTED
/* close fat-file corresponded to ".." directory */
rc = fat_file_close(mt_entry, fat_fd);
13c03f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c042: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13c045: 53 push %ebx <== NOT EXECUTED
13c046: e8 4d f1 fe ff call 12b198 <fat_file_close> <== NOT EXECUTED
13c04b: 89 c7 mov %eax,%edi <== NOT EXECUTED
if ( rc != RC_OK )
13c04d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c050: 85 c0 test %eax,%eax <== NOT EXECUTED
13c052: 0f 85 f6 fe ff ff jne 13bf4e <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x32><== NOT EXECUTED
return rc;
if ( (MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
13c058: 66 83 7d b8 00 cmpw $0x0,-0x48(%ebp) <== NOT EXECUTED
13c05d: 75 25 jne 13c084 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x168><== NOT EXECUTED
13c05f: 66 83 7d be 00 cmpw $0x0,-0x42(%ebp) <== NOT EXECUTED
13c064: 75 1e jne 13c084 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x168><== NOT EXECUTED
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
13c066: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13c069: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
13c070: c7 40 08 ff ff ff ff movl $0xffffffff,0x8(%eax) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
13c077: c7 40 0c ff ff ff ff movl $0xffffffff,0xc(%eax) <== 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;
13c07e: c7 00 01 00 00 00 movl $0x1,(%eax) <== NOT EXECUTED
}
/* open fat-file corresponded to second ".." */
rc = fat_file_open(mt_entry, dir_pos, &fat_fd);
13c084: 52 push %edx <== NOT EXECUTED
13c085: 56 push %esi <== NOT EXECUTED
13c086: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13c089: 53 push %ebx <== NOT EXECUTED
13c08a: e8 c9 f1 fe ff call 12b258 <fat_file_open> <== NOT EXECUTED
13c08f: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13c091: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c094: 85 c0 test %eax,%eax <== NOT EXECUTED
13c096: 0f 85 b2 fe ff ff jne 13bf4e <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x32><== NOT EXECUTED
return rc;
if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
13c09c: 0f b7 55 b8 movzwl -0x48(%ebp),%edx <== NOT EXECUTED
13c0a0: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13c0a3: 0f b7 45 be movzwl -0x42(%ebp),%eax <== NOT EXECUTED
13c0a7: 09 c2 or %eax,%edx <== NOT EXECUTED
13c0a9: 0f 85 95 00 00 00 jne 13c144 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x228><== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
13c0af: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13c0b2: 8b 4d 84 mov -0x7c(%ebp),%ecx <== NOT EXECUTED
13c0b5: 8b 51 38 mov 0x38(%ecx),%edx <== NOT EXECUTED
13c0b8: 89 50 1c mov %edx,0x1c(%eax) <== NOT EXECUTED
else
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);
fat_fd->fat_file_type = FAT_DIRECTORY;
13c0bb: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
13c0c2: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
fat_fd->map.file_cln = 0;
13c0c9: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
13c0d0: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
13c0d3: 89 50 38 mov %edx,0x38(%eax) <== NOT EXECUTED
rc = fat_file_size(mt_entry, fat_fd);
13c0d6: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c0d9: 50 push %eax <== NOT EXECUTED
13c0da: 53 push %ebx <== NOT EXECUTED
13c0db: e8 64 e6 fe ff call 12a744 <fat_file_size> <== NOT EXECUTED
13c0e0: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
13c0e2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c0e5: 85 c0 test %eax,%eax <== NOT EXECUTED
13c0e7: 75 3f jne 13c128 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x20c><== 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,
13c0e9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13c0ec: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
13c0ef: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13c0f2: 8b 45 88 mov -0x78(%ebp),%eax <== NOT EXECUTED
13c0f5: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
13c0f8: 0f b7 55 82 movzwl -0x7e(%ebp),%edx <== NOT EXECUTED
13c0fc: 09 d0 or %edx,%eax <== NOT EXECUTED
13c0fe: 50 push %eax <== NOT EXECUTED
13c0ff: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13c102: 53 push %ebx <== NOT EXECUTED
13c103: e8 28 ed ff ff call 13ae30 <msdos_find_node_by_cluster_num_in_fat_file><== NOT EXECUTED
13c108: 89 c7 mov %eax,%edi <== NOT EXECUTED
dir_pos, dir_entry);
if (rc != RC_OK)
13c10a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13c10d: 85 c0 test %eax,%eax <== NOT EXECUTED
13c10f: 75 17 jne 13c128 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x20c><== NOT EXECUTED
{
fat_file_close(mt_entry, fat_fd);
return rc;
}
rc = fat_file_close(mt_entry, fat_fd);
13c111: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c114: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13c117: 53 push %ebx <== NOT EXECUTED
13c118: e8 7b f0 fe ff call 12b198 <fat_file_close> <== NOT EXECUTED
13c11d: 89 c7 mov %eax,%edi <== NOT EXECUTED
return rc;
13c11f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c122: e9 27 fe ff ff jmp 13bf4e <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x32><== NOT EXECUTED
13c127: 90 nop <== NOT EXECUTED
/* in this directory find slot with specified cluster num */
rc = msdos_find_node_by_cluster_num_in_fat_file(mt_entry, fat_fd, cl4find,
dir_pos, dir_entry);
if (rc != RC_OK)
{
fat_file_close(mt_entry, fat_fd);
13c128: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c12b: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13c12e: 53 push %ebx <== NOT EXECUTED
13c12f: e8 64 f0 fe ff call 12b198 <fat_file_close> <== NOT EXECUTED
return rc;
13c134: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rc = fat_file_close(mt_entry, fat_fd);
return rc;
}
13c137: 89 f8 mov %edi,%eax <== NOT EXECUTED
13c139: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c13c: 5b pop %ebx <== NOT EXECUTED
13c13d: 5e pop %esi <== NOT EXECUTED
13c13e: 5f pop %edi <== NOT EXECUTED
13c13f: c9 leave <== NOT EXECUTED
13c140: c3 ret <== NOT EXECUTED
13c141: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return rc;
if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
fat_fd->cln = fs_info->fat.vol.rdir_cl;
else
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);
13c144: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13c147: 89 50 1c mov %edx,0x1c(%eax) <== NOT EXECUTED
13c14a: e9 6c ff ff ff jmp 13c0bb <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x19f><== NOT EXECUTED
0013c150 <msdos_get_name_node>:
int name_len,
msdos_name_type_t name_type,
fat_dir_pos_t *dir_pos,
char *name_dir_entry
)
{
13c150: 55 push %ebp <== NOT EXECUTED
13c151: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c153: 57 push %edi <== NOT EXECUTED
13c154: 56 push %esi <== NOT EXECUTED
13c155: 53 push %ebx <== NOT EXECUTED
13c156: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
13c159: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13c15c: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
13c15f: 8b 45 1c mov 0x1c(%ebp),%eax <== NOT EXECUTED
13c162: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
13c165: 8b 55 20 mov 0x20(%ebp),%edx <== NOT EXECUTED
13c168: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
13c16b: 8a 55 0c mov 0xc(%ebp),%dl <== 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,
13c16e: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13c171: 50 push %eax <== NOT EXECUTED
13c172: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
13c175: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
13c178: 56 push %esi <== NOT EXECUTED
13c179: 0f b6 c2 movzbl %dl,%eax <== NOT EXECUTED
13c17c: 50 push %eax <== NOT EXECUTED
13c17d: ff 33 pushl (%ebx) <== NOT EXECUTED
13c17f: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
13c182: 88 55 dc mov %dl,-0x24(%ebp) <== NOT EXECUTED
13c185: e8 de ed ff ff call 13af68 <msdos_find_name_in_fat_file><== NOT EXECUTED
create_node, name, name_len, name_type,
dir_pos, name_dir_entry);
if ((rc != RC_OK) && (rc != MSDOS_NAME_NOT_FOUND_ERR))
13c18a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13c18d: 85 c0 test %eax,%eax <== NOT EXECUTED
13c18f: 8a 55 dc mov -0x24(%ebp),%dl <== NOT EXECUTED
13c192: 74 10 je 13c1a4 <msdos_get_name_node+0x54><== NOT EXECUTED
13c194: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
13c199: 74 09 je 13c1a4 <msdos_get_name_node+0x54><== NOT EXECUTED
}
}
}
}
return rc;
}
13c19b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c19e: 5b pop %ebx <== NOT EXECUTED
13c19f: 5e pop %esi <== NOT EXECUTED
13c1a0: 5f pop %edi <== NOT EXECUTED
13c1a1: c9 leave <== NOT EXECUTED
13c1a2: c3 ret <== NOT EXECUTED
13c1a3: 90 nop <== NOT EXECUTED
create_node, name, name_len, name_type,
dir_pos, name_dir_entry);
if ((rc != RC_OK) && (rc != MSDOS_NAME_NOT_FOUND_ERR))
return rc;
if (!create_node)
13c1a4: 84 d2 test %dl,%dl <== NOT EXECUTED
13c1a6: 75 f3 jne 13c19b <msdos_get_name_node+0x4b><== NOT EXECUTED
{
/* if we search for valid name and name not found -> return */
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
13c1a8: 3d 01 7d 00 00 cmp $0x7d01,%eax <== NOT EXECUTED
13c1ad: 74 ec je 13c19b <msdos_get_name_node+0x4b><== 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)
13c1af: 85 c0 test %eax,%eax <== NOT EXECUTED
13c1b1: 75 e8 jne 13c19b <msdos_get_name_node+0x4b><== NOT EXECUTED
{
if (strncmp(name, "..", 2) == 0)
13c1b3: bf e3 1e 16 00 mov $0x161ee3,%edi <== NOT EXECUTED
13c1b8: b9 02 00 00 00 mov $0x2,%ecx <== NOT EXECUTED
13c1bd: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NOT EXECUTED
13c1bf: 75 da jne 13c19b <msdos_get_name_node+0x4b><== NOT EXECUTED
{
dotdot_cln = MSDOS_EXTRACT_CLUSTER_NUM((name_dir_entry));
13c1c1: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
13c1c4: 0f b7 51 14 movzwl 0x14(%ecx),%edx <== NOT EXECUTED
13c1c8: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13c1cb: 0f b7 49 1a movzwl 0x1a(%ecx),%ecx <== NOT EXECUTED
/* are we right under root dir ? */
if (dotdot_cln == 0)
13c1cf: 09 ca or %ecx,%edx <== NOT EXECUTED
13c1d1: 75 21 jne 13c1f4 <msdos_get_name_node+0xa4><== NOT EXECUTED
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
13c1d3: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
13c1d6: c7 46 04 00 00 00 00 movl $0x0,0x4(%esi) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
13c1dd: c7 46 08 ff ff ff ff movl $0xffffffff,0x8(%esi) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
13c1e4: c7 46 0c ff ff ff ff movl $0xffffffff,0xc(%esi) <== 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;
13c1eb: c7 06 01 00 00 00 movl $0x1,(%esi) <== NOT EXECUTED
13c1f1: eb a8 jmp 13c19b <msdos_get_name_node+0x4b><== NOT EXECUTED
13c1f3: 90 nop <== NOT EXECUTED
}
else
{
rc =
msdos_get_dotdot_dir_info_cluster_num_and_offset(parent_loc->mt_entry,
13c1f4: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13c1f7: 89 45 14 mov %eax,0x14(%ebp) <== NOT EXECUTED
13c1fa: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13c1fd: 89 4d 10 mov %ecx,0x10(%ebp) <== NOT EXECUTED
13c200: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
13c203: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
13c206: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
}
}
}
return rc;
}
13c209: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c20c: 5b pop %ebx <== NOT EXECUTED
13c20d: 5e pop %esi <== NOT EXECUTED
13c20e: 5f pop %edi <== NOT EXECUTED
13c20f: 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,
13c210: e9 07 fd ff ff jmp 13bf1c <msdos_get_dotdot_dir_info_cluster_num_and_offset><== NOT EXECUTED
0013bcac <msdos_get_token>:
msdos_token_types_t
msdos_get_token(const char *path,
int pathlen,
const char **ret_token,
int *ret_token_len)
{
13bcac: 55 push %ebp <== NOT EXECUTED
13bcad: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13bcaf: 57 push %edi <== NOT EXECUTED
13bcb0: 56 push %esi <== NOT EXECUTED
13bcb1: 53 push %ebx <== NOT EXECUTED
13bcb2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13bcb5: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13bcb8: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
msdos_token_types_t type = MSDOS_NAME;
int i = 0;
*ret_token = NULL;
13bcbb: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13bcbe: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
*ret_token_len = 0;
13bcc4: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
13bcc7: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
if (pathlen == 0)
13bccd: 85 ff test %edi,%edi <== NOT EXECUTED
13bccf: 74 57 je 13bd28 <msdos_get_token+0x7c> <== NOT EXECUTED
13bcd1: 31 db xor %ebx,%ebx <== NOT EXECUTED
13bcd3: eb 1d jmp 13bcf2 <msdos_get_token+0x46> <== NOT EXECUTED
13bcd5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return MSDOS_NO_MORE_PATH;
/*
* Check for a separator.
*/
while (!msdos_is_separator(path[i]) && (i < pathlen))
13bcd8: 39 fb cmp %edi,%ebx <== NOT EXECUTED
13bcda: 7d 2a jge 13bd06 <msdos_get_token+0x5a> <== NOT EXECUTED
{
if ( !msdos_is_valid_name_char(path[i]) )
13bcdc: 0f be 04 1e movsbl (%esi,%ebx,1),%eax <== NOT EXECUTED
13bce0: e8 5b ff ff ff call 13bc40 <msdos_is_valid_name_char><== NOT EXECUTED
13bce5: 85 c0 test %eax,%eax <== NOT EXECUTED
13bce7: 74 4b je 13bd34 <msdos_get_token+0x88> <== NOT EXECUTED
return MSDOS_INVALID_TOKEN;
++i;
13bce9: 43 inc %ebx <== NOT EXECUTED
if ( i == MSDOS_NAME_MAX_LFN_WITH_DOT )
13bcea: 81 fb 04 01 00 00 cmp $0x104,%ebx <== NOT EXECUTED
13bcf0: 74 42 je 13bd34 <msdos_get_token+0x88> <== NOT EXECUTED
return MSDOS_NO_MORE_PATH;
/*
* Check for a separator.
*/
while (!msdos_is_separator(path[i]) && (i < pathlen))
13bcf2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13bcf5: 0f be 04 1e movsbl (%esi,%ebx,1),%eax <== NOT EXECUTED
13bcf9: 50 push %eax <== NOT EXECUTED
13bcfa: e8 cd 42 fd ff call 10ffcc <rtems_filesystem_is_separator><== NOT EXECUTED
13bcff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13bd02: 85 c0 test %eax,%eax <== NOT EXECUTED
13bd04: 74 d2 je 13bcd8 <msdos_get_token+0x2c> <== NOT EXECUTED
++i;
if ( i == MSDOS_NAME_MAX_LFN_WITH_DOT )
return MSDOS_INVALID_TOKEN;
}
*ret_token = path;
13bd06: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13bd09: 89 30 mov %esi,(%eax) <== NOT EXECUTED
/*
* If it is just a separator then it is the current dir.
*/
if ( i == 0 )
13bd0b: 85 db test %ebx,%ebx <== NOT EXECUTED
13bd0d: 75 35 jne 13bd44 <msdos_get_token+0x98> <== NOT EXECUTED
{
if ( (*path != '\0') && pathlen )
13bd0f: 80 3e 00 cmpb $0x0,(%esi) <== NOT EXECUTED
13bd12: 74 4c je 13bd60 <msdos_get_token+0xb4> <== NOT EXECUTED
13bd14: b3 01 mov $0x1,%bl <== NOT EXECUTED
13bd16: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
}
/*
* Set the token and token_len to the token start and length.
*/
*ret_token_len = i;
13bd1b: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
13bd1e: 89 1a mov %ebx,(%edx) <== NOT EXECUTED
return type;
}
}
return type;
}
13bd20: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13bd23: 5b pop %ebx <== NOT EXECUTED
13bd24: 5e pop %esi <== NOT EXECUTED
13bd25: 5f pop %edi <== NOT EXECUTED
13bd26: c9 leave <== NOT EXECUTED
13bd27: c3 ret <== NOT EXECUTED
int i = 0;
*ret_token = NULL;
*ret_token_len = 0;
if (pathlen == 0)
13bd28: 31 c0 xor %eax,%eax <== NOT EXECUTED
return type;
}
}
return type;
}
13bd2a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13bd2d: 5b pop %ebx <== NOT EXECUTED
13bd2e: 5e pop %esi <== NOT EXECUTED
13bd2f: 5f pop %edi <== NOT EXECUTED
13bd30: c9 leave <== NOT EXECUTED
13bd31: c3 ret <== NOT EXECUTED
13bd32: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
type = MSDOS_UP_DIR;
return type;
}
if ((i == 1) && ((*ret_token)[0] == '.'))
13bd34: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED
return type;
}
}
return type;
}
13bd39: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13bd3c: 5b pop %ebx <== NOT EXECUTED
13bd3d: 5e pop %esi <== NOT EXECUTED
13bd3e: 5f pop %edi <== NOT EXECUTED
13bd3f: c9 leave <== NOT EXECUTED
13bd40: c3 ret <== NOT EXECUTED
13bd41: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
/*
* Set the token and token_len to the token start and length.
*/
*ret_token_len = i;
13bd44: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
13bd47: 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 )
{
if ((i == 2) && ((*ret_token)[0] == '.') && ((*ret_token)[1] == '.'))
13bd49: 83 fb 02 cmp $0x2,%ebx <== NOT EXECUTED
13bd4c: 74 22 je 13bd70 <msdos_get_token+0xc4> <== NOT EXECUTED
{
type = MSDOS_UP_DIR;
return type;
}
if ((i == 1) && ((*ret_token)[0] == '.'))
13bd4e: 4b dec %ebx <== NOT EXECUTED
13bd4f: 74 13 je 13bd64 <msdos_get_token+0xb8> <== NOT EXECUTED
13bd51: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
return type;
}
}
return type;
}
13bd56: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13bd59: 5b pop %ebx <== NOT EXECUTED
13bd5a: 5e pop %esi <== NOT EXECUTED
13bd5b: 5f pop %edi <== NOT EXECUTED
13bd5c: c9 leave <== NOT EXECUTED
13bd5d: c3 ret <== NOT EXECUTED
13bd5e: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
type = MSDOS_UP_DIR;
return type;
}
if ((i == 1) && ((*ret_token)[0] == '.'))
13bd60: 31 c0 xor %eax,%eax <== NOT EXECUTED
13bd62: eb b7 jmp 13bd1b <msdos_get_token+0x6f> <== NOT EXECUTED
13bd64: 80 3e 2e cmpb $0x2e,(%esi) <== NOT EXECUTED
13bd67: 75 e8 jne 13bd51 <msdos_get_token+0xa5> <== NOT EXECUTED
13bd69: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
13bd6e: eb ba jmp 13bd2a <msdos_get_token+0x7e> <== NOT EXECUTED
* If we copied something that was not a seperator see if
* it was a special name.
*/
if ( type == MSDOS_NAME )
{
if ((i == 2) && ((*ret_token)[0] == '.') && ((*ret_token)[1] == '.'))
13bd70: 80 3e 2e cmpb $0x2e,(%esi) <== NOT EXECUTED
13bd73: 75 dc jne 13bd51 <msdos_get_token+0xa5> <== NOT EXECUTED
13bd75: 80 7e 01 2e cmpb $0x2e,0x1(%esi) <== NOT EXECUTED
13bd79: 75 d6 jne 13bd51 <msdos_get_token+0xa5> <== NOT EXECUTED
13bd7b: b8 02 00 00 00 mov $0x2,%eax <== NOT EXECUTED
13bd80: eb a8 jmp 13bd2a <msdos_get_token+0x7e> <== NOT EXECUTED
001259a8 <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
)
{
1259a8: 55 push %ebp <== NOT EXECUTED
1259a9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1259ab: 57 push %edi <== NOT EXECUTED
1259ac: 56 push %esi <== NOT EXECUTED
1259ad: 53 push %ebx <== NOT EXECUTED
1259ae: 83 ec 34 sub $0x34,%esp <== NOT EXECUTED
1259b1: 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;
1259b4: 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));
1259bb: 68 9c 00 00 00 push $0x9c <== NOT EXECUTED
1259c0: 6a 01 push $0x1 <== NOT EXECUTED
1259c2: e8 45 89 fe ff call 10e30c <calloc> <== NOT EXECUTED
1259c7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (!fs_info)
1259c9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1259cc: 85 c0 test %eax,%eax <== NOT EXECUTED
1259ce: 0f 84 a3 01 00 00 je 125b77 <msdos_initialize_support+0x1cf><== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
temp_mt_entry->fs_info = fs_info;
1259d4: 89 46 34 mov %eax,0x34(%esi) <== NOT EXECUTED
rc = fat_init_volume_info(temp_mt_entry);
1259d7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1259da: 56 push %esi <== NOT EXECUTED
1259db: e8 30 63 00 00 call 12bd10 <fat_init_volume_info> <== NOT EXECUTED
1259e0: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
1259e2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1259e5: 85 c0 test %eax,%eax <== NOT EXECUTED
1259e7: 0f 85 e3 00 00 00 jne 125ad0 <msdos_initialize_support+0x128><== NOT EXECUTED
{
free(fs_info);
return rc;
}
fs_info->file_handlers = file_handlers;
1259ed: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1259f0: 89 83 90 00 00 00 mov %eax,0x90(%ebx) <== NOT EXECUTED
fs_info->directory_handlers = directory_handlers;
1259f6: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
1259f9: 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;
1259ff: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
125a06: c7 45 dc ff ff ff ff movl $0xffffffff,-0x24(%ebp) <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
125a0d: 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;
125a14: c7 45 d4 01 00 00 00 movl $0x1,-0x2c(%ebp) <== NOT EXECUTED
rc = fat_file_open(temp_mt_entry, &root_pos, &fat_fd);
125a1b: 51 push %ecx <== NOT EXECUTED
125a1c: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
125a1f: 50 push %eax <== NOT EXECUTED
125a20: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
125a23: 50 push %eax <== NOT EXECUTED
125a24: 56 push %esi <== NOT EXECUTED
125a25: e8 2e 58 00 00 call 12b258 <fat_file_open> <== NOT EXECUTED
125a2a: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc != RC_OK)
125a2c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125a2f: 85 c0 test %eax,%eax <== NOT EXECUTED
125a31: 0f 85 b5 00 00 00 jne 125aec <msdos_initialize_support+0x144><== NOT EXECUTED
free(fs_info);
return rc;
}
/* again: unfortunately "fat-file" is just almost fat file :( */
fat_fd->fat_file_type = FAT_DIRECTORY;
125a37: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
125a3a: c7 40 10 01 00 00 00 movl $0x1,0x10(%eax) <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
125a41: c7 40 14 00 00 20 00 movl $0x200000,0x14(%eax) <== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
125a48: 8b 53 38 mov 0x38(%ebx),%edx <== NOT EXECUTED
125a4b: 89 50 1c mov %edx,0x1c(%eax) <== NOT EXECUTED
fat_fd->map.file_cln = 0;
125a4e: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
125a55: 89 50 38 mov %edx,0x38(%eax) <== NOT EXECUTED
/* if we have FAT12/16 */
if ( fat_fd->cln == 0 )
125a58: 85 d2 test %edx,%edx <== NOT EXECUTED
125a5a: 0f 85 ac 00 00 00 jne 125b0c <msdos_initialize_support+0x164><== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;
125a60: 8b 53 28 mov 0x28(%ebx),%edx <== NOT EXECUTED
125a63: 89 50 18 mov %edx,0x18(%eax) <== NOT EXECUTED
cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
125a66: 0f b7 43 06 movzwl 0x6(%ebx),%eax <== NOT EXECUTED
125a6a: 8b 53 28 mov 0x28(%ebx),%edx <== NOT EXECUTED
125a6d: 39 d0 cmp %edx,%eax <== NOT EXECUTED
125a6f: 72 77 jb 125ae8 <msdos_initialize_support+0x140><== NOT EXECUTED
return rc;
}
cl_buf_size = fs_info->fat.vol.bpc;
}
fs_info->cl_buf = (uint8_t *)calloc(cl_buf_size, sizeof(char));
125a71: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
125a74: 6a 01 push $0x1 <== NOT EXECUTED
125a76: 50 push %eax <== NOT EXECUTED
125a77: e8 90 88 fe ff call 10e30c <calloc> <== NOT EXECUTED
125a7c: 89 83 98 00 00 00 mov %eax,0x98(%ebx) <== NOT EXECUTED
if (fs_info->cl_buf == NULL)
125a82: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125a85: 85 c0 test %eax,%eax <== NOT EXECUTED
125a87: 0f 84 ff 00 00 00 je 125b8c <msdos_initialize_support+0x1e4><== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
free(fs_info);
rtems_set_errno_and_return_minus_one(ENOMEM);
}
sc = rtems_semaphore_create(3,
125a8d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125a90: 8d 83 94 00 00 00 lea 0x94(%ebx),%eax <== NOT EXECUTED
125a96: 50 push %eax <== NOT EXECUTED
125a97: 6a 00 push $0x0 <== NOT EXECUTED
125a99: 6a 10 push $0x10 <== NOT EXECUTED
125a9b: 6a 01 push $0x1 <== NOT EXECUTED
125a9d: 6a 03 push $0x3 <== NOT EXECUTED
125a9f: e8 80 d1 fe ff call 112c24 <rtems_semaphore_create><== NOT EXECUTED
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
0,
&fs_info->vol_sema);
if (sc != RTEMS_SUCCESSFUL)
125aa4: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
125aa7: 85 c0 test %eax,%eax <== NOT EXECUTED
125aa9: 0f 85 88 00 00 00 jne 125b37 <msdos_initialize_support+0x18f><== NOT EXECUTED
free(fs_info->cl_buf);
free(fs_info);
rtems_set_errno_and_return_minus_one( EIO );
}
temp_mt_entry->mt_fs_root.node_access = fat_fd;
125aaf: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
125ab2: 89 46 1c mov %eax,0x1c(%esi) <== NOT EXECUTED
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
125ab5: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
125ab8: 89 46 24 mov %eax,0x24(%esi) <== NOT EXECUTED
temp_mt_entry->mt_fs_root.ops = op_table;
125abb: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125abe: 89 46 28 mov %eax,0x28(%esi) <== NOT EXECUTED
125ac1: 31 ff xor %edi,%edi <== NOT EXECUTED
return rc;
}
125ac3: 89 f8 mov %edi,%eax <== NOT EXECUTED
125ac5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125ac8: 5b pop %ebx <== NOT EXECUTED
125ac9: 5e pop %esi <== NOT EXECUTED
125aca: 5f pop %edi <== NOT EXECUTED
125acb: c9 leave <== NOT EXECUTED
125acc: c3 ret <== NOT EXECUTED
125acd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
temp_mt_entry->fs_info = fs_info;
rc = fat_init_volume_info(temp_mt_entry);
if (rc != RC_OK)
{
free(fs_info);
125ad0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125ad3: 53 push %ebx <== NOT EXECUTED
125ad4: e8 8f 8d fe ff call 10e868 <free> <== NOT EXECUTED
return rc;
125ad9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
temp_mt_entry->mt_fs_root.node_access = fat_fd;
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
temp_mt_entry->mt_fs_root.ops = op_table;
return rc;
}
125adc: 89 f8 mov %edi,%eax <== NOT EXECUTED
125ade: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125ae1: 5b pop %ebx <== NOT EXECUTED
125ae2: 5e pop %esi <== NOT EXECUTED
125ae3: 5f pop %edi <== NOT EXECUTED
125ae4: c9 leave <== NOT EXECUTED
125ae5: c3 ret <== NOT EXECUTED
125ae6: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* if we have FAT12/16 */
if ( fat_fd->cln == 0 )
{
fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;
cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
125ae8: 89 d0 mov %edx,%eax <== NOT EXECUTED
125aea: eb 85 jmp 125a71 <msdos_initialize_support+0xc9><== NOT EXECUTED
fat_dir_pos_init(&root_pos);
root_pos.sname.cln = FAT_ROOTDIR_CLUSTER_NUM;
rc = fat_file_open(temp_mt_entry, &root_pos, &fat_fd);
if (rc != RC_OK)
{
fat_shutdown_drive(temp_mt_entry);
125aec: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
{
rc = fat_file_size(temp_mt_entry, fat_fd);
if ( rc != RC_OK )
{
fat_file_close(temp_mt_entry, fat_fd);
fat_shutdown_drive(temp_mt_entry);
125aef: 56 push %esi <== NOT EXECUTED
125af0: e8 5b 5f 00 00 call 12ba50 <fat_shutdown_drive> <== NOT EXECUTED
free(fs_info);
125af5: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
125af8: e8 6b 8d fe ff call 10e868 <free> <== NOT EXECUTED
return rc;
125afd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
temp_mt_entry->mt_fs_root.node_access = fat_fd;
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
temp_mt_entry->mt_fs_root.ops = op_table;
return rc;
}
125b00: 89 f8 mov %edi,%eax <== NOT EXECUTED
125b02: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125b05: 5b pop %ebx <== NOT EXECUTED
125b06: 5e pop %esi <== NOT EXECUTED
125b07: 5f pop %edi <== NOT EXECUTED
125b08: c9 leave <== NOT EXECUTED
125b09: c3 ret <== NOT EXECUTED
125b0a: 66 90 xchg %ax,%ax <== NOT EXECUTED
fs_info->fat.vol.bpc :
fs_info->fat.vol.rdir_size;
}
else
{
rc = fat_file_size(temp_mt_entry, fat_fd);
125b0c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
125b0f: 50 push %eax <== NOT EXECUTED
125b10: 56 push %esi <== NOT EXECUTED
125b11: e8 2e 4c 00 00 call 12a744 <fat_file_size> <== NOT EXECUTED
125b16: 89 c7 mov %eax,%edi <== NOT EXECUTED
if ( rc != RC_OK )
125b18: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125b1b: 85 c0 test %eax,%eax <== NOT EXECUTED
125b1d: 75 09 jne 125b28 <msdos_initialize_support+0x180><== NOT EXECUTED
fat_file_close(temp_mt_entry, fat_fd);
fat_shutdown_drive(temp_mt_entry);
free(fs_info);
return rc;
}
cl_buf_size = fs_info->fat.vol.bpc;
125b1f: 0f b7 43 06 movzwl 0x6(%ebx),%eax <== NOT EXECUTED
125b23: e9 49 ff ff ff jmp 125a71 <msdos_initialize_support+0xc9><== NOT EXECUTED
else
{
rc = fat_file_size(temp_mt_entry, fat_fd);
if ( rc != RC_OK )
{
fat_file_close(temp_mt_entry, fat_fd);
125b28: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
125b2b: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
125b2e: 56 push %esi <== NOT EXECUTED
125b2f: e8 64 56 00 00 call 12b198 <fat_file_close> <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
125b34: 5a pop %edx <== NOT EXECUTED
125b35: eb b8 jmp 125aef <msdos_initialize_support+0x147><== NOT EXECUTED
RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
0,
&fs_info->vol_sema);
if (sc != RTEMS_SUCCESSFUL)
{
fat_file_close(temp_mt_entry, fat_fd);
125b37: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
125b3a: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
125b3d: 56 push %esi <== NOT EXECUTED
125b3e: e8 55 56 00 00 call 12b198 <fat_file_close> <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
125b43: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
125b46: e8 05 5f 00 00 call 12ba50 <fat_shutdown_drive> <== NOT EXECUTED
free(fs_info->cl_buf);
125b4b: 58 pop %eax <== NOT EXECUTED
125b4c: ff b3 98 00 00 00 pushl 0x98(%ebx) <== NOT EXECUTED
125b52: e8 11 8d fe ff call 10e868 <free> <== NOT EXECUTED
free(fs_info);
125b57: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
125b5a: e8 09 8d fe ff call 10e868 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
125b5f: e8 28 0c 02 00 call 14678c <__errno> <== NOT EXECUTED
125b64: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
125b6a: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
125b6f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125b72: e9 4c ff ff ff jmp 125ac3 <msdos_initialize_support+0x11b><== 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));
if (!fs_info)
rtems_set_errno_and_return_minus_one(ENOMEM);
125b77: e8 10 0c 02 00 call 14678c <__errno> <== NOT EXECUTED
125b7c: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
125b82: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
125b87: e9 37 ff ff ff jmp 125ac3 <msdos_initialize_support+0x11b><== NOT EXECUTED
}
fs_info->cl_buf = (uint8_t *)calloc(cl_buf_size, sizeof(char));
if (fs_info->cl_buf == NULL)
{
fat_file_close(temp_mt_entry, fat_fd);
125b8c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
125b8f: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
125b92: 56 push %esi <== NOT EXECUTED
125b93: e8 00 56 00 00 call 12b198 <fat_file_close> <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
125b98: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
125b9b: e8 b0 5e 00 00 call 12ba50 <fat_shutdown_drive> <== NOT EXECUTED
free(fs_info);
125ba0: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
125ba3: e8 c0 8c fe ff call 10e868 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
125ba8: e8 df 0b 02 00 call 14678c <__errno> <== NOT EXECUTED
125bad: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
125bb3: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
125bb8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125bbb: e9 03 ff ff ff jmp 125ac3 <msdos_initialize_support+0x11b><== NOT EXECUTED
0013bc40 <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)
{
13bc40: 55 push %ebp <== NOT EXECUTED
13bc41: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13bc43: 56 push %esi <== NOT EXECUTED
13bc44: 53 push %ebx <== NOT EXECUTED
13bc45: 88 c3 mov %al,%bl <== NOT EXECUTED
if (strchr(" +,;=[]", ch) != NULL)
13bc47: 0f be f0 movsbl %al,%esi <== NOT EXECUTED
13bc4a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13bc4d: 56 push %esi <== NOT EXECUTED
13bc4e: 68 4f 79 16 00 push $0x16794f <== NOT EXECUTED
13bc53: e8 a8 02 01 00 call 14bf00 <strchr> <== NOT EXECUTED
13bc58: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13bc5b: 85 c0 test %eax,%eax <== NOT EXECUTED
13bc5d: 74 0d je 13bc6c <msdos_is_valid_name_char+0x2c><== NOT EXECUTED
13bc5f: b8 02 00 00 00 mov $0x2,%eax <== NOT EXECUTED
if ((ch == '.') || isalnum((unsigned char)ch) ||
(strchr("$%'-_@~`!(){}^#&", ch) != NULL))
return MSDOS_NAME_SHORT;
return MSDOS_NAME_INVALID;
}
13bc64: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
13bc67: 5b pop %ebx <== NOT EXECUTED
13bc68: 5e pop %esi <== NOT EXECUTED
13bc69: c9 leave <== NOT EXECUTED
13bc6a: c3 ret <== NOT EXECUTED
13bc6b: 90 nop <== NOT EXECUTED
msdos_is_valid_name_char(const char ch)
{
if (strchr(" +,;=[]", ch) != NULL)
return MSDOS_NAME_LONG;
if ((ch == '.') || isalnum((unsigned char)ch) ||
13bc6c: 80 fb 2e cmp $0x2e,%bl <== NOT EXECUTED
13bc6f: 74 2f je 13bca0 <msdos_is_valid_name_char+0x60><== NOT EXECUTED
13bc71: 0f b6 db movzbl %bl,%ebx <== NOT EXECUTED
13bc74: a1 e8 da 16 00 mov 0x16dae8,%eax <== NOT EXECUTED
13bc79: f6 44 18 01 07 testb $0x7,0x1(%eax,%ebx,1) <== NOT EXECUTED
13bc7e: 75 20 jne 13bca0 <msdos_is_valid_name_char+0x60><== NOT EXECUTED
(strchr("$%'-_@~`!(){}^#&", ch) != NULL))
13bc80: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13bc83: 56 push %esi <== NOT EXECUTED
13bc84: 68 57 79 16 00 push $0x167957 <== NOT EXECUTED
13bc89: e8 72 02 01 00 call 14bf00 <strchr> <== NOT EXECUTED
13bc8e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13bc91: 85 c0 test %eax,%eax <== NOT EXECUTED
13bc93: 0f 95 c0 setne %al <== NOT EXECUTED
13bc96: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
return MSDOS_NAME_SHORT;
return MSDOS_NAME_INVALID;
}
13bc99: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
13bc9c: 5b pop %ebx <== NOT EXECUTED
13bc9d: 5e pop %esi <== NOT EXECUTED
13bc9e: c9 leave <== NOT EXECUTED
13bc9f: c3 ret <== NOT EXECUTED
{
if (strchr(" +,;=[]", ch) != NULL)
return MSDOS_NAME_LONG;
if ((ch == '.') || isalnum((unsigned char)ch) ||
(strchr("$%'-_@~`!(){}^#&", ch) != NULL))
13bca0: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return MSDOS_NAME_SHORT;
return MSDOS_NAME_INVALID;
}
13bca5: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
13bca8: 5b pop %ebx <== NOT EXECUTED
13bca9: 5e pop %esi <== NOT EXECUTED
13bcaa: c9 leave <== NOT EXECUTED
13bcab: c3 ret <== NOT EXECUTED
0013bd84 <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)
{
13bd84: 55 push %ebp <== NOT EXECUTED
13bd85: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13bd87: 57 push %edi <== NOT EXECUTED
13bd88: 56 push %esi <== NOT EXECUTED
13bd89: 53 push %ebx <== NOT EXECUTED
13bd8a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
13bd8d: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13bd90: 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);
13bd93: b0 20 mov $0x20,%al <== NOT EXECUTED
13bd95: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
13bd98: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
/*
* Handle '.' and '..' specially.
*/
if ((lfn[0] == '.') && (lfn_len == 1))
13bd9a: 8a 13 mov (%ebx),%dl <== NOT EXECUTED
13bd9c: 80 fa 2e cmp $0x2e,%dl <== NOT EXECUTED
13bd9f: 0f 84 f7 00 00 00 je 13be9c <msdos_long_to_short+0x118><== NOT EXECUTED
}
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
13bda5: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13bda8: 85 c0 test %eax,%eax <== NOT EXECUTED
13bdaa: 0f 8e 64 01 00 00 jle 13bf14 <msdos_long_to_short+0x190><== NOT EXECUTED
{
sfn[0] = sfn[1] = '.';
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: SHORT[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif
return MSDOS_NAME_SHORT;
13bdb0: 31 c0 xor %eax,%eax <== NOT EXECUTED
13bdb2: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
13bdb5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
if ((lfn[i] != ' ') && (lfn[i] != '.'))
13bdb8: 8a 0c 03 mov (%ebx,%eax,1),%cl <== NOT EXECUTED
13bdbb: 80 f9 20 cmp $0x20,%cl <== NOT EXECUTED
13bdbe: 74 05 je 13bdc5 <msdos_long_to_short+0x41><== NOT EXECUTED
13bdc0: 80 f9 2e cmp $0x2e,%cl <== NOT EXECUTED
13bdc3: 75 0e jne 13bdd3 <msdos_long_to_short+0x4f><== NOT EXECUTED
}
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
13bdc5: 40 inc %eax <== NOT EXECUTED
13bdc6: 39 c6 cmp %eax,%esi <== NOT EXECUTED
13bdc8: 7f ee jg 13bdb8 <msdos_long_to_short+0x34><== NOT EXECUTED
if ((lfn[i] != ' ') && (lfn[i] != '.'))
break;
if (i == lfn_len)
13bdca: 3b 45 0c cmp 0xc(%ebp),%eax <== NOT EXECUTED
13bdcd: 0f 84 15 01 00 00 je 13bee8 <msdos_long_to_short+0x164><== NOT EXECUTED
bool lowercase = false;
bool uppercase = false;
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
13bdd3: 84 d2 test %dl,%dl <== NOT EXECUTED
13bdd5: 0f 84 ed 00 00 00 je 13bec8 <msdos_long_to_short+0x144><== NOT EXECUTED
13bddb: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
13bdde: 85 ff test %edi,%edi <== NOT EXECUTED
13bde0: 0f 8e e2 00 00 00 jle 13bec8 <msdos_long_to_short+0x144><== NOT EXECUTED
13bde6: c6 45 e3 00 movb $0x0,-0x1d(%ebp) <== NOT EXECUTED
13bdea: c6 45 e2 00 movb $0x0,-0x1e(%ebp) <== NOT EXECUTED
13bdee: 31 f6 xor %esi,%esi <== NOT EXECUTED
13bdf0: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
13bdf5: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED
13bdf8: 88 d3 mov %dl,%bl <== NOT EXECUTED
13bdfa: eb 31 jmp 13be2d <msdos_long_to_short+0xa9><== NOT EXECUTED
if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
return type;
if (dot_at >= 0)
{
if (is_dot || ((count - dot_at) > 3))
13bdfc: 84 c0 test %al,%al <== NOT EXECUTED
13bdfe: 0f 85 90 00 00 00 jne 13be94 <msdos_long_to_short+0x110><== NOT EXECUTED
13be04: 89 f0 mov %esi,%eax <== NOT EXECUTED
13be06: 29 f8 sub %edi,%eax <== NOT EXECUTED
13be08: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
13be0b: 0f 8f 83 00 00 00 jg 13be94 <msdos_long_to_short+0x110><== NOT EXECUTED
}
}
if (is_dot)
dot_at = count;
else if ((*name >= 'A') && (*name <= 'Z'))
13be11: 8d 43 bf lea -0x41(%ebx),%eax <== NOT EXECUTED
13be14: 3c 19 cmp $0x19,%al <== NOT EXECUTED
13be16: 77 68 ja 13be80 <msdos_long_to_short+0xfc><== NOT EXECUTED
13be18: c6 45 e3 01 movb $0x1,-0x1d(%ebp) <== NOT EXECUTED
bool lowercase = false;
bool uppercase = false;
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
13be1c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13be1f: 8a 5c 30 01 mov 0x1(%eax,%esi,1),%bl <== NOT EXECUTED
13be23: 84 db test %bl,%bl <== NOT EXECUTED
13be25: 74 40 je 13be67 <msdos_long_to_short+0xe3><== NOT EXECUTED
else if ((*name >= 'A') && (*name <= 'Z'))
uppercase = true;
else if ((*name >= 'a') && (*name <= 'z'))
lowercase = true;
count++;
13be27: 46 inc %esi <== NOT EXECUTED
bool lowercase = false;
bool uppercase = false;
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
13be28: 39 75 0c cmp %esi,0xc(%ebp) <== NOT EXECUTED
13be2b: 7e 3a jle 13be67 <msdos_long_to_short+0xe3><== NOT EXECUTED
{
bool is_dot = *name == '.';
msdos_name_type_t type = msdos_is_valid_name_char(*name);
13be2d: 0f be c3 movsbl %bl,%eax <== NOT EXECUTED
13be30: e8 0b fe ff ff call 13bc40 <msdos_is_valid_name_char><== 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))
13be35: 85 c0 test %eax,%eax <== NOT EXECUTED
13be37: 0f 84 b7 00 00 00 je 13bef4 <msdos_long_to_short+0x170><== NOT EXECUTED
13be3d: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
13be40: 0f 84 ba 00 00 00 je 13bf00 <msdos_long_to_short+0x17c><== NOT EXECUTED
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
{
bool is_dot = *name == '.';
13be46: 80 fb 2e cmp $0x2e,%bl <== NOT EXECUTED
13be49: 0f 94 c0 sete %al <== NOT EXECUTED
#endif
if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
return type;
if (dot_at >= 0)
13be4c: 83 ff ff cmp $0xffffffff,%edi <== NOT EXECUTED
13be4f: 75 ab jne 13bdfc <msdos_long_to_short+0x78><== NOT EXECUTED
return MSDOS_NAME_LONG;
}
}
else
{
if (count == 8 && !is_dot)
13be51: 83 fe 08 cmp $0x8,%esi <== NOT EXECUTED
13be54: 74 3a je 13be90 <msdos_long_to_short+0x10c><== NOT EXECUTED
#endif
return MSDOS_NAME_LONG;
}
}
if (is_dot)
13be56: 84 c0 test %al,%al <== NOT EXECUTED
13be58: 74 b7 je 13be11 <msdos_long_to_short+0x8d><== NOT EXECUTED
dot_at = count;
else if ((*name >= 'A') && (*name <= 'Z'))
uppercase = true;
else if ((*name >= 'a') && (*name <= 'z'))
13be5a: 89 f7 mov %esi,%edi <== NOT EXECUTED
bool lowercase = false;
bool uppercase = false;
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
13be5c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13be5f: 8a 5c 30 01 mov 0x1(%eax,%esi,1),%bl <== NOT EXECUTED
13be63: 84 db test %bl,%bl <== NOT EXECUTED
13be65: 75 c0 jne 13be27 <msdos_long_to_short+0xa3><== NOT EXECUTED
13be67: 8b 5d e4 mov -0x1c(%ebp),%ebx <== NOT EXECUTED
count++;
name++;
}
if (lowercase && uppercase)
13be6a: 80 7d e2 00 cmpb $0x0,-0x1e(%ebp) <== NOT EXECUTED
13be6e: 74 58 je 13bec8 <msdos_long_to_short+0x144><== NOT EXECUTED
13be70: 80 7d e3 00 cmpb $0x0,-0x1d(%ebp) <== NOT EXECUTED
13be74: 74 52 je 13bec8 <msdos_long_to_short+0x144><== NOT EXECUTED
13be76: bf 02 00 00 00 mov $0x2,%edi <== NOT EXECUTED
13be7b: eb 50 jmp 13becd <msdos_long_to_short+0x149><== NOT EXECUTED
13be7d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (is_dot)
dot_at = count;
else if ((*name >= 'A') && (*name <= 'Z'))
uppercase = true;
else if ((*name >= 'a') && (*name <= 'z'))
13be80: 83 eb 61 sub $0x61,%ebx <== NOT EXECUTED
13be83: 80 fb 19 cmp $0x19,%bl <== NOT EXECUTED
13be86: 77 94 ja 13be1c <msdos_long_to_short+0x98><== NOT EXECUTED
13be88: c6 45 e2 01 movb $0x1,-0x1e(%ebp) <== NOT EXECUTED
13be8c: eb 8e jmp 13be1c <msdos_long_to_short+0x98><== NOT EXECUTED
13be8e: 66 90 xchg %ax,%ax <== NOT EXECUTED
return MSDOS_NAME_LONG;
}
}
else
{
if (count == 8 && !is_dot)
13be90: 84 c0 test %al,%al <== NOT EXECUTED
13be92: 75 c6 jne 13be5a <msdos_long_to_short+0xd6><== NOT EXECUTED
13be94: 8b 5d e4 mov -0x1c(%ebp),%ebx <== NOT EXECUTED
13be97: eb dd jmp 13be76 <msdos_long_to_short+0xf2><== NOT EXECUTED
13be99: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
memset (sfn, ' ', sfn_len);
/*
* Handle '.' and '..' specially.
*/
if ((lfn[0] == '.') && (lfn_len == 1))
13be9c: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
13bea0: 74 65 je 13bf07 <msdos_long_to_short+0x183><== 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))
13bea2: 80 7b 01 2e cmpb $0x2e,0x1(%ebx) <== NOT EXECUTED
13bea6: 0f 85 f9 fe ff ff jne 13bda5 <msdos_long_to_short+0x21><== NOT EXECUTED
13beac: 83 7d 0c 02 cmpl $0x2,0xc(%ebp) <== NOT EXECUTED
13beb0: 0f 85 ef fe ff ff jne 13bda5 <msdos_long_to_short+0x21><== NOT EXECUTED
{
sfn[0] = sfn[1] = '.';
13beb6: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13beb9: c6 40 01 2e movb $0x2e,0x1(%eax) <== NOT EXECUTED
13bebd: c6 00 2e movb $0x2e,(%eax) <== NOT EXECUTED
13bec0: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: SHORT[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif
return MSDOS_NAME_SHORT;
13bec5: eb 16 jmp 13bedd <msdos_long_to_short+0x159><== NOT EXECUTED
13bec7: 90 nop <== NOT EXECUTED
count++;
name++;
}
if (lowercase && uppercase)
13bec8: bf 01 00 00 00 mov $0x1,%edi <== 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);
13becd: 56 push %esi <== NOT EXECUTED
13bece: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13bed1: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13bed4: 53 push %ebx <== NOT EXECUTED
13bed5: e8 7e 8e 00 00 call 144d58 <msdos_filename_unix2dos><== NOT EXECUTED
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif
return type;
13beda: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13bedd: 89 f8 mov %edi,%eax <== NOT EXECUTED
13bedf: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13bee2: 5b pop %ebx <== NOT EXECUTED
13bee3: 5e pop %esi <== NOT EXECUTED
13bee4: 5f pop %edi <== NOT EXECUTED
13bee5: c9 leave <== NOT EXECUTED
13bee6: c3 ret <== NOT EXECUTED
13bee7: 90 nop <== NOT EXECUTED
count++;
name++;
}
if (lowercase && uppercase)
13bee8: 31 ff xor %edi,%edi <== NOT EXECUTED
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif
return type;
}
13beea: 89 f8 mov %edi,%eax <== NOT EXECUTED
13beec: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13beef: 5b pop %ebx <== NOT EXECUTED
13bef0: 5e pop %esi <== NOT EXECUTED
13bef1: 5f pop %edi <== NOT EXECUTED
13bef2: c9 leave <== NOT EXECUTED
13bef3: c3 ret <== NOT EXECUTED
13bef4: 89 c7 mov %eax,%edi <== NOT EXECUTED
13bef6: 89 f8 mov %edi,%eax <== NOT EXECUTED
13bef8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13befb: 5b pop %ebx <== NOT EXECUTED
13befc: 5e pop %esi <== NOT EXECUTED
13befd: 5f pop %edi <== NOT EXECUTED
13befe: c9 leave <== NOT EXECUTED
13beff: c3 ret <== NOT EXECUTED
13bf00: 89 c7 mov %eax,%edi <== NOT EXECUTED
13bf02: 8b 5d e4 mov -0x1c(%ebp),%ebx <== NOT EXECUTED
13bf05: eb c6 jmp 13becd <msdos_long_to_short+0x149><== NOT EXECUTED
/*
* Handle '.' and '..' specially.
*/
if ((lfn[0] == '.') && (lfn_len == 1))
{
sfn[0] = '.';
13bf07: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13bf0a: c6 00 2e movb $0x2e,(%eax) <== NOT EXECUTED
13bf0d: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: SHORT[1]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif
return MSDOS_NAME_SHORT;
13bf12: eb c9 jmp 13bedd <msdos_long_to_short+0x159><== NOT EXECUTED
}
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
13bf14: 31 c0 xor %eax,%eax <== NOT EXECUTED
13bf16: e9 af fe ff ff jmp 13bdca <msdos_long_to_short+0x46><== NOT EXECUTED
00125bc0 <msdos_mknod>:
const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
125bc0: 55 push %ebp <== NOT EXECUTED
125bc1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125bc3: 57 push %edi <== NOT EXECUTED
125bc4: 56 push %esi <== NOT EXECUTED
125bc5: 53 push %ebx <== NOT EXECUTED
125bc6: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
125bc9: 8b 5d 18 mov 0x18(%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;
125bcc: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
125bcf: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
msdos_token_types_t type = 0;
/*
* Figure out what type of msdos node this is.
*/
if (S_ISDIR(mode))
125bd2: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125bd5: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
125bda: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
125bdf: 74 6b je 125c4c <msdos_mknod+0x8c> <== NOT EXECUTED
{
type = MSDOS_DIRECTORY;
}
else if (S_ISREG(mode))
125be1: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
125be6: 0f 85 80 00 00 00 jne 125c6c <msdos_mknod+0xac> <== NOT EXECUTED
125bec: c7 45 e4 05 00 00 00 movl $0x5,-0x1c(%ebp) <== NOT EXECUTED
type = MSDOS_REGULAR_FILE;
}
else
rtems_set_errno_and_return_minus_one(EINVAL);
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
125bf3: 50 push %eax <== NOT EXECUTED
125bf4: 6a 00 push $0x0 <== NOT EXECUTED
125bf6: 6a 00 push $0x0 <== NOT EXECUTED
125bf8: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
125bfe: e8 f5 d2 fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
125c03: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125c06: 85 c0 test %eax,%eax <== NOT EXECUTED
125c08: 75 4e jne 125c58 <msdos_mknod+0x98> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
/* Create an MSDOS node */
rc = msdos_creat_node(pathloc, type, name, strlen(name), mode, NULL);
125c0a: 31 c0 xor %eax,%eax <== NOT EXECUTED
125c0c: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
125c11: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
125c14: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
125c16: f7 d1 not %ecx <== NOT EXECUTED
125c18: 49 dec %ecx <== NOT EXECUTED
125c19: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
125c1c: 6a 00 push $0x0 <== NOT EXECUTED
125c1e: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
125c21: 51 push %ecx <== NOT EXECUTED
125c22: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
125c25: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
125c28: 53 push %ebx <== NOT EXECUTED
125c29: e8 62 41 01 00 call 139d90 <msdos_creat_node> <== NOT EXECUTED
125c2e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
125c30: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
125c33: ff b6 94 00 00 00 pushl 0x94(%esi) <== NOT EXECUTED
125c39: e8 b6 d3 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
125c3e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
125c41: 89 d8 mov %ebx,%eax <== NOT EXECUTED
125c43: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125c46: 5b pop %ebx <== NOT EXECUTED
125c47: 5e pop %esi <== NOT EXECUTED
125c48: 5f pop %edi <== NOT EXECUTED
125c49: c9 leave <== NOT EXECUTED
125c4a: c3 ret <== NOT EXECUTED
125c4b: 90 nop <== NOT EXECUTED
else if (S_ISREG(mode))
{
type = MSDOS_REGULAR_FILE;
}
else
rtems_set_errno_and_return_minus_one(EINVAL);
125c4c: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp) <== NOT EXECUTED
125c53: eb 9e jmp 125bf3 <msdos_mknod+0x33> <== NOT EXECUTED
125c55: 8d 76 00 lea 0x0(%esi),%esi <== 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);
125c58: e8 2f 0b 02 00 call 14678c <__errno> <== NOT EXECUTED
125c5d: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
125c63: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
125c68: eb d7 jmp 125c41 <msdos_mknod+0x81> <== NOT EXECUTED
125c6a: 66 90 xchg %ax,%ax <== NOT EXECUTED
else if (S_ISREG(mode))
{
type = MSDOS_REGULAR_FILE;
}
else
rtems_set_errno_and_return_minus_one(EINVAL);
125c6c: e8 1b 0b 02 00 call 14678c <__errno> <== NOT EXECUTED
125c71: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
125c77: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
125c7c: eb c3 jmp 125c41 <msdos_mknod+0x81> <== NOT EXECUTED
00125c80 <msdos_node_type>:
* node type
*
*/
rtems_filesystem_node_types_t
msdos_node_type(rtems_filesystem_location_info_t *pathloc)
{
125c80: 55 push %ebp <== NOT EXECUTED
125c81: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125c83: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
125c86: 8b 00 mov (%eax),%eax <== NOT EXECUTED
125c88: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED
* call
*/
fat_fd = pathloc->node_access;
return fat_fd->fat_file_type;
}
125c8b: c9 leave <== NOT EXECUTED
125c8c: c3 ret <== NOT EXECUTED
00125c90 <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)
{
125c90: 55 push %ebp <== NOT EXECUTED
125c91: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125c93: 57 push %edi <== NOT EXECUTED
125c94: 56 push %esi <== NOT EXECUTED
125c95: 53 push %ebx <== NOT EXECUTED
125c96: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
125c99: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
125c9c: 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 = new_parent_loc->mt_entry->fs_info;
125c9f: 8b 46 10 mov 0x10(%esi),%eax <== NOT EXECUTED
125ca2: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
125ca5: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
fat_file_fd_t *old_fat_fd = old_loc->node_access;
125ca8: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125cab: 8b 00 mov (%eax),%eax <== NOT EXECUTED
125cad: 89 45 d0 mov %eax,-0x30(%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)) {
125cb0: 31 c0 xor %eax,%eax <== NOT EXECUTED
125cb2: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
125cb7: 89 df mov %ebx,%edi <== NOT EXECUTED
125cb9: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
125cbb: f7 d1 not %ecx <== NOT EXECUTED
125cbd: 49 dec %ecx <== NOT EXECUTED
125cbe: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
125cc1: 50 push %eax <== NOT EXECUTED
125cc2: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
125cc5: 50 push %eax <== NOT EXECUTED
125cc6: 51 push %ecx <== NOT EXECUTED
125cc7: 53 push %ebx <== NOT EXECUTED
125cc8: e8 df 5f 01 00 call 13bcac <msdos_get_token> <== NOT EXECUTED
125ccd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125cd0: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
125cd3: 0f 85 97 00 00 00 jne 125d70 <msdos_rename+0xe0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENAMETOOLONG);
}
/*
* lock volume
*/
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
125cd9: 51 push %ecx <== NOT EXECUTED
125cda: 6a 00 push $0x0 <== NOT EXECUTED
125cdc: 6a 00 push $0x0 <== NOT EXECUTED
125cde: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
125ce1: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
125ce7: e8 0c d2 fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
125cec: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125cef: 85 c0 test %eax,%eax <== NOT EXECUTED
125cf1: 0f 85 8d 00 00 00 jne 125d84 <msdos_rename+0xf4> <== NOT EXECUTED
/*
* create new directory entry as "hard link", copying relevant info from
* existing file
*/
rc = msdos_creat_node(new_parent_loc,
125cf7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
125cfa: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
125cfd: 68 00 80 00 00 push $0x8000 <== NOT EXECUTED
125d02: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
125d05: 53 push %ebx <== NOT EXECUTED
125d06: 6a 03 push $0x3 <== NOT EXECUTED
125d08: 56 push %esi <== NOT EXECUTED
125d09: e8 82 40 01 00 call 139d90 <msdos_creat_node> <== NOT EXECUTED
125d0e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
MSDOS_HARD_LINK,new_name,len,S_IFREG,
old_fat_fd);
if (rc != RC_OK)
125d10: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
125d13: 85 c0 test %eax,%eax <== NOT EXECUTED
125d15: 75 39 jne 125d50 <msdos_rename+0xc0> <== NOT EXECUTED
}
/*
* mark file removed
*/
rc = msdos_set_first_char4file_name(old_loc->mt_entry,
125d17: 52 push %edx <== NOT EXECUTED
125d18: 68 e5 00 00 00 push $0xe5 <== NOT EXECUTED
125d1d: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
125d20: 83 c0 20 add $0x20,%eax <== NOT EXECUTED
125d23: 50 push %eax <== NOT EXECUTED
125d24: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
125d27: ff 70 10 pushl 0x10(%eax) <== NOT EXECUTED
125d2a: e8 11 5d 01 00 call 13ba40 <msdos_set_first_char4file_name><== NOT EXECUTED
125d2f: 89 c3 mov %eax,%ebx <== NOT EXECUTED
&old_fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
rtems_semaphore_release(fs_info->vol_sema);
125d31: 58 pop %eax <== NOT EXECUTED
125d32: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
125d35: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
125d3b: e8 b4 d2 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
125d40: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
125d43: 89 d8 mov %ebx,%eax <== NOT EXECUTED
125d45: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125d48: 5b pop %ebx <== NOT EXECUTED
125d49: 5e pop %esi <== NOT EXECUTED
125d4a: 5f pop %edi <== NOT EXECUTED
125d4b: c9 leave <== NOT EXECUTED
125d4c: c3 ret <== NOT EXECUTED
125d4d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rc = msdos_creat_node(new_parent_loc,
MSDOS_HARD_LINK,new_name,len,S_IFREG,
old_fat_fd);
if (rc != RC_OK)
{
rtems_semaphore_release(fs_info->vol_sema);
125d50: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125d53: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
125d56: ff b0 94 00 00 00 pushl 0x94(%eax) <== NOT EXECUTED
125d5c: e8 93 d2 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
125d61: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
&old_fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
125d64: 89 d8 mov %ebx,%eax <== NOT EXECUTED
125d66: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125d69: 5b pop %ebx <== NOT EXECUTED
125d6a: 5e pop %esi <== NOT EXECUTED
125d6b: 5f pop %edi <== NOT EXECUTED
125d6c: c9 leave <== NOT EXECUTED
125d6d: c3 ret <== NOT EXECUTED
125d6e: 66 90 xchg %ax,%ax <== NOT EXECUTED
/*
* check spelling and format new node name
*/
if (MSDOS_NAME != msdos_get_token(new_name, strlen(new_name), &token, &len)) {
rtems_set_errno_and_return_minus_one(ENAMETOOLONG);
125d70: e8 17 0a 02 00 call 14678c <__errno> <== NOT EXECUTED
125d75: c7 00 5b 00 00 00 movl $0x5b,(%eax) <== NOT EXECUTED
125d7b: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
125d80: eb c1 jmp 125d43 <msdos_rename+0xb3> <== NOT EXECUTED
125d82: 66 90 xchg %ax,%ax <== NOT EXECUTED
* lock volume
*/
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);
125d84: e8 03 0a 02 00 call 14678c <__errno> <== NOT EXECUTED
125d89: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
125d8f: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
125d94: eb ad jmp 125d43 <msdos_rename+0xb3> <== NOT EXECUTED
0013bb94 <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
)
{
13bb94: 55 push %ebp <== NOT EXECUTED
13bb95: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13bb97: 57 push %edi <== NOT EXECUTED
13bb98: 56 push %esi <== NOT EXECUTED
13bb99: 53 push %ebx <== NOT EXECUTED
13bb9a: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
13bb9d: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13bba0: 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;
13bba3: 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);
13bba6: 8d 45 e6 lea -0x1a(%ebp),%eax <== NOT EXECUTED
13bba9: 50 push %eax <== NOT EXECUTED
13bbaa: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13bbad: 50 push %eax <== NOT EXECUTED
13bbae: ff 76 40 pushl 0x40(%esi) <== NOT EXECUTED
13bbb1: e8 76 8f 00 00 call 144b2c <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);
13bbb6: 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;
13bbb9: 8b 53 34 mov 0x34(%ebx),%edx <== NOT EXECUTED
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
13bbbc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13bbbf: 85 c0 test %eax,%eax <== NOT EXECUTED
13bbc1: 75 06 jne 13bbc9 <msdos_set_dir_wrt_time_and_date+0x35><== NOT EXECUTED
13bbc3: f6 42 0a 03 testb $0x3,0xa(%edx) <== NOT EXECUTED
13bbc7: 75 67 jne 13bc30 <msdos_set_dir_wrt_time_and_date+0x9c><== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
13bbc9: 83 e8 02 sub $0x2,%eax <== NOT EXECUTED
13bbcc: 0f b6 4a 05 movzbl 0x5(%edx),%ecx <== NOT EXECUTED
13bbd0: d3 e0 shl %cl,%eax <== NOT EXECUTED
13bbd2: 03 42 30 add 0x30(%edx),%eax <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
13bbd5: 8b 56 24 mov 0x24(%esi),%edx <== NOT EXECUTED
13bbd8: 0f b6 4f 02 movzbl 0x2(%edi),%ecx <== NOT EXECUTED
13bbdc: 89 d6 mov %edx,%esi <== NOT EXECUTED
13bbde: d3 ee shr %cl,%esi <== NOT EXECUTED
13bbe0: 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);
13bbe3: 0f b7 3f movzwl (%edi),%edi <== NOT EXECUTED
13bbe6: 4f dec %edi <== NOT EXECUTED
13bbe7: 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,
13bbe9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13bbec: 8d 45 e6 lea -0x1a(%ebp),%eax <== NOT EXECUTED
13bbef: 50 push %eax <== NOT EXECUTED
13bbf0: 6a 02 push $0x2 <== NOT EXECUTED
13bbf2: 8d 47 16 lea 0x16(%edi),%eax <== NOT EXECUTED
13bbf5: 50 push %eax <== NOT EXECUTED
13bbf6: 56 push %esi <== NOT EXECUTED
13bbf7: 53 push %ebx <== NOT EXECUTED
13bbf8: e8 3b fd fe ff call 12b938 <_fat_block_write> <== NOT EXECUTED
13bbfd: 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,
13bbff: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
13bc02: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13bc05: 50 push %eax <== NOT EXECUTED
13bc06: 6a 02 push $0x2 <== NOT EXECUTED
13bc08: 83 c7 18 add $0x18,%edi <== NOT EXECUTED
13bc0b: 57 push %edi <== NOT EXECUTED
13bc0c: 56 push %esi <== NOT EXECUTED
13bc0d: 53 push %ebx <== NOT EXECUTED
13bc0e: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
13bc11: e8 22 fd fe ff call 12b938 <_fat_block_write> <== NOT EXECUTED
2, (char *)(&date));
if ( (ret1 < 0) || (ret2 < 0) )
13bc16: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13bc19: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
13bc1c: 85 d2 test %edx,%edx <== NOT EXECUTED
13bc1e: 79 18 jns 13bc38 <msdos_set_dir_wrt_time_and_date+0xa4><== NOT EXECUTED
13bc20: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
return RC_OK;
}
13bc25: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13bc28: 5b pop %ebx <== NOT EXECUTED
13bc29: 5e pop %esi <== NOT EXECUTED
13bc2a: 5f pop %edi <== NOT EXECUTED
13bc2b: c9 leave <== NOT EXECUTED
13bc2c: c3 ret <== NOT EXECUTED
13bc2d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
return fs_info->vol.rdir_loc;
13bc30: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
13bc33: eb a0 jmp 13bbd5 <msdos_set_dir_wrt_time_and_date+0x41><== NOT EXECUTED
13bc35: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
2, (char *)(&time_val));
date = CT_LE_W(date);
ret2 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WDATE_OFFSET,
2, (char *)(&date));
if ( (ret1 < 0) || (ret2 < 0) )
13bc38: 85 c0 test %eax,%eax <== NOT EXECUTED
13bc3a: 78 e4 js 13bc20 <msdos_set_dir_wrt_time_and_date+0x8c><== NOT EXECUTED
13bc3c: 31 c0 xor %eax,%eax <== NOT EXECUTED
13bc3e: eb e5 jmp 13bc25 <msdos_set_dir_wrt_time_and_date+0x91><== NOT EXECUTED
0013b920 <msdos_set_file_size>:
int
msdos_set_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
13b920: 55 push %ebp <== NOT EXECUTED
13b921: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13b923: 57 push %edi <== NOT EXECUTED
13b924: 56 push %esi <== NOT EXECUTED
13b925: 53 push %ebx <== NOT EXECUTED
13b926: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13b929: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13b92c: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
13b92f: 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);
13b932: 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)) )
13b935: 85 d2 test %edx,%edx <== NOT EXECUTED
13b937: 75 06 jne 13b93f <msdos_set_file_size+0x1f><== NOT EXECUTED
13b939: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
13b93d: 75 49 jne 13b988 <msdos_set_file_size+0x68><== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
13b93f: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
13b942: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
13b946: d3 e2 shl %cl,%edx <== NOT EXECUTED
13b948: 03 50 30 add 0x30(%eax),%edx <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
13b94b: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
13b94f: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED
13b952: d3 ef shr %cl,%edi <== NOT EXECUTED
13b954: 01 fa add %edi,%edx <== NOT EXECUTED
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
13b956: 0f b7 00 movzwl (%eax),%eax <== NOT EXECUTED
13b959: 48 dec %eax <== NOT EXECUTED
13b95a: 23 43 24 and 0x24(%ebx),%eax <== NOT EXECUTED
le_new_length = CT_LE_L((fat_fd->fat_file_size));
13b95d: 8b 4b 18 mov 0x18(%ebx),%ecx <== NOT EXECUTED
13b960: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_SIZE_OFFSET, 4,
13b963: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b966: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13b969: 51 push %ecx <== NOT EXECUTED
13b96a: 6a 04 push $0x4 <== NOT EXECUTED
13b96c: 83 c0 1c add $0x1c,%eax <== NOT EXECUTED
13b96f: 50 push %eax <== NOT EXECUTED
13b970: 52 push %edx <== NOT EXECUTED
13b971: 56 push %esi <== NOT EXECUTED
13b972: e8 c1 ff fe ff call 12b938 <_fat_block_write> <== NOT EXECUTED
(char *)(&le_new_length));
if ( ret < 0 )
13b977: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13b97a: c1 f8 1f sar $0x1f,%eax <== NOT EXECUTED
return -1;
return RC_OK;
}
13b97d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13b980: 5b pop %ebx <== NOT EXECUTED
13b981: 5e pop %esi <== NOT EXECUTED
13b982: 5f pop %edi <== NOT EXECUTED
13b983: c9 leave <== NOT EXECUTED
13b984: c3 ret <== NOT EXECUTED
13b985: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
return fs_info->vol.rdir_loc;
13b988: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
13b98b: eb be jmp 13b94b <msdos_set_file_size+0x2b><== NOT EXECUTED
0013ba40 <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
)
{
13ba40: 55 push %ebp <== NOT EXECUTED
13ba41: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ba43: 57 push %edi <== NOT EXECUTED
13ba44: 56 push %esi <== NOT EXECUTED
13ba45: 53 push %ebx <== NOT EXECUTED
13ba46: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
13ba49: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13ba4c: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
13ba4f: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED
ssize_t ret;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
13ba52: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13ba55: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
13ba58: 89 df mov %ebx,%edi <== NOT EXECUTED
uint32_t dir_block_size;
fat_pos_t start = dir_pos->lname;
13ba5a: 8b 50 08 mov 0x8(%eax),%edx <== NOT EXECUTED
13ba5d: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
13ba60: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
13ba63: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
fat_pos_t end = dir_pos->sname;
13ba66: 8b 48 04 mov 0x4(%eax),%ecx <== NOT EXECUTED
13ba69: 89 4d c4 mov %ecx,-0x3c(%ebp) <== NOT EXECUTED
13ba6c: 8b 10 mov (%eax),%edx <== NOT EXECUTED
13ba6e: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
13ba71: 39 53 38 cmp %edx,0x38(%ebx) <== NOT EXECUTED
13ba74: 0f 84 02 01 00 00 je 13bb7c <msdos_set_first_char4file_name+0x13c><== 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;
13ba7a: 0f b7 53 06 movzwl 0x6(%ebx),%edx <== NOT EXECUTED
13ba7e: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED
if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)
13ba81: 83 78 08 ff cmpl $0xffffffff,0x8(%eax) <== NOT EXECUTED
13ba85: 0f 84 e1 00 00 00 je 13bb6c <msdos_set_first_char4file_name+0x12c><== NOT EXECUTED
start = dir_pos->sname;
13ba8b: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13ba8e: 8a 4b 02 mov 0x2(%ebx),%cl <== NOT EXECUTED
13ba91: 88 4d d3 mov %cl,-0x2d(%ebp) <== NOT EXECUTED
13ba94: 8b 33 mov (%ebx),%esi <== NOT EXECUTED
13ba96: eb 59 jmp 13baf1 <msdos_set_first_char4file_name+0xb1><== 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)) )
13ba98: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
13ba9c: 74 5a je 13baf8 <msdos_set_first_char4file_name+0xb8><== NOT EXECUTED
return fs_info->vol.rdir_loc;
13ba9e: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
{
uint32_t sec = (fat_cluster_num_to_sector_num(mt_entry, start.cln) +
(start.ofs >> fs_info->fat.vol.sec_log2));
uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));;
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_NAME_OFFSET, 1,
13baa1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13baa4: 8d 4d d4 lea -0x2c(%ebp),%ecx <== NOT EXECUTED
13baa7: 51 push %ecx <== NOT EXECUTED
13baa8: 6a 01 push $0x1 <== NOT EXECUTED
13baaa: 0f b7 f6 movzwl %si,%esi <== NOT EXECUTED
13baad: 4e dec %esi <== NOT EXECUTED
13baae: 21 c6 and %eax,%esi <== NOT EXECUTED
13bab0: 56 push %esi <== NOT EXECUTED
13bab1: 8a 4d d3 mov -0x2d(%ebp),%cl <== NOT EXECUTED
13bab4: d3 e8 shr %cl,%eax <== NOT EXECUTED
13bab6: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
13bab9: 50 push %eax <== NOT EXECUTED
13baba: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13babd: e8 76 fe fe ff call 12b938 <_fat_block_write> <== NOT EXECUTED
&fchar);
if (ret < 0)
13bac2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13bac5: 85 c0 test %eax,%eax <== NOT EXECUTED
13bac7: 0f 88 8f 00 00 00 js 13bb5c <msdos_set_first_char4file_name+0x11c><== NOT EXECUTED
return -1;
if ((start.cln == end.cln) && (start.ofs == end.ofs))
13bacd: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
13bad0: 39 45 e0 cmp %eax,-0x20(%ebp) <== NOT EXECUTED
13bad3: 74 33 je 13bb08 <msdos_set_first_char4file_name+0xc8><== NOT EXECUTED
13bad5: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
break;
start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
13bad8: 83 c0 20 add $0x20,%eax <== NOT EXECUTED
13badb: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
if (start.ofs >= dir_block_size)
13bade: 39 45 c8 cmp %eax,-0x38(%ebp) <== NOT EXECUTED
13bae1: 76 39 jbe 13bb1c <msdos_set_first_char4file_name+0xdc><== NOT EXECUTED
13bae3: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13bae6: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
13bae9: 8a 4f 02 mov 0x2(%edi),%cl <== NOT EXECUTED
13baec: 88 4d d3 mov %cl,-0x2d(%ebp) <== NOT EXECUTED
13baef: 8b 37 mov (%edi),%esi <== 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) +
13baf1: 8b 55 e0 mov -0x20(%ebp),%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)) )
13baf4: 85 d2 test %edx,%edx <== NOT EXECUTED
13baf6: 74 a0 je 13ba98 <msdos_set_first_char4file_name+0x58><== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
13baf8: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
13bafb: 0f b6 4b 05 movzbl 0x5(%ebx),%ecx <== NOT EXECUTED
13baff: d3 e2 shl %cl,%edx <== NOT EXECUTED
13bb01: 03 53 30 add 0x30(%ebx),%edx <== NOT EXECUTED
13bb04: eb 9b jmp 13baa1 <msdos_set_first_char4file_name+0x61><== NOT EXECUTED
13bb06: 66 90 xchg %ax,%ax <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_NAME_OFFSET, 1,
&fchar);
if (ret < 0)
return -1;
if ((start.cln == end.cln) && (start.ofs == end.ofs))
13bb08: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13bb0b: 3b 45 c4 cmp -0x3c(%ebp),%eax <== NOT EXECUTED
13bb0e: 75 c8 jne 13bad8 <msdos_set_first_char4file_name+0x98><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
break;
rc = fat_get_fat_cluster(mt_entry, start.cln, &start.cln);
if ( rc != RC_OK )
return rc;
start.ofs = 0;
13bb10: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
return RC_OK;
}
13bb12: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13bb15: 5b pop %ebx <== NOT EXECUTED
13bb16: 5e pop %esi <== NOT EXECUTED
13bb17: 5f pop %edi <== NOT EXECUTED
13bb18: c9 leave <== NOT EXECUTED
13bb19: c3 ret <== NOT EXECUTED
13bb1a: 66 90 xchg %ax,%ax <== NOT EXECUTED
start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
if (start.ofs >= dir_block_size)
{
int rc;
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
13bb1c: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
13bb1f: 39 47 38 cmp %eax,0x38(%edi) <== NOT EXECUTED
13bb22: 75 06 jne 13bb2a <msdos_set_first_char4file_name+0xea><== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
13bb24: f6 47 0a 03 testb $0x3,0xa(%edi) <== NOT EXECUTED
13bb28: 75 e6 jne 13bb10 <msdos_set_first_char4file_name+0xd0><== NOT EXECUTED
break;
rc = fat_get_fat_cluster(mt_entry, start.cln, &start.cln);
13bb2a: 53 push %ebx <== NOT EXECUTED
13bb2b: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
13bb2e: 52 push %edx <== NOT EXECUTED
13bb2f: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13bb32: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13bb35: e8 aa 6f 00 00 call 142ae4 <fat_get_fat_cluster> <== NOT EXECUTED
if ( rc != RC_OK )
13bb3a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13bb3d: 85 c0 test %eax,%eax <== NOT EXECUTED
13bb3f: 75 d1 jne 13bb12 <msdos_set_first_char4file_name+0xd2><== NOT EXECUTED
return rc;
start.ofs = 0;
13bb41: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
13bb48: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13bb4b: 8b 59 34 mov 0x34(%ecx),%ebx <== NOT EXECUTED
13bb4e: 8a 47 02 mov 0x2(%edi),%al <== NOT EXECUTED
13bb51: 88 45 d3 mov %al,-0x2d(%ebp) <== NOT EXECUTED
13bb54: 8b 37 mov (%edi),%esi <== NOT EXECUTED
13bb56: 31 c0 xor %eax,%eax <== NOT EXECUTED
13bb58: eb 97 jmp 13baf1 <msdos_set_first_char4file_name+0xb1><== NOT EXECUTED
13bb5a: 66 90 xchg %ax,%ax <== NOT EXECUTED
13bb5c: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
}
}
return RC_OK;
}
13bb61: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13bb64: 5b pop %ebx <== NOT EXECUTED
13bb65: 5e pop %esi <== NOT EXECUTED
13bb66: 5f pop %edi <== NOT EXECUTED
13bb67: c9 leave <== NOT EXECUTED
13bb68: c3 ret <== NOT EXECUTED
13bb69: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
dir_block_size = fs_info->fat.vol.rdir_size;
else
dir_block_size = fs_info->fat.vol.bpc;
if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)
start = dir_pos->sname;
13bb6c: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
13bb6f: 8b 00 mov (%eax),%eax <== NOT EXECUTED
13bb71: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
13bb74: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
13bb77: e9 0f ff ff ff jmp 13ba8b <msdos_set_first_char4file_name+0x4b><== NOT EXECUTED
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) &&
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
13bb7c: f6 43 0a 03 testb $0x3,0xa(%ebx) <== NOT EXECUTED
13bb80: 0f 84 f4 fe ff ff je 13ba7a <msdos_set_first_char4file_name+0x3a><== NOT EXECUTED
dir_block_size = fs_info->fat.vol.rdir_size;
13bb86: 8b 4b 28 mov 0x28(%ebx),%ecx <== NOT EXECUTED
13bb89: 89 4d c8 mov %ecx,-0x38(%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) &&
13bb8c: e9 f0 fe ff ff jmp 13ba81 <msdos_set_first_char4file_name+0x41><== NOT EXECUTED
0013b990 <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
)
{
13b990: 55 push %ebp <== NOT EXECUTED
13b991: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13b993: 57 push %edi <== NOT EXECUTED
13b994: 56 push %esi <== NOT EXECUTED
13b995: 53 push %ebx <== NOT EXECUTED
13b996: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13b999: 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;
13b99c: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13b99f: 8b 42 34 mov 0x34(%edx),%eax <== NOT EXECUTED
uint32_t new_cln = fat_fd->cln;
13b9a2: 8b 5e 1c mov 0x1c(%esi),%ebx <== 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);
13b9a5: 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)) )
13b9a8: 85 d2 test %edx,%edx <== NOT EXECUTED
13b9aa: 75 06 jne 13b9b2 <msdos_set_first_cluster_num+0x22><== NOT EXECUTED
13b9ac: f6 40 0a 03 testb $0x3,0xa(%eax) <== NOT EXECUTED
13b9b0: 75 7e jne 13ba30 <msdos_set_first_cluster_num+0xa0><== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
13b9b2: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
13b9b5: 0f b6 48 05 movzbl 0x5(%eax),%ecx <== NOT EXECUTED
13b9b9: d3 e2 shl %cl,%edx <== NOT EXECUTED
13b9bb: 03 50 30 add 0x30(%eax),%edx <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
13b9be: 8b 76 24 mov 0x24(%esi),%esi <== NOT EXECUTED
13b9c1: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
13b9c4: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
13b9c8: 89 f7 mov %esi,%edi <== NOT EXECUTED
13b9ca: d3 ef shr %cl,%edi <== NOT EXECUTED
13b9cc: 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);
13b9cf: 0f b7 30 movzwl (%eax),%esi <== NOT EXECUTED
13b9d2: 4e dec %esi <== NOT EXECUTED
13b9d3: 23 75 d4 and -0x2c(%ebp),%esi <== NOT EXECUTED
le_cl_low = CT_LE_W((uint16_t )(new_cln & 0x0000FFFF));
13b9d6: 66 89 5d e6 mov %bx,-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;
13b9da: 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,
13b9e0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13b9e3: 8d 45 e6 lea -0x1a(%ebp),%eax <== NOT EXECUTED
13b9e6: 50 push %eax <== NOT EXECUTED
13b9e7: 6a 02 push $0x2 <== NOT EXECUTED
13b9e9: 8d 46 1a lea 0x1a(%esi),%eax <== NOT EXECUTED
13b9ec: 50 push %eax <== NOT EXECUTED
13b9ed: 57 push %edi <== NOT EXECUTED
13b9ee: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13b9f1: e8 42 ff fe ff call 12b938 <_fat_block_write> <== NOT EXECUTED
13b9f6: 89 c2 mov %eax,%edx <== 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));
13b9f8: c1 eb 10 shr $0x10,%ebx <== NOT EXECUTED
13b9fb: 66 89 5d e4 mov %bx,-0x1c(%ebp) <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec,
13b9ff: 83 c4 14 add $0x14,%esp <== NOT EXECUTED
13ba02: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13ba05: 50 push %eax <== NOT EXECUTED
13ba06: 6a 02 push $0x2 <== NOT EXECUTED
13ba08: 83 c6 14 add $0x14,%esi <== NOT EXECUTED
13ba0b: 56 push %esi <== NOT EXECUTED
13ba0c: 57 push %edi <== NOT EXECUTED
13ba0d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13ba10: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
13ba13: e8 20 ff fe ff call 12b938 <_fat_block_write> <== NOT EXECUTED
byte + MSDOS_FIRST_CLUSTER_HI_OFFSET, 2,
(char *)(&le_cl_hi));
if ( (ret1 < 0) || (ret2 < 0) )
13ba18: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13ba1b: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
13ba1e: 85 d2 test %edx,%edx <== NOT EXECUTED
13ba20: 79 16 jns 13ba38 <msdos_set_first_cluster_num+0xa8><== NOT EXECUTED
13ba22: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
return RC_OK;
}
13ba27: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13ba2a: 5b pop %ebx <== NOT EXECUTED
13ba2b: 5e pop %esi <== NOT EXECUTED
13ba2c: 5f pop %edi <== NOT EXECUTED
13ba2d: c9 leave <== NOT EXECUTED
13ba2e: c3 ret <== NOT EXECUTED
13ba2f: 90 nop <== NOT EXECUTED
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
return fs_info->vol.rdir_loc;
13ba30: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
13ba33: eb 89 jmp 13b9be <msdos_set_first_cluster_num+0x2e><== NOT EXECUTED
13ba35: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
(char *)(&le_cl_low));
le_cl_hi = CT_LE_W((uint16_t )((new_cln & 0xFFFF0000) >> 16));
ret2 = _fat_block_write(mt_entry, sec,
byte + MSDOS_FIRST_CLUSTER_HI_OFFSET, 2,
(char *)(&le_cl_hi));
if ( (ret1 < 0) || (ret2 < 0) )
13ba38: 85 c0 test %eax,%eax <== NOT EXECUTED
13ba3a: 78 e6 js 13ba22 <msdos_set_first_cluster_num+0x92><== NOT EXECUTED
13ba3c: 31 c0 xor %eax,%eax <== NOT EXECUTED
13ba3e: eb e7 jmp 13ba27 <msdos_set_first_cluster_num+0x97><== NOT EXECUTED
0013adcc <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)
{
13adcc: 55 push %ebp <== NOT EXECUTED
13adcd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13adcf: 57 push %edi <== NOT EXECUTED
13add0: 56 push %esi <== NOT EXECUTED
13add1: 53 push %ebx <== NOT EXECUTED
13add2: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
13add5: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = temp_mt_entry->fs_info;
13add8: 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)
13addb: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
13adde: 53 push %ebx <== NOT EXECUTED
13addf: e8 b4 03 ff ff call 12b198 <fat_file_close> <== NOT EXECUTED
13ade4: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
13ade7: 19 f6 sbb %esi,%esi <== NOT EXECUTED
13ade9: 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)
13adeb: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
13adee: e8 5d 0c ff ff call 12ba50 <fat_shutdown_drive> <== NOT EXECUTED
13adf3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13adf6: 85 c0 test %eax,%eax <== NOT EXECUTED
13adf8: 75 2e jne 13ae28 <msdos_shut_down+0x5c> <== NOT EXECUTED
{
/* no return - try to free as much as possible */
rc = -1;
}
rtems_semaphore_delete(fs_info->vol_sema);
13adfa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13adfd: ff b7 94 00 00 00 pushl 0x94(%edi) <== NOT EXECUTED
13ae03: e8 f0 7f fd ff call 112df8 <rtems_semaphore_delete><== NOT EXECUTED
free(fs_info->cl_buf);
13ae08: 5a pop %edx <== NOT EXECUTED
13ae09: ff b7 98 00 00 00 pushl 0x98(%edi) <== NOT EXECUTED
13ae0f: e8 54 3a fd ff call 10e868 <free> <== NOT EXECUTED
free(temp_mt_entry->fs_info);
13ae14: 58 pop %eax <== NOT EXECUTED
13ae15: ff 73 34 pushl 0x34(%ebx) <== NOT EXECUTED
13ae18: e8 4b 3a fd ff call 10e868 <free> <== NOT EXECUTED
return rc;
}
13ae1d: 89 f0 mov %esi,%eax <== NOT EXECUTED
13ae1f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13ae22: 5b pop %ebx <== NOT EXECUTED
13ae23: 5e pop %esi <== NOT EXECUTED
13ae24: 5f pop %edi <== NOT EXECUTED
13ae25: c9 leave <== NOT EXECUTED
13ae26: c3 ret <== NOT EXECUTED
13ae27: 90 nop <== NOT EXECUTED
{
/* no return - try to free as much as possible */
rc = -1;
}
if (fat_shutdown_drive(temp_mt_entry) != RC_OK)
13ae28: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
13ae2d: eb cb jmp 13adfa <msdos_shut_down+0x2e> <== NOT EXECUTED
00108ef0 <newlib_create_hook>:
*/
bool newlib_create_hook(
rtems_tcb *current_task __attribute__((unused)),
rtems_tcb *creating_task
)
{
108ef0: 55 push %ebp
108ef1: 89 e5 mov %esp,%ebp
108ef3: 57 push %edi
108ef4: 56 push %esi
108ef5: 53 push %ebx
108ef6: 83 ec 0c sub $0xc,%esp
struct _reent *ptr;
if (_Thread_libc_reent == 0)
108ef9: a1 e4 73 12 00 mov 0x1273e4,%eax
108efe: 85 c0 test %eax,%eax
108f00: 0f 84 52 02 00 00 je 109158 <newlib_create_hook+0x268>
ptr = (struct _reent *) calloc(1, sizeof(struct _reent));
#else
/* It is OK to allocate from the workspace because these
* hooks run with thread dispatching disabled.
*/
ptr = (struct _reent *) _Workspace_Allocate(sizeof(struct _reent));
108f06: 83 ec 0c sub $0xc,%esp
108f09: 68 24 04 00 00 push $0x424
108f0e: e8 a5 5d 00 00 call 10ecb8 <_Workspace_Allocate>
108f13: 89 c2 mov %eax,%edx
#endif
if (ptr) {
108f15: 83 c4 10 add $0x10,%esp
108f18: 85 c0 test %eax,%eax
108f1a: 0f 84 2c 02 00 00 je 10914c <newlib_create_hook+0x25c>
_REENT_INIT_PTR((ptr)); /* GCC extension: structure constants */
108f20: c7 00 00 00 00 00 movl $0x0,(%eax)
108f26: 8d 98 ec 02 00 00 lea 0x2ec(%eax),%ebx
108f2c: 89 58 04 mov %ebx,0x4(%eax)
108f2f: 8d 80 54 03 00 00 lea 0x354(%eax),%eax
108f35: 89 42 08 mov %eax,0x8(%edx)
108f38: 8d 82 bc 03 00 00 lea 0x3bc(%edx),%eax
108f3e: 89 42 0c mov %eax,0xc(%edx)
108f41: c7 42 10 00 00 00 00 movl $0x0,0x10(%edx)
108f48: 8d 72 14 lea 0x14(%edx),%esi
108f4b: 31 c0 xor %eax,%eax
108f4d: b9 19 00 00 00 mov $0x19,%ecx
108f52: 89 f7 mov %esi,%edi
108f54: f3 aa rep stos %al,%es:(%edi)
108f56: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx)
108f5d: c7 42 34 6a 15 12 00 movl $0x12156a,0x34(%edx)
108f64: c7 42 38 00 00 00 00 movl $0x0,0x38(%edx)
108f6b: c7 42 3c 00 00 00 00 movl $0x0,0x3c(%edx)
108f72: c7 42 40 00 00 00 00 movl $0x0,0x40(%edx)
108f79: c7 42 44 00 00 00 00 movl $0x0,0x44(%edx)
108f80: c7 42 48 00 00 00 00 movl $0x0,0x48(%edx)
108f87: c7 42 4c 00 00 00 00 movl $0x0,0x4c(%edx)
108f8e: c7 42 50 00 00 00 00 movl $0x0,0x50(%edx)
108f95: c7 42 54 00 00 00 00 movl $0x0,0x54(%edx)
108f9c: c7 42 58 00 00 00 00 movl $0x0,0x58(%edx)
108fa3: c7 42 5c 00 00 00 00 movl $0x0,0x5c(%edx)
108faa: c6 42 60 00 movb $0x0,0x60(%edx)
108fae: 8d 72 7c lea 0x7c(%edx),%esi
108fb1: b1 24 mov $0x24,%cl
108fb3: 89 f7 mov %esi,%edi
108fb5: f3 aa rep stos %al,%es:(%edi)
108fb7: c7 82 a0 00 00 00 00 movl $0x0,0xa0(%edx)
108fbe: 00 00 00
108fc1: c7 82 a4 00 00 00 01 movl $0x1,0xa4(%edx)
108fc8: 00 00 00
108fcb: c7 82 a8 00 00 00 00 movl $0x0,0xa8(%edx)
108fd2: 00 00 00
108fd5: 66 c7 82 ac 00 00 00 movw $0x330e,0xac(%edx)
108fdc: 0e 33
108fde: 66 c7 82 ae 00 00 00 movw $0xabcd,0xae(%edx)
108fe5: cd ab
108fe7: 66 c7 82 b0 00 00 00 movw $0x1234,0xb0(%edx)
108fee: 34 12
108ff0: 66 c7 82 b2 00 00 00 movw $0xe66d,0xb2(%edx)
108ff7: 6d e6
108ff9: 66 c7 82 b4 00 00 00 movw $0xdeec,0xb4(%edx)
109000: ec de
109002: 66 c7 82 b6 00 00 00 movw $0x5,0xb6(%edx)
109009: 05 00
10900b: 66 c7 82 b8 00 00 00 movw $0xb,0xb8(%edx)
109012: 0b 00
109014: c7 82 bc 00 00 00 00 movl $0x0,0xbc(%edx)
10901b: 00 00 00
10901e: c7 82 c0 00 00 00 00 movl $0x0,0xc0(%edx)
109025: 00 00 00
109028: c7 82 c4 00 00 00 00 movl $0x0,0xc4(%edx)
10902f: 00 00 00
109032: c7 82 c8 00 00 00 00 movl $0x0,0xc8(%edx)
109039: 00 00 00
10903c: c7 82 cc 00 00 00 00 movl $0x0,0xcc(%edx)
109043: 00 00 00
109046: c7 82 d0 00 00 00 00 movl $0x0,0xd0(%edx)
10904d: 00 00 00
109050: c7 82 f8 00 00 00 00 movl $0x0,0xf8(%edx)
109057: 00 00 00
10905a: c7 82 fc 00 00 00 00 movl $0x0,0xfc(%edx)
109061: 00 00 00
109064: c7 82 00 01 00 00 00 movl $0x0,0x100(%edx)
10906b: 00 00 00
10906e: c7 82 04 01 00 00 00 movl $0x0,0x104(%edx)
109075: 00 00 00
109078: c7 82 08 01 00 00 00 movl $0x0,0x108(%edx)
10907f: 00 00 00
109082: c7 82 0c 01 00 00 00 movl $0x0,0x10c(%edx)
109089: 00 00 00
10908c: c7 82 10 01 00 00 00 movl $0x0,0x110(%edx)
109093: 00 00 00
109096: c7 82 14 01 00 00 00 movl $0x0,0x114(%edx)
10909d: 00 00 00
1090a0: c7 82 18 01 00 00 00 movl $0x0,0x118(%edx)
1090a7: 00 00 00
1090aa: c7 82 1c 01 00 00 00 movl $0x0,0x11c(%edx)
1090b1: 00 00 00
1090b4: c6 82 d4 00 00 00 00 movb $0x0,0xd4(%edx)
1090bb: c6 82 dc 00 00 00 00 movb $0x0,0xdc(%edx)
1090c2: c7 82 f4 00 00 00 00 movl $0x0,0xf4(%edx)
1090c9: 00 00 00
1090cc: c7 82 48 01 00 00 00 movl $0x0,0x148(%edx)
1090d3: 00 00 00
1090d6: c7 82 4c 01 00 00 00 movl $0x0,0x14c(%edx)
1090dd: 00 00 00
1090e0: c7 82 50 01 00 00 00 movl $0x0,0x150(%edx)
1090e7: 00 00 00
1090ea: c7 82 54 01 00 00 00 movl $0x0,0x154(%edx)
1090f1: 00 00 00
1090f4: c7 82 d4 02 00 00 00 movl $0x0,0x2d4(%edx)
1090fb: 00 00 00
1090fe: c7 82 d4 01 00 00 00 movl $0x0,0x1d4(%edx)
109105: 00 00 00
109108: c7 82 dc 02 00 00 00 movl $0x0,0x2dc(%edx)
10910f: 00 00 00
109112: c7 82 e0 02 00 00 00 movl $0x0,0x2e0(%edx)
109119: 00 00 00
10911c: c7 82 e4 02 00 00 00 movl $0x0,0x2e4(%edx)
109123: 00 00 00
109126: c7 82 e8 02 00 00 00 movl $0x0,0x2e8(%edx)
10912d: 00 00 00
109130: 66 b9 38 01 mov $0x138,%cx
109134: 89 df mov %ebx,%edi
109136: f3 aa rep stos %al,%es:(%edi)
creating_task->libc_reent = ptr;
109138: 8b 45 0c mov 0xc(%ebp),%eax
10913b: 89 90 ec 00 00 00 mov %edx,0xec(%eax)
109141: b0 01 mov $0x1,%al
return TRUE;
}
return FALSE;
}
109143: 8d 65 f4 lea -0xc(%ebp),%esp
109146: 5b pop %ebx
109147: 5e pop %esi
109148: 5f pop %edi
109149: c9 leave
10914a: c3 ret
10914b: 90 nop
* hooks run with thread dispatching disabled.
*/
ptr = (struct _reent *) _Workspace_Allocate(sizeof(struct _reent));
#endif
if (ptr) {
10914c: 31 c0 xor %eax,%eax
creating_task->libc_reent = ptr;
return TRUE;
}
return FALSE;
}
10914e: 8d 65 f4 lea -0xc(%ebp),%esp
109151: 5b pop %ebx
109152: 5e pop %esi
109153: 5f pop %edi
109154: c9 leave
109155: c3 ret
109156: 66 90 xchg %ax,%ax
{
struct _reent *ptr;
if (_Thread_libc_reent == 0)
{
_REENT = _global_impure_ptr;
109158: a1 00 25 12 00 mov 0x122500,%eax
10915d: a3 e0 50 12 00 mov %eax,0x1250e0
RTEMS_INLINE_ROUTINE void _Thread_Set_libc_reent (
struct _reent **libc_reent
)
{
_Thread_libc_reent = libc_reent;
109162: c7 05 e4 73 12 00 e0 movl $0x1250e0,0x1273e4
109169: 50 12 00
10916c: e9 95 fd ff ff jmp 108f06 <newlib_create_hook+0x16>
00108e24 <newlib_delete_hook>:
void newlib_delete_hook(
rtems_tcb *current_task,
rtems_tcb *deleted_task
)
{
108e24: 55 push %ebp
108e25: 89 e5 mov %esp,%ebp
108e27: 57 push %edi
108e28: 56 push %esi
108e29: 53 push %ebx
108e2a: 83 ec 0c sub $0xc,%esp
108e2d: 8b 7d 08 mov 0x8(%ebp),%edi
108e30: 8b 5d 0c mov 0xc(%ebp),%ebx
/*
* The reentrancy structure was allocated by newlib using malloc()
*/
if (current_task == deleted_task) {
108e33: 39 df cmp %ebx,%edi
108e35: 74 55 je 108e8c <newlib_delete_hook+0x68>
ptr = _REENT;
} else {
ptr = deleted_task->libc_reent;
108e37: 8b b3 ec 00 00 00 mov 0xec(%ebx),%esi
}
if (ptr && ptr != _global_impure_ptr) {
108e3d: 85 f6 test %esi,%esi
108e3f: 74 21 je 108e62 <newlib_delete_hook+0x3e><== NEVER TAKEN
108e41: 3b 35 00 25 12 00 cmp 0x122500,%esi
108e47: 74 19 je 108e62 <newlib_delete_hook+0x3e>
_reclaim_reent(ptr);
*/
/*
* Just in case there are some buffers lying around.
*/
_fwalk(ptr, newlib_free_buffers);
108e49: 83 ec 08 sub $0x8,%esp
108e4c: 68 94 8e 10 00 push $0x108e94
108e51: 56 push %esi
108e52: e8 99 b7 00 00 call 1145f0 <_fwalk>
#if REENT_MALLOCED
free(ptr);
#else
_Workspace_Free(ptr);
108e57: 89 34 24 mov %esi,(%esp)
108e5a: e8 75 5e 00 00 call 10ecd4 <_Workspace_Free>
108e5f: 83 c4 10 add $0x10,%esp
#endif
}
deleted_task->libc_reent = NULL;
108e62: c7 83 ec 00 00 00 00 movl $0x0,0xec(%ebx)
108e69: 00 00 00
/*
* Require the switch back to another task to install its own
*/
if ( current_task == deleted_task ) {
108e6c: 39 df cmp %ebx,%edi
108e6e: 74 08 je 108e78 <newlib_delete_hook+0x54>
_REENT = 0;
}
}
108e70: 8d 65 f4 lea -0xc(%ebp),%esp
108e73: 5b pop %ebx
108e74: 5e pop %esi
108e75: 5f pop %edi
108e76: c9 leave
108e77: c3 ret
/*
* Require the switch back to another task to install its own
*/
if ( current_task == deleted_task ) {
_REENT = 0;
108e78: c7 05 e0 50 12 00 00 movl $0x0,0x1250e0
108e7f: 00 00 00
}
}
108e82: 8d 65 f4 lea -0xc(%ebp),%esp
108e85: 5b pop %ebx
108e86: 5e pop %esi
108e87: 5f pop %edi
108e88: c9 leave
108e89: c3 ret
108e8a: 66 90 xchg %ax,%ax
/*
* The reentrancy structure was allocated by newlib using malloc()
*/
if (current_task == deleted_task) {
ptr = _REENT;
108e8c: 8b 35 e0 50 12 00 mov 0x1250e0,%esi
108e92: eb a9 jmp 108e3d <newlib_delete_hook+0x19>
00108e94 <newlib_free_buffers>:
*/
int newlib_free_buffers(
FILE *fp
)
{
108e94: 55 push %ebp
108e95: 89 e5 mov %esp,%ebp
108e97: 53 push %ebx
108e98: 83 ec 10 sub $0x10,%esp
108e9b: 8b 5d 08 mov 0x8(%ebp),%ebx
switch ( fileno(fp) ) {
108e9e: 53 push %ebx
108e9f: e8 54 b3 00 00 call 1141f8 <fileno>
108ea4: 83 c4 10 add $0x10,%esp
108ea7: 83 f8 02 cmp $0x2,%eax
108eaa: 76 14 jbe 108ec0 <newlib_free_buffers+0x2c><== ALWAYS TAKEN
fp->_flags &= ~__SMBF;
fp->_bf._base = fp->_p = (unsigned char *) NULL;
}
break;
default:
fclose(fp);
108eac: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108eaf: 53 push %ebx <== NOT EXECUTED
108eb0: e8 d7 b0 00 00 call 113f8c <fclose> <== NOT EXECUTED
108eb5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
108eb8: 31 c0 xor %eax,%eax
108eba: 8b 5d fc mov -0x4(%ebp),%ebx
108ebd: c9 leave
108ebe: c3 ret
108ebf: 90 nop
{
switch ( fileno(fp) ) {
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
108ec0: 80 7b 0c 00 cmpb $0x0,0xc(%ebx)
108ec4: 79 f2 jns 108eb8 <newlib_free_buffers+0x24><== ALWAYS TAKEN
free( fp->_bf._base );
108ec6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108ec9: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
108ecc: e8 13 f7 ff ff call 1085e4 <free> <== NOT EXECUTED
fp->_flags &= ~__SMBF;
108ed1: 66 81 63 0c 7f ff andw $0xff7f,0xc(%ebx) <== NOT EXECUTED
fp->_bf._base = fp->_p = (unsigned char *) NULL;
108ed7: c7 03 00 00 00 00 movl $0x0,(%ebx) <== NOT EXECUTED
108edd: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
108ee4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
break;
default:
fclose(fp);
}
return 0;
}
108ee7: 31 c0 xor %eax,%eax <== NOT EXECUTED
108ee9: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
108eec: c9 leave <== NOT EXECUTED
108eed: c3 ret <== NOT EXECUTED
001087e0 <null_initialize>:
rtems_device_driver null_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
1087e0: 55 push %ebp
1087e1: 89 e5 mov %esp,%ebp
1087e3: 53 push %ebx
1087e4: 83 ec 04 sub $0x4,%esp
1087e7: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_device_driver status;
if ( !initialized ) {
1087ea: 80 3d 78 a2 12 00 00 cmpb $0x0,0x12a278
1087f1: 74 09 je 1087fc <null_initialize+0x1c>
NULL_major = major;
}
return RTEMS_SUCCESSFUL;
}
1087f3: 31 c0 xor %eax,%eax
1087f5: 8b 5d fc mov -0x4(%ebp),%ebx
1087f8: c9 leave
1087f9: c3 ret
1087fa: 66 90 xchg %ax,%ax
)
{
rtems_device_driver status;
if ( !initialized ) {
initialized = 1;
1087fc: c6 05 78 a2 12 00 01 movb $0x1,0x12a278
status = rtems_io_register_name(
108803: 50 push %eax
108804: 6a 00 push $0x0
108806: 53 push %ebx
108807: 68 33 30 12 00 push $0x123033
10880c: e8 3b 06 00 00 call 108e4c <rtems_io_register_name>
"/dev/null",
major,
(rtems_device_minor_number) 0
);
if (status != RTEMS_SUCCESSFUL)
108811: 83 c4 10 add $0x10,%esp
108814: 85 c0 test %eax,%eax
108816: 75 0d jne 108825 <null_initialize+0x45> <== NEVER TAKEN
rtems_fatal_error_occurred(status);
NULL_major = major;
108818: 89 1d 00 a6 12 00 mov %ebx,0x12a600
}
return RTEMS_SUCCESSFUL;
}
10881e: 31 c0 xor %eax,%eax
108820: 8b 5d fc mov -0x4(%ebp),%ebx
108823: c9 leave
108824: c3 ret
major,
(rtems_device_minor_number) 0
);
if (status != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(status);
108825: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108828: 50 push %eax <== NOT EXECUTED
108829: e8 ee 48 00 00 call 10d11c <rtems_fatal_error_occurred><== NOT EXECUTED
001087c4 <null_write>:
rtems_device_driver null_write(
rtems_device_major_number major __attribute__((unused)),
rtems_device_minor_number minor __attribute__((unused)),
void *pargp
)
{
1087c4: 55 push %ebp
1087c5: 89 e5 mov %esp,%ebp
1087c7: 8b 45 10 mov 0x10(%ebp),%eax
rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp;
if ( rw_args )
1087ca: 85 c0 test %eax,%eax
1087cc: 74 06 je 1087d4 <null_write+0x10> <== ALWAYS TAKEN
rw_args->bytes_moved = rw_args->count;
1087ce: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
1087d1: 89 50 18 mov %edx,0x18(%eax) <== NOT EXECUTED
return NULL_SUCCESSFUL;
}
1087d4: 31 c0 xor %eax,%eax
1087d6: c9 leave
1087d7: c3 ret
001091d4 <open>:
int open(
const char *pathname,
int flags,
...
)
{
1091d4: 55 push %ebp
1091d5: 89 e5 mov %esp,%ebp
1091d7: 57 push %edi
1091d8: 56 push %esi
1091d9: 53 push %ebx
1091da: 83 ec 4c sub $0x4c,%esp
/*
* Set the Evaluation flags
*/
eval_flags = 0;
status = flags + 1;
1091dd: 8b 45 0c mov 0xc(%ebp),%eax
1091e0: 40 inc %eax
if ( ( status & _FREAD ) == _FREAD )
1091e1: 89 c6 mov %eax,%esi
1091e3: 83 e6 01 and $0x1,%esi
1091e6: f7 de neg %esi
1091e8: 83 e6 04 and $0x4,%esi
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
1091eb: a8 02 test $0x2,%al
1091ed: 74 03 je 1091f2 <open+0x1e>
eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
1091ef: 83 ce 02 or $0x2,%esi
va_start(ap, flags);
mode = va_arg( ap, int );
1091f2: 8b 45 10 mov 0x10(%ebp),%eax
1091f5: 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();
1091f8: e8 67 7b 00 00 call 110d64 <rtems_libio_allocate>
1091fd: 89 c3 mov %eax,%ebx
if ( iop == 0 ) {
1091ff: 85 c0 test %eax,%eax
109201: 0f 84 bd 00 00 00 je 1092c4 <open+0xf0>
/*
* See if the file exists.
*/
status = rtems_filesystem_evaluate_path(
109207: b9 ff ff ff ff mov $0xffffffff,%ecx
10920c: 8b 7d 08 mov 0x8(%ebp),%edi
10920f: 31 c0 xor %eax,%eax
109211: f2 ae repnz scas %es:(%edi),%al
109213: f7 d1 not %ecx
109215: 49 dec %ecx
109216: 83 ec 0c sub $0xc,%esp
109219: 6a 01 push $0x1
10921b: 8d 45 d4 lea -0x2c(%ebp),%eax
10921e: 89 45 b4 mov %eax,-0x4c(%ebp)
109221: 50 push %eax
109222: 56 push %esi
109223: 51 push %ecx
109224: ff 75 08 pushl 0x8(%ebp)
109227: e8 48 f3 ff ff call 108574 <rtems_filesystem_evaluate_path>
10922c: 89 c6 mov %eax,%esi
pathname, strlen( pathname ), eval_flags, &loc, true );
if ( status == -1 ) {
10922e: 83 c4 20 add $0x20,%esp
109231: 83 f8 ff cmp $0xffffffff,%eax
109234: 0f 84 f2 00 00 00 je 10932c <open+0x158>
if ( status != 0 ) { /* The file did not exist */
rc = EACCES;
goto done;
}
} else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {
10923a: 8b 45 0c mov 0xc(%ebp),%eax
10923d: 25 00 0a 00 00 and $0xa00,%eax
109242: 3d 00 0a 00 00 cmp $0xa00,%eax
109247: 0f 84 8b 00 00 00 je 1092d8 <open+0x104>
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
10924d: 8b 45 dc mov -0x24(%ebp),%eax
109250: 89 43 3c mov %eax,0x3c(%ebx)
iop->file_info = loc.node_access;
109253: 8b 45 d4 mov -0x2c(%ebp),%eax
109256: 89 43 38 mov %eax,0x38(%ebx)
iop->flags |= rtems_libio_fcntl_flags( flags );
109259: 8b 73 14 mov 0x14(%ebx),%esi
10925c: 83 ec 0c sub $0xc,%esp
10925f: ff 75 0c pushl 0xc(%ebp)
109262: e8 89 7b 00 00 call 110df0 <rtems_libio_fcntl_flags>
109267: 09 f0 or %esi,%eax
109269: 89 43 14 mov %eax,0x14(%ebx)
iop->pathinfo = loc;
10926c: 8d 7b 18 lea 0x18(%ebx),%edi
10926f: b9 05 00 00 00 mov $0x5,%ecx
109274: 8b 75 b4 mov -0x4c(%ebp),%esi
109277: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !iop->handlers || !iop->handlers->open_h ) {
109279: 8b 43 3c mov 0x3c(%ebx),%eax
10927c: 83 c4 10 add $0x10,%esp
10927f: 85 c0 test %eax,%eax
109281: 0f 84 99 00 00 00 je 109320 <open+0x14c> <== NEVER TAKEN
109287: 8b 00 mov (%eax),%eax
109289: 85 c0 test %eax,%eax
10928b: 0f 84 8f 00 00 00 je 109320 <open+0x14c> <== NEVER TAKEN
rc = ENOTSUP;
goto done;
}
rc = (*iop->handlers->open_h)( iop, pathname, flags, mode );
109291: ff 75 c4 pushl -0x3c(%ebp)
109294: ff 75 0c pushl 0xc(%ebp)
109297: ff 75 08 pushl 0x8(%ebp)
10929a: 53 push %ebx
10929b: ff d0 call *%eax
if ( rc ) {
10929d: 83 c4 10 add $0x10,%esp
1092a0: 85 c0 test %eax,%eax
1092a2: 75 6c jne 109310 <open+0x13c>
/*
* Optionally truncate the file.
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
1092a4: f7 45 0c 00 04 00 00 testl $0x400,0xc(%ebp)
1092ab: 0f 85 93 00 00 00 jne 109344 <open+0x170>
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
rtems_set_errno_and_return_minus_one( rc );
}
return iop - rtems_libio_iops;
1092b1: 89 d8 mov %ebx,%eax
1092b3: 2b 05 e0 71 12 00 sub 0x1271e0,%eax
1092b9: c1 f8 06 sar $0x6,%eax
}
1092bc: 8d 65 f4 lea -0xc(%ebp),%esp
1092bf: 5b pop %ebx
1092c0: 5e pop %esi
1092c1: 5f pop %edi
1092c2: c9 leave
1092c3: c3 ret
* descriptors are obtained using socket(), not open().
*/
/* allocate a file control block */
iop = rtems_libio_allocate();
if ( iop == 0 ) {
1092c4: be 17 00 00 00 mov $0x17,%esi
if ( rc ) {
if ( iop )
rtems_libio_free( iop );
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
rtems_set_errno_and_return_minus_one( rc );
1092c9: e8 72 ab 00 00 call 113e40 <__errno>
1092ce: 89 30 mov %esi,(%eax)
1092d0: b8 ff ff ff ff mov $0xffffffff,%eax
1092d5: eb e5 jmp 1092bc <open+0xe8>
1092d7: 90 nop
if ( status != 0 ) { /* The file did not exist */
rc = EACCES;
goto done;
}
} else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {
1092d8: 8d 7d d4 lea -0x2c(%ebp),%edi
1092db: be 11 00 00 00 mov $0x11,%esi
done:
va_end(ap);
if ( rc ) {
if ( iop )
1092e0: 85 db test %ebx,%ebx
1092e2: 74 0c je 1092f0 <open+0x11c> <== NEVER TAKEN
rtems_libio_free( iop );
1092e4: 83 ec 0c sub $0xc,%esp
1092e7: 53 push %ebx
1092e8: e8 1f 7a 00 00 call 110d0c <rtems_libio_free>
1092ed: 83 c4 10 add $0x10,%esp
if ( loc_to_free )
1092f0: 85 ff test %edi,%edi
1092f2: 74 d5 je 1092c9 <open+0xf5>
rtems_filesystem_freenode( loc_to_free );
1092f4: 8b 47 0c mov 0xc(%edi),%eax
1092f7: 85 c0 test %eax,%eax
1092f9: 74 ce je 1092c9 <open+0xf5> <== NEVER TAKEN
1092fb: 8b 40 1c mov 0x1c(%eax),%eax
1092fe: 85 c0 test %eax,%eax
109300: 74 c7 je 1092c9 <open+0xf5> <== NEVER TAKEN
109302: 83 ec 0c sub $0xc,%esp
109305: 57 push %edi
109306: ff d0 call *%eax
109308: 83 c4 10 add $0x10,%esp
10930b: eb bc jmp 1092c9 <open+0xf5>
10930d: 8d 76 00 lea 0x0(%esi),%esi
goto done;
}
rc = (*iop->handlers->open_h)( iop, pathname, flags, mode );
if ( rc ) {
rc = errno;
109310: e8 2b ab 00 00 call 113e40 <__errno>
109315: 8b 30 mov (%eax),%esi
109317: 8d 7d d4 lea -0x2c(%ebp),%edi
*/
done:
va_end(ap);
if ( rc ) {
10931a: 85 f6 test %esi,%esi
10931c: 74 93 je 1092b1 <open+0xdd> <== NEVER TAKEN
10931e: eb c0 jmp 1092e0 <open+0x10c>
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
rtems_set_errno_and_return_minus_one( rc );
}
return iop - rtems_libio_iops;
109320: 8d 7d d4 lea -0x2c(%ebp),%edi <== NOT EXECUTED
109323: be 86 00 00 00 mov $0x86,%esi <== NOT EXECUTED
109328: eb b6 jmp 1092e0 <open+0x10c> <== NOT EXECUTED
10932a: 66 90 xchg %ax,%ax <== NOT EXECUTED
status = rtems_filesystem_evaluate_path(
pathname, strlen( pathname ), eval_flags, &loc, true );
if ( status == -1 ) {
if ( errno != ENOENT ) {
10932c: e8 0f ab 00 00 call 113e40 <__errno>
109331: 83 38 02 cmpl $0x2,(%eax)
109334: 74 5e je 109394 <open+0x1c0>
}
/* Create the node for the new regular file */
rc = mknod( pathname, S_IFREG | mode, 0LL );
if ( rc ) {
rc = errno;
109336: e8 05 ab 00 00 call 113e40 <__errno>
10933b: 8b 30 mov (%eax),%esi
10933d: 31 ff xor %edi,%edi
goto done;
10933f: eb d9 jmp 10931a <open+0x146>
109341: 8d 76 00 lea 0x0(%esi),%esi
/*
* Optionally truncate the file.
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
rc = ftruncate( iop - rtems_libio_iops, 0 );
109344: 52 push %edx
109345: 6a 00 push $0x0
109347: 6a 00 push $0x0
109349: 89 d8 mov %ebx,%eax
10934b: 2b 05 e0 71 12 00 sub 0x1271e0,%eax
109351: c1 f8 06 sar $0x6,%eax
109354: 50 push %eax
109355: e8 de 77 00 00 call 110b38 <ftruncate>
10935a: 89 c6 mov %eax,%esi
if ( rc ) {
10935c: 83 c4 10 add $0x10,%esp
10935f: 85 c0 test %eax,%eax
109361: 0f 84 4a ff ff ff je 1092b1 <open+0xdd> <== ALWAYS TAKEN
if(errno) rc = errno;
109367: e8 d4 aa 00 00 call 113e40 <__errno> <== NOT EXECUTED
10936c: 8b 00 mov (%eax),%eax <== NOT EXECUTED
10936e: 85 c0 test %eax,%eax <== NOT EXECUTED
109370: 0f 85 8b 00 00 00 jne 109401 <open+0x22d> <== NOT EXECUTED
close( iop - rtems_libio_iops );
109376: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109379: 2b 1d e0 71 12 00 sub 0x1271e0,%ebx <== NOT EXECUTED
10937f: c1 fb 06 sar $0x6,%ebx <== NOT EXECUTED
109382: 53 push %ebx <== NOT EXECUTED
109383: e8 20 77 00 00 call 110aa8 <close> <== NOT EXECUTED
109388: 31 ff xor %edi,%edi <== NOT EXECUTED
10938a: 31 db xor %ebx,%ebx <== NOT EXECUTED
10938c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10938f: eb 89 jmp 10931a <open+0x146> <== NOT EXECUTED
109391: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rc = errno;
goto done;
}
/* If the file does not exist and we are not trying to create it--> error */
if ( !(flags & O_CREAT) ) {
109394: f7 45 0c 00 02 00 00 testl $0x200,0xc(%ebp)
10939b: 75 0f jne 1093ac <open+0x1d8>
10939d: 31 ff xor %edi,%edi
10939f: be 02 00 00 00 mov $0x2,%esi
1093a4: e9 37 ff ff ff jmp 1092e0 <open+0x10c>
1093a9: 8d 76 00 lea 0x0(%esi),%esi
rc = ENOENT;
goto done;
}
/* Create the node for the new regular file */
rc = mknod( pathname, S_IFREG | mode, 0LL );
1093ac: 6a 00 push $0x0
1093ae: 6a 00 push $0x0
1093b0: 8b 45 c4 mov -0x3c(%ebp),%eax
1093b3: 80 cc 80 or $0x80,%ah
1093b6: 50 push %eax
1093b7: ff 75 08 pushl 0x8(%ebp)
1093ba: e8 d9 f5 ff ff call 108998 <mknod>
if ( rc ) {
1093bf: 83 c4 10 add $0x10,%esp
1093c2: 85 c0 test %eax,%eax
1093c4: 0f 85 6c ff ff ff jne 109336 <open+0x162> <== NEVER TAKEN
rc = errno;
goto done;
}
/* Sanity check to see if the file name exists after the mknod() */
status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true );
1093ca: 89 f1 mov %esi,%ecx
1093cc: 8b 7d 08 mov 0x8(%ebp),%edi
1093cf: 31 c0 xor %eax,%eax
1093d1: f2 ae repnz scas %es:(%edi),%al
1093d3: f7 d1 not %ecx
1093d5: 49 dec %ecx
1093d6: 83 ec 0c sub $0xc,%esp
1093d9: 6a 01 push $0x1
1093db: 8d 45 d4 lea -0x2c(%ebp),%eax
1093de: 50 push %eax
1093df: 6a 00 push $0x0
1093e1: 51 push %ecx
1093e2: ff 75 08 pushl 0x8(%ebp)
1093e5: e8 8a f1 ff ff call 108574 <rtems_filesystem_evaluate_path>
if ( status != 0 ) { /* The file did not exist */
1093ea: 83 c4 20 add $0x20,%esp
1093ed: 85 c0 test %eax,%eax
1093ef: 0f 84 58 fe ff ff je 10924d <open+0x79> <== ALWAYS TAKEN
1093f5: 31 ff xor %edi,%edi <== NOT EXECUTED
1093f7: be 0d 00 00 00 mov $0xd,%esi <== NOT EXECUTED
1093fc: e9 df fe ff ff jmp 1092e0 <open+0x10c> <== NOT EXECUTED
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
rc = ftruncate( iop - rtems_libio_iops, 0 );
if ( rc ) {
if(errno) rc = errno;
109401: e8 3a aa 00 00 call 113e40 <__errno> <== NOT EXECUTED
109406: 8b 30 mov (%eax),%esi <== NOT EXECUTED
109408: e9 69 ff ff ff jmp 109376 <open+0x1a2> <== NOT EXECUTED
00109174 <open_dev_console>:
/*
* This is a replaceable stub which opens the console, if present.
*/
void open_dev_console(void)
{
109174: 55 push %ebp
109175: 89 e5 mov %esp,%ebp
109177: 83 ec 0c sub $0xc,%esp
int stderr_fd;
/*
* Attempt to open /dev/console.
*/
if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) {
10917a: 6a 00 push $0x0
10917c: 6a 00 push $0x0
10917e: 68 08 ff 11 00 push $0x11ff08
109183: e8 4c 00 00 00 call 1091d4 <open>
109188: 83 c4 10 add $0x10,%esp
10918b: 40 inc %eax
10918c: 74 2a je 1091b8 <open_dev_console+0x44>
/*
* 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)
10918e: 52 push %edx
10918f: 6a 00 push $0x0
109191: 6a 01 push $0x1
109193: 68 08 ff 11 00 push $0x11ff08
109198: e8 37 00 00 00 call 1091d4 <open>
10919d: 83 c4 10 add $0x10,%esp
1091a0: 40 inc %eax
1091a1: 74 24 je 1091c7 <open_dev_console+0x53> <== NEVER TAKEN
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */
if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1)
1091a3: 50 push %eax
1091a4: 6a 00 push $0x0
1091a6: 6a 01 push $0x1
1091a8: 68 08 ff 11 00 push $0x11ff08
1091ad: e8 22 00 00 00 call 1091d4 <open>
1091b2: 83 c4 10 add $0x10,%esp
1091b5: 40 inc %eax
1091b6: 74 02 je 1091ba <open_dev_console+0x46> <== NEVER TAKEN
rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */
}
1091b8: c9 leave
1091b9: c3 ret
*/
if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1)
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */
if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1)
rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */
1091ba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1091bd: 68 32 44 54 55 push $0x55544432 <== NOT EXECUTED
1091c2: e8 2d 31 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
/*
* 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)
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */
1091c7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1091ca: 68 31 44 54 55 push $0x55544431 <== NOT EXECUTED
1091cf: e8 20 31 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
00109d5c <oproc>:
/*
* Handle output processing
*/
static void
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
109d5c: 55 push %ebp
109d5d: 89 e5 mov %esp,%ebp
109d5f: 56 push %esi
109d60: 53 push %ebx
109d61: 83 ec 10 sub $0x10,%esp
109d64: 88 45 f4 mov %al,-0xc(%ebp)
int i;
if (tty->termios.c_oflag & OPOST) {
109d67: 8b 4a 34 mov 0x34(%edx),%ecx
109d6a: f6 c1 01 test $0x1,%cl
109d6d: 74 31 je 109da0 <oproc+0x44> <== NEVER TAKEN
switch (c) {
109d6f: 3c 09 cmp $0x9,%al
109d71: 0f 84 b1 00 00 00 je 109e28 <oproc+0xcc>
109d77: 76 3f jbe 109db8 <oproc+0x5c> <== NEVER TAKEN
109d79: 3c 0a cmp $0xa,%al
109d7b: 74 4f je 109dcc <oproc+0x70>
109d7d: 3c 0d cmp $0xd,%al
109d7f: 74 7f je 109e00 <oproc+0xa4> <== NEVER TAKEN
if (tty->column > 0)
tty->column--;
break;
default:
if (tty->termios.c_oflag & OLCUC)
109d81: 83 e1 02 and $0x2,%ecx
109d84: 0f 85 c6 00 00 00 jne 109e50 <oproc+0xf4> <== NEVER TAKEN
109d8a: 8b 0d c4 50 12 00 mov 0x1250c4,%ecx
c = toupper(c);
if (!iscntrl(c))
109d90: 0f b6 c0 movzbl %al,%eax
109d93: f6 44 01 01 20 testb $0x20,0x1(%ecx,%eax,1)
109d98: 75 06 jne 109da0 <oproc+0x44> <== NEVER TAKEN
tty->column++;
109d9a: ff 42 28 incl 0x28(%edx)
109d9d: 8d 76 00 lea 0x0(%esi),%esi
break;
}
}
rtems_termios_puts (&c, 1, tty);
109da0: 50 push %eax
109da1: 52 push %edx
109da2: 6a 01 push $0x1
109da4: 8d 45 f4 lea -0xc(%ebp),%eax
109da7: 50 push %eax
109da8: e8 7b fe ff ff call 109c28 <rtems_termios_puts>
109dad: 83 c4 10 add $0x10,%esp
}
109db0: 8d 65 f8 lea -0x8(%ebp),%esp
109db3: 5b pop %ebx
109db4: 5e pop %esi
109db5: c9 leave
109db6: c3 ret
109db7: 90 nop
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
int i;
if (tty->termios.c_oflag & OPOST) {
switch (c) {
109db8: 3c 08 cmp $0x8,%al <== NOT EXECUTED
109dba: 75 c5 jne 109d81 <oproc+0x25> <== NOT EXECUTED
}
tty->column += i;
break;
case '\b':
if (tty->column > 0)
109dbc: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED
109dbf: 85 c0 test %eax,%eax <== NOT EXECUTED
109dc1: 7e dd jle 109da0 <oproc+0x44> <== NOT EXECUTED
tty->column--;
109dc3: 48 dec %eax <== NOT EXECUTED
109dc4: 89 42 28 mov %eax,0x28(%edx) <== NOT EXECUTED
109dc7: eb d7 jmp 109da0 <oproc+0x44> <== NOT EXECUTED
109dc9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
int i;
if (tty->termios.c_oflag & OPOST) {
switch (c) {
case '\n':
if (tty->termios.c_oflag & ONLRET)
109dcc: f6 c1 20 test $0x20,%cl
109dcf: 74 07 je 109dd8 <oproc+0x7c> <== ALWAYS TAKEN
tty->column = 0;
109dd1: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx) <== NOT EXECUTED
if (tty->termios.c_oflag & ONLCR) {
109dd8: 83 e1 04 and $0x4,%ecx
109ddb: 74 c3 je 109da0 <oproc+0x44> <== NEVER TAKEN
rtems_termios_puts ("\r", 1, tty);
109ddd: 56 push %esi
109dde: 52 push %edx
109ddf: 6a 01 push $0x1
109de1: 68 70 18 12 00 push $0x121870
109de6: 89 55 f0 mov %edx,-0x10(%ebp)
109de9: e8 3a fe ff ff call 109c28 <rtems_termios_puts>
tty->column = 0;
109dee: 8b 55 f0 mov -0x10(%ebp),%edx
109df1: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx)
109df8: 83 c4 10 add $0x10,%esp
109dfb: eb a3 jmp 109da0 <oproc+0x44>
109dfd: 8d 76 00 lea 0x0(%esi),%esi
}
break;
case '\r':
if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))
109e00: f6 c1 10 test $0x10,%cl <== NOT EXECUTED
109e03: 74 07 je 109e0c <oproc+0xb0> <== NOT EXECUTED
109e05: 8b 5a 28 mov 0x28(%edx),%ebx <== NOT EXECUTED
109e08: 85 db test %ebx,%ebx <== NOT EXECUTED
109e0a: 74 a4 je 109db0 <oproc+0x54> <== NOT EXECUTED
return;
if (tty->termios.c_oflag & OCRNL) {
109e0c: f6 c1 08 test $0x8,%cl <== NOT EXECUTED
109e0f: 74 09 je 109e1a <oproc+0xbe> <== NOT EXECUTED
c = '\n';
109e11: c6 45 f4 0a movb $0xa,-0xc(%ebp) <== NOT EXECUTED
if (tty->termios.c_oflag & ONLRET)
109e15: 83 e1 20 and $0x20,%ecx <== NOT EXECUTED
109e18: 74 86 je 109da0 <oproc+0x44> <== NOT EXECUTED
tty->column = 0;
break;
}
tty->column = 0;
109e1a: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx) <== NOT EXECUTED
break;
109e21: e9 7a ff ff ff jmp 109da0 <oproc+0x44> <== NOT EXECUTED
109e26: 66 90 xchg %ax,%ax <== NOT EXECUTED
case '\t':
i = 8 - (tty->column & 7);
109e28: 8b 5a 28 mov 0x28(%edx),%ebx
109e2b: 89 de mov %ebx,%esi
109e2d: 83 e6 07 and $0x7,%esi
109e30: b8 08 00 00 00 mov $0x8,%eax
109e35: 29 f0 sub %esi,%eax
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
109e37: 81 e1 00 18 00 00 and $0x1800,%ecx
109e3d: 81 f9 00 18 00 00 cmp $0x1800,%ecx
109e43: 74 37 je 109e7c <oproc+0x120> <== ALWAYS TAKEN
tty->column += i;
rtems_termios_puts ( " ", i, tty);
return;
}
tty->column += i;
109e45: 01 d8 add %ebx,%eax <== NOT EXECUTED
109e47: 89 42 28 mov %eax,0x28(%edx) <== NOT EXECUTED
break;
109e4a: e9 51 ff ff ff jmp 109da0 <oproc+0x44> <== NOT EXECUTED
109e4f: 90 nop <== NOT EXECUTED
tty->column--;
break;
default:
if (tty->termios.c_oflag & OLCUC)
c = toupper(c);
109e50: 8b 0d c4 50 12 00 mov 0x1250c4,%ecx <== NOT EXECUTED
109e56: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
109e59: 0f be 5c 01 01 movsbl 0x1(%ecx,%eax,1),%ebx <== NOT EXECUTED
109e5e: 83 e3 03 and $0x3,%ebx <== NOT EXECUTED
109e61: 83 fb 02 cmp $0x2,%ebx <== NOT EXECUTED
109e64: 74 0e je 109e74 <oproc+0x118> <== NOT EXECUTED
109e66: 89 c3 mov %eax,%ebx <== NOT EXECUTED
109e68: 88 d8 mov %bl,%al <== NOT EXECUTED
109e6a: 88 5d f4 mov %bl,-0xc(%ebp) <== NOT EXECUTED
109e6d: e9 1e ff ff ff jmp 109d90 <oproc+0x34> <== NOT EXECUTED
109e72: 66 90 xchg %ax,%ax <== NOT EXECUTED
109e74: 8d 58 e0 lea -0x20(%eax),%ebx <== NOT EXECUTED
109e77: eb ef jmp 109e68 <oproc+0x10c> <== NOT EXECUTED
109e79: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break;
case '\t':
i = 8 - (tty->column & 7);
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
tty->column += i;
109e7c: 8d 1c 18 lea (%eax,%ebx,1),%ebx
109e7f: 89 5a 28 mov %ebx,0x28(%edx)
rtems_termios_puts ( " ", i, tty);
109e82: 51 push %ecx
109e83: 52 push %edx
109e84: 50 push %eax
109e85: 68 7c 14 12 00 push $0x12147c
109e8a: e8 99 fd ff ff call 109c28 <rtems_termios_puts>
return;
109e8f: 83 c4 10 add $0x10,%esp
109e92: e9 19 ff ff ff jmp 109db0 <oproc+0x54>
0010a50c <pathconf>:
long pathconf(
const char *path,
int name
)
{
10a50c: 55 push %ebp
10a50d: 89 e5 mov %esp,%ebp
10a50f: 56 push %esi
10a510: 53 push %ebx
int status;
int fd;
fd = open( path, O_RDONLY );
10a511: 83 ec 08 sub $0x8,%esp
10a514: 6a 00 push $0x0
10a516: ff 75 08 pushl 0x8(%ebp)
10a519: e8 92 fd ff ff call 10a2b0 <open>
10a51e: 89 c3 mov %eax,%ebx
if ( fd == -1 )
10a520: 83 c4 10 add $0x10,%esp
10a523: 83 f8 ff cmp $0xffffffff,%eax
10a526: 74 24 je 10a54c <pathconf+0x40>
return -1;
status = fpathconf( fd, name );
10a528: 83 ec 08 sub $0x8,%esp
10a52b: ff 75 0c pushl 0xc(%ebp)
10a52e: 50 push %eax
10a52f: e8 80 ec ff ff call 1091b4 <fpathconf>
10a534: 89 c6 mov %eax,%esi
(void) close( fd );
10a536: 89 1c 24 mov %ebx,(%esp)
10a539: e8 9a e7 ff ff call 108cd8 <close>
return status;
10a53e: 83 c4 10 add $0x10,%esp
}
10a541: 89 f0 mov %esi,%eax
10a543: 8d 65 f8 lea -0x8(%ebp),%esp
10a546: 5b pop %ebx
10a547: 5e pop %esi
10a548: c9 leave
10a549: c3 ret
10a54a: 66 90 xchg %ax,%ax
{
int status;
int fd;
fd = open( path, O_RDONLY );
if ( fd == -1 )
10a54c: be ff ff ff ff mov $0xffffffff,%esi
status = fpathconf( fd, name );
(void) close( fd );
return status;
}
10a551: 89 f0 mov %esi,%eax
10a553: 8d 65 f8 lea -0x8(%ebp),%esp
10a556: 5b pop %ebx
10a557: 5e pop %esi
10a558: c9 leave
10a559: c3 ret
00112f5c <pipe_create>:
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
112f5c: 55 push %ebp
112f5d: 89 e5 mov %esp,%ebp
112f5f: 57 push %edi
112f60: 56 push %esi
112f61: 53 push %ebx
112f62: 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)
112f65: 6a 01 push $0x1
112f67: 8d 5d c4 lea -0x3c(%ebp),%ebx
112f6a: 53 push %ebx
112f6b: 6a 07 push $0x7
112f6d: 6a 03 push $0x3
112f6f: 68 25 21 12 00 push $0x122125
112f74: e8 fb 55 ff ff call 108574 <rtems_filesystem_evaluate_path>
112f79: 83 c4 20 add $0x20,%esp
112f7c: 85 c0 test %eax,%eax
112f7e: 0f 85 e0 00 00 00 jne 113064 <pipe_create+0x108> <== ALWAYS TAKEN
return -1;
if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
return -1;
}
else
rtems_filesystem_freenode(&loc);
112f84: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
112f87: 85 c0 test %eax,%eax <== NOT EXECUTED
112f89: 74 10 je 112f9b <pipe_create+0x3f> <== NOT EXECUTED
112f8b: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
112f8e: 85 c0 test %eax,%eax <== NOT EXECUTED
112f90: 74 09 je 112f9b <pipe_create+0x3f> <== NOT EXECUTED
112f92: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
112f95: 53 push %ebx <== NOT EXECUTED
112f96: ff d0 call *%eax <== NOT EXECUTED
112f98: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
112f9b: 8d 5d d9 lea -0x27(%ebp),%ebx
112f9e: be 2a 21 12 00 mov $0x12212a,%esi
112fa3: b9 0a 00 00 00 mov $0xa,%ecx
112fa8: 89 df mov %ebx,%edi
112faa: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
112fac: 0f b7 05 b0 6f 12 00 movzwl 0x126fb0,%eax
112fb3: 8d 50 01 lea 0x1(%eax),%edx
112fb6: 66 89 15 b0 6f 12 00 mov %dx,0x126fb0
112fbd: 51 push %ecx
112fbe: 50 push %eax
112fbf: 68 35 21 12 00 push $0x122135
112fc4: 8d 45 e3 lea -0x1d(%ebp),%eax
112fc7: 50 push %eax
112fc8: e8 b3 17 00 00 call 114780 <sprintf>
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
112fcd: 58 pop %eax
112fce: 5a pop %edx
112fcf: 68 80 01 00 00 push $0x180
112fd4: 53 push %ebx
112fd5: e8 66 07 00 00 call 113740 <mkfifo>
112fda: 83 c4 10 add $0x10,%esp
112fdd: 85 c0 test %eax,%eax
112fdf: 75 6f jne 113050 <pipe_create+0xf4> <== NEVER TAKEN
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);
112fe1: 83 ec 08 sub $0x8,%esp
112fe4: 68 00 40 00 00 push $0x4000
112fe9: 53 push %ebx
112fea: e8 e5 61 ff ff call 1091d4 <open>
112fef: 8b 55 08 mov 0x8(%ebp),%edx
112ff2: 89 02 mov %eax,(%edx)
if (filsdes[0] < 0) {
112ff4: 83 c4 10 add $0x10,%esp
112ff7: 85 c0 test %eax,%eax
112ff9: 0f 88 a1 00 00 00 js 1130a0 <pipe_create+0x144> <== ALWAYS TAKEN
the file node will be deleted after it is closed by all. */
unlink(fifopath);
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
112fff: 3b 05 4c 31 12 00 cmp 0x12314c,%eax <== NOT EXECUTED
113005: 0f 82 85 00 00 00 jb 113090 <pipe_create+0x134> <== NOT EXECUTED
11300b: 31 c0 xor %eax,%eax <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
11300d: 83 60 14 fe andl $0xfffffffe,0x14(%eax) <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
113011: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
113014: 6a 01 push $0x1 <== NOT EXECUTED
113016: 53 push %ebx <== NOT EXECUTED
113017: e8 b8 61 ff ff call 1091d4 <open> <== NOT EXECUTED
11301c: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
11301f: 89 42 04 mov %eax,0x4(%edx) <== NOT EXECUTED
if (filsdes[1] < 0) {
113022: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
113025: 85 c0 test %eax,%eax <== NOT EXECUTED
113027: 0f 88 8b 00 00 00 js 1130b8 <pipe_create+0x15c> <== NOT EXECUTED
11302d: 31 f6 xor %esi,%esi <== NOT EXECUTED
err = errno;
close(filsdes[0]);
}
unlink(fifopath);
11302f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
113032: 53 push %ebx <== NOT EXECUTED
113033: e8 24 07 00 00 call 11375c <unlink> <== NOT EXECUTED
113038: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_set_errno_and_return_minus_one(err);
11303b: e8 00 0e 00 00 call 113e40 <__errno>
113040: 89 30 mov %esi,(%eax)
}
113042: b8 ff ff ff ff mov $0xffffffff,%eax
113047: 8d 65 f4 lea -0xc(%ebp),%esp
11304a: 5b pop %ebx
11304b: 5e pop %esi
11304c: 5f pop %edi
11304d: c9 leave
11304e: c3 ret
11304f: 90 nop
memcpy(fifopath, "/tmp/.fifo", 10);
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
if (errno != EEXIST){
113050: e8 eb 0d 00 00 call 113e40 <__errno> <== NOT EXECUTED
}
unlink(fifopath);
}
rtems_set_errno_and_return_minus_one(err);
}
113055: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
11305a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
11305d: 5b pop %ebx <== NOT EXECUTED
11305e: 5e pop %esi <== NOT EXECUTED
11305f: 5f pop %edi <== NOT EXECUTED
113060: c9 leave <== NOT EXECUTED
113061: c3 ret <== NOT EXECUTED
113062: 66 90 xchg %ax,%ax <== NOT EXECUTED
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)
!= 0) {
if (errno != ENOENT)
113064: e8 d7 0d 00 00 call 113e40 <__errno>
113069: 83 38 02 cmpl $0x2,(%eax)
11306c: 75 e7 jne 113055 <pipe_create+0xf9> <== NEVER TAKEN
return -1;
if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
11306e: 83 ec 08 sub $0x8,%esp
113071: 68 ff 03 00 00 push $0x3ff
113076: 68 25 21 12 00 push $0x122125
11307b: e8 fc 58 ff ff call 10897c <mkdir>
113080: 83 c4 10 add $0x10,%esp
113083: 85 c0 test %eax,%eax
113085: 0f 84 10 ff ff ff je 112f9b <pipe_create+0x3f> <== ALWAYS TAKEN
11308b: eb c8 jmp 113055 <pipe_create+0xf9> <== NOT EXECUTED
11308d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
the file node will be deleted after it is closed by all. */
unlink(fifopath);
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
113090: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED
113093: 03 05 e0 71 12 00 add 0x1271e0,%eax <== NOT EXECUTED
113099: e9 6f ff ff ff jmp 11300d <pipe_create+0xb1> <== NOT EXECUTED
11309e: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
/* Non-blocking open to avoid waiting for writers */
filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK);
if (filsdes[0] < 0) {
err = errno;
1130a0: e8 9b 0d 00 00 call 113e40 <__errno>
1130a5: 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);
1130a7: 83 ec 0c sub $0xc,%esp
1130aa: 53 push %ebx
1130ab: e8 ac 06 00 00 call 11375c <unlink>
1130b0: 83 c4 10 add $0x10,%esp
1130b3: eb 86 jmp 11303b <pipe_create+0xdf>
1130b5: 8d 76 00 lea 0x0(%esi),%esi
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
filsdes[1] = open(fifopath, O_WRONLY);
if (filsdes[1] < 0) {
err = errno;
1130b8: e8 83 0d 00 00 call 113e40 <__errno> <== NOT EXECUTED
1130bd: 8b 30 mov (%eax),%esi <== NOT EXECUTED
close(filsdes[0]);
1130bf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1130c2: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1130c5: ff 30 pushl (%eax) <== NOT EXECUTED
1130c7: e8 dc d9 ff ff call 110aa8 <close> <== NOT EXECUTED
1130cc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1130cf: e9 5b ff ff ff jmp 11302f <pipe_create+0xd3> <== NOT EXECUTED
0010f1a0 <pipe_ioctl>:
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
10f1a0: 55 push %ebp <== NOT EXECUTED
10f1a1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10f1a3: 56 push %esi <== NOT EXECUTED
10f1a4: 53 push %ebx <== NOT EXECUTED
10f1a5: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
10f1a8: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
if (cmd == FIONREAD) {
10f1ab: 81 7d 0c 7f 66 04 40 cmpl $0x4004667f,0xc(%ebp) <== NOT EXECUTED
10f1b2: 74 0c je 10f1c0 <pipe_ioctl+0x20> <== NOT EXECUTED
10f1b4: b8 ea ff ff ff mov $0xffffffea,%eax <== NOT EXECUTED
PIPE_UNLOCK(pipe);
return 0;
}
return -EINVAL;
}
10f1b9: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10f1bc: 5b pop %ebx <== NOT EXECUTED
10f1bd: 5e pop %esi <== NOT EXECUTED
10f1be: c9 leave <== NOT EXECUTED
10f1bf: c3 ret <== NOT EXECUTED
void *buffer,
rtems_libio_t *iop
)
{
if (cmd == FIONREAD) {
if (buffer == NULL)
10f1c0: 85 db test %ebx,%ebx <== NOT EXECUTED
10f1c2: 75 07 jne 10f1cb <pipe_ioctl+0x2b> <== NOT EXECUTED
10f1c4: b8 f2 ff ff ff mov $0xfffffff2,%eax <== NOT EXECUTED
10f1c9: eb ee jmp 10f1b9 <pipe_ioctl+0x19> <== NOT EXECUTED
return -EFAULT;
if (! PIPE_LOCK(pipe))
10f1cb: 52 push %edx <== NOT EXECUTED
10f1cc: 6a 00 push $0x0 <== NOT EXECUTED
10f1ce: 6a 00 push $0x0 <== NOT EXECUTED
10f1d0: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED
10f1d3: e8 0c cb ff ff call 10bce4 <rtems_semaphore_obtain><== NOT EXECUTED
10f1d8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f1db: 85 c0 test %eax,%eax <== NOT EXECUTED
10f1dd: 74 07 je 10f1e6 <pipe_ioctl+0x46> <== NOT EXECUTED
10f1df: b8 fc ff ff ff mov $0xfffffffc,%eax <== NOT EXECUTED
10f1e4: eb d3 jmp 10f1b9 <pipe_ioctl+0x19> <== NOT EXECUTED
return -EINTR;
/* Return length of pipe */
*(unsigned int *)buffer = pipe->Length;
10f1e6: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
10f1e9: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
10f1eb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f1ee: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED
10f1f1: e8 ea cb ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
10f1f6: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
10f1f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f1fb: eb bc jmp 10f1b9 <pipe_ioctl+0x19> <== NOT EXECUTED
0010f140 <pipe_lseek>:
pipe_control_t *pipe,
off_t offset,
int whence,
rtems_libio_t *iop
)
{
10f140: 55 push %ebp <== NOT EXECUTED
10f141: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/* Seek on pipe is not supported */
return -ESPIPE;
}
10f143: b8 e3 ff ff ff mov $0xffffffe3,%eax <== NOT EXECUTED
10f148: c9 leave <== NOT EXECUTED
10f149: c3 ret <== NOT EXECUTED
0010f3e4 <pipe_read>:
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
10f3e4: 55 push %ebp <== NOT EXECUTED
10f3e5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10f3e7: 57 push %edi <== NOT EXECUTED
10f3e8: 56 push %esi <== NOT EXECUTED
10f3e9: 53 push %ebx <== NOT EXECUTED
10f3ea: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
10f3ed: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
10f3f0: 6a 00 push $0x0 <== NOT EXECUTED
10f3f2: 6a 00 push $0x0 <== NOT EXECUTED
10f3f4: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f3f7: e8 e8 c8 ff ff call 10bce4 <rtems_semaphore_obtain><== NOT EXECUTED
10f3fc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f3ff: 85 c0 test %eax,%eax <== NOT EXECUTED
10f401: 0f 85 b1 00 00 00 jne 10f4b8 <pipe_read+0xd4> <== NOT EXECUTED
return -EINTR;
while (read < count) {
10f407: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
10f40a: 85 ff test %edi,%edi <== NOT EXECUTED
10f40c: 0f 84 82 01 00 00 je 10f594 <pipe_read+0x1b0> <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
if (ret != 0)
10f412: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
10f419: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
10f420: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
10f423: 85 d2 test %edx,%edx <== NOT EXECUTED
10f425: 0f 85 a1 00 00 00 jne 10f4cc <pipe_read+0xe8> <== NOT EXECUTED
/* Not an error */
if (pipe->Writers == 0)
10f42b: 8b 73 14 mov 0x14(%ebx),%esi <== NOT EXECUTED
10f42e: 85 f6 test %esi,%esi <== NOT EXECUTED
10f430: 0f 84 06 01 00 00 je 10f53c <pipe_read+0x158> <== NOT EXECUTED
goto out_locked;
if (LIBIO_NODELAY(iop)) {
10f436: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
10f439: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED
10f43d: 0f 85 01 01 00 00 jne 10f544 <pipe_read+0x160> <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
10f443: ff 43 18 incl 0x18(%ebx) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
10f446: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f449: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f44c: e8 8f c9 ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
10f451: 5a pop %edx <== NOT EXECUTED
10f452: 59 pop %ecx <== NOT EXECUTED
10f453: 6a 00 push $0x0 <== NOT EXECUTED
10f455: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10f458: e8 6b 1e 00 00 call 1112c8 <rtems_barrier_wait> <== NOT EXECUTED
10f45d: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10f460: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
10f463: 19 f6 sbb %esi,%esi <== NOT EXECUTED
10f465: f7 d6 not %esi <== NOT EXECUTED
10f467: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
10f46a: 6a 00 push $0x0 <== NOT EXECUTED
10f46c: 6a 00 push $0x0 <== NOT EXECUTED
10f46e: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f471: e8 6e c8 ff ff call 10bce4 <rtems_semaphore_obtain><== NOT EXECUTED
10f476: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f479: 85 c0 test %eax,%eax <== NOT EXECUTED
10f47b: 0f 85 cf 00 00 00 jne 10f550 <pipe_read+0x16c> <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
10f481: ff 4b 18 decl 0x18(%ebx) <== NOT EXECUTED
if (ret != 0)
10f484: 85 f6 test %esi,%esi <== NOT EXECUTED
10f486: 74 98 je 10f420 <pipe_read+0x3c> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
read += chunk;
}
out_locked:
PIPE_UNLOCK(pipe);
10f488: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f48b: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f48e: e8 4d c9 ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
10f493: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
out_nolock:
if (read > 0)
10f496: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
10f499: 85 ff test %edi,%edi <== NOT EXECUTED
10f49b: 7e 0b jle 10f4a8 <pipe_read+0xc4> <== NOT EXECUTED
return read;
return ret;
}
10f49d: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
10f4a0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10f4a3: 5b pop %ebx <== NOT EXECUTED
10f4a4: 5e pop %esi <== NOT EXECUTED
10f4a5: 5f pop %edi <== NOT EXECUTED
10f4a6: c9 leave <== NOT EXECUTED
10f4a7: c3 ret <== NOT EXECUTED
out_locked:
PIPE_UNLOCK(pipe);
out_nolock:
if (read > 0)
10f4a8: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
return read;
return ret;
}
10f4ab: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
10f4ae: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10f4b1: 5b pop %ebx <== NOT EXECUTED
10f4b2: 5e pop %esi <== NOT EXECUTED
10f4b3: 5f pop %edi <== NOT EXECUTED
10f4b4: c9 leave <== NOT EXECUTED
10f4b5: c3 ret <== NOT EXECUTED
10f4b6: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_libio_t *iop
)
{
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
10f4b8: c7 45 d4 fc ff ff ff movl $0xfffffffc,-0x2c(%ebp) <== NOT EXECUTED
out_nolock:
if (read > 0)
return read;
return ret;
}
10f4bf: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
10f4c2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10f4c5: 5b pop %ebx <== NOT EXECUTED
10f4c6: 5e pop %esi <== NOT EXECUTED
10f4c7: 5f pop %edi <== NOT EXECUTED
10f4c8: c9 leave <== NOT EXECUTED
10f4c9: c3 ret <== NOT EXECUTED
10f4ca: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (ret != 0)
goto out_locked;
}
/* Read chunk bytes */
chunk = MIN(count - read, pipe->Length);
10f4cc: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
10f4cf: 2b 45 d0 sub -0x30(%ebp),%eax <== NOT EXECUTED
10f4d2: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
10f4d5: 39 c2 cmp %eax,%edx <== NOT EXECUTED
10f4d7: 76 03 jbe 10f4dc <pipe_read+0xf8> <== NOT EXECUTED
10f4d9: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
chunk1 = pipe->Size - pipe->Start;
10f4dc: 8b 73 08 mov 0x8(%ebx),%esi <== NOT EXECUTED
10f4df: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
10f4e2: 29 f0 sub %esi,%eax <== NOT EXECUTED
if (chunk > chunk1) {
10f4e4: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED
10f4e7: 7f 71 jg 10f55a <pipe_read+0x176> <== NOT EXECUTED
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
10f4e9: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
10f4ec: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED
10f4ef: 03 33 add (%ebx),%esi <== NOT EXECUTED
10f4f1: 89 c7 mov %eax,%edi <== NOT EXECUTED
10f4f3: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
10f4f6: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
pipe->Start += chunk;
10f4f8: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
10f4fb: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED
pipe->Start %= pipe->Size;
10f4fe: 31 d2 xor %edx,%edx <== NOT EXECUTED
10f500: f7 73 04 divl 0x4(%ebx) <== NOT EXECUTED
10f503: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
pipe->Length -= chunk;
10f506: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
10f509: 2b 45 cc sub -0x34(%ebp),%eax <== NOT EXECUTED
10f50c: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
10f50f: 85 c0 test %eax,%eax <== NOT EXECUTED
10f511: 75 07 jne 10f51a <pipe_read+0x136> <== NOT EXECUTED
pipe->Start = 0;
10f513: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
if (pipe->waitingWriters > 0)
10f51a: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
10f51d: 85 c0 test %eax,%eax <== NOT EXECUTED
10f51f: 75 5f jne 10f580 <pipe_read+0x19c> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
read += chunk;
10f521: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
10f524: 01 45 d4 add %eax,-0x2c(%ebp) <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
10f527: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
10f52a: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
10f52d: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
10f530: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED
10f533: 0f 82 e7 fe ff ff jb 10f420 <pipe_read+0x3c> <== NOT EXECUTED
10f539: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
10f53c: 31 f6 xor %esi,%esi <== NOT EXECUTED
10f53e: e9 45 ff ff ff jmp 10f488 <pipe_read+0xa4> <== NOT EXECUTED
10f543: 90 nop <== NOT EXECUTED
while (PIPE_EMPTY(pipe)) {
/* Not an error */
if (pipe->Writers == 0)
goto out_locked;
if (LIBIO_NODELAY(iop)) {
10f544: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED
10f549: e9 3a ff ff ff jmp 10f488 <pipe_read+0xa4> <== NOT EXECUTED
10f54e: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
10f550: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED
10f555: e9 3c ff ff ff jmp 10f496 <pipe_read+0xb2> <== NOT EXECUTED
/* Read chunk bytes */
chunk = MIN(count - read, pipe->Length);
chunk1 = pipe->Size - pipe->Start;
if (chunk > chunk1) {
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
10f55a: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
10f55d: 03 55 d0 add -0x30(%ebp),%edx <== NOT EXECUTED
10f560: 03 33 add (%ebx),%esi <== NOT EXECUTED
10f562: 89 d7 mov %edx,%edi <== NOT EXECUTED
10f564: 89 c1 mov %eax,%ecx <== NOT EXECUTED
10f566: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
10f568: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
10f56b: 01 c2 add %eax,%edx <== NOT EXECUTED
10f56d: 03 55 0c add 0xc(%ebp),%edx <== NOT EXECUTED
10f570: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
10f573: 29 c1 sub %eax,%ecx <== NOT EXECUTED
10f575: 8b 33 mov (%ebx),%esi <== NOT EXECUTED
10f577: 89 d7 mov %edx,%edi <== NOT EXECUTED
10f579: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
10f57b: e9 78 ff ff ff jmp 10f4f8 <pipe_read+0x114> <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
pipe->Start = 0;
if (pipe->waitingWriters > 0)
PIPE_WAKEUPWRITERS(pipe);
10f580: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10f583: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10f586: 50 push %eax <== NOT EXECUTED
10f587: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10f58a: e8 d5 1c 00 00 call 111264 <rtems_barrier_release> <== NOT EXECUTED
10f58f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f592: eb 8d jmp 10f521 <pipe_read+0x13d> <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
10f594: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
10f59b: 31 f6 xor %esi,%esi <== NOT EXECUTED
10f59d: e9 e6 fe ff ff jmp 10f488 <pipe_read+0xa4> <== NOT EXECUTED
0010f5a4 <pipe_release>:
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
10f5a4: 55 push %ebp <== NOT EXECUTED
10f5a5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10f5a7: 57 push %edi <== NOT EXECUTED
10f5a8: 56 push %esi <== NOT EXECUTED
10f5a9: 53 push %ebx <== NOT EXECUTED
10f5aa: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
10f5ad: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
10f5b0: 8b 1f mov (%edi),%ebx <== NOT EXECUTED
uint32_t mode;
rtems_status_code sc;
sc = rtems_semaphore_obtain(pipe->Semaphore,
10f5b2: 6a 00 push $0x0 <== NOT EXECUTED
10f5b4: 6a 00 push $0x0 <== NOT EXECUTED
10f5b6: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f5b9: e8 26 c7 ff ff call 10bce4 <rtems_semaphore_obtain><== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not released! */
if(sc != RTEMS_SUCCESSFUL)
10f5be: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f5c1: 85 c0 test %eax,%eax <== NOT EXECUTED
10f5c3: 0f 85 e3 00 00 00 jne 10f6ac <pipe_release+0x108> <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
mode = LIBIO_ACCMODE(iop);
10f5c9: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
10f5cc: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED
10f5cf: 89 c6 mov %eax,%esi <== NOT EXECUTED
10f5d1: 83 e6 06 and $0x6,%esi <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
10f5d4: a8 02 test $0x2,%al <== NOT EXECUTED
10f5d6: 74 03 je 10f5db <pipe_release+0x37> <== NOT EXECUTED
pipe->Readers --;
10f5d8: ff 4b 10 decl 0x10(%ebx) <== NOT EXECUTED
if (mode & LIBIO_FLAGS_WRITE)
10f5db: f7 c6 04 00 00 00 test $0x4,%esi <== NOT EXECUTED
10f5e1: 75 69 jne 10f64c <pipe_release+0xa8> <== NOT EXECUTED
pipe->Writers --;
sc = rtems_semaphore_obtain(rtems_pipe_semaphore,
10f5e3: 51 push %ecx <== NOT EXECUTED
10f5e4: 6a 00 push $0x0 <== NOT EXECUTED
10f5e6: 6a 00 push $0x0 <== NOT EXECUTED
10f5e8: ff 35 a8 6f 12 00 pushl 0x126fa8 <== NOT EXECUTED
10f5ee: e8 f1 c6 ff ff call 10bce4 <rtems_semaphore_obtain><== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not freed and pipep not set to NULL! */
if(sc != RTEMS_SUCCESSFUL)
10f5f3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f5f6: 85 c0 test %eax,%eax <== NOT EXECUTED
10f5f8: 0f 85 ae 00 00 00 jne 10f6ac <pipe_release+0x108> <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
PIPE_UNLOCK(pipe);
10f5fe: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f601: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f604: e8 d7 c7 ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
if (pipe->Readers == 0 && pipe->Writers == 0) {
10f609: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f60c: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED
10f60f: 85 d2 test %edx,%edx <== NOT EXECUTED
10f611: 74 41 je 10f654 <pipe_release+0xb0> <== NOT EXECUTED
*pipep = NULL;
}
else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
10f613: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
10f616: 85 c0 test %eax,%eax <== NOT EXECUTED
10f618: 75 17 jne 10f631 <pipe_release+0x8d> <== NOT EXECUTED
10f61a: 83 fe 02 cmp $0x2,%esi <== NOT EXECUTED
10f61d: 74 12 je 10f631 <pipe_release+0x8d> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
10f61f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10f622: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10f625: 50 push %eax <== NOT EXECUTED
10f626: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10f629: e8 36 1c 00 00 call 111264 <rtems_barrier_release> <== NOT EXECUTED
10f62e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_semaphore_release(rtems_pipe_semaphore);
10f631: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f634: ff 35 a8 6f 12 00 pushl 0x126fa8 <== NOT EXECUTED
10f63a: e8 a1 c7 ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return -errno;
#endif
return 0;
}
10f63f: 31 c0 xor %eax,%eax <== NOT EXECUTED
10f641: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10f644: 5b pop %ebx <== NOT EXECUTED
10f645: 5e pop %esi <== NOT EXECUTED
10f646: 5f pop %edi <== NOT EXECUTED
10f647: c9 leave <== NOT EXECUTED
10f648: c3 ret <== NOT EXECUTED
10f649: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
mode = LIBIO_ACCMODE(iop);
if (mode & LIBIO_FLAGS_READ)
pipe->Readers --;
if (mode & LIBIO_FLAGS_WRITE)
pipe->Writers --;
10f64c: ff 4b 14 decl 0x14(%ebx) <== NOT EXECUTED
10f64f: eb 92 jmp 10f5e3 <pipe_release+0x3f> <== NOT EXECUTED
10f651: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if(sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(sc);
PIPE_UNLOCK(pipe);
if (pipe->Readers == 0 && pipe->Writers == 0) {
10f654: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
10f657: 85 c0 test %eax,%eax <== NOT EXECUTED
10f659: 74 19 je 10f674 <pipe_release+0xd0> <== NOT EXECUTED
delfile = TRUE;
#endif
pipe_free(pipe);
*pipep = NULL;
}
else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
10f65b: 83 fe 04 cmp $0x4,%esi <== NOT EXECUTED
10f65e: 74 d1 je 10f631 <pipe_release+0x8d> <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
10f660: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10f663: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10f666: 50 push %eax <== NOT EXECUTED
10f667: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10f66a: e8 f5 1b 00 00 call 111264 <rtems_barrier_release> <== NOT EXECUTED
delfile = TRUE;
#endif
pipe_free(pipe);
*pipep = NULL;
}
else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
10f66f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f672: eb bd jmp 10f631 <pipe_release+0x8d> <== NOT EXECUTED
/* Called with rtems_pipe_semaphore held. */
static inline void pipe_free(
pipe_control_t *pipe
)
{
rtems_barrier_delete(pipe->readBarrier);
10f674: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f677: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10f67a: e8 7d 1b 00 00 call 1111fc <rtems_barrier_delete> <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
10f67f: 5e pop %esi <== NOT EXECUTED
10f680: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10f683: e8 74 1b 00 00 call 1111fc <rtems_barrier_delete> <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
10f688: 59 pop %ecx <== NOT EXECUTED
10f689: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f68c: e8 af c5 ff ff call 10bc40 <rtems_semaphore_delete><== NOT EXECUTED
free(pipe->Buffer);
10f691: 5a pop %edx <== NOT EXECUTED
10f692: ff 33 pushl (%ebx) <== NOT EXECUTED
10f694: e8 4b 8f ff ff call 1085e4 <free> <== NOT EXECUTED
free(pipe);
10f699: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
10f69c: e8 43 8f ff ff call 1085e4 <free> <== NOT EXECUTED
/* To delete an anonymous pipe file when all users closed it */
if (pipe->Anonymous)
delfile = TRUE;
#endif
pipe_free(pipe);
*pipep = NULL;
10f6a1: 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) {
10f6a7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f6aa: eb 85 jmp 10f631 <pipe_release+0x8d> <== NOT EXECUTED
sc = rtems_semaphore_obtain(rtems_pipe_semaphore,
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not freed and pipep not set to NULL! */
if(sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(sc);
10f6ac: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f6af: 50 push %eax <== NOT EXECUTED
10f6b0: e8 3f cc ff ff call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
0010f200 <pipe_write>:
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
10f200: 55 push %ebp <== NOT EXECUTED
10f201: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10f203: 57 push %edi <== NOT EXECUTED
10f204: 56 push %esi <== NOT EXECUTED
10f205: 53 push %ebx <== NOT EXECUTED
10f206: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
10f209: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
10f20c: 85 f6 test %esi,%esi <== NOT EXECUTED
10f20e: 75 0c jne 10f21c <pipe_write+0x1c> <== NOT EXECUTED
10f210: 31 db xor %ebx,%ebx <== NOT EXECUTED
#endif
if (written > 0)
return written;
return ret;
}
10f212: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10f214: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10f217: 5b pop %ebx <== NOT EXECUTED
10f218: 5e pop %esi <== NOT EXECUTED
10f219: 5f pop %edi <== NOT EXECUTED
10f21a: c9 leave <== NOT EXECUTED
10f21b: c3 ret <== NOT EXECUTED
/* Write nothing */
if (count == 0)
return 0;
if (! PIPE_LOCK(pipe))
10f21c: 53 push %ebx <== NOT EXECUTED
10f21d: 6a 00 push $0x0 <== NOT EXECUTED
10f21f: 6a 00 push $0x0 <== NOT EXECUTED
10f221: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10f224: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED
10f227: e8 b8 ca ff ff call 10bce4 <rtems_semaphore_obtain><== NOT EXECUTED
10f22c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f22f: 85 c0 test %eax,%eax <== NOT EXECUTED
10f231: 0f 85 1d 01 00 00 jne 10f354 <pipe_write+0x154> <== NOT EXECUTED
return -EINTR;
if (pipe->Readers == 0) {
10f237: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10f23a: 8b 48 10 mov 0x10(%eax),%ecx <== NOT EXECUTED
10f23d: 85 c9 test %ecx,%ecx <== NOT EXECUTED
10f23f: 0f 84 4b 01 00 00 je 10f390 <pipe_write+0x190> <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
10f245: 8b 48 04 mov 0x4(%eax),%ecx <== NOT EXECUTED
10f248: 39 4d 10 cmp %ecx,0x10(%ebp) <== NOT EXECUTED
10f24b: 0f 87 35 01 00 00 ja 10f386 <pipe_write+0x186> <== NOT EXECUTED
10f251: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
}
pipe->waitingWriters --;
if (ret != 0)
goto out_locked;
if (pipe->Readers == 0) {
10f254: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
10f25b: 31 db xor %ebx,%ebx <== NOT EXECUTED
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
pipe->Length += chunk;
if (pipe->waitingReaders > 0)
PIPE_WAKEUPREADERS(pipe);
10f25d: 89 5d d4 mov %ebx,-0x2c(%ebp) <== NOT EXECUTED
10f260: 8b 5d 08 mov 0x8(%ebp),%ebx <== 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) {
10f263: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
10f266: 89 ca mov %ecx,%edx <== NOT EXECUTED
10f268: 29 c2 sub %eax,%edx <== NOT EXECUTED
10f26a: 39 fa cmp %edi,%edx <== NOT EXECUTED
10f26c: 73 6f jae 10f2dd <pipe_write+0xdd> <== NOT EXECUTED
if (LIBIO_NODELAY(iop)) {
10f26e: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
10f271: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED
10f275: 0f 85 28 01 00 00 jne 10f3a3 <pipe_write+0x1a3> <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
10f27b: ff 43 1c incl 0x1c(%ebx) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
10f27e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f281: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f284: e8 57 cb ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
10f289: 58 pop %eax <== NOT EXECUTED
10f28a: 5a pop %edx <== NOT EXECUTED
10f28b: 6a 00 push $0x0 <== NOT EXECUTED
10f28d: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
10f290: e8 33 20 00 00 call 1112c8 <rtems_barrier_wait> <== NOT EXECUTED
10f295: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10f298: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
10f29b: 19 f6 sbb %esi,%esi <== NOT EXECUTED
10f29d: f7 d6 not %esi <== NOT EXECUTED
10f29f: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
10f2a2: 6a 00 push $0x0 <== NOT EXECUTED
10f2a4: 6a 00 push $0x0 <== NOT EXECUTED
10f2a6: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
10f2a9: e8 36 ca ff ff call 10bce4 <rtems_semaphore_obtain><== NOT EXECUTED
10f2ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f2b1: 85 c0 test %eax,%eax <== NOT EXECUTED
10f2b3: 0f 85 e0 00 00 00 jne 10f399 <pipe_write+0x199> <== NOT EXECUTED
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
10f2b9: ff 4b 1c decl 0x1c(%ebx) <== NOT EXECUTED
if (ret != 0)
10f2bc: 85 f6 test %esi,%esi <== NOT EXECUTED
10f2be: 0f 85 e9 00 00 00 jne 10f3ad <pipe_write+0x1ad> <== NOT EXECUTED
goto out_locked;
if (pipe->Readers == 0) {
10f2c4: 8b 73 10 mov 0x10(%ebx),%esi <== NOT EXECUTED
10f2c7: 85 f6 test %esi,%esi <== NOT EXECUTED
10f2c9: 0f 84 8f 00 00 00 je 10f35e <pipe_write+0x15e> <== NOT EXECUTED
10f2cf: 8b 4b 04 mov 0x4(%ebx),%ecx <== 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) {
10f2d2: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
10f2d5: 89 ca mov %ecx,%edx <== NOT EXECUTED
10f2d7: 29 c2 sub %eax,%edx <== NOT EXECUTED
10f2d9: 39 fa cmp %edi,%edx <== NOT EXECUTED
10f2db: 72 91 jb 10f26e <pipe_write+0x6e> <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
}
chunk = MIN(count - written, PIPE_SPACE(pipe));
10f2dd: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
10f2e0: 2b 75 d0 sub -0x30(%ebp),%esi <== NOT EXECUTED
10f2e3: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
10f2e6: 39 f2 cmp %esi,%edx <== NOT EXECUTED
10f2e8: 76 03 jbe 10f2ed <pipe_write+0xed> <== NOT EXECUTED
10f2ea: 89 75 cc mov %esi,-0x34(%ebp) <== NOT EXECUTED
chunk1 = pipe->Size - PIPE_WSTART(pipe);
10f2ed: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED
10f2f0: 31 d2 xor %edx,%edx <== NOT EXECUTED
10f2f2: f7 f1 div %ecx <== NOT EXECUTED
10f2f4: 89 c8 mov %ecx,%eax <== NOT EXECUTED
10f2f6: 29 d0 sub %edx,%eax <== NOT EXECUTED
if (chunk > chunk1) {
10f2f8: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED
10f2fb: 0f 8e b1 00 00 00 jle 10f3b2 <pipe_write+0x1b2> <== NOT EXECUTED
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
10f301: 03 13 add (%ebx),%edx <== NOT EXECUTED
10f303: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
10f306: 03 75 d0 add -0x30(%ebp),%esi <== NOT EXECUTED
10f309: 89 d7 mov %edx,%edi <== NOT EXECUTED
10f30b: 89 c1 mov %eax,%ecx <== NOT EXECUTED
10f30d: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
10f30f: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
10f311: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
10f314: 29 c1 sub %eax,%ecx <== NOT EXECUTED
10f316: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED
10f319: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
10f31c: 01 c6 add %eax,%esi <== NOT EXECUTED
10f31e: 89 d7 mov %edx,%edi <== NOT EXECUTED
10f320: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
pipe->Length += chunk;
10f322: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
10f325: 01 43 0c add %eax,0xc(%ebx) <== NOT EXECUTED
if (pipe->waitingReaders > 0)
10f328: 83 7b 18 00 cmpl $0x0,0x18(%ebx) <== NOT EXECUTED
10f32c: 0f 85 94 00 00 00 jne 10f3c6 <pipe_write+0x1c6> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
written += chunk;
10f332: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
10f335: 01 45 d4 add %eax,-0x2c(%ebp) <== NOT EXECUTED
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
10f338: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
10f33b: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
10f33e: 39 45 10 cmp %eax,0x10(%ebp) <== NOT EXECUTED
10f341: 0f 86 95 00 00 00 jbe 10f3dc <pipe_write+0x1dc> <== NOT EXECUTED
10f347: 8b 4b 04 mov 0x4(%ebx),%ecx <== NOT EXECUTED
10f34a: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
10f34f: e9 0f ff ff ff jmp 10f263 <pipe_write+0x63> <== NOT EXECUTED
/* Write nothing */
if (count == 0)
return 0;
if (! PIPE_LOCK(pipe))
10f354: bb fc ff ff ff mov $0xfffffffc,%ebx <== NOT EXECUTED
10f359: e9 b4 fe ff ff jmp 10f212 <pipe_write+0x12> <== NOT EXECUTED
10f35e: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
}
pipe->waitingWriters --;
if (ret != 0)
goto out_locked;
if (pipe->Readers == 0) {
10f361: be e0 ff ff ff mov $0xffffffe0,%esi <== NOT EXECUTED
/* Write of more than PIPE_BUF bytes can be interleaved */
chunk = 1;
}
out_locked:
PIPE_UNLOCK(pipe);
10f366: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f369: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10f36c: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED
10f36f: e8 6c ca ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
10f374: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/* Signal SIGPIPE */
if (ret == -EPIPE)
kill(getpid(), SIGPIPE);
#endif
if (written > 0)
10f377: 85 db test %ebx,%ebx <== NOT EXECUTED
10f379: 0f 8f 93 fe ff ff jg 10f212 <pipe_write+0x12> <== NOT EXECUTED
10f37f: 89 f3 mov %esi,%ebx <== NOT EXECUTED
10f381: e9 8c fe ff ff jmp 10f212 <pipe_write+0x12> <== NOT EXECUTED
}
pipe->waitingWriters --;
if (ret != 0)
goto out_locked;
if (pipe->Readers == 0) {
10f386: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
10f38b: e9 c4 fe ff ff jmp 10f254 <pipe_write+0x54> <== NOT EXECUTED
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
10f390: be e0 ff ff ff mov $0xffffffe0,%esi <== NOT EXECUTED
10f395: 31 db xor %ebx,%ebx <== NOT EXECUTED
10f397: eb cd jmp 10f366 <pipe_write+0x166> <== NOT EXECUTED
10f399: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
10f39c: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED
10f3a1: eb d4 jmp 10f377 <pipe_write+0x177> <== NOT EXECUTED
10f3a3: 8b 5d d4 mov -0x2c(%ebp),%ebx <== 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) {
if (LIBIO_NODELAY(iop)) {
10f3a6: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED
10f3ab: eb b9 jmp 10f366 <pipe_write+0x166> <== NOT EXECUTED
10f3ad: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
10f3b0: eb b4 jmp 10f366 <pipe_write+0x166> <== NOT EXECUTED
if (chunk > chunk1) {
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
10f3b2: 03 13 add (%ebx),%edx <== NOT EXECUTED
10f3b4: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
10f3b7: 03 75 d0 add -0x30(%ebp),%esi <== NOT EXECUTED
10f3ba: 89 d7 mov %edx,%edi <== NOT EXECUTED
10f3bc: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
10f3bf: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
10f3c1: e9 5c ff ff ff jmp 10f322 <pipe_write+0x122> <== NOT EXECUTED
pipe->Length += chunk;
if (pipe->waitingReaders > 0)
PIPE_WAKEUPREADERS(pipe);
10f3c6: 51 push %ecx <== NOT EXECUTED
10f3c7: 51 push %ecx <== NOT EXECUTED
10f3c8: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10f3cb: 50 push %eax <== NOT EXECUTED
10f3cc: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
10f3cf: e8 90 1e 00 00 call 111264 <rtems_barrier_release> <== NOT EXECUTED
10f3d4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10f3d7: e9 56 ff ff ff jmp 10f332 <pipe_write+0x132> <== NOT EXECUTED
10f3dc: 89 c3 mov %eax,%ebx <== NOT EXECUTED
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
10f3de: 31 f6 xor %esi,%esi <== NOT EXECUTED
10f3e0: eb 84 jmp 10f366 <pipe_write+0x166> <== NOT EXECUTED
0010be10 <posix_memalign>:
int posix_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
10be10: 55 push %ebp
10be11: 89 e5 mov %esp,%ebp
10be13: 53 push %ebx
10be14: 83 ec 04 sub $0x4,%esp
10be17: 8b 45 0c mov 0xc(%ebp),%eax
/*
* Update call statistics
*/
MSBUMP(memalign_calls, 1);
10be1a: ff 05 08 db 12 00 incl 0x12db08
if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
10be20: 8d 50 ff lea -0x1(%eax),%edx
10be23: 85 c2 test %eax,%edx
10be25: 75 05 jne 10be2c <posix_memalign+0x1c> <== NEVER TAKEN
10be27: 83 f8 03 cmp $0x3,%eax
10be2a: 77 0c ja 10be38 <posix_memalign+0x28>
/*
* rtems_memalign does all of the error checking work EXCEPT
* for adding restrictionso on the alignment.
*/
return rtems_memalign( pointer, alignment, size );
}
10be2c: b8 16 00 00 00 mov $0x16,%eax
10be31: 5a pop %edx
10be32: 5b pop %ebx
10be33: c9 leave
10be34: c3 ret
10be35: 8d 76 00 lea 0x0(%esi),%esi
10be38: 59 pop %ecx
10be39: 5b pop %ebx
10be3a: c9 leave
/*
* rtems_memalign does all of the error checking work EXCEPT
* for adding restrictionso on the alignment.
*/
return rtems_memalign( pointer, alignment, size );
10be3b: e9 20 01 00 00 jmp 10bf60 <rtems_memalign>
001094e8 <putk>:
* putk
*
* Kernel putk (e.g. puts) function requiring minimal infrastrure.
*/
void putk(const char *s)
{
1094e8: 55 push %ebp
1094e9: 89 e5 mov %esp,%ebp
1094eb: 53 push %ebx
1094ec: 83 ec 04 sub $0x4,%esp
1094ef: 8b 5d 08 mov 0x8(%ebp),%ebx
const char *p = s;
for (p=s ; *p ; p++ )
1094f2: 8a 03 mov (%ebx),%al
1094f4: 84 c0 test %al,%al
1094f6: 74 17 je 10950f <putk+0x27> <== NEVER TAKEN
BSP_output_char(*p);
1094f8: 83 ec 0c sub $0xc,%esp
1094fb: 0f be c0 movsbl %al,%eax
1094fe: 50 push %eax
1094ff: ff 15 e4 42 12 00 call *0x1242e4
*/
void putk(const char *s)
{
const char *p = s;
for (p=s ; *p ; p++ )
109505: 43 inc %ebx
109506: 8a 03 mov (%ebx),%al
109508: 83 c4 10 add $0x10,%esp
10950b: 84 c0 test %al,%al
10950d: 75 e9 jne 1094f8 <putk+0x10>
BSP_output_char(*p);
BSP_output_char('\n');
10950f: c7 45 08 0a 00 00 00 movl $0xa,0x8(%ebp)
109516: a1 e4 42 12 00 mov 0x1242e4,%eax
}
10951b: 8b 5d fc mov -0x4(%ebp),%ebx
10951e: c9 leave
{
const char *p = s;
for (p=s ; *p ; p++ )
BSP_output_char(*p);
BSP_output_char('\n');
10951f: ff e0 jmp *%eax
001105ec <ramdisk_allocate>:
void *area_begin,
uint32_t block_size,
rtems_blkdev_bnum block_count,
bool trace
)
{
1105ec: 55 push %ebp
1105ed: 89 e5 mov %esp,%ebp
1105ef: 57 push %edi
1105f0: 56 push %esi
1105f1: 53 push %ebx
1105f2: 83 ec 28 sub $0x28,%esp
1105f5: 8b 7d 08 mov 0x8(%ebp),%edi
1105f8: 8a 45 14 mov 0x14(%ebp),%al
1105fb: 88 45 e7 mov %al,-0x19(%ebp)
struct ramdisk *rd = malloc(sizeof(struct ramdisk));
1105fe: 6a 10 push $0x10
110600: e8 5f 91 ff ff call 109764 <malloc>
110605: 89 c6 mov %eax,%esi
110607: 89 c3 mov %eax,%ebx
if (rd == NULL) {
110609: 83 c4 10 add $0x10,%esp
11060c: 85 c0 test %eax,%eax
11060e: 74 20 je 110630 <ramdisk_allocate+0x44> <== NEVER TAKEN
return NULL;
}
if (area_begin == NULL) {
110610: 85 ff test %edi,%edi
110612: 74 28 je 11063c <ramdisk_allocate+0x50> <== ALWAYS TAKEN
return NULL;
}
rd->malloced = true;
} else {
rd->malloced = false;
110614: c6 40 0d 00 movb $0x0,0xd(%eax) <== NOT EXECUTED
}
rd->block_size = block_size;
110618: 8b 45 0c mov 0xc(%ebp),%eax
11061b: 89 03 mov %eax,(%ebx)
rd->block_num = block_count;
11061d: 8b 45 10 mov 0x10(%ebp),%eax
110620: 89 43 04 mov %eax,0x4(%ebx)
rd->area = area_begin;
110623: 89 7b 08 mov %edi,0x8(%ebx)
rd->trace = trace;
110626: 8a 45 e7 mov -0x19(%ebp),%al
110629: 88 43 0e mov %al,0xe(%ebx)
rd->initialized = true;
11062c: c6 43 0c 01 movb $0x1,0xc(%ebx)
return rd;
}
110630: 89 f0 mov %esi,%eax
110632: 8d 65 f4 lea -0xc(%ebp),%esp
110635: 5b pop %ebx
110636: 5e pop %esi
110637: 5f pop %edi
110638: c9 leave
110639: c3 ret
11063a: 66 90 xchg %ax,%ax
if (rd == NULL) {
return NULL;
}
if (area_begin == NULL) {
area_begin = calloc(block_count, block_size);
11063c: 83 ec 08 sub $0x8,%esp
11063f: ff 75 0c pushl 0xc(%ebp)
110642: ff 75 10 pushl 0x10(%ebp)
110645: e8 2a 8c ff ff call 109274 <calloc>
11064a: 89 c7 mov %eax,%edi
if (area_begin == NULL) {
11064c: 83 c4 10 add $0x10,%esp
11064f: 85 c0 test %eax,%eax
110651: 74 06 je 110659 <ramdisk_allocate+0x6d> <== NEVER TAKEN
free(rd);
return NULL;
}
rd->malloced = true;
110653: c6 46 0d 01 movb $0x1,0xd(%esi)
110657: eb bf jmp 110618 <ramdisk_allocate+0x2c>
}
if (area_begin == NULL) {
area_begin = calloc(block_count, block_size);
if (area_begin == NULL) {
free(rd);
110659: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11065c: 56 push %esi <== NOT EXECUTED
11065d: e8 2a 8e ff ff call 10948c <free> <== NOT EXECUTED
110662: 31 f6 xor %esi,%esi <== NOT EXECUTED
return NULL;
110664: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110667: eb c7 jmp 110630 <ramdisk_allocate+0x44> <== NOT EXECUTED
001105a8 <ramdisk_free>:
return rd;
}
void ramdisk_free(ramdisk *rd)
{
1105a8: 55 push %ebp
1105a9: 89 e5 mov %esp,%ebp
1105ab: 53 push %ebx
1105ac: 83 ec 04 sub $0x4,%esp
1105af: 8b 5d 08 mov 0x8(%ebp),%ebx
if (rd != NULL) {
1105b2: 85 db test %ebx,%ebx
1105b4: 74 2e je 1105e4 <ramdisk_free+0x3c> <== NEVER TAKEN
if (rd->malloced) {
1105b6: 80 7b 0d 00 cmpb $0x0,0xd(%ebx)
1105ba: 75 0c jne 1105c8 <ramdisk_free+0x20> <== ALWAYS TAKEN
free(rd->area);
}
free(rd);
1105bc: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
}
}
1105bf: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1105c2: c9 leave <== NOT EXECUTED
{
if (rd != NULL) {
if (rd->malloced) {
free(rd->area);
}
free(rd);
1105c3: e9 c4 8e ff ff jmp 10948c <free> <== NOT EXECUTED
void ramdisk_free(ramdisk *rd)
{
if (rd != NULL) {
if (rd->malloced) {
free(rd->area);
1105c8: 83 ec 0c sub $0xc,%esp
1105cb: ff 73 08 pushl 0x8(%ebx)
1105ce: e8 b9 8e ff ff call 10948c <free>
1105d3: 83 c4 10 add $0x10,%esp
}
free(rd);
1105d6: 89 5d 08 mov %ebx,0x8(%ebp)
}
}
1105d9: 8b 5d fc mov -0x4(%ebp),%ebx
1105dc: c9 leave
{
if (rd != NULL) {
if (rd->malloced) {
free(rd->area);
}
free(rd);
1105dd: e9 aa 8e ff ff jmp 10948c <free>
1105e2: 66 90 xchg %ax,%ax
}
}
1105e4: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1105e7: c9 leave <== NOT EXECUTED
1105e8: c3 ret <== NOT EXECUTED
0012669c <ramdisk_initialize>:
rtems_device_driver
ramdisk_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *arg __attribute__((unused)))
{
12669c: 55 push %ebp <== NOT EXECUTED
12669d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12669f: 57 push %edi <== NOT EXECUTED
1266a0: 56 push %esi <== NOT EXECUTED
1266a1: 53 push %ebx <== NOT EXECUTED
1266a2: 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();
1266a5: e8 12 6c fe ff call 10d2bc <rtems_disk_io_initialize><== NOT EXECUTED
1266aa: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
1266ad: 85 c0 test %eax,%eax <== NOT EXECUTED
1266af: 74 0b je 1266bc <ramdisk_initialize+0x20><== NOT EXECUTED
}
r->initialized = false;
}
}
return RTEMS_SUCCESSFUL;
}
1266b1: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
1266b4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1266b7: 5b pop %ebx <== NOT EXECUTED
1266b8: 5e pop %esi <== NOT EXECUTED
1266b9: 5f pop %edi <== NOT EXECUTED
1266ba: c9 leave <== NOT EXECUTED
1266bb: c3 ret <== 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));
1266bc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1266bf: 6a 10 push $0x10 <== NOT EXECUTED
1266c1: ff 35 d0 b2 16 00 pushl 0x16b2d0 <== NOT EXECUTED
1266c7: e8 40 7c fe ff call 10e30c <calloc> <== NOT EXECUTED
1266cc: 89 c3 mov %eax,%ebx <== NOT EXECUTED
r->trace = false;
1266ce: c6 40 0e 00 movb $0x0,0xe(%eax) <== NOT EXECUTED
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
1266d2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1266d5: 8b 3d d0 b2 16 00 mov 0x16b2d0,%edi <== NOT EXECUTED
1266db: 85 ff test %edi,%edi <== NOT EXECUTED
1266dd: 74 d2 je 1266b1 <ramdisk_initialize+0x15><== NOT EXECUTED
1266df: ba c4 b2 16 00 mov $0x16b2c4,%edx <== NOT EXECUTED
1266e4: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED
1266eb: 8d 45 d7 lea -0x29(%ebp),%eax <== NOT EXECUTED
1266ee: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED
1266f1: eb 19 jmp 12670c <ramdisk_initialize+0x70><== NOT EXECUTED
1266f3: 90 nop <== NOT EXECUTED
{
if (r->malloced)
{
free(r->area);
}
r->initialized = false;
1266f4: 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++)
1266f8: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
1266fb: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
1266fe: 39 05 d0 b2 16 00 cmp %eax,0x16b2d0 <== NOT EXECUTED
126704: 76 ab jbe 1266b1 <ramdisk_initialize+0x15><== NOT EXECUTED
126706: 83 c2 0c add $0xc,%edx <== NOT EXECUTED
126709: 83 c3 10 add $0x10,%ebx <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
12670c: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
12670f: 89 75 e0 mov %esi,-0x20(%ebp) <== NOT EXECUTED
temp.__overlay.minor = _minor;
126712: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
126715: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
return temp.device;
126718: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED
12671b: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
12671e: 89 75 b8 mov %esi,-0x48(%ebp) <== NOT EXECUTED
126721: 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";
126724: 8b 7d a4 mov -0x5c(%ebp),%edi <== NOT EXECUTED
126727: be 94 34 16 00 mov $0x163494,%esi <== NOT EXECUTED
12672c: b9 09 00 00 00 mov $0x9,%ecx <== NOT EXECUTED
126731: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;
126733: 00 45 df add %al,-0x21(%ebp) <== NOT EXECUTED
r->block_size = c->block_size;
126736: 8b 02 mov (%edx),%eax <== NOT EXECUTED
126738: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
r->block_num = c->block_num;
12673a: 8b 4a 04 mov 0x4(%edx),%ecx <== NOT EXECUTED
12673d: 89 4b 04 mov %ecx,0x4(%ebx) <== NOT EXECUTED
if (c->location == NULL)
126740: 8b 72 08 mov 0x8(%edx),%esi <== NOT EXECUTED
126743: 85 f6 test %esi,%esi <== NOT EXECUTED
126745: 74 51 je 126798 <ramdisk_initialize+0xfc><== NOT EXECUTED
r->initialized = true;
}
}
else
{
r->malloced = false;
126747: c6 43 0d 00 movb $0x0,0xd(%ebx) <== NOT EXECUTED
r->initialized = true;
12674b: c6 43 0c 01 movb $0x1,0xc(%ebx) <== NOT EXECUTED
r->area = c->location;
12674f: 89 73 08 mov %esi,0x8(%ebx) <== NOT EXECUTED
}
rc = rtems_disk_create_phys(dev, c->block_size, c->block_num,
126752: 56 push %esi <== NOT EXECUTED
126753: 8d 7d d7 lea -0x29(%ebp),%edi <== NOT EXECUTED
126756: 57 push %edi <== NOT EXECUTED
126757: 53 push %ebx <== NOT EXECUTED
126758: 68 c8 67 12 00 push $0x1267c8 <== NOT EXECUTED
12675d: 51 push %ecx <== NOT EXECUTED
12675e: 50 push %eax <== NOT EXECUTED
12675f: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
126762: ff 75 b8 pushl -0x48(%ebp) <== NOT EXECUTED
126765: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
126768: e8 37 72 fe ff call 10d9a4 <rtems_disk_create_phys><== NOT EXECUTED
ramdisk_ioctl, r, name);
if (rc != RTEMS_SUCCESSFUL)
12676d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
126770: 85 c0 test %eax,%eax <== NOT EXECUTED
126772: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED
126775: 74 81 je 1266f8 <ramdisk_initialize+0x5c><== NOT EXECUTED
{
if (r->malloced)
126777: 80 7b 0d 00 cmpb $0x0,0xd(%ebx) <== NOT EXECUTED
12677b: 0f 84 73 ff ff ff je 1266f4 <ramdisk_initialize+0x58><== NOT EXECUTED
{
free(r->area);
126781: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126784: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
126787: e8 dc 80 fe ff call 10e868 <free> <== NOT EXECUTED
12678c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12678f: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED
126792: e9 5d ff ff ff jmp 1266f4 <ramdisk_initialize+0x58><== NOT EXECUTED
126797: 90 nop <== NOT EXECUTED
name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;
r->block_size = c->block_size;
r->block_num = c->block_num;
if (c->location == NULL)
{
r->malloced = true;
126798: c6 43 0d 01 movb $0x1,0xd(%ebx) <== NOT EXECUTED
r->area = malloc(r->block_size * r->block_num);
12679c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12679f: 0f af c1 imul %ecx,%eax <== NOT EXECUTED
1267a2: 50 push %eax <== NOT EXECUTED
1267a3: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
1267a6: e8 5d 86 fe ff call 10ee08 <malloc> <== NOT EXECUTED
1267ab: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
if (r->area == NULL) /* No enough memory for this disk */
1267ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1267b1: 85 c0 test %eax,%eax <== NOT EXECUTED
1267b3: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED
1267b6: 0f 84 38 ff ff ff je 1266f4 <ramdisk_initialize+0x58><== NOT EXECUTED
r->initialized = false;
continue;
}
else
{
r->initialized = true;
1267bc: c6 43 0c 01 movb $0x1,0xc(%ebx) <== NOT EXECUTED
1267c0: 8b 4a 04 mov 0x4(%edx),%ecx <== NOT EXECUTED
1267c3: 8b 02 mov (%edx),%eax <== NOT EXECUTED
1267c5: eb 8b jmp 126752 <ramdisk_initialize+0xb6><== NOT EXECUTED
001104c0 <ramdisk_ioctl>:
return 0;
}
int
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
1104c0: 55 push %ebp
1104c1: 89 e5 mov %esp,%ebp
1104c3: 57 push %edi
1104c4: 56 push %esi
1104c5: 53 push %ebx
1104c6: 83 ec 1c sub $0x1c,%esp
1104c9: 8b 4d 08 mov 0x8(%ebp),%ecx
1104cc: 8b 45 0c mov 0xc(%ebp),%eax
1104cf: 8b 55 10 mov 0x10(%ebp),%edx
switch (req)
1104d2: 3d 01 42 18 c0 cmp $0xc0184201,%eax
1104d7: 74 17 je 1104f0 <ramdisk_ioctl+0x30>
}
break;
}
default:
return rtems_blkdev_ioctl (dd, req, argp);
1104d9: 89 55 10 mov %edx,0x10(%ebp)
1104dc: 89 45 0c mov %eax,0xc(%ebp)
1104df: 89 4d 08 mov %ecx,0x8(%ebp)
break;
}
errno = EINVAL;
return -1;
}
1104e2: 8d 65 f4 lea -0xc(%ebp),%esp
1104e5: 5b pop %ebx
1104e6: 5e pop %esi
1104e7: 5f pop %edi
1104e8: c9 leave
}
break;
}
default:
return rtems_blkdev_ioctl (dd, req, argp);
1104e9: e9 56 24 00 00 jmp 112944 <rtems_blkdev_ioctl>
1104ee: 66 90 xchg %ax,%ax
switch (req)
{
case RTEMS_BLKIO_REQUEST:
{
rtems_blkdev_request *r = argp;
struct ramdisk *rd = rtems_disk_get_driver_data(dd);
1104f0: 8b 49 2c mov 0x2c(%ecx),%ecx
1104f3: 89 4d e0 mov %ecx,-0x20(%ebp)
switch (r->req)
1104f6: 8b 02 mov (%edx),%eax
1104f8: 85 c0 test %eax,%eax
1104fa: 75 54 jne 110550 <ramdisk_ioctl+0x90> <== ALWAYS TAKEN
#endif
static int
ramdisk_read(struct ramdisk *rd, rtems_blkdev_request *req)
{
uint8_t *from = rd->area;
1104fc: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1104ff: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
110502: 89 45 dc mov %eax,-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++)
110505: 8b 4a 10 mov 0x10(%edx),%ecx <== NOT EXECUTED
110508: 85 c9 test %ecx,%ecx <== NOT EXECUTED
11050a: 74 24 je 110530 <ramdisk_ioctl+0x70> <== NOT EXECUTED
11050c: 8d 42 18 lea 0x18(%edx),%eax <== NOT EXECUTED
11050f: 31 db xor %ebx,%ebx <== NOT EXECUTED
110511: 8d 76 00 lea 0x0(%esi),%esi <== 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);
110514: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
110517: 8b 31 mov (%ecx),%esi <== NOT EXECUTED
110519: 0f af 30 imul (%eax),%esi <== NOT EXECUTED
11051c: 03 75 dc add -0x24(%ebp),%esi <== NOT EXECUTED
11051f: 8b 48 04 mov 0x4(%eax),%ecx <== NOT EXECUTED
110522: 8b 78 08 mov 0x8(%eax),%edi <== NOT EXECUTED
110525: 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++)
110527: 43 inc %ebx <== NOT EXECUTED
110528: 83 c0 10 add $0x10,%eax <== NOT EXECUTED
11052b: 3b 5a 10 cmp 0x10(%edx),%ebx <== NOT EXECUTED
11052e: 72 e4 jb 110514 <ramdisk_ioctl+0x54> <== NOT EXECUTED
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;
110530: c7 42 0c 00 00 00 00 movl $0x0,0xc(%edx)
req->req_done(req->done_arg, RTEMS_SUCCESSFUL);
110537: 83 ec 08 sub $0x8,%esp
11053a: 6a 00 push $0x0
11053c: ff 72 08 pushl 0x8(%edx)
11053f: ff 52 04 call *0x4(%edx)
110542: 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);
110544: 83 c4 10 add $0x10,%esp
break;
}
errno = EINVAL;
return -1;
}
110547: 8d 65 f4 lea -0xc(%ebp),%esp
11054a: 5b pop %ebx
11054b: 5e pop %esi
11054c: 5f pop %edi
11054d: c9 leave
11054e: c3 ret
11054f: 90 nop
case RTEMS_BLKIO_REQUEST:
{
rtems_blkdev_request *r = argp;
struct ramdisk *rd = rtems_disk_get_driver_data(dd);
switch (r->req)
110550: 48 dec %eax
110551: 74 19 je 11056c <ramdisk_ioctl+0xac> <== ALWAYS TAKEN
case RTEMS_BLKDEV_REQ_WRITE:
return ramdisk_write(rd, r);
default:
errno = EINVAL;
110553: e8 e4 74 00 00 call 117a3c <__errno> <== NOT EXECUTED
110558: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11055e: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
break;
}
errno = EINVAL;
return -1;
}
110563: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
110566: 5b pop %ebx <== NOT EXECUTED
110567: 5e pop %esi <== NOT EXECUTED
110568: 5f pop %edi <== NOT EXECUTED
110569: c9 leave <== NOT EXECUTED
11056a: c3 ret <== NOT EXECUTED
11056b: 90 nop <== NOT EXECUTED
}
static int
ramdisk_write(struct ramdisk *rd, rtems_blkdev_request *req)
{
uint8_t *to = rd->area;
11056c: 8b 45 e0 mov -0x20(%ebp),%eax
11056f: 8b 40 08 mov 0x8(%eax),%eax
110572: 89 45 dc mov %eax,-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++)
110575: 8b 42 10 mov 0x10(%edx),%eax
110578: 85 c0 test %eax,%eax
11057a: 74 b4 je 110530 <ramdisk_ioctl+0x70> <== NEVER TAKEN
11057c: 8d 42 18 lea 0x18(%edx),%eax
11057f: 31 db xor %ebx,%ebx
110581: 89 55 e4 mov %edx,-0x1c(%ebp)
#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);
110584: 8b 4d e0 mov -0x20(%ebp),%ecx
110587: 8b 11 mov (%ecx),%edx
110589: 0f af 10 imul (%eax),%edx
11058c: 03 55 dc add -0x24(%ebp),%edx
11058f: 8b 70 08 mov 0x8(%eax),%esi
110592: 8b 48 04 mov 0x4(%eax),%ecx
110595: 89 d7 mov %edx,%edi
110597: 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++)
110599: 43 inc %ebx
11059a: 83 c0 10 add $0x10,%eax
11059d: 8b 55 e4 mov -0x1c(%ebp),%edx
1105a0: 3b 5a 10 cmp 0x10(%edx),%ebx
1105a3: 72 df jb 110584 <ramdisk_ioctl+0xc4> <== NEVER TAKEN
1105a5: eb 89 jmp 110530 <ramdisk_ioctl+0x70>
0011066c <ramdisk_register>:
rtems_blkdev_bnum block_count,
bool trace,
const char *disk,
dev_t *dev_ptr
)
{
11066c: 55 push %ebp
11066d: 89 e5 mov %esp,%ebp
11066f: 57 push %edi
110670: 56 push %esi
110671: 53 push %ebx
110672: 83 ec 30 sub $0x30,%esp
110675: 8b 5d 0c mov 0xc(%ebp),%ebx
110678: 0f b6 75 10 movzbl 0x10(%ebp),%esi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_device_major_number major = 0;
11067c: 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);
110683: 8d 45 e4 lea -0x1c(%ebp),%eax
110686: 50 push %eax
110687: 68 6c 55 12 00 push $0x12556c
11068c: 6a 00 push $0x0
11068e: e8 99 ce ff ff call 10d52c <rtems_io_register_driver>
if (sc != RTEMS_SUCCESSFUL) {
110693: 83 c4 10 add $0x10,%esp
110696: 85 c0 test %eax,%eax
110698: 74 0e je 1106a8 <ramdisk_register+0x3c> <== ALWAYS TAKEN
11069a: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
}
*dev_ptr = dev;
return RTEMS_SUCCESSFUL;
}
11069f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1106a2: 5b pop %ebx <== NOT EXECUTED
1106a3: 5e pop %esi <== NOT EXECUTED
1106a4: 5f pop %edi <== NOT EXECUTED
1106a5: c9 leave <== NOT EXECUTED
1106a6: c3 ret <== NOT EXECUTED
1106a7: 90 nop <== NOT EXECUTED
sc = rtems_io_register_driver(0, &ramdisk_ops, &major);
if (sc != RTEMS_SUCCESSFUL) {
return RTEMS_UNSATISFIED;
}
rd = ramdisk_allocate(NULL, block_size, block_count, trace);
1106a8: 81 e6 ff 00 00 00 and $0xff,%esi
1106ae: 56 push %esi
1106af: 53 push %ebx
1106b0: ff 75 08 pushl 0x8(%ebp)
1106b3: 6a 00 push $0x0
1106b5: e8 32 ff ff ff call 1105ec <ramdisk_allocate>
if (rd == NULL) {
1106ba: 83 c4 10 add $0x10,%esp
1106bd: 85 c0 test %eax,%eax
1106bf: 74 5f je 110720 <ramdisk_register+0xb4> <== NEVER TAKEN
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
temp.__overlay.minor = _minor;
return temp.device;
1106c1: 8b 75 e4 mov -0x1c(%ebp),%esi
1106c4: 31 ff xor %edi,%edi
return RTEMS_UNSATISFIED;
}
dev = rtems_filesystem_make_dev_t(major, 0);
sc = rtems_disk_create_phys(
1106c6: 51 push %ecx
1106c7: ff 75 14 pushl 0x14(%ebp)
1106ca: 50 push %eax
1106cb: 68 c0 04 11 00 push $0x1104c0
1106d0: 53 push %ebx
1106d1: ff 75 08 pushl 0x8(%ebp)
1106d4: 57 push %edi
1106d5: 56 push %esi
1106d6: 89 45 d4 mov %eax,-0x2c(%ebp)
1106d9: e8 5a 83 ff ff call 108a38 <rtems_disk_create_phys>
block_count,
ramdisk_ioctl,
rd,
disk
);
if (sc != RTEMS_SUCCESSFUL) {
1106de: 83 c4 20 add $0x20,%esp
1106e1: 85 c0 test %eax,%eax
1106e3: 8b 55 d4 mov -0x2c(%ebp),%edx
1106e6: 75 14 jne 1106fc <ramdisk_register+0x90> <== NEVER TAKEN
rtems_io_unregister_driver(major);
return RTEMS_UNSATISFIED;
}
*dev_ptr = dev;
1106e8: 8b 45 18 mov 0x18(%ebp),%eax
1106eb: 89 30 mov %esi,(%eax)
1106ed: 89 78 04 mov %edi,0x4(%eax)
1106f0: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
1106f2: 8d 65 f4 lea -0xc(%ebp),%esp
1106f5: 5b pop %ebx
1106f6: 5e pop %esi
1106f7: 5f pop %edi
1106f8: c9 leave
1106f9: c3 ret
1106fa: 66 90 xchg %ax,%ax
ramdisk_ioctl,
rd,
disk
);
if (sc != RTEMS_SUCCESSFUL) {
ramdisk_free(rd);
1106fc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1106ff: 52 push %edx <== NOT EXECUTED
110700: e8 a3 fe ff ff call 1105a8 <ramdisk_free> <== NOT EXECUTED
rtems_io_unregister_driver(major);
110705: 58 pop %eax <== NOT EXECUTED
110706: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
110709: e8 5e cf ff ff call 10d66c <rtems_io_unregister_driver><== NOT EXECUTED
11070e: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_UNSATISFIED;
110713: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
*dev_ptr = dev;
return RTEMS_SUCCESSFUL;
}
110716: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
110719: 5b pop %ebx <== NOT EXECUTED
11071a: 5e pop %esi <== NOT EXECUTED
11071b: 5f pop %edi <== NOT EXECUTED
11071c: c9 leave <== NOT EXECUTED
11071d: c3 ret <== NOT EXECUTED
11071e: 66 90 xchg %ax,%ax <== NOT EXECUTED
return RTEMS_UNSATISFIED;
}
rd = ramdisk_allocate(NULL, block_size, block_count, trace);
if (rd == NULL) {
rtems_io_unregister_driver(major);
110720: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110723: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
110726: e8 41 cf ff ff call 10d66c <rtems_io_unregister_driver><== NOT EXECUTED
11072b: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_UNSATISFIED;
110730: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
*dev_ptr = dev;
return RTEMS_SUCCESSFUL;
}
110733: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
110736: 5b pop %ebx <== NOT EXECUTED
110737: 5e pop %esi <== NOT EXECUTED
110738: 5f pop %edi <== NOT EXECUTED
110739: c9 leave <== NOT EXECUTED
11073a: c3 ret <== NOT EXECUTED
0011f614 <read>:
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
11f614: 55 push %ebp
11f615: 89 e5 mov %esp,%ebp
11f617: 53 push %ebx
11f618: 83 ec 04 sub $0x4,%esp
11f61b: 8b 5d 08 mov 0x8(%ebp),%ebx
11f61e: 8b 45 0c mov 0xc(%ebp),%eax
11f621: 8b 55 10 mov 0x10(%ebp),%edx
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
11f624: 3b 1d 4c 31 12 00 cmp 0x12314c,%ebx
11f62a: 73 50 jae 11f67c <read+0x68> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
11f62c: c1 e3 06 shl $0x6,%ebx
11f62f: 03 1d e0 71 12 00 add 0x1271e0,%ebx
rtems_libio_check_is_open( iop );
11f635: 8b 4b 14 mov 0x14(%ebx),%ecx
11f638: f6 c5 01 test $0x1,%ch
11f63b: 74 3f je 11f67c <read+0x68>
rtems_libio_check_buffer( buffer );
11f63d: 85 c0 test %eax,%eax
11f63f: 74 5f je 11f6a0 <read+0x8c> <== NEVER TAKEN
rtems_libio_check_count( count );
11f641: 85 d2 test %edx,%edx
11f643: 74 2f je 11f674 <read+0x60> <== NEVER TAKEN
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
11f645: 83 e1 02 and $0x2,%ecx
11f648: 74 32 je 11f67c <read+0x68> <== NEVER TAKEN
/*
* Now process the read().
*/
if ( !iop->handlers->read_h )
11f64a: 8b 4b 3c mov 0x3c(%ebx),%ecx
11f64d: 8b 49 08 mov 0x8(%ecx),%ecx
11f650: 85 c9 test %ecx,%ecx
11f652: 74 3a je 11f68e <read+0x7a> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
rc = (*iop->handlers->read_h)( iop, buffer, count );
11f654: 83 ec 04 sub $0x4,%esp
11f657: 52 push %edx
11f658: 50 push %eax
11f659: 53 push %ebx
11f65a: ff d1 call *%ecx
if ( rc > 0 )
11f65c: 83 c4 10 add $0x10,%esp
11f65f: 85 c0 test %eax,%eax
11f661: 7e 0b jle 11f66e <read+0x5a>
iop->offset += rc;
11f663: 89 c1 mov %eax,%ecx
11f665: c1 f9 1f sar $0x1f,%ecx
11f668: 01 43 0c add %eax,0xc(%ebx)
11f66b: 11 4b 10 adc %ecx,0x10(%ebx)
return rc;
}
11f66e: 8b 5d fc mov -0x4(%ebp),%ebx
11f671: c9 leave
11f672: c3 ret
11f673: 90 nop
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_buffer( buffer );
rtems_libio_check_count( count );
11f674: 31 c0 xor %eax,%eax
if ( rc > 0 )
iop->offset += rc;
return rc;
}
11f676: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
11f679: c9 leave <== NOT EXECUTED
11f67a: c3 ret <== NOT EXECUTED
11f67b: 90 nop <== NOT EXECUTED
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_buffer( buffer );
rtems_libio_check_count( count );
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
11f67c: e8 bf 47 ff ff call 113e40 <__errno>
11f681: c7 00 09 00 00 00 movl $0x9,(%eax)
11f687: b8 ff ff ff ff mov $0xffffffff,%eax
11f68c: eb e0 jmp 11f66e <read+0x5a>
/*
* Now process the read().
*/
if ( !iop->handlers->read_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
11f68e: e8 ad 47 ff ff call 113e40 <__errno> <== NOT EXECUTED
11f693: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
11f699: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
11f69e: eb ce jmp 11f66e <read+0x5a> <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_buffer( buffer );
11f6a0: e8 9b 47 ff ff call 113e40 <__errno> <== NOT EXECUTED
11f6a5: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11f6ab: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
11f6b0: eb bc jmp 11f66e <read+0x5a> <== NOT EXECUTED
0012f6fc <readlink>:
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
{
12f6fc: 55 push %ebp
12f6fd: 89 e5 mov %esp,%ebp
12f6ff: 57 push %edi
12f700: 56 push %esi
12f701: 53 push %ebx
12f702: 83 ec 2c sub $0x2c,%esp
12f705: 8b 55 08 mov 0x8(%ebp),%edx
12f708: 8b 5d 0c mov 0xc(%ebp),%ebx
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
12f70b: 85 db test %ebx,%ebx
12f70d: 0f 84 ad 00 00 00 je 12f7c0 <readlink+0xc4> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EFAULT );
result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
12f713: 31 c0 xor %eax,%eax
12f715: b9 ff ff ff ff mov $0xffffffff,%ecx
12f71a: 89 d7 mov %edx,%edi
12f71c: f2 ae repnz scas %es:(%edi),%al
12f71e: f7 d1 not %ecx
12f720: 49 dec %ecx
12f721: 83 ec 0c sub $0xc,%esp
12f724: 6a 00 push $0x0
12f726: 8d 75 d4 lea -0x2c(%ebp),%esi
12f729: 56 push %esi
12f72a: 6a 00 push $0x0
12f72c: 51 push %ecx
12f72d: 52 push %edx
12f72e: e8 c5 f0 fd ff call 10e7f8 <rtems_filesystem_evaluate_path>
0, &loc, false );
if ( result != 0 )
12f733: 83 c4 20 add $0x20,%esp
12f736: 85 c0 test %eax,%eax
12f738: 75 76 jne 12f7b0 <readlink+0xb4> <== NEVER TAKEN
return -1;
if ( !loc.ops->node_type_h ){
12f73a: 8b 55 e0 mov -0x20(%ebp),%edx
12f73d: 8b 42 10 mov 0x10(%edx),%eax
12f740: 85 c0 test %eax,%eax
12f742: 74 4e je 12f792 <readlink+0x96> <== NEVER TAKEN
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
12f744: 83 ec 0c sub $0xc,%esp
12f747: 56 push %esi
12f748: ff d0 call *%eax
12f74a: 83 c4 10 add $0x10,%esp
12f74d: 83 f8 04 cmp $0x4,%eax
12f750: 0f 85 86 00 00 00 jne 12f7dc <readlink+0xe0>
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( !loc.ops->readlink_h ){
12f756: 8b 55 e0 mov -0x20(%ebp),%edx
12f759: 8b 42 3c mov 0x3c(%edx),%eax
12f75c: 85 c0 test %eax,%eax
12f75e: 0f 84 a1 00 00 00 je 12f805 <readlink+0x109> <== NEVER TAKEN
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
12f764: 52 push %edx
12f765: ff 75 10 pushl 0x10(%ebp)
12f768: 53 push %ebx
12f769: 56 push %esi
12f76a: ff d0 call *%eax
12f76c: 89 c3 mov %eax,%ebx
rtems_filesystem_freenode( &loc );
12f76e: 8b 45 e0 mov -0x20(%ebp),%eax
12f771: 83 c4 10 add $0x10,%esp
12f774: 85 c0 test %eax,%eax
12f776: 74 10 je 12f788 <readlink+0x8c> <== NEVER TAKEN
12f778: 8b 40 1c mov 0x1c(%eax),%eax
12f77b: 85 c0 test %eax,%eax
12f77d: 74 09 je 12f788 <readlink+0x8c> <== NEVER TAKEN
12f77f: 83 ec 0c sub $0xc,%esp
12f782: 56 push %esi
12f783: ff d0 call *%eax
12f785: 83 c4 10 add $0x10,%esp
return result;
}
12f788: 89 d8 mov %ebx,%eax
12f78a: 8d 65 f4 lea -0xc(%ebp),%esp
12f78d: 5b pop %ebx
12f78e: 5e pop %esi
12f78f: 5f pop %edi
12f790: c9 leave
12f791: c3 ret
0, &loc, false );
if ( result != 0 )
return -1;
if ( !loc.ops->node_type_h ){
rtems_filesystem_freenode( &loc );
12f792: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
12f795: 85 c0 test %eax,%eax <== NOT EXECUTED
12f797: 74 09 je 12f7a2 <readlink+0xa6> <== NOT EXECUTED
12f799: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12f79c: 56 push %esi <== NOT EXECUTED
12f79d: ff d0 call *%eax <== NOT EXECUTED
12f79f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12f7a2: e8 e5 6f 01 00 call 14678c <__errno> <== NOT EXECUTED
12f7a7: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12f7ad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
12f7b0: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
rtems_filesystem_freenode( &loc );
return result;
}
12f7b5: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12f7b7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12f7ba: 5b pop %ebx <== NOT EXECUTED
12f7bb: 5e pop %esi <== NOT EXECUTED
12f7bc: 5f pop %edi <== NOT EXECUTED
12f7bd: c9 leave <== NOT EXECUTED
12f7be: c3 ret <== NOT EXECUTED
12f7bf: 90 nop <== NOT EXECUTED
{
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
rtems_set_errno_and_return_minus_one( EFAULT );
12f7c0: e8 c7 6f 01 00 call 14678c <__errno> <== NOT EXECUTED
12f7c5: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
12f7cb: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
rtems_filesystem_freenode( &loc );
return result;
}
12f7d0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12f7d2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12f7d5: 5b pop %ebx <== NOT EXECUTED
12f7d6: 5e pop %esi <== NOT EXECUTED
12f7d7: 5f pop %edi <== NOT EXECUTED
12f7d8: c9 leave <== NOT EXECUTED
12f7d9: c3 ret <== NOT EXECUTED
12f7da: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
rtems_filesystem_freenode( &loc );
12f7dc: 8b 45 e0 mov -0x20(%ebp),%eax
12f7df: 85 c0 test %eax,%eax
12f7e1: 74 10 je 12f7f3 <readlink+0xf7> <== NEVER TAKEN
12f7e3: 8b 40 1c mov 0x1c(%eax),%eax
12f7e6: 85 c0 test %eax,%eax
12f7e8: 74 09 je 12f7f3 <readlink+0xf7> <== NEVER TAKEN
12f7ea: 83 ec 0c sub $0xc,%esp
12f7ed: 56 push %esi
12f7ee: ff d0 call *%eax
12f7f0: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EINVAL );
12f7f3: e8 94 6f 01 00 call 14678c <__errno>
12f7f8: c7 00 16 00 00 00 movl $0x16,(%eax)
12f7fe: bb ff ff ff ff mov $0xffffffff,%ebx
12f803: eb 83 jmp 12f788 <readlink+0x8c>
}
if ( !loc.ops->readlink_h ){
rtems_filesystem_freenode( &loc );
12f805: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
12f808: 85 c0 test %eax,%eax <== NOT EXECUTED
12f80a: 74 09 je 12f815 <readlink+0x119> <== NOT EXECUTED
12f80c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12f80f: 56 push %esi <== NOT EXECUTED
12f810: ff d0 call *%eax <== NOT EXECUTED
12f812: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12f815: e8 72 6f 01 00 call 14678c <__errno> <== NOT EXECUTED
12f81a: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12f820: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
12f825: e9 5e ff ff ff jmp 12f788 <readlink+0x8c> <== NOT EXECUTED
00109ea8 <readv>:
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
109ea8: 55 push %ebp
109ea9: 89 e5 mov %esp,%ebp
109eab: 57 push %edi
109eac: 56 push %esi
109ead: 53 push %ebx
109eae: 83 ec 1c sub $0x1c,%esp
109eb1: 8b 75 08 mov 0x8(%ebp),%esi
109eb4: 8b 5d 0c mov 0xc(%ebp),%ebx
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
109eb7: 3b 35 8c 63 12 00 cmp 0x12638c,%esi
109ebd: 0f 83 03 01 00 00 jae 109fc6 <readv+0x11e> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
109ec3: c1 e6 06 shl $0x6,%esi
109ec6: 03 35 20 ac 12 00 add 0x12ac20,%esi
rtems_libio_check_is_open( iop );
109ecc: 8b 46 14 mov 0x14(%esi),%eax
109ecf: f6 c4 01 test $0x1,%ah
109ed2: 0f 84 ee 00 00 00 je 109fc6 <readv+0x11e> <== NEVER TAKEN
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
109ed8: a8 02 test $0x2,%al
109eda: 0f 84 e6 00 00 00 je 109fc6 <readv+0x11e> <== NEVER TAKEN
/*
* Argument validation on IO vector
*/
if ( !iov )
109ee0: 85 db test %ebx,%ebx
109ee2: 0f 84 ac 00 00 00 je 109f94 <readv+0xec>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
109ee8: 8b 7d 10 mov 0x10(%ebp),%edi
109eeb: 85 ff test %edi,%edi
109eed: 0f 8e a1 00 00 00 jle 109f94 <readv+0xec>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
109ef3: 81 7d 10 00 04 00 00 cmpl $0x400,0x10(%ebp)
109efa: 0f 8f 94 00 00 00 jg 109f94 <readv+0xec> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->read_h )
109f00: 8b 46 3c mov 0x3c(%esi),%eax
109f03: 8b 40 08 mov 0x8(%eax),%eax
109f06: 89 45 e0 mov %eax,-0x20(%ebp)
109f09: 85 c0 test %eax,%eax
109f0b: 0f 84 c9 00 00 00 je 109fda <readv+0x132> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
109f11: c6 45 e4 01 movb $0x1,-0x1c(%ebp)
109f15: 31 c0 xor %eax,%eax
109f17: 31 d2 xor %edx,%edx
109f19: eb 03 jmp 109f1e <readv+0x76>
109f1b: 90 nop
* 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++ ) {
109f1c: 89 fa mov %edi,%edx
ssize_t old;
if ( !iov[v].iov_base )
109f1e: 8b 0c c3 mov (%ebx,%eax,8),%ecx
109f21: 85 c9 test %ecx,%ecx
109f23: 74 6f je 109f94 <readv+0xec>
if ( iov[v].iov_len < 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
/* check for wrap */
old = total;
total += iov[v].iov_len;
109f25: 8b 4c c3 04 mov 0x4(%ebx,%eax,8),%ecx
109f29: 8d 3c 0a lea (%edx,%ecx,1),%edi
if ( total < old )
109f2c: 39 d7 cmp %edx,%edi
109f2e: 7c 64 jl 109f94 <readv+0xec>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
109f30: 85 c9 test %ecx,%ecx
109f32: 74 04 je 109f38 <readv+0x90>
109f34: c6 45 e4 00 movb $0x0,-0x1c(%ebp)
* 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++ ) {
109f38: 40 inc %eax
109f39: 39 45 10 cmp %eax,0x10(%ebp)
109f3c: 7f de jg 109f1c <readv+0x74>
/*
* 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 ) {
109f3e: 80 7d e4 00 cmpb $0x0,-0x1c(%ebp)
109f42: 75 70 jne 109fb4 <readv+0x10c>
109f44: 31 ff xor %edi,%edi
109f46: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
109f4d: 8b 45 e0 mov -0x20(%ebp),%eax
109f50: eb 24 jmp 109f76 <readv+0xce>
109f52: 66 90 xchg %ax,%ax
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
if ( bytes < 0 )
return -1;
if ( bytes > 0 ) {
109f54: 74 0e je 109f64 <readv+0xbc> <== NEVER TAKEN
iop->offset += bytes;
109f56: 89 c1 mov %eax,%ecx
109f58: c1 f9 1f sar $0x1f,%ecx
109f5b: 01 46 0c add %eax,0xc(%esi)
109f5e: 11 4e 10 adc %ecx,0x10(%esi)
total += bytes;
109f61: 01 45 e4 add %eax,-0x1c(%ebp)
}
if (bytes != iov[ v ].iov_len)
109f64: 3b 44 fb 04 cmp 0x4(%ebx,%edi,8),%eax
109f68: 75 3c jne 109fa6 <readv+0xfe> <== NEVER TAKEN
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
109f6a: 47 inc %edi
109f6b: 39 7d 10 cmp %edi,0x10(%ebp)
109f6e: 7e 36 jle 109fa6 <readv+0xfe>
109f70: 8b 46 3c mov 0x3c(%esi),%eax
109f73: 8b 40 08 mov 0x8(%eax),%eax
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
109f76: 52 push %edx
109f77: ff 74 fb 04 pushl 0x4(%ebx,%edi,8)
109f7b: ff 34 fb pushl (%ebx,%edi,8)
109f7e: 56 push %esi
109f7f: ff d0 call *%eax
if ( bytes < 0 )
109f81: 83 c4 10 add $0x10,%esp
109f84: 83 f8 00 cmp $0x0,%eax
109f87: 7d cb jge 109f54 <readv+0xac> <== ALWAYS TAKEN
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
109f89: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) <== NOT EXECUTED
109f90: eb 14 jmp 109fa6 <readv+0xfe> <== NOT EXECUTED
109f92: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old )
rtems_set_errno_and_return_minus_one( EINVAL );
109f94: e8 a7 ac 00 00 call 114c40 <__errno>
109f99: c7 00 16 00 00 00 movl $0x16,(%eax)
109f9f: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp)
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
109fa6: 8b 45 e4 mov -0x1c(%ebp),%eax
109fa9: 8d 65 f4 lea -0xc(%ebp),%esp
109fac: 5b pop %ebx
109fad: 5e pop %esi
109fae: 5f pop %edi
109faf: c9 leave
109fb0: c3 ret
109fb1: 8d 76 00 lea 0x0(%esi),%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 ) {
109fb4: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
109fbb: 8b 45 e4 mov -0x1c(%ebp),%eax
109fbe: 8d 65 f4 lea -0xc(%ebp),%esp
109fc1: 5b pop %ebx
109fc2: 5e pop %esi
109fc3: 5f pop %edi
109fc4: c9 leave
109fc5: c3 ret
bool all_zeros;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
109fc6: e8 75 ac 00 00 call 114c40 <__errno> <== NOT EXECUTED
109fcb: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
109fd1: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) <== NOT EXECUTED
109fd8: eb cc jmp 109fa6 <readv+0xfe> <== NOT EXECUTED
if ( iovcnt > IOV_MAX )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->read_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
109fda: e8 61 ac 00 00 call 114c40 <__errno> <== NOT EXECUTED
109fdf: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
109fe5: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) <== NOT EXECUTED
109fec: eb b8 jmp 109fa6 <readv+0xfe> <== NOT EXECUTED
0011f734 <realloc>:
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
11f734: 55 push %ebp
11f735: 89 e5 mov %esp,%ebp
11f737: 57 push %edi
11f738: 56 push %esi
11f739: 53 push %ebx
11f73a: 83 ec 2c sub $0x2c,%esp
11f73d: 8b 5d 08 mov 0x8(%ebp),%ebx
11f740: 8b 75 0c mov 0xc(%ebp),%esi
11f743: ff 05 10 72 12 00 incl 0x127210
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
11f749: 83 3d 20 75 12 00 03 cmpl $0x3,0x127520
11f750: 74 72 je 11f7c4 <realloc+0x90>
}
/*
* Continue with realloc().
*/
if ( !ptr )
11f752: 85 db test %ebx,%ebx
11f754: 74 5e je 11f7b4 <realloc+0x80>
return malloc( size );
if ( !size ) {
11f756: 85 f6 test %esi,%esi
11f758: 74 3a je 11f794 <realloc+0x60> <== NEVER TAKEN
free( ptr );
return (void *) 0;
}
if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
11f75a: 52 push %edx
11f75b: 8d 45 e4 lea -0x1c(%ebp),%eax
11f75e: 50 push %eax
11f75f: 53 push %ebx
11f760: ff 35 58 31 12 00 pushl 0x123158
11f766: e8 59 01 00 00 call 11f8c4 <_Protected_heap_Get_block_size>
11f76b: 83 c4 10 add $0x10,%esp
11f76e: 84 c0 test %al,%al
11f770: 74 32 je 11f7a4 <realloc+0x70>
#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 ) ) {
11f772: 50 push %eax
11f773: 56 push %esi
11f774: 53 push %ebx
11f775: ff 35 58 31 12 00 pushl 0x123158
11f77b: e8 7c 01 00 00 call 11f8fc <_Protected_heap_Resize_block>
11f780: 83 c4 10 add $0x10,%esp
11f783: 84 c0 test %al,%al
11f785: 74 5d je 11f7e4 <realloc+0xb0>
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
free( ptr );
return new_area;
}
11f787: 89 d8 mov %ebx,%eax
11f789: 8d 65 f4 lea -0xc(%ebp),%esp
11f78c: 5b pop %ebx
11f78d: 5e pop %esi
11f78e: 5f pop %edi
11f78f: c9 leave
11f790: c3 ret
11f791: 8d 76 00 lea 0x0(%esi),%esi
*/
if ( !ptr )
return malloc( size );
if ( !size ) {
free( ptr );
11f794: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11f797: 53 push %ebx <== NOT EXECUTED
11f798: e8 47 8e fe ff call 1085e4 <free> <== NOT EXECUTED
11f79d: 31 db xor %ebx,%ebx <== NOT EXECUTED
return (void *) 0;
11f79f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11f7a2: eb e3 jmp 11f787 <realloc+0x53> <== NOT EXECUTED
}
if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
errno = EINVAL;
11f7a4: e8 97 46 ff ff call 113e40 <__errno>
11f7a9: c7 00 16 00 00 00 movl $0x16,(%eax)
11f7af: 31 db xor %ebx,%ebx
return (void *) 0;
11f7b1: eb d4 jmp 11f787 <realloc+0x53>
11f7b3: 90 nop
/*
* Continue with realloc().
*/
if ( !ptr )
return malloc( size );
11f7b4: 83 ec 0c sub $0xc,%esp
11f7b7: 56 push %esi
11f7b8: e8 ff 90 fe ff call 1088bc <malloc>
11f7bd: 89 c3 mov %eax,%ebx
11f7bf: 83 c4 10 add $0x10,%esp
11f7c2: eb c3 jmp 11f787 <realloc+0x53>
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
if (_Thread_Dispatch_disable_level > 0)
11f7c4: a1 58 73 12 00 mov 0x127358,%eax
11f7c9: 85 c0 test %eax,%eax
11f7cb: 74 04 je 11f7d1 <realloc+0x9d> <== ALWAYS TAKEN
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
free( ptr );
return new_area;
11f7cd: 31 db xor %ebx,%ebx
11f7cf: eb b6 jmp 11f787 <realloc+0x53>
if (_System_state_Is_up(_System_state_Get())) {
if (_Thread_Dispatch_disable_level > 0)
return (void *) 0;
if (_ISR_Nest_level > 0)
11f7d1: a1 f4 73 12 00 mov 0x1273f4,%eax
11f7d6: 85 c0 test %eax,%eax
11f7d8: 0f 84 74 ff ff ff je 11f752 <realloc+0x1e> <== ALWAYS TAKEN
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
free( ptr );
return new_area;
11f7de: 31 db xor %ebx,%ebx
11f7e0: eb a5 jmp 11f787 <realloc+0x53> <== NOT EXECUTED
11f7e2: 66 90 xchg %ax,%ax <== NOT EXECUTED
* There used to be a free on this error case but it is wrong to
* free the memory per OpenGroup Single UNIX Specification V2
* and the C Standard.
*/
new_area = malloc( size );
11f7e4: 83 ec 0c sub $0xc,%esp
11f7e7: 56 push %esi
11f7e8: e8 cf 90 fe ff call 1088bc <malloc>
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
11f7ed: ff 0d 04 72 12 00 decl 0x127204
if ( !new_area ) {
11f7f3: 83 c4 10 add $0x10,%esp
11f7f6: 85 c0 test %eax,%eax
11f7f8: 74 d3 je 11f7cd <realloc+0x99>
return (void *) 0;
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
11f7fa: 8b 55 e4 mov -0x1c(%ebp),%edx
11f7fd: 89 f1 mov %esi,%ecx
11f7ff: 39 d6 cmp %edx,%esi
11f801: 76 02 jbe 11f805 <realloc+0xd1> <== NEVER TAKEN
11f803: 89 d1 mov %edx,%ecx
11f805: 89 c7 mov %eax,%edi
11f807: 89 de mov %ebx,%esi
11f809: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
free( ptr );
11f80b: 83 ec 0c sub $0xc,%esp
11f80e: 53 push %ebx
11f80f: 89 45 d4 mov %eax,-0x2c(%ebp)
11f812: e8 cd 8d fe ff call 1085e4 <free>
11f817: 8b 45 d4 mov -0x2c(%ebp),%eax
11f81a: 89 c3 mov %eax,%ebx
return new_area;
11f81c: 83 c4 10 add $0x10,%esp
11f81f: e9 63 ff ff ff jmp 11f787 <realloc+0x53>
0012f82c <rmdir>:
#include <rtems/seterr.h>
int rmdir(
const char *pathname
)
{
12f82c: 55 push %ebp
12f82d: 89 e5 mov %esp,%ebp
12f82f: 57 push %edi
12f830: 56 push %esi
12f831: 53 push %ebx
12f832: 83 ec 58 sub $0x58,%esp
12f835: 8b 5d 08 mov 0x8(%ebp),%ebx
/*
* Get the parent node of the node we wish to remove. Find the parent path.
*/
parentpathlen = rtems_filesystem_dirname ( pathname );
12f838: 53 push %ebx
12f839: e8 9e ee fd ff call 10e6dc <rtems_filesystem_dirname>
if ( parentpathlen == 0 )
12f83e: 83 c4 10 add $0x10,%esp
12f841: 85 c0 test %eax,%eax
12f843: 0f 85 2f 01 00 00 jne 12f978 <rmdir+0x14c>
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
12f849: 50 push %eax
12f84a: 8d 45 d0 lea -0x30(%ebp),%eax
12f84d: 89 45 b4 mov %eax,-0x4c(%ebp)
12f850: 50 push %eax
12f851: 8d 45 e4 lea -0x1c(%ebp),%eax
12f854: 50 push %eax
12f855: 53 push %ebx
12f856: e8 0d 07 fe ff call 10ff68 <rtems_filesystem_get_start_loc>
12f85b: 31 d2 xor %edx,%edx
12f85d: c6 45 b3 00 movb $0x0,-0x4d(%ebp)
12f861: 83 c4 10 add $0x10,%esp
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
12f864: 8d 7d bc lea -0x44(%ebp),%edi
12f867: b9 05 00 00 00 mov $0x5,%ecx
12f86c: 8b 75 b4 mov -0x4c(%ebp),%esi
12f86f: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
name = pathname + parentpathlen;
12f871: 01 d3 add %edx,%ebx
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
12f873: be ff ff ff ff mov $0xffffffff,%esi
12f878: 89 f1 mov %esi,%ecx
12f87a: 89 df mov %ebx,%edi
12f87c: 31 c0 xor %eax,%eax
12f87e: f2 ae repnz scas %es:(%edi),%al
12f880: f7 d1 not %ecx
12f882: 49 dec %ecx
12f883: 83 ec 08 sub $0x8,%esp
12f886: 51 push %ecx
12f887: 53 push %ebx
12f888: e8 ff ed fd ff call 10e68c <rtems_filesystem_prefix_separators>
12f88d: 01 c3 add %eax,%ebx
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
12f88f: 89 f1 mov %esi,%ecx
12f891: 89 df mov %ebx,%edi
12f893: 31 c0 xor %eax,%eax
12f895: f2 ae repnz scas %es:(%edi),%al
12f897: f7 d1 not %ecx
12f899: 49 dec %ecx
12f89a: c7 04 24 00 00 00 00 movl $0x0,(%esp)
12f8a1: 8d 75 bc lea -0x44(%ebp),%esi
12f8a4: 56 push %esi
12f8a5: 6a 00 push $0x0
12f8a7: 51 push %ecx
12f8a8: 53 push %ebx
12f8a9: e8 76 ee fd ff call 10e724 <rtems_filesystem_evaluate_relative_path>
0, &loc, false );
if ( result != 0 ) {
12f8ae: 83 c4 20 add $0x20,%esp
12f8b1: 85 c0 test %eax,%eax
12f8b3: 0f 85 fb 00 00 00 jne 12f9b4 <rmdir+0x188>
/*
* Verify you can remove this node as a directory.
*/
if ( !loc.ops->node_type_h ){
12f8b9: 8b 55 c8 mov -0x38(%ebp),%edx
12f8bc: 8b 42 10 mov 0x10(%edx),%eax
12f8bf: 85 c0 test %eax,%eax
12f8c1: 0f 84 61 01 00 00 je 12fa28 <rmdir+0x1fc> <== NEVER TAKEN
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 ){
12f8c7: 83 ec 0c sub $0xc,%esp
12f8ca: 56 push %esi
12f8cb: ff d0 call *%eax
12f8cd: 83 c4 10 add $0x10,%esp
12f8d0: 48 dec %eax
12f8d1: 75 5d jne 12f930 <rmdir+0x104>
/*
* Use the filesystems rmnod to remove the node.
*/
if ( !loc.handlers->rmnod_h ){
12f8d3: 8b 45 c4 mov -0x3c(%ebp),%eax
12f8d6: 8b 40 34 mov 0x34(%eax),%eax
12f8d9: 85 c0 test %eax,%eax
12f8db: 0f 84 fb 00 00 00 je 12f9dc <rmdir+0x1b0> <== NEVER TAKEN
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
12f8e1: 83 ec 08 sub $0x8,%esp
12f8e4: 56 push %esi
12f8e5: ff 75 b4 pushl -0x4c(%ebp)
12f8e8: ff d0 call *%eax
12f8ea: 89 c3 mov %eax,%ebx
rtems_filesystem_freenode( &loc );
12f8ec: 8b 45 c8 mov -0x38(%ebp),%eax
12f8ef: 83 c4 10 add $0x10,%esp
12f8f2: 85 c0 test %eax,%eax
12f8f4: 74 10 je 12f906 <rmdir+0xda> <== NEVER TAKEN
12f8f6: 8b 40 1c mov 0x1c(%eax),%eax
12f8f9: 85 c0 test %eax,%eax
12f8fb: 74 09 je 12f906 <rmdir+0xda> <== NEVER TAKEN
12f8fd: 83 ec 0c sub $0xc,%esp
12f900: 56 push %esi
12f901: ff d0 call *%eax
12f903: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
12f906: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
12f90a: 74 19 je 12f925 <rmdir+0xf9>
rtems_filesystem_freenode( &parentloc );
12f90c: 8b 45 dc mov -0x24(%ebp),%eax
12f90f: 85 c0 test %eax,%eax
12f911: 74 12 je 12f925 <rmdir+0xf9> <== NEVER TAKEN
12f913: 8b 40 1c mov 0x1c(%eax),%eax
12f916: 85 c0 test %eax,%eax
12f918: 74 0b je 12f925 <rmdir+0xf9> <== NEVER TAKEN
12f91a: 83 ec 0c sub $0xc,%esp
12f91d: ff 75 b4 pushl -0x4c(%ebp)
12f920: ff d0 call *%eax
12f922: 83 c4 10 add $0x10,%esp
return result;
}
12f925: 89 d8 mov %ebx,%eax
12f927: 8d 65 f4 lea -0xc(%ebp),%esp
12f92a: 5b pop %ebx
12f92b: 5e pop %esi
12f92c: 5f pop %edi
12f92d: c9 leave
12f92e: c3 ret
12f92f: 90 nop
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){
rtems_filesystem_freenode( &loc );
12f930: 8b 45 c8 mov -0x38(%ebp),%eax
12f933: 85 c0 test %eax,%eax
12f935: 74 10 je 12f947 <rmdir+0x11b> <== NEVER TAKEN
12f937: 8b 40 1c mov 0x1c(%eax),%eax
12f93a: 85 c0 test %eax,%eax
12f93c: 74 09 je 12f947 <rmdir+0x11b> <== NEVER TAKEN
12f93e: 83 ec 0c sub $0xc,%esp
12f941: 56 push %esi
12f942: ff d0 call *%eax
12f944: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
12f947: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
12f94b: 74 19 je 12f966 <rmdir+0x13a> <== NEVER TAKEN
rtems_filesystem_freenode( &parentloc );
12f94d: 8b 45 dc mov -0x24(%ebp),%eax
12f950: 85 c0 test %eax,%eax
12f952: 74 12 je 12f966 <rmdir+0x13a> <== NEVER TAKEN
12f954: 8b 40 1c mov 0x1c(%eax),%eax
12f957: 85 c0 test %eax,%eax
12f959: 74 0b je 12f966 <rmdir+0x13a> <== NEVER TAKEN
12f95b: 83 ec 0c sub $0xc,%esp
12f95e: ff 75 b4 pushl -0x4c(%ebp)
12f961: ff d0 call *%eax
12f963: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( ENOTDIR );
12f966: e8 21 6e 01 00 call 14678c <__errno>
12f96b: c7 00 14 00 00 00 movl $0x14,(%eax)
12f971: bb ff ff ff ff mov $0xffffffff,%ebx
12f976: eb ad jmp 12f925 <rmdir+0xf9>
parentpathlen = rtems_filesystem_dirname ( pathname );
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
else {
result = rtems_filesystem_evaluate_path(pathname, parentpathlen,
12f978: 89 c2 mov %eax,%edx
12f97a: 83 ec 0c sub $0xc,%esp
12f97d: 6a 00 push $0x0
12f97f: 8d 45 d0 lea -0x30(%ebp),%eax
12f982: 89 45 b4 mov %eax,-0x4c(%ebp)
12f985: 50 push %eax
12f986: 6a 02 push $0x2
12f988: 52 push %edx
12f989: 53 push %ebx
12f98a: 89 55 ac mov %edx,-0x54(%ebp)
12f98d: e8 66 ee fd ff call 10e7f8 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
12f992: 83 c4 20 add $0x20,%esp
12f995: 85 c0 test %eax,%eax
12f997: 8b 55 ac mov -0x54(%ebp),%edx
12f99a: 75 0c jne 12f9a8 <rmdir+0x17c> <== NEVER TAKEN
12f99c: c6 45 b3 01 movb $0x1,-0x4d(%ebp)
12f9a0: e9 bf fe ff ff jmp 12f864 <rmdir+0x38>
12f9a5: 8d 76 00 lea 0x0(%esi),%esi
result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
rtems_filesystem_freenode( &loc );
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
12f9a8: bb ff ff ff ff mov $0xffffffff,%ebx
12f9ad: e9 73 ff ff ff jmp 12f925 <rmdir+0xf9>
12f9b2: 66 90 xchg %ax,%ax
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &loc, false );
if ( result != 0 ) {
if ( free_parentloc )
12f9b4: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
12f9b8: 74 ee je 12f9a8 <rmdir+0x17c> <== ALWAYS TAKEN
rtems_filesystem_freenode( &parentloc );
12f9ba: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
12f9bd: 85 c0 test %eax,%eax <== NOT EXECUTED
12f9bf: 74 e7 je 12f9a8 <rmdir+0x17c> <== NOT EXECUTED
12f9c1: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12f9c4: 85 c0 test %eax,%eax <== NOT EXECUTED
12f9c6: 74 e0 je 12f9a8 <rmdir+0x17c> <== NOT EXECUTED
12f9c8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12f9cb: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
12f9ce: ff d0 call *%eax <== NOT EXECUTED
12f9d0: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
12f9d3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12f9d6: e9 4a ff ff ff jmp 12f925 <rmdir+0xf9> <== NOT EXECUTED
12f9db: 90 nop <== NOT EXECUTED
/*
* Use the filesystems rmnod to remove the node.
*/
if ( !loc.handlers->rmnod_h ){
rtems_filesystem_freenode( &loc );
12f9dc: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
12f9df: 85 c0 test %eax,%eax <== NOT EXECUTED
12f9e1: 74 10 je 12f9f3 <rmdir+0x1c7> <== NOT EXECUTED
12f9e3: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12f9e6: 85 c0 test %eax,%eax <== NOT EXECUTED
12f9e8: 74 09 je 12f9f3 <rmdir+0x1c7> <== NOT EXECUTED
12f9ea: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12f9ed: 56 push %esi <== NOT EXECUTED
12f9ee: ff d0 call *%eax <== NOT EXECUTED
12f9f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( free_parentloc )
12f9f3: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) <== NOT EXECUTED
12f9f7: 74 19 je 12fa12 <rmdir+0x1e6> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
12f9f9: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
12f9fc: 85 c0 test %eax,%eax <== NOT EXECUTED
12f9fe: 74 12 je 12fa12 <rmdir+0x1e6> <== NOT EXECUTED
12fa00: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12fa03: 85 c0 test %eax,%eax <== NOT EXECUTED
12fa05: 74 0b je 12fa12 <rmdir+0x1e6> <== NOT EXECUTED
12fa07: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12fa0a: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
12fa0d: ff d0 call *%eax <== NOT EXECUTED
12fa0f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12fa12: e8 75 6d 01 00 call 14678c <__errno> <== NOT EXECUTED
12fa17: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12fa1d: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
12fa22: e9 fe fe ff ff jmp 12f925 <rmdir+0xf9> <== NOT EXECUTED
12fa27: 90 nop <== NOT EXECUTED
/*
* Verify you can remove this node as a directory.
*/
if ( !loc.ops->node_type_h ){
rtems_filesystem_freenode( &loc );
12fa28: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
12fa2b: 85 c0 test %eax,%eax <== NOT EXECUTED
12fa2d: 75 bb jne 12f9ea <rmdir+0x1be> <== NOT EXECUTED
12fa2f: eb c2 jmp 12f9f3 <rmdir+0x1c7> <== NOT EXECUTED
00113678 <rtems_assoc_local_by_remote_bitfield>:
uint32_t rtems_assoc_local_by_remote_bitfield(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
113678: 55 push %ebp
113679: 89 e5 mov %esp,%ebp
11367b: 57 push %edi
11367c: 56 push %esi
11367d: 53 push %ebx
11367e: 83 ec 1c sub $0x1c,%esp
113681: 8b 7d 0c mov 0xc(%ebp),%edi
113684: 31 f6 xor %esi,%esi
113686: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
11368d: bb 01 00 00 00 mov $0x1,%ebx
113692: eb 08 jmp 11369c <rtems_assoc_local_by_remote_bitfield+0x24>
uint32_t b;
uint32_t local_value = 0;
for (b = 1; b; b <<= 1) {
113694: d1 e3 shl %ebx
113696: 46 inc %esi
113697: 83 fe 20 cmp $0x20,%esi
11369a: 74 1e je 1136ba <rtems_assoc_local_by_remote_bitfield+0x42>
if (b & remote_value)
11369c: 85 fb test %edi,%ebx
11369e: 74 f4 je 113694 <rtems_assoc_local_by_remote_bitfield+0x1c>
local_value |= rtems_assoc_local_by_remote(ap, b);
1136a0: 83 ec 08 sub $0x8,%esp
1136a3: 53 push %ebx
1136a4: ff 75 08 pushl 0x8(%ebp)
1136a7: e8 1c 00 00 00 call 1136c8 <rtems_assoc_local_by_remote>
1136ac: 09 45 e4 or %eax,-0x1c(%ebp)
1136af: 83 c4 10 add $0x10,%esp
)
{
uint32_t b;
uint32_t local_value = 0;
for (b = 1; b; b <<= 1) {
1136b2: d1 e3 shl %ebx
1136b4: 46 inc %esi
1136b5: 83 fe 20 cmp $0x20,%esi
1136b8: 75 e2 jne 11369c <rtems_assoc_local_by_remote_bitfield+0x24><== ALWAYS TAKEN
if (b & remote_value)
local_value |= rtems_assoc_local_by_remote(ap, b);
}
return local_value;
}
1136ba: 8b 45 e4 mov -0x1c(%ebp),%eax
1136bd: 8d 65 f4 lea -0xc(%ebp),%esp
1136c0: 5b pop %ebx
1136c1: 5e pop %esi
1136c2: 5f pop %edi
1136c3: c9 leave
1136c4: c3 ret
00118b50 <rtems_assoc_name_bad>:
uint32_t bad_value
#else
uint32_t bad_value __attribute((unused))
#endif
)
{
118b50: 55 push %ebp <== NOT EXECUTED
118b51: 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;
}
118b53: b8 40 c5 12 00 mov $0x12c540,%eax <== NOT EXECUTED
118b58: c9 leave <== NOT EXECUTED
118b59: c3 ret <== NOT EXECUTED
00115d18 <rtems_assoc_name_by_local>:
const char *rtems_assoc_name_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
115d18: 55 push %ebp
115d19: 89 e5 mov %esp,%ebp
115d1b: 53 push %ebx
115d1c: 83 ec 0c sub $0xc,%esp
115d1f: 8b 5d 0c mov 0xc(%ebp),%ebx
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
115d22: 53 push %ebx
115d23: ff 75 08 pushl 0x8(%ebp)
115d26: e8 1d 00 00 00 call 115d48 <rtems_assoc_ptr_by_local>
if (nap)
115d2b: 83 c4 10 add $0x10,%esp
115d2e: 85 c0 test %eax,%eax
115d30: 74 0a je 115d3c <rtems_assoc_name_by_local+0x24><== NEVER TAKEN
return nap->name;
115d32: 8b 00 mov (%eax),%eax
return rtems_assoc_name_bad(local_value);
}
115d34: 8b 5d fc mov -0x4(%ebp),%ebx
115d37: c9 leave
115d38: c3 ret
115d39: 8d 76 00 lea 0x0(%esi),%esi
nap = rtems_assoc_ptr_by_local(ap, local_value);
if (nap)
return nap->name;
return rtems_assoc_name_bad(local_value);
115d3c: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
}
115d3f: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
115d42: 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);
115d43: e9 08 2e 00 00 jmp 118b50 <rtems_assoc_name_bad> <== NOT EXECUTED
00113dd0 <rtems_assoc_ptr_by_local>:
const rtems_assoc_t *rtems_assoc_ptr_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
113dd0: 55 push %ebp
113dd1: 89 e5 mov %esp,%ebp
113dd3: 57 push %edi
113dd4: 56 push %esi
113dd5: 53 push %ebx
113dd6: 8b 45 08 mov 0x8(%ebp),%eax
113dd9: 8b 55 0c mov 0xc(%ebp),%edx
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
113ddc: 8b 30 mov (%eax),%esi
113dde: 85 f6 test %esi,%esi
113de0: 74 3e je 113e20 <rtems_assoc_ptr_by_local+0x50><== NEVER TAKEN
113de2: bf 3a 21 12 00 mov $0x12213a,%edi
113de7: b9 0a 00 00 00 mov $0xa,%ecx
113dec: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
113dee: 74 18 je 113e08 <rtems_assoc_ptr_by_local+0x38><== NEVER TAKEN
113df0: 31 c9 xor %ecx,%ecx
113df2: eb 09 jmp 113dfd <rtems_assoc_ptr_by_local+0x2d>
default_ap = ap++;
for ( ; ap->name; ap++)
113df4: 83 c0 0c add $0xc,%eax
113df7: 8b 18 mov (%eax),%ebx
113df9: 85 db test %ebx,%ebx
113dfb: 74 1b je 113e18 <rtems_assoc_ptr_by_local+0x48>
if (ap->local_value == local_value)
113dfd: 39 50 04 cmp %edx,0x4(%eax)
113e00: 75 f2 jne 113df4 <rtems_assoc_ptr_by_local+0x24>
return ap;
return default_ap;
}
113e02: 5b pop %ebx
113e03: 5e pop %esi
113e04: 5f pop %edi
113e05: c9 leave
113e06: c3 ret
113e07: 90 nop
)
{
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
113e08: 8d 58 0c lea 0xc(%eax),%ebx <== NOT EXECUTED
for ( ; ap->name; ap++)
113e0b: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED
113e0e: 85 f6 test %esi,%esi <== NOT EXECUTED
113e10: 74 f0 je 113e02 <rtems_assoc_ptr_by_local+0x32><== NOT EXECUTED
113e12: 89 c1 mov %eax,%ecx <== NOT EXECUTED
113e14: 89 d8 mov %ebx,%eax <== NOT EXECUTED
113e16: eb e5 jmp 113dfd <rtems_assoc_ptr_by_local+0x2d><== NOT EXECUTED
113e18: 89 c8 mov %ecx,%eax
if (ap->local_value == local_value)
return ap;
return default_ap;
}
113e1a: 5b pop %ebx
113e1b: 5e pop %esi
113e1c: 5f pop %edi
113e1d: c9 leave
113e1e: c3 ret
113e1f: 90 nop
uint32_t local_value
)
{
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
113e20: 31 c0 xor %eax,%eax
for ( ; ap->name; ap++)
if (ap->local_value == local_value)
return ap;
return default_ap;
}
113e22: 5b pop %ebx <== NOT EXECUTED
113e23: 5e pop %esi <== NOT EXECUTED
113e24: 5f pop %edi <== NOT EXECUTED
113e25: c9 leave <== NOT EXECUTED
113e26: c3 ret <== NOT EXECUTED
001136e8 <rtems_assoc_ptr_by_remote>:
const rtems_assoc_t *rtems_assoc_ptr_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
1136e8: 55 push %ebp
1136e9: 89 e5 mov %esp,%ebp
1136eb: 57 push %edi
1136ec: 56 push %esi
1136ed: 53 push %ebx
1136ee: 8b 45 08 mov 0x8(%ebp),%eax
1136f1: 8b 55 0c mov 0xc(%ebp),%edx
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
1136f4: 8b 30 mov (%eax),%esi
1136f6: 85 f6 test %esi,%esi
1136f8: 74 3e je 113738 <rtems_assoc_ptr_by_remote+0x50><== NEVER TAKEN
1136fa: bf 3a 21 12 00 mov $0x12213a,%edi
1136ff: b9 0a 00 00 00 mov $0xa,%ecx
113704: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
113706: 74 18 je 113720 <rtems_assoc_ptr_by_remote+0x38><== NEVER TAKEN
113708: 31 c9 xor %ecx,%ecx
11370a: eb 09 jmp 113715 <rtems_assoc_ptr_by_remote+0x2d>
default_ap = ap++;
for ( ; ap->name; ap++)
11370c: 83 c0 0c add $0xc,%eax
11370f: 8b 18 mov (%eax),%ebx
113711: 85 db test %ebx,%ebx
113713: 74 1b je 113730 <rtems_assoc_ptr_by_remote+0x48>
if (ap->remote_value == remote_value)
113715: 39 50 08 cmp %edx,0x8(%eax)
113718: 75 f2 jne 11370c <rtems_assoc_ptr_by_remote+0x24>
return ap;
return default_ap;
}
11371a: 5b pop %ebx
11371b: 5e pop %esi
11371c: 5f pop %edi
11371d: c9 leave
11371e: c3 ret
11371f: 90 nop
)
{
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
113720: 8d 58 0c lea 0xc(%eax),%ebx <== NOT EXECUTED
for ( ; ap->name; ap++)
113723: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED
113726: 85 f6 test %esi,%esi <== NOT EXECUTED
113728: 74 f0 je 11371a <rtems_assoc_ptr_by_remote+0x32><== NOT EXECUTED
11372a: 89 c1 mov %eax,%ecx <== NOT EXECUTED
11372c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
11372e: eb e5 jmp 113715 <rtems_assoc_ptr_by_remote+0x2d><== NOT EXECUTED
113730: 89 c8 mov %ecx,%eax
if (ap->remote_value == remote_value)
return ap;
return default_ap;
}
113732: 5b pop %ebx
113733: 5e pop %esi
113734: 5f pop %edi
113735: c9 leave
113736: c3 ret
113737: 90 nop
uint32_t remote_value
)
{
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
113738: 31 c0 xor %eax,%eax
for ( ; ap->name; ap++)
if (ap->remote_value == remote_value)
return ap;
return default_ap;
}
11373a: 5b pop %ebx <== NOT EXECUTED
11373b: 5e pop %esi <== NOT EXECUTED
11373c: 5f pop %edi <== NOT EXECUTED
11373d: c9 leave <== NOT EXECUTED
11373e: c3 ret <== NOT EXECUTED
00113db0 <rtems_assoc_remote_by_local>:
uint32_t rtems_assoc_remote_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
113db0: 55 push %ebp <== NOT EXECUTED
113db1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
113db3: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
113db6: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
113db9: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
113dbc: e8 0f 00 00 00 call 113dd0 <rtems_assoc_ptr_by_local><== NOT EXECUTED
if (nap)
113dc1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
113dc4: 85 c0 test %eax,%eax <== NOT EXECUTED
113dc6: 74 03 je 113dcb <rtems_assoc_remote_by_local+0x1b><== NOT EXECUTED
return nap->remote_value;
113dc8: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
return 0;
}
113dcb: c9 leave <== NOT EXECUTED
113dcc: c3 ret <== NOT EXECUTED
00111114 <rtems_barrier_create>:
rtems_name name,
rtems_attribute attribute_set,
uint32_t maximum_waiters,
rtems_id *id
)
{
111114: 55 push %ebp
111115: 89 e5 mov %esp,%ebp
111117: 57 push %edi
111118: 56 push %esi
111119: 53 push %ebx
11111a: 83 ec 2c sub $0x2c,%esp
11111d: 8b 5d 08 mov 0x8(%ebp),%ebx
111120: 8b 7d 0c mov 0xc(%ebp),%edi
111123: 8b 45 10 mov 0x10(%ebp),%eax
111126: 8b 75 14 mov 0x14(%ebp),%esi
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
111129: 85 db test %ebx,%ebx
11112b: 0f 84 87 00 00 00 je 1111b8 <rtems_barrier_create+0xa4>
return RTEMS_INVALID_NAME;
if ( !id )
111131: 85 f6 test %esi,%esi
111133: 0f 84 bb 00 00 00 je 1111f4 <rtems_barrier_create+0xe0>
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
111139: f7 c7 10 00 00 00 test $0x10,%edi
11113f: 0f 84 83 00 00 00 je 1111c8 <rtems_barrier_create+0xb4>
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
111145: 85 c0 test %eax,%eax
111147: 0f 84 87 00 00 00 je 1111d4 <rtems_barrier_create+0xc0>
if ( !id )
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
11114d: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
if ( maximum_waiters == 0 )
return RTEMS_INVALID_NUMBER;
} else
the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;
the_attributes.maximum_count = maximum_waiters;
111154: 89 45 e4 mov %eax,-0x1c(%ebp)
111157: a1 58 73 12 00 mov 0x127358,%eax
11115c: 40 inc %eax
11115d: a3 58 73 12 00 mov %eax,0x127358
* This function allocates a barrier control block from
* the inactive chain of free barrier control blocks.
*/
RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Allocate( void )
{
return (Barrier_Control *) _Objects_Allocate( &_Barrier_Information );
111162: 83 ec 0c sub $0xc,%esp
111165: 68 20 76 12 00 push $0x127620
11116a: e8 25 bd ff ff call 10ce94 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _Barrier_Allocate();
if ( !the_barrier ) {
11116f: 83 c4 10 add $0x10,%esp
111172: 85 c0 test %eax,%eax
111174: 74 6a je 1111e0 <rtems_barrier_create+0xcc>
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_barrier->attribute_set = attribute_set;
111176: 89 78 10 mov %edi,0x10(%eax)
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
111179: 83 ec 08 sub $0x8,%esp
11117c: 8d 55 e0 lea -0x20(%ebp),%edx
11117f: 52 push %edx
111180: 8d 50 14 lea 0x14(%eax),%edx
111183: 52 push %edx
111184: 89 45 d4 mov %eax,-0x2c(%ebp)
111187: e8 24 05 00 00 call 1116b0 <_CORE_barrier_Initialize>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
11118c: 8b 45 d4 mov -0x2c(%ebp),%eax
11118f: 8b 50 08 mov 0x8(%eax),%edx
111192: 0f b7 fa movzwl %dx,%edi
111195: 8b 0d 3c 76 12 00 mov 0x12763c,%ecx
11119b: 89 04 b9 mov %eax,(%ecx,%edi,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
11119e: 89 58 0c mov %ebx,0xc(%eax)
&_Barrier_Information,
&the_barrier->Object,
(Objects_Name) name
);
*id = the_barrier->Object.id;
1111a1: 89 16 mov %edx,(%esi)
_Thread_Enable_dispatch();
1111a3: e8 e4 c9 ff ff call 10db8c <_Thread_Enable_dispatch>
1111a8: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
1111aa: 83 c4 10 add $0x10,%esp
}
1111ad: 8d 65 f4 lea -0xc(%ebp),%esp
1111b0: 5b pop %ebx
1111b1: 5e pop %esi
1111b2: 5f pop %edi
1111b3: c9 leave
1111b4: c3 ret
1111b5: 8d 76 00 lea 0x0(%esi),%esi
)
{
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
1111b8: b8 03 00 00 00 mov $0x3,%eax
*id = the_barrier->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
1111bd: 8d 65 f4 lea -0xc(%ebp),%esp
1111c0: 5b pop %ebx
1111c1: 5e pop %esi
1111c2: 5f pop %edi
1111c3: c9 leave
1111c4: c3 ret
1111c5: 8d 76 00 lea 0x0(%esi),%esi
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
return RTEMS_INVALID_NUMBER;
} else
the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;
1111c8: c7 45 e0 01 00 00 00 movl $0x1,-0x20(%ebp)
1111cf: eb 83 jmp 111154 <rtems_barrier_create+0x40>
1111d1: 8d 76 00 lea 0x0(%esi),%esi
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
1111d4: b0 0a mov $0xa,%al
*id = the_barrier->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
1111d6: 8d 65 f4 lea -0xc(%ebp),%esp
1111d9: 5b pop %ebx
1111da: 5e pop %esi
1111db: 5f pop %edi
1111dc: c9 leave
1111dd: c3 ret
1111de: 66 90 xchg %ax,%ax
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _Barrier_Allocate();
if ( !the_barrier ) {
_Thread_Enable_dispatch();
1111e0: e8 a7 c9 ff ff call 10db8c <_Thread_Enable_dispatch>
1111e5: b8 05 00 00 00 mov $0x5,%eax
*id = the_barrier->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
1111ea: 8d 65 f4 lea -0xc(%ebp),%esp
1111ed: 5b pop %ebx
1111ee: 5e pop %esi
1111ef: 5f pop %edi
1111f0: c9 leave
1111f1: c3 ret
1111f2: 66 90 xchg %ax,%ax
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
1111f4: b8 09 00 00 00 mov $0x9,%eax
1111f9: eb b2 jmp 1111ad <rtems_barrier_create+0x99>
00110ab4 <rtems_bdbuf_add_to_modified_list_after_access>:
}
}
static void
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{
110ab4: 55 push %ebp
110ab5: 89 e5 mov %esp,%ebp
110ab7: 53 push %ebx
110ab8: 83 ec 04 sub $0x4,%esp
110abb: 89 c3 mov %eax,%ebx
if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dev)
110abd: a0 70 b0 12 00 mov 0x12b070,%al
110ac2: 84 c0 test %al,%al
110ac4: 74 17 je 110add <rtems_bdbuf_add_to_modified_list_after_access+0x29><== ALWAYS TAKEN
110ac6: a1 78 b0 12 00 mov 0x12b078,%eax <== NOT EXECUTED
110acb: 8b 15 7c b0 12 00 mov 0x12b07c,%edx <== NOT EXECUTED
110ad1: 8b 4b 18 mov 0x18(%ebx),%ecx <== NOT EXECUTED
110ad4: 31 d1 xor %edx,%ecx <== NOT EXECUTED
110ad6: 33 43 14 xor 0x14(%ebx),%eax <== NOT EXECUTED
110ad9: 09 c1 or %eax,%ecx <== NOT EXECUTED
110adb: 74 67 je 110b44 <rtems_bdbuf_add_to_modified_list_after_access+0x90><== 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)
110add: 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
110ae0: 83 f8 03 cmp $0x3,%eax
110ae3: 74 43 je 110b28 <rtems_bdbuf_add_to_modified_list_after_access+0x74>
|| bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)
110ae5: 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
110ae8: 83 f8 05 cmp $0x5,%eax
110aeb: 74 3b je 110b28 <rtems_bdbuf_add_to_modified_list_after_access+0x74>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
110aed: 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 );
110af4: 83 ec 08 sub $0x8,%esp
110af7: 53 push %ebx
110af8: 68 90 b0 12 00 push $0x12b090
110afd: e8 86 cd ff ff call 10d888 <_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)
110b02: 8b 43 28 mov 0x28(%ebx),%eax
110b05: 83 c4 10 add $0x10,%esp
110b08: 85 c0 test %eax,%eax
110b0a: 75 28 jne 110b34 <rtems_bdbuf_add_to_modified_list_after_access+0x80>
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
110b0c: a1 b8 b0 12 00 mov 0x12b0b8,%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 ())
110b11: 85 c0 test %eax,%eax
110b13: 75 07 jne 110b1c <rtems_bdbuf_add_to_modified_list_after_access+0x68>
rtems_bdbuf_wake_swapper ();
}
110b15: 8b 5d fc mov -0x4(%ebp),%ebx
110b18: c9 leave
110b19: c3 ret
110b1a: 66 90 xchg %ax,%ax
110b1c: 8b 5d fc mov -0x4(%ebp),%ebx
110b1f: 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 ();
110b20: e9 63 ff ff ff jmp 110a88 <rtems_bdbuf_wake_swapper>
110b25: 8d 76 00 lea 0x0(%esi),%esi
* 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)
bd->hold_timer = bdbuf_config.swap_block_hold;
110b28: a1 90 37 12 00 mov 0x123790,%eax
110b2d: 89 43 30 mov %eax,0x30(%ebx)
110b30: eb bb jmp 110aed <rtems_bdbuf_add_to_modified_list_after_access+0x39>
110b32: 66 90 xchg %ax,%ax
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);
110b34: b8 a8 b0 12 00 mov $0x12b0a8,%eax
else if (rtems_bdbuf_has_buffer_waiters ())
rtems_bdbuf_wake_swapper ();
}
110b39: 8b 5d fc mov -0x4(%ebp),%ebx
110b3c: 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);
110b3d: e9 6a fc ff ff jmp 1107ac <rtems_bdbuf_wake>
110b42: 66 90 xchg %ax,%ax
static void
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{
if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dev)
{
rtems_bdbuf_unlock_cache ();
110b44: e8 df fd ff ff call 110928 <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);
110b49: ba 0b 00 00 42 mov $0x4200000b,%edx <== NOT EXECUTED
110b4e: a1 6c b0 12 00 mov 0x12b06c,%eax <== NOT EXECUTED
110b53: e8 18 fc ff ff call 110770 <rtems_bdbuf_lock> <== NOT EXECUTED
/*
* Wait for the sync lock.
*/
rtems_bdbuf_lock_sync ();
rtems_bdbuf_unlock_sync ();
110b58: e8 f3 fd ff ff call 110950 <rtems_bdbuf_unlock_sync><== NOT EXECUTED
rtems_bdbuf_lock_cache ();
110b5d: e8 36 fc ff ff call 110798 <rtems_bdbuf_lock_cache><== NOT EXECUTED
110b62: e9 76 ff ff ff jmp 110add <rtems_bdbuf_add_to_modified_list_after_access+0x29><== NOT EXECUTED
00110cc4 <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)
{
110cc4: 55 push %ebp
110cc5: 89 e5 mov %esp,%ebp
110cc7: 56 push %esi
110cc8: 53 push %ebx
110cc9: 89 c3 mov %eax,%ebx
rtems_mode prev_mode;
/*
* Indicate we are waiting.
*/
++waiters->count;
110ccb: 8b 00 mov (%eax),%eax
110ccd: 40 inc %eax
110cce: 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 ();
110cd0: e8 83 ff ff ff call 110c58 <rtems_bdbuf_disable_preemption>
110cd5: 89 c6 mov %eax,%esi
/*
* Unlock the cache, wait, and lock the cache when we return.
*/
rtems_bdbuf_unlock_cache ();
110cd7: e8 4c fc ff ff call 110928 <rtems_bdbuf_unlock_cache>
sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
110cdc: 50 push %eax
110cdd: 6a 00 push $0x0
110cdf: 6a 00 push $0x0
110ce1: ff 73 04 pushl 0x4(%ebx)
110ce4: e8 9b c1 ff ff call 10ce84 <rtems_semaphore_obtain>
if (sc == RTEMS_TIMEOUT)
110ce9: 83 c4 10 add $0x10,%esp
110cec: 83 f8 06 cmp $0x6,%eax
110cef: 74 1d je 110d0e <rtems_bdbuf_anonymous_wait+0x4a><== NEVER TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_TO);
if (sc != RTEMS_UNSATISFIED)
110cf1: 83 f8 0d cmp $0xd,%eax
110cf4: 75 25 jne 110d1b <rtems_bdbuf_anonymous_wait+0x57><== NEVER TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_2);
rtems_bdbuf_lock_cache ();
110cf6: e8 9d fa ff ff call 110798 <rtems_bdbuf_lock_cache>
rtems_bdbuf_restore_preemption (prev_mode);
110cfb: 89 f0 mov %esi,%eax
110cfd: e8 92 ff ff ff call 110c94 <rtems_bdbuf_restore_preemption>
--waiters->count;
110d02: 8b 03 mov (%ebx),%eax
110d04: 48 dec %eax
110d05: 89 03 mov %eax,(%ebx)
}
110d07: 8d 65 f8 lea -0x8(%ebp),%esp
110d0a: 5b pop %ebx
110d0b: 5e pop %esi
110d0c: c9 leave
110d0d: c3 ret
rtems_bdbuf_unlock_cache ();
sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
if (sc == RTEMS_TIMEOUT)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_TO);
110d0e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110d11: 68 12 00 00 42 push $0x42000012 <== NOT EXECUTED
110d16: e8 35 c7 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
if (sc != RTEMS_UNSATISFIED)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_2);
110d1b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110d1e: 68 10 00 00 42 push $0x42000010 <== NOT EXECUTED
110d23: e8 28 c7 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
00110c58 <rtems_bdbuf_disable_preemption>:
--bd->group->users;
}
static rtems_mode
rtems_bdbuf_disable_preemption (void)
{
110c58: 55 push %ebp
110c59: 89 e5 mov %esp,%ebp
110c5b: 83 ec 1c sub $0x1c,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_mode prev_mode = 0;
110c5e: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
110c65: 8d 45 f4 lea -0xc(%ebp),%eax
110c68: 50 push %eax
110c69: 68 00 01 00 00 push $0x100
110c6e: 68 00 01 00 00 push $0x100
110c73: e8 50 43 00 00 call 114fc8 <rtems_task_mode>
if (sc != RTEMS_SUCCESSFUL)
110c78: 83 c4 10 add $0x10,%esp
110c7b: 85 c0 test %eax,%eax
110c7d: 75 05 jne 110c84 <rtems_bdbuf_disable_preemption+0x2c><== NEVER TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_DIS);
return prev_mode;
}
110c7f: 8b 45 f4 mov -0xc(%ebp),%eax
110c82: c9 leave
110c83: c3 ret
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_mode prev_mode = 0;
sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_DIS);
110c84: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110c87: 68 0f 00 00 42 push $0x4200000f <== NOT EXECUTED
110c8c: e8 bf c7 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
00111530 <rtems_bdbuf_discard_buffer_after_access>:
return bdbuf_cache.max_bds_per_group / bds_per_size;
}
static void
rtems_bdbuf_discard_buffer_after_access (rtems_bdbuf_buffer *bd)
{
111530: 55 push %ebp
111531: 89 e5 mov %esp,%ebp
111533: 53 push %ebx
111534: 83 ec 04 sub $0x4,%esp
111537: 89 c3 mov %eax,%ebx
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
111539: 8b 40 2c mov 0x2c(%eax),%eax
11153c: ff 48 0c decl 0xc(%eax)
static void
rtems_bdbuf_discard_buffer_after_access (rtems_bdbuf_buffer *bd)
{
rtems_bdbuf_group_release (bd);
rtems_bdbuf_discard_buffer (bd);
11153f: 89 d8 mov %ebx,%eax
111541: e8 ae ff ff ff call 1114f4 <rtems_bdbuf_discard_buffer>
if (bd->waiters)
111546: 8b 43 28 mov 0x28(%ebx),%eax
111549: 85 c0 test %eax,%eax
11154b: 75 0f jne 11155c <rtems_bdbuf_discard_buffer_after_access+0x2c>
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
else
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
11154d: b8 b8 b0 12 00 mov $0x12b0b8,%eax
}
111552: 5a pop %edx
111553: 5b pop %ebx
111554: c9 leave
rtems_bdbuf_discard_buffer (bd);
if (bd->waiters)
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
else
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
111555: e9 52 f2 ff ff jmp 1107ac <rtems_bdbuf_wake>
11155a: 66 90 xchg %ax,%ax
{
rtems_bdbuf_group_release (bd);
rtems_bdbuf_discard_buffer (bd);
if (bd->waiters)
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
11155c: b8 a8 b0 12 00 mov $0x12b0a8,%eax
else
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
}
111561: 59 pop %ecx
111562: 5b pop %ebx
111563: c9 leave
{
rtems_bdbuf_group_release (bd);
rtems_bdbuf_discard_buffer (bd);
if (bd->waiters)
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
111564: e9 43 f2 ff ff jmp 1107ac <rtems_bdbuf_wake>
0011185c <rtems_bdbuf_execute_transfer_request>:
static rtems_status_code
rtems_bdbuf_execute_transfer_request (const rtems_disk_device *dd,
rtems_blkdev_request *req,
bool cache_locked)
{
11185c: 55 push %ebp
11185d: 89 e5 mov %esp,%ebp
11185f: 57 push %edi
111860: 56 push %esi
111861: 53 push %ebx
111862: 83 ec 2c sub $0x2c,%esp
111865: 89 d3 mov %edx,%ebx
111867: 88 4d db mov %cl,-0x25(%ebp)
int result = 0;
uint32_t transfer_index = 0;
bool wake_transfer_waiters = false;
bool wake_buffer_waiters = false;
if (cache_locked)
11186a: 84 c9 test %cl,%cl
11186c: 0f 85 fe 00 00 00 jne 111970 <rtems_bdbuf_execute_transfer_request+0x114>
rtems_bdbuf_unlock_cache ();
result = dd->ioctl (dd->phys_dev, RTEMS_BLKIO_REQUEST, req);
111872: 56 push %esi
111873: 53 push %ebx
111874: 68 01 42 18 c0 push $0xc0184201
111879: ff 70 08 pushl 0x8(%eax)
11187c: ff 50 28 call *0x28(%eax)
if (result == 0)
11187f: 83 c4 10 add $0x10,%esp
111882: 85 c0 test %eax,%eax
111884: 0f 84 ce 00 00 00 je 111958 <rtems_bdbuf_execute_transfer_request+0xfc>
11188a: c7 45 dc 1b 00 00 00 movl $0x1b,-0x24(%ebp)
sc = req->status;
}
else
sc = RTEMS_IO_ERROR;
rtems_bdbuf_lock_cache ();
111891: e8 02 ef ff ff call 110798 <rtems_bdbuf_lock_cache>
for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
111896: 8b 4b 10 mov 0x10(%ebx),%ecx
111899: 85 c9 test %ecx,%ecx
11189b: 74 65 je 111902 <rtems_bdbuf_execute_transfer_request+0xa6><== NEVER TAKEN
11189d: 89 df mov %ebx,%edi
11189f: c6 45 e3 00 movb $0x0,-0x1d(%ebp)
1118a3: c6 45 e2 00 movb $0x0,-0x1e(%ebp)
1118a7: 31 f6 xor %esi,%esi
1118a9: 89 5d e4 mov %ebx,-0x1c(%ebp)
1118ac: 8b 5d dc mov -0x24(%ebp),%ebx
1118af: eb 2a jmp 1118db <rtems_bdbuf_execute_transfer_request+0x7f>
1118b1: 8d 76 00 lea 0x0(%esi),%esi
{
rtems_bdbuf_buffer *bd = req->bufs [transfer_index].user;
bool waiters = bd->waiters;
if (waiters)
1118b4: c6 45 e3 01 movb $0x1,-0x1d(%ebp)
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
1118b8: 8b 50 2c mov 0x2c(%eax),%edx
1118bb: ff 4a 0c decl 0xc(%edx)
else
wake_buffer_waiters = true;
rtems_bdbuf_group_release (bd);
if (sc == RTEMS_SUCCESSFUL && bd->state == RTEMS_BDBUF_STATE_TRANSFER)
1118be: 85 db test %ebx,%ebx
1118c0: 75 08 jne 1118ca <rtems_bdbuf_execute_transfer_request+0x6e>
1118c2: 8b 50 24 mov 0x24(%eax),%edx
1118c5: 83 fa 09 cmp $0x9,%edx
1118c8: 74 5e je 111928 <rtems_bdbuf_execute_transfer_request+0xcc>
rtems_bdbuf_make_cached_and_add_to_lru_list (bd);
else
rtems_bdbuf_discard_buffer (bd);
1118ca: e8 25 fc ff ff call 1114f4 <rtems_bdbuf_discard_buffer>
else
sc = RTEMS_IO_ERROR;
rtems_bdbuf_lock_cache ();
for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
1118cf: 46 inc %esi
1118d0: 83 c7 10 add $0x10,%edi
1118d3: 8b 45 e4 mov -0x1c(%ebp),%eax
1118d6: 39 70 10 cmp %esi,0x10(%eax)
1118d9: 76 11 jbe 1118ec <rtems_bdbuf_execute_transfer_request+0x90>
{
rtems_bdbuf_buffer *bd = req->bufs [transfer_index].user;
1118db: 8b 47 24 mov 0x24(%edi),%eax
bool waiters = bd->waiters;
1118de: 8b 50 28 mov 0x28(%eax),%edx
if (waiters)
1118e1: 85 d2 test %edx,%edx
1118e3: 74 cf je 1118b4 <rtems_bdbuf_execute_transfer_request+0x58>
1118e5: c6 45 e2 01 movb $0x1,-0x1e(%ebp)
1118e9: eb cd jmp 1118b8 <rtems_bdbuf_execute_transfer_request+0x5c>
1118eb: 90 nop
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("transfer", bd);
}
if (wake_transfer_waiters)
1118ec: 80 7d e2 00 cmpb $0x0,-0x1e(%ebp)
1118f0: 75 5a jne 11194c <rtems_bdbuf_execute_transfer_request+0xf0>
rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);
if (wake_buffer_waiters)
1118f2: 80 7d e3 00 cmpb $0x0,-0x1d(%ebp)
1118f6: 74 0a je 111902 <rtems_bdbuf_execute_transfer_request+0xa6>
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
1118f8: b8 b8 b0 12 00 mov $0x12b0b8,%eax
1118fd: e8 aa ee ff ff call 1107ac <rtems_bdbuf_wake>
if (!cache_locked)
111902: 80 7d db 00 cmpb $0x0,-0x25(%ebp)
111906: 74 3c je 111944 <rtems_bdbuf_execute_transfer_request+0xe8>
rtems_bdbuf_unlock_cache ();
if (sc == RTEMS_SUCCESSFUL || sc == RTEMS_UNSATISFIED)
111908: 8b 55 dc mov -0x24(%ebp),%edx
11190b: 85 d2 test %edx,%edx
11190d: 74 0d je 11191c <rtems_bdbuf_execute_transfer_request+0xc0>
11190f: 83 7d dc 0d cmpl $0xd,-0x24(%ebp)
111913: 74 07 je 11191c <rtems_bdbuf_execute_transfer_request+0xc0>
111915: c7 45 dc 1b 00 00 00 movl $0x1b,-0x24(%ebp)
return sc;
else
return RTEMS_IO_ERROR;
}
11191c: 8b 45 dc mov -0x24(%ebp),%eax
11191f: 8d 65 f4 lea -0xc(%ebp),%esp
111922: 5b pop %ebx
111923: 5e pop %esi
111924: 5f pop %edi
111925: c9 leave
111926: c3 ret
111927: 90 nop
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
111928: c7 40 24 02 00 00 00 movl $0x2,0x24(%eax)
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
11192f: 83 ec 08 sub $0x8,%esp
111932: 50 push %eax
111933: 68 84 b0 12 00 push $0x12b084
111938: e8 4b bf ff ff call 10d888 <_Chain_Append>
else
wake_buffer_waiters = true;
rtems_bdbuf_group_release (bd);
if (sc == RTEMS_SUCCESSFUL && bd->state == RTEMS_BDBUF_STATE_TRANSFER)
11193d: 83 c4 10 add $0x10,%esp
111940: eb 8d jmp 1118cf <rtems_bdbuf_execute_transfer_request+0x73>
111942: 66 90 xchg %ax,%ax
if (wake_buffer_waiters)
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
if (!cache_locked)
rtems_bdbuf_unlock_cache ();
111944: e8 df ef ff ff call 110928 <rtems_bdbuf_unlock_cache>
111949: eb bd jmp 111908 <rtems_bdbuf_execute_transfer_request+0xac>
11194b: 90 nop
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("transfer", bd);
}
if (wake_transfer_waiters)
rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);
11194c: b8 b0 b0 12 00 mov $0x12b0b0,%eax
111951: e8 56 ee ff ff call 1107ac <rtems_bdbuf_wake>
111956: eb 9a jmp 1118f2 <rtems_bdbuf_execute_transfer_request+0x96>
result = dd->ioctl (dd->phys_dev, RTEMS_BLKIO_REQUEST, req);
if (result == 0)
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_TRANSFER_SYNC);
111958: b8 02 00 00 00 mov $0x2,%eax
11195d: e8 2a f2 ff ff call 110b8c <rtems_bdbuf_wait_for_event>
sc = req->status;
111962: 8b 43 0c mov 0xc(%ebx),%eax
111965: 89 45 dc mov %eax,-0x24(%ebp)
111968: e9 24 ff ff ff jmp 111891 <rtems_bdbuf_execute_transfer_request+0x35>
11196d: 8d 76 00 lea 0x0(%esi),%esi
uint32_t transfer_index = 0;
bool wake_transfer_waiters = false;
bool wake_buffer_waiters = false;
if (cache_locked)
rtems_bdbuf_unlock_cache ();
111970: 89 45 d4 mov %eax,-0x2c(%ebp)
111973: e8 b0 ef ff ff call 110928 <rtems_bdbuf_unlock_cache>
111978: 8b 45 d4 mov -0x2c(%ebp),%eax
11197b: e9 f2 fe ff ff jmp 111872 <rtems_bdbuf_execute_transfer_request+0x16>
00112598 <rtems_bdbuf_get>:
rtems_status_code
rtems_bdbuf_get (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
112598: 55 push %ebp
112599: 89 e5 mov %esp,%ebp
11259b: 57 push %edi
11259c: 56 push %esi
11259d: 53 push %ebx
11259e: 83 ec 20 sub $0x20,%esp
1125a1: 8b 5d 08 mov 0x8(%ebp),%ebx
1125a4: 8b 75 0c mov 0xc(%ebp),%esi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
1125a7: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
1125ae: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
size_t bds_per_group = 0;
1125b5: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
1125bc: 8d 45 dc lea -0x24(%ebp),%eax
1125bf: 50 push %eax
1125c0: 8d 45 e0 lea -0x20(%ebp),%eax
1125c3: 50 push %eax
1125c4: 8d 45 e4 lea -0x1c(%ebp),%eax
1125c7: 50 push %eax
1125c8: 8b 4d 10 mov 0x10(%ebp),%ecx
1125cb: 89 d8 mov %ebx,%eax
1125cd: 89 f2 mov %esi,%edx
1125cf: e8 a4 e3 ff ff call 110978 <rtems_bdbuf_obtain_disk>
1125d4: 89 c7 mov %eax,%edi
if (sc != RTEMS_SUCCESSFUL)
1125d6: 83 c4 10 add $0x10,%esp
1125d9: 85 c0 test %eax,%eax
1125db: 74 0b je 1125e8 <rtems_bdbuf_get+0x50> <== ALWAYS TAKEN
rtems_bdbuf_release_disk (dd);
*bd_ptr = bd;
return RTEMS_SUCCESSFUL;
}
1125dd: 89 f8 mov %edi,%eax <== NOT EXECUTED
1125df: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1125e2: 5b pop %ebx <== NOT EXECUTED
1125e3: 5e pop %esi <== NOT EXECUTED
1125e4: 5f pop %edi <== NOT EXECUTED
1125e5: c9 leave <== NOT EXECUTED
1125e6: c3 ret <== NOT EXECUTED
1125e7: 90 nop <== NOT EXECUTED
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
if (sc != RTEMS_SUCCESSFUL)
return sc;
rtems_bdbuf_lock_cache ();
1125e8: e8 ab e1 ff ff call 110798 <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);
1125ed: 83 ec 0c sub $0xc,%esp
1125f0: ff 75 dc pushl -0x24(%ebp)
1125f3: 8b 4d e0 mov -0x20(%ebp),%ecx
1125f6: 89 d8 mov %ebx,%eax
1125f8: 89 f2 mov %esi,%edx
1125fa: e8 e1 fd ff ff call 1123e0 <rtems_bdbuf_get_buffer_for_access>
1125ff: 89 c3 mov %eax,%ebx
switch (bd->state)
112601: 8b 40 24 mov 0x24(%eax),%eax
112604: 83 c4 10 add $0x10,%esp
112607: 83 f8 02 cmp $0x2,%eax
11260a: 74 40 je 11264c <rtems_bdbuf_get+0xb4>
11260c: 83 f8 07 cmp $0x7,%eax
11260f: 74 17 je 112628 <rtems_bdbuf_get+0x90>
112611: 48 dec %eax
112612: 74 44 je 112658 <rtems_bdbuf_get+0xc0> <== ALWAYS TAKEN
* so just gets the block to fill.
*/
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_MODIFIED);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_2);
112614: 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);
112617: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11261a: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
11261d: 0d 1e 00 00 42 or $0x4200001e,%eax <== NOT EXECUTED
112622: 50 push %eax <== NOT EXECUTED
112623: e8 28 ae ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
112628: c7 43 24 04 00 00 00 movl $0x4,0x24(%ebx)
{
rtems_bdbuf_show_users ("get", bd);
rtems_bdbuf_show_usage ();
}
rtems_bdbuf_unlock_cache ();
11262f: e8 f4 e2 ff ff call 110928 <rtems_bdbuf_unlock_cache>
rtems_bdbuf_release_disk (dd);
112634: 8b 45 e4 mov -0x1c(%ebp),%eax
112637: e8 28 e4 ff ff call 110a64 <rtems_bdbuf_release_disk>
*bd_ptr = bd;
11263c: 8b 45 14 mov 0x14(%ebp),%eax
11263f: 89 18 mov %ebx,(%eax)
return RTEMS_SUCCESSFUL;
}
112641: 89 f8 mov %edi,%eax
112643: 8d 65 f4 lea -0xc(%ebp),%esp
112646: 5b pop %ebx
112647: 5e pop %esi
112648: 5f pop %edi
112649: c9 leave
11264a: c3 ret
11264b: 90 nop
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
11264c: 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;
112653: eb da jmp 11262f <rtems_bdbuf_get+0x97>
112655: 8d 76 00 lea 0x0(%esi),%esi
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
112658: 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;
11265f: eb ce jmp 11262f <rtems_bdbuf_get+0x97>
001123e0 <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)
{
1123e0: 55 push %ebp
1123e1: 89 e5 mov %esp,%ebp
1123e3: 57 push %edi
1123e4: 56 push %esi
1123e5: 53 push %ebx
1123e6: 83 ec 1c sub $0x1c,%esp
1123e9: 89 c7 mov %eax,%edi
1123eb: 89 d3 mov %edx,%ebx
1123ed: 89 4d e0 mov %ecx,-0x20(%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;
1123f0: 8b 35 80 b0 12 00 mov 0x12b080,%esi
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
1123f6: 85 f6 test %esi,%esi
1123f8: 74 35 je 11242f <rtems_bdbuf_get_buffer_for_access+0x4f>
1123fa: 89 7d e4 mov %edi,-0x1c(%ebp)
1123fd: eb 0f jmp 11240e <rtems_bdbuf_get_buffer_for_access+0x2e>
1123ff: 90 nop
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
112400: 72 05 jb 112407 <rtems_bdbuf_get_buffer_for_access+0x27><== NEVER TAKEN
112402: 39 55 e4 cmp %edx,-0x1c(%ebp)
112405: 77 1e ja 112425 <rtems_bdbuf_get_buffer_for_access+0x45>
{
p = p->avl.right;
}
else
{
p = p->avl.left;
112407: 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)))
11240a: 85 f6 test %esi,%esi
11240c: 74 1e je 11242c <rtems_bdbuf_get_buffer_for_access+0x4c>
11240e: 8b 56 14 mov 0x14(%esi),%edx
112411: 8b 46 18 mov 0x18(%esi),%eax
112414: 89 df mov %ebx,%edi
112416: 31 c7 xor %eax,%edi
112418: 8b 4d e4 mov -0x1c(%ebp),%ecx
11241b: 31 d1 xor %edx,%ecx
11241d: 09 cf or %ecx,%edi
11241f: 74 4b je 11246c <rtems_bdbuf_get_buffer_for_access+0x8c>
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
112421: 39 c3 cmp %eax,%ebx
112423: 76 db jbe 112400 <rtems_bdbuf_get_buffer_for_access+0x20><== ALWAYS TAKEN
{
p = p->avl.right;
112425: 8b 76 0c mov 0xc(%esi),%esi
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
112428: 85 f6 test %esi,%esi
11242a: 75 e2 jne 11240e <rtems_bdbuf_get_buffer_for_access+0x2e>
11242c: 8b 7d e4 mov -0x1c(%ebp),%edi
bd = NULL;
}
}
else
{
bd = rtems_bdbuf_get_buffer_from_lru_list (dev, block, bds_per_group);
11242f: 83 ec 0c sub $0xc,%esp
112432: ff 75 08 pushl 0x8(%ebp)
112435: 8b 4d e0 mov -0x20(%ebp),%ecx
112438: 89 f8 mov %edi,%eax
11243a: 89 da mov %ebx,%edx
11243c: e8 d3 fb ff ff call 112014 <rtems_bdbuf_get_buffer_from_lru_list>
112441: 89 c6 mov %eax,%esi
if (bd == NULL)
112443: 83 c4 10 add $0x10,%esp
112446: 85 c0 test %eax,%eax
112448: 0f 84 28 01 00 00 je 112576 <rtems_bdbuf_get_buffer_for_access+0x196>
11244e: 66 90 xchg %ax,%ax
static void
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
112450: 8b 46 24 mov 0x24(%esi),%eax
112453: 83 f8 0a cmp $0xa,%eax
112456: 76 4e jbe 1124a6 <rtems_bdbuf_get_buffer_for_access+0xc6><== ALWAYS TAKEN
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_7);
112458: 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);
11245b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11245e: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
112461: 0d 05 00 00 42 or $0x42000005,%eax <== NOT EXECUTED
112466: 50 push %eax <== NOT EXECUTED
112467: e8 e4 af ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
11246c: 8b 45 e0 mov -0x20(%ebp),%eax
11246f: 3b 46 1c cmp 0x1c(%esi),%eax
112472: 74 08 je 11247c <rtems_bdbuf_get_buffer_for_access+0x9c>
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
112474: 76 91 jbe 112407 <rtems_bdbuf_get_buffer_for_access+0x27>
{
p = p->avl.right;
112476: 8b 76 0c mov 0xc(%esi),%esi
112479: eb ad jmp 112428 <rtems_bdbuf_get_buffer_for_access+0x48>
11247b: 90 nop
11247c: 8b 7d e4 mov -0x1c(%ebp),%edi
{
bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);
if (bd != NULL)
{
if (bd->group->bds_per_group != bds_per_group)
11247f: 8b 46 2c mov 0x2c(%esi),%eax
112482: 8b 55 08 mov 0x8(%ebp),%edx
112485: 39 50 08 cmp %edx,0x8(%eax)
112488: 74 c6 je 112450 <rtems_bdbuf_get_buffer_for_access+0x70>
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
11248a: 8b 46 24 mov 0x24(%esi),%eax
11248d: 83 f8 0a cmp $0xa,%eax
112490: 76 3d jbe 1124cf <rtems_bdbuf_get_buffer_for_access+0xef><== ALWAYS TAKEN
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_8);
112492: 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);
112495: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
112498: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
11249b: 0d 06 00 00 42 or $0x42000006,%eax <== NOT EXECUTED
1124a0: 50 push %eax <== NOT EXECUTED
1124a1: e8 aa af ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
static void
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
1124a6: ff 24 85 b0 55 12 00 jmp *0x1255b0(,%eax,4)
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
1124ad: 8b 46 2c mov 0x2c(%esi),%eax
1124b0: ff 48 0c decl 0xc(%eax)
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
1124b3: 83 ec 0c sub $0xc,%esp
1124b6: 56 push %esi
1124b7: e8 f0 b3 ff ff call 10d8ac <_Chain_Extract>
1124bc: 83 c4 10 add $0x10,%esp
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
1124bf: 8b 46 2c mov 0x2c(%esi),%eax
1124c2: ff 40 0c incl 0xc(%eax)
rtems_bdbuf_wait_for_access (bd);
rtems_bdbuf_group_obtain (bd);
return bd;
}
1124c5: 89 f0 mov %esi,%eax
1124c7: 8d 65 f4 lea -0xc(%ebp),%esp
1124ca: 5b pop %ebx
1124cb: 5e pop %esi
1124cc: 5f pop %edi
1124cd: c9 leave
1124ce: c3 ret
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
1124cf: ff 24 85 dc 55 12 00 jmp *0x1255dc(,%eax,4)
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
1124d6: c7 46 24 08 00 00 00 movl $0x8,0x24(%esi) <== NOT EXECUTED
1124dd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1124e0: 56 push %esi <== NOT EXECUTED
1124e1: e8 c6 b3 ff ff call 10d8ac <_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 );
1124e6: 58 pop %eax <== NOT EXECUTED
1124e7: 5a pop %edx <== NOT EXECUTED
1124e8: 56 push %esi <== NOT EXECUTED
1124e9: 68 9c b0 12 00 push $0x12b09c <== NOT EXECUTED
1124ee: e8 95 b3 ff ff call 10d888 <_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 ();
1124f3: e8 90 e5 ff ff call 110a88 <rtems_bdbuf_wake_swapper><== NOT EXECUTED
1124f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1124fb: eb 8d jmp 11248a <rtems_bdbuf_get_buffer_for_access+0xaa><== NOT EXECUTED
}
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);
1124fd: ba a8 b0 12 00 mov $0x12b0a8,%edx
112502: 89 f0 mov %esi,%eax
112504: e8 1f e8 ff ff call 110d28 <rtems_bdbuf_wait>
112509: e9 7c ff ff ff jmp 11248a <rtems_bdbuf_get_buffer_for_access+0xaa>
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)
11250e: 8b 46 28 mov 0x28(%esi),%eax
112511: 85 c0 test %eax,%eax
112513: 75 72 jne 112587 <rtems_bdbuf_get_buffer_for_access+0x1a7><== ALWAYS TAKEN
{
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);
112515: 89 f0 mov %esi,%eax <== NOT EXECUTED
112517: e8 94 ef ff ff call 1114b0 <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;
11251c: 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);
112523: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
112526: 56 push %esi <== NOT EXECUTED
112527: 68 84 b0 12 00 push $0x12b084 <== NOT EXECUTED
11252c: e8 03 2f 00 00 call 115434 <_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);
112531: b8 b8 b0 12 00 mov $0x12b0b8,%eax <== NOT EXECUTED
112536: e8 71 e2 ff ff call 1107ac <rtems_bdbuf_wake> <== NOT EXECUTED
11253b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11253e: e9 ad fe ff ff jmp 1123f0 <rtems_bdbuf_get_buffer_for_access+0x10><== NOT EXECUTED
rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);
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);
112543: ba b0 b0 12 00 mov $0x12b0b0,%edx <== NOT EXECUTED
112548: 89 f0 mov %esi,%eax <== NOT EXECUTED
11254a: e8 d9 e7 ff ff call 110d28 <rtems_bdbuf_wait> <== NOT EXECUTED
11254f: e9 36 ff ff ff jmp 11248a <rtems_bdbuf_get_buffer_for_access+0xaa><== NOT EXECUTED
rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);
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);
112554: ba b0 b0 12 00 mov $0x12b0b0,%edx
112559: 89 f0 mov %esi,%eax
11255b: e8 c8 e7 ff ff call 110d28 <rtems_bdbuf_wait>
112560: e9 eb fe ff ff jmp 112450 <rtems_bdbuf_get_buffer_for_access+0x70>
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);
112565: ba a8 b0 12 00 mov $0x12b0a8,%edx
11256a: 89 f0 mov %esi,%eax
11256c: e8 b7 e7 ff ff call 110d28 <rtems_bdbuf_wait>
112571: e9 da fe ff ff jmp 112450 <rtems_bdbuf_get_buffer_for_access+0x70>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
112576: 81 3d 90 b0 12 00 94 cmpl $0x12b094,0x12b090
11257d: b0 12 00
112580: 74 05 je 112587 <rtems_bdbuf_get_buffer_for_access+0x1a7>
static void
rtems_bdbuf_wait_for_buffer (void)
{
if (!rtems_chain_is_empty (&bdbuf_cache.modified))
rtems_bdbuf_wake_swapper ();
112582: e8 01 e5 ff ff call 110a88 <rtems_bdbuf_wake_swapper>
rtems_bdbuf_anonymous_wait (&bdbuf_cache.buffer_waiters);
112587: b8 b8 b0 12 00 mov $0x12b0b8,%eax
11258c: e8 33 e7 ff ff call 110cc4 <rtems_bdbuf_anonymous_wait>
112591: e9 5a fe ff ff jmp 1123f0 <rtems_bdbuf_get_buffer_for_access+0x10>
00112014 <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)
{
112014: 55 push %ebp
112015: 89 e5 mov %esp,%ebp
112017: 57 push %edi
112018: 56 push %esi
112019: 53 push %ebx
11201a: 81 ec bc 00 00 00 sub $0xbc,%esp
112020: 89 85 5c ff ff ff mov %eax,-0xa4(%ebp)
112026: 89 95 54 ff ff ff mov %edx,-0xac(%ebp)
11202c: 89 8d 58 ff ff ff mov %ecx,-0xa8(%ebp)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
112032: 8b 35 84 b0 12 00 mov 0x12b084,%esi
rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);
while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))
112038: 81 fe 88 b0 12 00 cmp $0x12b088,%esi
11203e: 0f 84 0e 01 00 00 je 112152 <rtems_bdbuf_get_buffer_from_lru_list+0x13e>
bd->group->bds_per_group, bds_per_group);
/*
* If nobody waits for this BD, we may recycle it.
*/
if (bd->waiters == 0)
112044: 8b 46 28 mov 0x28(%esi),%eax
112047: 85 c0 test %eax,%eax
112049: 0f 85 f5 00 00 00 jne 112144 <rtems_bdbuf_get_buffer_from_lru_list+0x130>
{
if (bd->group->bds_per_group == bds_per_group)
11204f: 8b 5e 2c mov 0x2c(%esi),%ebx
112052: 8b 4b 08 mov 0x8(%ebx),%ecx
112055: 3b 4d 08 cmp 0x8(%ebp),%ecx
112058: 0f 84 02 01 00 00 je 112160 <rtems_bdbuf_get_buffer_from_lru_list+0x14c>
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
empty_bd = bd;
}
else if (bd->group->users == 0)
11205e: 8b 7b 0c mov 0xc(%ebx),%edi
112061: 85 ff test %edi,%edi
112063: 0f 85 db 00 00 00 jne 112144 <rtems_bdbuf_get_buffer_from_lru_list+0x130>
if (rtems_bdbuf_tracer)
printf ("bdbuf:realloc: %tu: %zd -> %zd\n",
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;
112069: a1 60 b0 12 00 mov 0x12b060,%eax
for (b = 0, bd = group->bdbuf;
11206e: 8b 7b 10 mov 0x10(%ebx),%edi
112071: 89 bd 60 ff ff ff mov %edi,-0xa0(%ebp)
112077: 85 c9 test %ecx,%ecx
112079: 74 4a je 1120c5 <rtems_bdbuf_get_buffer_from_lru_list+0xb1><== NEVER TAKEN
11207b: 31 d2 xor %edx,%edx
11207d: f7 f1 div %ecx
11207f: 8d 04 40 lea (%eax,%eax,2),%eax
112082: 8d 04 80 lea (%eax,%eax,4),%eax
112085: c1 e0 02 shl $0x2,%eax
112088: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp)
11208e: 31 d2 xor %edx,%edx
112090: 89 b5 60 ff ff ff mov %esi,-0xa0(%ebp)
112096: 89 de mov %ebx,%esi
112098: 89 d3 mov %edx,%ebx
11209a: 66 90 xchg %ax,%ax
b < group->bds_per_group;
b++, bd += bufs_per_bd)
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
11209c: 89 f8 mov %edi,%eax
11209e: e8 0d f4 ff ff call 1114b0 <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)
1120a3: 43 inc %ebx
1120a4: 03 bd 64 ff ff ff add -0x9c(%ebp),%edi
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;
1120aa: 3b 5e 08 cmp 0x8(%esi),%ebx
1120ad: 72 ed jb 11209c <rtems_bdbuf_get_buffer_from_lru_list+0x88>
1120af: 89 f3 mov %esi,%ebx
1120b1: 8b b5 60 ff ff ff mov -0xa0(%ebp),%esi
1120b7: a1 60 b0 12 00 mov 0x12b060,%eax
1120bc: 8b 53 10 mov 0x10(%ebx),%edx
1120bf: 89 95 60 ff ff ff mov %edx,-0xa0(%ebp)
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;
1120c5: 8b 4d 08 mov 0x8(%ebp),%ecx
1120c8: 89 4b 08 mov %ecx,0x8(%ebx)
bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;
for (b = 1, bd = group->bdbuf + bufs_per_bd;
1120cb: 8b 95 60 ff ff ff mov -0xa0(%ebp),%edx
1120d1: 83 f9 01 cmp $0x1,%ecx
1120d4: 76 6a jbe 112140 <rtems_bdbuf_get_buffer_from_lru_list+0x12c>
1120d6: 31 d2 xor %edx,%edx
1120d8: f7 f1 div %ecx
1120da: 8d 04 40 lea (%eax,%eax,2),%eax
1120dd: 8d 04 80 lea (%eax,%eax,4),%eax
1120e0: c1 e0 02 shl $0x2,%eax
1120e3: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp)
1120e9: 8b bd 60 ff ff ff mov -0xa0(%ebp),%edi
1120ef: 01 c7 add %eax,%edi
1120f1: b8 01 00 00 00 mov $0x1,%eax
1120f6: 89 b5 60 ff ff ff mov %esi,-0xa0(%ebp)
1120fc: 89 de mov %ebx,%esi
1120fe: 89 c3 mov %eax,%ebx
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
112100: c7 47 24 00 00 00 00 movl $0x0,0x24(%edi)
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
112107: 83 ec 08 sub $0x8,%esp
11210a: 57 push %edi
11210b: 68 84 b0 12 00 push $0x12b084
112110: e8 1f 33 00 00 call 115434 <_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)
112115: 43 inc %ebx
112116: 03 bd 64 ff ff ff add -0x9c(%ebp),%edi
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;
11211c: 83 c4 10 add $0x10,%esp
11211f: 3b 5e 08 cmp 0x8(%esi),%ebx
112122: 72 dc jb 112100 <rtems_bdbuf_get_buffer_from_lru_list+0xec><== NEVER TAKEN
112124: 89 d8 mov %ebx,%eax
112126: 89 f3 mov %esi,%ebx
112128: 8b b5 60 ff ff ff mov -0xa0(%ebp),%esi
b < group->bds_per_group;
b++, bd += bufs_per_bd)
rtems_bdbuf_make_free_and_add_to_lru_list (bd);
if (b > 1)
11212e: 83 f8 01 cmp $0x1,%eax
112131: 76 0a jbe 11213d <rtems_bdbuf_get_buffer_from_lru_list+0x129><== NEVER TAKEN
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
112133: b8 b8 b0 12 00 mov $0x12b0b8,%eax
112138: e8 6f e6 ff ff call 1107ac <rtems_bdbuf_wake>
11213d: 8b 53 10 mov 0x10(%ebx),%edx
}
else if (bd->group->users == 0)
empty_bd = rtems_bdbuf_group_realloc (bd->group, bds_per_group);
}
if (empty_bd != NULL)
112140: 85 d2 test %edx,%edx
112142: 75 29 jne 11216d <rtems_bdbuf_get_buffer_from_lru_list+0x159><== ALWAYS TAKEN
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
112144: 8b 36 mov (%esi),%esi
rtems_blkdev_bnum block,
size_t bds_per_group)
{
rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);
while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))
112146: 81 fe 88 b0 12 00 cmp $0x12b088,%esi
11214c: 0f 85 f2 fe ff ff jne 112044 <rtems_bdbuf_get_buffer_from_lru_list+0x30>
112152: 31 d2 xor %edx,%edx
node = rtems_chain_next (node);
}
return NULL;
}
112154: 89 d0 mov %edx,%eax
112156: 8d 65 f4 lea -0xc(%ebp),%esp
112159: 5b pop %ebx
11215a: 5e pop %esi
11215b: 5f pop %edi
11215c: c9 leave
11215d: c3 ret
11215e: 66 90 xchg %ax,%ax
*/
if (bd->waiters == 0)
{
if (bd->group->bds_per_group == bds_per_group)
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
112160: 89 f0 mov %esi,%eax
112162: e8 49 f3 ff ff call 1114b0 <rtems_bdbuf_remove_from_tree_and_lru_list>
112167: 89 f2 mov %esi,%edx
}
else if (bd->group->users == 0)
empty_bd = rtems_bdbuf_group_realloc (bd->group, bds_per_group);
}
if (empty_bd != NULL)
112169: 85 d2 test %edx,%edx
11216b: 74 d7 je 112144 <rtems_bdbuf_get_buffer_from_lru_list+0x130><== NEVER TAKEN
static void
rtems_bdbuf_setup_empty_buffer (rtems_bdbuf_buffer *bd,
dev_t dev,
rtems_blkdev_bnum block)
{
bd->dev = dev;
11216d: 8b 85 5c ff ff ff mov -0xa4(%ebp),%eax
112173: 89 42 14 mov %eax,0x14(%edx)
112176: 8b 8d 54 ff ff ff mov -0xac(%ebp),%ecx
11217c: 89 4a 18 mov %ecx,0x18(%edx)
bd->block = block;
11217f: 8b 85 58 ff ff ff mov -0xa8(%ebp),%eax
112185: 89 42 1c mov %eax,0x1c(%edx)
bd->avl.left = NULL;
112188: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx)
bd->avl.right = NULL;
11218f: c7 42 0c 00 00 00 00 movl $0x0,0xc(%edx)
bd->waiters = 0;
112196: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx)
rtems_bdbuf_buffer* node)
{
dev_t dev = node->dev;
rtems_blkdev_bnum block = node->block;
rtems_bdbuf_buffer* p = *root;
11219d: a1 80 b0 12 00 mov 0x12b080,%eax
rtems_bdbuf_buffer* buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer** buf_prev = buf_stack;
bool modified = false;
if (p == NULL)
1121a2: 85 c0 test %eax,%eax
1121a4: 0f 84 18 02 00 00 je 1123c2 <rtems_bdbuf_get_buffer_from_lru_list+0x3ae>
1121aa: 8d 8d 68 ff ff ff lea -0x98(%ebp),%ecx
1121b0: 89 8d 44 ff ff ff mov %ecx,-0xbc(%ebp)
1121b6: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp)
1121bc: 8b bd 54 ff ff ff mov -0xac(%ebp),%edi
1121c2: eb 2d jmp 1121f1 <rtems_bdbuf_get_buffer_from_lru_list+0x1dd>
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
1121c4: 72 08 jb 1121ce <rtems_bdbuf_get_buffer_from_lru_list+0x1ba><== NEVER TAKEN
1121c6: 39 b5 5c ff ff ff cmp %esi,-0xa4(%ebp)
1121cc: 77 32 ja 112200 <rtems_bdbuf_get_buffer_from_lru_list+0x1ec><== NEVER TAKEN
1121ce: 31 fa xor %edi,%edx
1121d0: 33 b5 5c ff ff ff xor -0xa4(%ebp),%esi
1121d6: 09 f2 or %esi,%edx
1121d8: 0f 84 a2 00 00 00 je 112280 <rtems_bdbuf_get_buffer_from_lru_list+0x26c><== ALWAYS TAKEN
break;
}
}
else if ((p->dev != dev) || (p->block != block))
{
p->avl.cache = -1;
1121de: c6 40 10 ff movb $0xff,0x10(%eax)
q = p->avl.left;
1121e2: 8b 50 08 mov 0x8(%eax),%edx
if (q == NULL)
1121e5: 85 d2 test %edx,%edx
1121e7: 0f 84 aa 01 00 00 je 112397 <rtems_bdbuf_get_buffer_from_lru_list+0x383>
{
q = node;
p->avl.left = q;
1121ed: 89 d9 mov %ebx,%ecx
1121ef: 89 d0 mov %edx,%eax
return 0;
}
while (p != NULL)
{
*buf_prev++ = p;
1121f1: 89 01 mov %eax,(%ecx)
1121f3: 8d 59 04 lea 0x4(%ecx),%ebx
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
1121f6: 8b 70 14 mov 0x14(%eax),%esi
1121f9: 8b 50 18 mov 0x18(%eax),%edx
1121fc: 39 d7 cmp %edx,%edi
1121fe: 76 c4 jbe 1121c4 <rtems_bdbuf_get_buffer_from_lru_list+0x1b0><== ALWAYS TAKEN
{
p->avl.cache = 1;
112200: c6 40 10 01 movb $0x1,0x10(%eax)
q = p->avl.right;
112204: 8b 50 0c mov 0xc(%eax),%edx
if (q == NULL)
112207: 85 d2 test %edx,%edx
112209: 75 e2 jne 1121ed <rtems_bdbuf_get_buffer_from_lru_list+0x1d9>
11220b: 8b 95 64 ff ff ff mov -0x9c(%ebp),%edx
{
q = node;
p->avl.right = q = node;
112211: 89 50 0c mov %edx,0xc(%eax)
}
p = q;
}
q->avl.left = q->avl.right = NULL;
112214: c7 42 0c 00 00 00 00 movl $0x0,0xc(%edx)
11221b: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx)
q->avl.bal = 0;
112222: c6 42 11 00 movb $0x0,0x11(%edx)
112226: 89 d6 mov %edx,%esi
112228: eb 24 jmp 11224e <rtems_bdbuf_get_buffer_from_lru_list+0x23a>
11222a: 66 90 xchg %ax,%ax
p->avl.bal = 0;
modified = false;
break;
case 0:
p->avl.bal = 1;
11222c: c6 40 11 01 movb $0x1,0x11(%eax)
112230: 89 c3 mov %eax,%ebx
112232: b2 01 mov $0x1,%dl
default:
break;
}
}
q = p;
if (buf_prev > buf_stack)
112234: 3b 8d 44 ff ff ff cmp -0xbc(%ebp),%ecx
11223a: 76 38 jbe 112274 <rtems_bdbuf_get_buffer_from_lru_list+0x260>
{
p = *--buf_prev;
11223c: 83 e9 04 sub $0x4,%ecx
11223f: 8b 01 mov (%ecx),%eax
if (p->avl.cache == -1)
112241: 80 78 10 ff cmpb $0xff,0x10(%eax)
112245: 74 75 je 1122bc <rtems_bdbuf_get_buffer_from_lru_list+0x2a8>
{
p->avl.left = q;
}
else
{
p->avl.right = q;
112247: 89 58 0c mov %ebx,0xc(%eax)
q->avl.left = q->avl.right = NULL;
q->avl.bal = 0;
modified = true;
buf_prev--;
while (modified)
11224a: 84 d2 test %dl,%dl
11224c: 74 75 je 1122c3 <rtems_bdbuf_get_buffer_from_lru_list+0x2af>
{
if (p->avl.cache == -1)
11224e: 80 78 10 ff cmpb $0xff,0x10(%eax)
112252: 74 50 je 1122a4 <rtems_bdbuf_get_buffer_from_lru_list+0x290>
break;
}
}
else
{
switch (p->avl.bal)
112254: 8a 58 11 mov 0x11(%eax),%bl
112257: 84 db test %bl,%bl
112259: 74 d1 je 11222c <rtems_bdbuf_get_buffer_from_lru_list+0x218>
11225b: 80 fb 01 cmp $0x1,%bl
11225e: 0f 84 80 00 00 00 je 1122e4 <rtems_bdbuf_get_buffer_from_lru_list+0x2d0>
112264: fe c3 inc %bl
112266: 74 6c je 1122d4 <rtems_bdbuf_get_buffer_from_lru_list+0x2c0><== ALWAYS TAKEN
p2->avl.left = p;
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
p = p2;
}
p->avl.bal = 0;
112268: 89 c3 mov %eax,%ebx <== NOT EXECUTED
11226a: b2 01 mov $0x1,%dl <== NOT EXECUTED
default:
break;
}
}
q = p;
if (buf_prev > buf_stack)
11226c: 3b 8d 44 ff ff ff cmp -0xbc(%ebp),%ecx <== NOT EXECUTED
112272: 77 c8 ja 11223c <rtems_bdbuf_get_buffer_from_lru_list+0x228><== NOT EXECUTED
112274: 89 f2 mov %esi,%edx
p->avl.right = q;
}
}
else
{
*root = p;
112276: 89 1d 80 b0 12 00 mov %ebx,0x12b080
11227c: eb 47 jmp 1122c5 <rtems_bdbuf_get_buffer_from_lru_list+0x2b1>
11227e: 66 90 xchg %ax,%ax
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
112280: 8b 95 58 ff ff ff mov -0xa8(%ebp),%edx
112286: 3b 50 1c cmp 0x1c(%eax),%edx
112289: 0f 87 71 ff ff ff ja 112200 <rtems_bdbuf_get_buffer_from_lru_list+0x1ec>
q = node;
p->avl.right = q = node;
break;
}
}
else if ((p->dev != dev) || (p->block != block))
11228f: 0f 85 49 ff ff ff jne 1121de <rtems_bdbuf_get_buffer_from_lru_list+0x1ca><== ALWAYS TAKEN
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);
112295: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
112298: 68 1b 00 00 42 push $0x4200001b <== NOT EXECUTED
11229d: e8 ae b1 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
1122a2: 66 90 xchg %ax,%ax <== NOT EXECUTED
while (modified)
{
if (p->avl.cache == -1)
{
switch (p->avl.bal)
1122a4: 8a 50 11 mov 0x11(%eax),%dl
1122a7: 84 d2 test %dl,%dl
1122a9: 0f 85 8d 00 00 00 jne 11233c <rtems_bdbuf_get_buffer_from_lru_list+0x328>
p->avl.bal = 0;
modified = false;
break;
case 0:
p->avl.bal = -1;
1122af: c6 40 11 ff movb $0xff,0x11(%eax)
1122b3: 89 c3 mov %eax,%ebx
1122b5: b2 01 mov $0x1,%dl
1122b7: e9 78 ff ff ff jmp 112234 <rtems_bdbuf_get_buffer_from_lru_list+0x220>
{
p = *--buf_prev;
if (p->avl.cache == -1)
{
p->avl.left = q;
1122bc: 89 58 08 mov %ebx,0x8(%eax)
q->avl.left = q->avl.right = NULL;
q->avl.bal = 0;
modified = true;
buf_prev--;
while (modified)
1122bf: 84 d2 test %dl,%dl
1122c1: 75 8b jne 11224e <rtems_bdbuf_get_buffer_from_lru_list+0x23a><== ALWAYS TAKEN
1122c3: 89 f2 mov %esi,%edx
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
1122c5: c7 42 24 01 00 00 00 movl $0x1,0x24(%edx)
if (empty_bd != NULL)
{
rtems_bdbuf_setup_empty_buffer (empty_bd, dev, block);
return empty_bd;
1122cc: e9 83 fe ff ff jmp 112154 <rtems_bdbuf_get_buffer_from_lru_list+0x140>
1122d1: 8d 76 00 lea 0x0(%esi),%esi
else
{
switch (p->avl.bal)
{
case -1:
p->avl.bal = 0;
1122d4: c6 40 11 00 movb $0x0,0x11(%eax)
1122d8: 89 c3 mov %eax,%ebx
1122da: 31 d2 xor %edx,%edx
1122dc: e9 53 ff ff ff jmp 112234 <rtems_bdbuf_get_buffer_from_lru_list+0x220>
1122e1: 8d 76 00 lea 0x0(%esi),%esi
case 0:
p->avl.bal = 1;
break;
case 1:
p1 = p->avl.right;
1122e4: 8b 58 0c mov 0xc(%eax),%ebx
if (p1->avl.bal == 1) /* simple RR-turn */
1122e7: 80 7b 11 01 cmpb $0x1,0x11(%ebx)
1122eb: 0f 84 8f 00 00 00 je 112380 <rtems_bdbuf_get_buffer_from_lru_list+0x36c><== ALWAYS TAKEN
p->avl.bal = 0;
p = p1;
}
else /* double RL-turn */
{
p2 = p1->avl.left;
1122f1: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1122f4: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
p1->avl.left = p2->avl.right;
1122fa: 8b 7a 0c mov 0xc(%edx),%edi <== NOT EXECUTED
1122fd: 89 7b 08 mov %edi,0x8(%ebx) <== NOT EXECUTED
p2->avl.right = p1;
112300: 89 5a 0c mov %ebx,0xc(%edx) <== NOT EXECUTED
p->avl.right = p2->avl.left;
112303: 8b 7a 08 mov 0x8(%edx),%edi <== NOT EXECUTED
112306: 89 78 0c mov %edi,0xc(%eax) <== NOT EXECUTED
p2->avl.left = p;
112309: 89 42 08 mov %eax,0x8(%edx) <== NOT EXECUTED
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
11230c: 80 7a 11 01 cmpb $0x1,0x11(%edx) <== NOT EXECUTED
112310: 0f 95 c2 setne %dl <== NOT EXECUTED
112313: 89 d7 mov %edx,%edi <== NOT EXECUTED
112315: 4f dec %edi <== NOT EXECUTED
112316: 89 fa mov %edi,%edx <== NOT EXECUTED
112318: 88 50 11 mov %dl,0x11(%eax) <== NOT EXECUTED
if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
11231b: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax <== NOT EXECUTED
112321: 80 78 11 ff cmpb $0xff,0x11(%eax) <== NOT EXECUTED
112325: 74 68 je 11238f <rtems_bdbuf_get_buffer_from_lru_list+0x37b><== NOT EXECUTED
112327: c6 43 11 00 movb $0x0,0x11(%ebx) <== NOT EXECUTED
11232b: 8b 9d 64 ff ff ff mov -0x9c(%ebp),%ebx <== NOT EXECUTED
p = p2;
}
p->avl.bal = 0;
112331: c6 43 11 00 movb $0x0,0x11(%ebx)
112335: 31 d2 xor %edx,%edx
112337: e9 f8 fe ff ff jmp 112234 <rtems_bdbuf_get_buffer_from_lru_list+0x220>
while (modified)
{
if (p->avl.cache == -1)
{
switch (p->avl.bal)
11233c: 80 fa 01 cmp $0x1,%dl
11233f: 74 93 je 1122d4 <rtems_bdbuf_get_buffer_from_lru_list+0x2c0><== NEVER TAKEN
112341: fe c2 inc %dl
112343: 0f 85 1f ff ff ff jne 112268 <rtems_bdbuf_get_buffer_from_lru_list+0x254><== NEVER TAKEN
case 0:
p->avl.bal = -1;
break;
case -1:
p1 = p->avl.left;
112349: 8b 58 08 mov 0x8(%eax),%ebx
if (p1->avl.bal == -1) /* simple LL-turn */
11234c: 80 7b 11 ff cmpb $0xff,0x11(%ebx)
112350: 74 53 je 1123a5 <rtems_bdbuf_get_buffer_from_lru_list+0x391><== NEVER TAKEN
p->avl.bal = 0;
p = p1;
}
else /* double LR-turn */
{
p2 = p1->avl.right;
112352: 8b 53 0c mov 0xc(%ebx),%edx
p1->avl.right = p2->avl.left;
112355: 8b 7a 08 mov 0x8(%edx),%edi
112358: 89 7b 0c mov %edi,0xc(%ebx)
p2->avl.left = p1;
11235b: 89 5a 08 mov %ebx,0x8(%edx)
p->avl.left = p2->avl.right;
11235e: 8b 7a 0c mov 0xc(%edx),%edi
112361: 89 78 08 mov %edi,0x8(%eax)
p2->avl.right = p;
112364: 89 42 0c mov %eax,0xc(%edx)
if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
112367: 80 7a 11 ff cmpb $0xff,0x11(%edx)
11236b: 0f 94 40 11 sete 0x11(%eax)
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
11236f: 80 7a 11 01 cmpb $0x1,0x11(%edx)
112373: 74 42 je 1123b7 <rtems_bdbuf_get_buffer_from_lru_list+0x3a3><== NEVER TAKEN
112375: c6 43 11 00 movb $0x0,0x11(%ebx)
112379: 89 d3 mov %edx,%ebx
11237b: eb b4 jmp 112331 <rtems_bdbuf_get_buffer_from_lru_list+0x31d>
11237d: 8d 76 00 lea 0x0(%esi),%esi
case 1:
p1 = p->avl.right;
if (p1->avl.bal == 1) /* simple RR-turn */
{
p->avl.right = p1->avl.left;
112380: 8b 53 08 mov 0x8(%ebx),%edx
112383: 89 50 0c mov %edx,0xc(%eax)
p1->avl.left = p;
112386: 89 43 08 mov %eax,0x8(%ebx)
p->avl.bal = 0;
112389: c6 40 11 00 movb $0x0,0x11(%eax)
11238d: eb a2 jmp 112331 <rtems_bdbuf_get_buffer_from_lru_list+0x31d>
p1->avl.left = p2->avl.right;
p2->avl.right = p1;
p->avl.right = p2->avl.left;
p2->avl.left = p;
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
11238f: c6 43 11 01 movb $0x1,0x11(%ebx) <== NOT EXECUTED
112393: 89 c3 mov %eax,%ebx <== NOT EXECUTED
112395: eb 9a jmp 112331 <rtems_bdbuf_get_buffer_from_lru_list+0x31d><== NOT EXECUTED
112397: 8b 95 64 ff ff ff mov -0x9c(%ebp),%edx
p->avl.cache = -1;
q = p->avl.left;
if (q == NULL)
{
q = node;
p->avl.left = q;
11239d: 89 50 08 mov %edx,0x8(%eax)
1123a0: e9 6f fe ff ff jmp 112214 <rtems_bdbuf_get_buffer_from_lru_list+0x200>
case -1:
p1 = p->avl.left;
if (p1->avl.bal == -1) /* simple LL-turn */
{
p->avl.left = p1->avl.right;
1123a5: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
1123a8: 89 50 08 mov %edx,0x8(%eax) <== NOT EXECUTED
p1->avl.right = p;
1123ab: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
p->avl.bal = 0;
1123ae: c6 40 11 00 movb $0x0,0x11(%eax) <== NOT EXECUTED
1123b2: e9 7a ff ff ff jmp 112331 <rtems_bdbuf_get_buffer_from_lru_list+0x31d><== NOT EXECUTED
p1->avl.right = p2->avl.left;
p2->avl.left = p1;
p->avl.left = p2->avl.right;
p2->avl.right = p;
if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
1123b7: c6 43 11 ff movb $0xff,0x11(%ebx) <== NOT EXECUTED
1123bb: 89 d3 mov %edx,%ebx <== NOT EXECUTED
1123bd: e9 6f ff ff ff jmp 112331 <rtems_bdbuf_get_buffer_from_lru_list+0x31d><== NOT EXECUTED
bool modified = false;
if (p == NULL)
{
*root = node;
1123c2: 89 15 80 b0 12 00 mov %edx,0x12b080
node->avl.left = NULL;
1123c8: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx)
node->avl.right = NULL;
1123cf: c7 42 0c 00 00 00 00 movl $0x0,0xc(%edx)
node->avl.bal = 0;
1123d6: c6 42 11 00 movb $0x0,0x11(%edx)
1123da: e9 e6 fe ff ff jmp 1122c5 <rtems_bdbuf_get_buffer_from_lru_list+0x2b1>
00110d58 <rtems_bdbuf_init>:
*
* @return rtems_status_code The initialisation status.
*/
rtems_status_code
rtems_bdbuf_init (void)
{
110d58: 55 push %ebp
110d59: 89 e5 mov %esp,%ebp
110d5b: 57 push %edi
110d5c: 56 push %esi
110d5d: 53 push %ebx
110d5e: 83 ec 1c sub $0x1c,%esp
rtems_mode prev_mode;
if (rtems_bdbuf_tracer)
printf ("bdbuf:init\n");
if (rtems_interrupt_is_in_progress())
110d61: a1 14 b5 12 00 mov 0x12b514,%eax
110d66: 85 c0 test %eax,%eax
110d68: 75 4a jne 110db4 <rtems_bdbuf_init+0x5c> <== NEVER TAKEN
return RTEMS_CALLED_FROM_ISR;
/*
* Check the configuration table values.
*/
if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)
110d6a: a1 a4 37 12 00 mov 0x1237a4,%eax
110d6f: 8b 1d a0 37 12 00 mov 0x1237a0,%ebx
110d75: 31 d2 xor %edx,%edx
110d77: f7 f3 div %ebx
110d79: 89 45 e4 mov %eax,-0x1c(%ebp)
110d7c: 85 d2 test %edx,%edx
110d7e: 74 10 je 110d90 <rtems_bdbuf_init+0x38> <== ALWAYS TAKEN
110d80: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED
}
bdbuf_cache.initialised = false;
return RTEMS_UNSATISFIED;
}
110d85: 8d 65 f4 lea -0xc(%ebp),%esp
110d88: 5b pop %ebx
110d89: 5e pop %esi
110d8a: 5f pop %edi
110d8b: c9 leave
110d8c: c3 ret
110d8d: 8d 76 00 lea 0x0(%esi),%esi
/*
* 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 ();
110d90: e8 c3 fe ff ff call 110c58 <rtems_bdbuf_disable_preemption>
110d95: 89 c2 mov %eax,%edx
if (bdbuf_cache.initialised)
110d97: 80 3d c8 b0 12 00 00 cmpb $0x0,0x12b0c8
110d9e: 74 24 je 110dc4 <rtems_bdbuf_init+0x6c> <== ALWAYS TAKEN
{
rtems_bdbuf_restore_preemption (prev_mode);
110da0: e8 ef fe ff ff call 110c94 <rtems_bdbuf_restore_preemption><== NOT EXECUTED
110da5: b8 0c 00 00 00 mov $0xc,%eax <== NOT EXECUTED
}
bdbuf_cache.initialised = false;
return RTEMS_UNSATISFIED;
}
110daa: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
110dad: 5b pop %ebx <== NOT EXECUTED
110dae: 5e pop %esi <== NOT EXECUTED
110daf: 5f pop %edi <== NOT EXECUTED
110db0: c9 leave <== NOT EXECUTED
110db1: c3 ret <== NOT EXECUTED
110db2: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_mode prev_mode;
if (rtems_bdbuf_tracer)
printf ("bdbuf:init\n");
if (rtems_interrupt_is_in_progress())
110db4: b8 12 00 00 00 mov $0x12,%eax <== NOT EXECUTED
}
bdbuf_cache.initialised = false;
return RTEMS_UNSATISFIED;
}
110db9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
110dbc: 5b pop %ebx <== NOT EXECUTED
110dbd: 5e pop %esi <== NOT EXECUTED
110dbe: 5f pop %edi <== NOT EXECUTED
110dbf: c9 leave <== NOT EXECUTED
110dc0: c3 ret <== NOT EXECUTED
110dc1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
rtems_bdbuf_restore_preemption (prev_mode);
return RTEMS_RESOURCE_IN_USE;
}
memset(&bdbuf_cache, 0, sizeof(bdbuf_cache));
110dc4: be 40 b0 12 00 mov $0x12b040,%esi
110dc9: b9 8c 00 00 00 mov $0x8c,%ecx
110dce: 31 c0 xor %eax,%eax
110dd0: 89 f7 mov %esi,%edi
110dd2: f3 aa rep stos %al,%es:(%edi)
bdbuf_cache.initialised = true;
110dd4: c6 05 c8 b0 12 00 01 movb $0x1,0x12b0c8
rtems_bdbuf_restore_preemption (prev_mode);
110ddb: 89 d0 mov %edx,%eax
110ddd: e8 b2 fe ff ff call 110c94 <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;
110de2: c7 05 78 b0 12 00 ff movl $0xffffffff,0x12b078
110de9: ff ff ff
110dec: c7 05 7c b0 12 00 ff movl $0xffffffff,0x12b07c
110df3: ff ff ff
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
110df6: c7 05 48 b0 12 00 4c movl $0x12b04c,0x12b048
110dfd: b0 12 00
the_chain->permanent_null = NULL;
110e00: c7 05 4c b0 12 00 00 movl $0x0,0x12b04c
110e07: 00 00 00
the_chain->last = _Chain_Head(the_chain);
110e0a: c7 05 50 b0 12 00 48 movl $0x12b048,0x12b050
110e11: b0 12 00
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
110e14: c7 05 84 b0 12 00 88 movl $0x12b088,0x12b084
110e1b: b0 12 00
the_chain->permanent_null = NULL;
110e1e: c7 05 88 b0 12 00 00 movl $0x0,0x12b088
110e25: 00 00 00
the_chain->last = _Chain_Head(the_chain);
110e28: c7 05 8c b0 12 00 84 movl $0x12b084,0x12b08c
110e2f: b0 12 00
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
110e32: c7 05 90 b0 12 00 94 movl $0x12b094,0x12b090
110e39: b0 12 00
the_chain->permanent_null = NULL;
110e3c: c7 05 94 b0 12 00 00 movl $0x0,0x12b094
110e43: 00 00 00
the_chain->last = _Chain_Head(the_chain);
110e46: c7 05 98 b0 12 00 90 movl $0x12b090,0x12b098
110e4d: b0 12 00
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
110e50: c7 05 9c b0 12 00 a0 movl $0x12b0a0,0x12b09c
110e57: b0 12 00
the_chain->permanent_null = NULL;
110e5a: c7 05 a0 b0 12 00 00 movl $0x0,0x12b0a0
110e61: 00 00 00
the_chain->last = _Chain_Head(the_chain);
110e64: c7 05 a4 b0 12 00 9c movl $0x12b09c,0x12b0a4
110e6b: b0 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'),
110e6e: 83 ec 0c sub $0xc,%esp
110e71: 68 68 b0 12 00 push $0x12b068
110e76: 6a 00 push $0x0
110e78: 6a 54 push $0x54
110e7a: 6a 01 push $0x1
110e7c: 68 6c 43 44 42 push $0x4244436c
110e81: e8 86 bd ff ff call 10cc0c <rtems_semaphore_create>
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.lock);
if (sc != RTEMS_SUCCESSFUL)
110e86: 83 c4 20 add $0x20,%esp
110e89: 85 c0 test %eax,%eax
110e8b: 0f 84 ab 00 00 00 je 110f3c <rtems_bdbuf_init+0x1e4><== ALWAYS TAKEN
return RTEMS_SUCCESSFUL;
error:
if (bdbuf_cache.swapout != 0)
110e91: a1 40 b0 12 00 mov 0x12b040,%eax <== NOT EXECUTED
110e96: 85 c0 test %eax,%eax <== NOT EXECUTED
110e98: 75 76 jne 110f10 <rtems_bdbuf_init+0x1b8><== NOT EXECUTED
rtems_task_delete (bdbuf_cache.swapout);
free (bdbuf_cache.buffers);
110e9a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110e9d: ff 35 58 b0 12 00 pushl 0x12b058 <== NOT EXECUTED
110ea3: e8 e4 85 ff ff call 10948c <free> <== NOT EXECUTED
free (bdbuf_cache.groups);
110ea8: 59 pop %ecx <== NOT EXECUTED
110ea9: ff 35 c4 b0 12 00 pushl 0x12b0c4 <== NOT EXECUTED
110eaf: e8 d8 85 ff ff call 10948c <free> <== NOT EXECUTED
free (bdbuf_cache.bds);
110eb4: 5a pop %edx <== NOT EXECUTED
110eb5: ff 35 54 b0 12 00 pushl 0x12b054 <== NOT EXECUTED
110ebb: e8 cc 85 ff ff call 10948c <free> <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.buffer_waiters.sema);
110ec0: 58 pop %eax <== NOT EXECUTED
110ec1: ff 35 bc b0 12 00 pushl 0x12b0bc <== NOT EXECUTED
110ec7: e8 14 bf ff ff call 10cde0 <rtems_semaphore_delete><== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.access_waiters.sema);
110ecc: 5f pop %edi <== NOT EXECUTED
110ecd: ff 35 ac b0 12 00 pushl 0x12b0ac <== NOT EXECUTED
110ed3: e8 08 bf ff ff call 10cde0 <rtems_semaphore_delete><== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);
110ed8: 5e pop %esi <== NOT EXECUTED
110ed9: ff 35 b4 b0 12 00 pushl 0x12b0b4 <== NOT EXECUTED
110edf: e8 fc be ff ff call 10cde0 <rtems_semaphore_delete><== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.sync_lock);
110ee4: 5b pop %ebx <== NOT EXECUTED
110ee5: ff 35 6c b0 12 00 pushl 0x12b06c <== NOT EXECUTED
110eeb: e8 f0 be ff ff call 10cde0 <rtems_semaphore_delete><== NOT EXECUTED
if (bdbuf_cache.lock != 0)
110ef0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110ef3: 8b 0d 68 b0 12 00 mov 0x12b068,%ecx <== NOT EXECUTED
110ef9: 85 c9 test %ecx,%ecx <== NOT EXECUTED
110efb: 75 27 jne 110f24 <rtems_bdbuf_init+0x1cc><== NOT EXECUTED
{
rtems_bdbuf_unlock_cache ();
rtems_semaphore_delete (bdbuf_cache.lock);
}
bdbuf_cache.initialised = false;
110efd: c6 05 c8 b0 12 00 00 movb $0x0,0x12b0c8 <== NOT EXECUTED
110f04: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_UNSATISFIED;
110f09: e9 77 fe ff ff jmp 110d85 <rtems_bdbuf_init+0x2d> <== NOT EXECUTED
110f0e: 66 90 xchg %ax,%ax <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
error:
if (bdbuf_cache.swapout != 0)
rtems_task_delete (bdbuf_cache.swapout);
110f10: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110f13: 50 push %eax <== NOT EXECUTED
110f14: e8 67 c2 ff ff call 10d180 <rtems_task_delete> <== NOT EXECUTED
110f19: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110f1c: e9 79 ff ff ff jmp 110e9a <rtems_bdbuf_init+0x142><== NOT EXECUTED
110f21: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);
rtems_semaphore_delete (bdbuf_cache.sync_lock);
if (bdbuf_cache.lock != 0)
{
rtems_bdbuf_unlock_cache ();
110f24: e8 ff f9 ff ff call 110928 <rtems_bdbuf_unlock_cache><== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.lock);
110f29: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110f2c: ff 35 68 b0 12 00 pushl 0x12b068 <== NOT EXECUTED
110f32: e8 a9 be ff ff call 10cde0 <rtems_semaphore_delete><== NOT EXECUTED
110f37: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110f3a: eb c1 jmp 110efd <rtems_bdbuf_init+0x1a5><== NOT EXECUTED
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.lock);
if (sc != RTEMS_SUCCESSFUL)
goto error;
rtems_bdbuf_lock_cache ();
110f3c: e8 57 f8 ff ff call 110798 <rtems_bdbuf_lock_cache>
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 's'),
110f41: 83 ec 0c sub $0xc,%esp
110f44: 68 6c b0 12 00 push $0x12b06c
110f49: 6a 00 push $0x0
110f4b: 6a 54 push $0x54
110f4d: 6a 01 push $0x1
110f4f: 68 73 43 44 42 push $0x42444373
110f54: e8 b3 bc ff ff call 10cc0c <rtems_semaphore_create>
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.sync_lock);
if (sc != RTEMS_SUCCESSFUL)
110f59: 83 c4 20 add $0x20,%esp
110f5c: 85 c0 test %eax,%eax
110f5e: 0f 85 2d ff ff ff jne 110e91 <rtems_bdbuf_init+0x139><== NEVER TAKEN
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'a'),
110f64: 83 ec 0c sub $0xc,%esp
110f67: 68 ac b0 12 00 push $0x12b0ac
110f6c: 6a 00 push $0x0
110f6e: 6a 24 push $0x24
110f70: 6a 00 push $0x0
110f72: 68 61 43 44 42 push $0x42444361
110f77: e8 90 bc ff ff call 10cc0c <rtems_semaphore_create>
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.access_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
110f7c: 83 c4 20 add $0x20,%esp
110f7f: 85 c0 test %eax,%eax
110f81: 0f 85 0a ff ff ff jne 110e91 <rtems_bdbuf_init+0x139><== NEVER TAKEN
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 't'),
110f87: 83 ec 0c sub $0xc,%esp
110f8a: 68 b4 b0 12 00 push $0x12b0b4
110f8f: 6a 00 push $0x0
110f91: 6a 24 push $0x24
110f93: 6a 00 push $0x0
110f95: 68 74 43 44 42 push $0x42444374
110f9a: e8 6d bc ff ff call 10cc0c <rtems_semaphore_create>
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.transfer_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
110f9f: 83 c4 20 add $0x20,%esp
110fa2: 85 c0 test %eax,%eax
110fa4: 0f 85 e7 fe ff ff jne 110e91 <rtems_bdbuf_init+0x139><== NEVER TAKEN
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'b'),
110faa: 83 ec 0c sub $0xc,%esp
110fad: 68 bc b0 12 00 push $0x12b0bc
110fb2: 6a 00 push $0x0
110fb4: 6a 24 push $0x24
110fb6: 6a 00 push $0x0
110fb8: 68 62 43 44 42 push $0x42444362
110fbd: e8 4a bc ff ff call 10cc0c <rtems_semaphore_create>
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.buffer_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
110fc2: 83 c4 20 add $0x20,%esp
110fc5: 85 c0 test %eax,%eax
110fc7: 0f 85 c4 fe ff ff jne 110e91 <rtems_bdbuf_init+0x139><== NEVER TAKEN
/*
* Compute the various number of elements in the cache.
*/
bdbuf_cache.buffer_min_count =
bdbuf_config.size / bdbuf_config.buffer_min;
110fcd: a1 9c 37 12 00 mov 0x12379c,%eax
110fd2: 31 d2 xor %edx,%edx
110fd4: f7 f3 div %ebx
110fd6: 89 c1 mov %eax,%ecx
goto error;
/*
* Compute the various number of elements in the cache.
*/
bdbuf_cache.buffer_min_count =
110fd8: a3 5c b0 12 00 mov %eax,0x12b05c
bdbuf_config.size / bdbuf_config.buffer_min;
bdbuf_cache.max_bds_per_group =
110fdd: 8b 45 e4 mov -0x1c(%ebp),%eax
110fe0: a3 60 b0 12 00 mov %eax,0x12b060
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
bdbuf_cache.group_count =
110fe5: 89 c8 mov %ecx,%eax
110fe7: 31 d2 xor %edx,%edx
110fe9: f7 75 e4 divl -0x1c(%ebp)
110fec: a3 c0 b0 12 00 mov %eax,0x12b0c0
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),
110ff1: 56 push %esi
110ff2: 56 push %esi
110ff3: 51 push %ecx
110ff4: 6a 3c push $0x3c
110ff6: e8 79 82 ff ff call 109274 <calloc>
110ffb: a3 54 b0 12 00 mov %eax,0x12b054
bdbuf_cache.buffer_min_count);
if (!bdbuf_cache.bds)
111000: 83 c4 10 add $0x10,%esp
111003: 85 c0 test %eax,%eax
111005: 0f 84 86 fe ff ff je 110e91 <rtems_bdbuf_init+0x139><== NEVER TAKEN
goto error;
/*
* Allocate the memory for the buffer descriptors.
*/
bdbuf_cache.groups = calloc (sizeof (rtems_bdbuf_group),
11100b: 51 push %ecx
11100c: 51 push %ecx
11100d: ff 35 c0 b0 12 00 pushl 0x12b0c0
111013: 6a 14 push $0x14
111015: e8 5a 82 ff ff call 109274 <calloc>
11101a: a3 c4 b0 12 00 mov %eax,0x12b0c4
bdbuf_cache.group_count);
if (!bdbuf_cache.groups)
11101f: 83 c4 10 add $0x10,%esp
111022: 85 c0 test %eax,%eax
111024: 0f 84 67 fe ff ff je 110e91 <rtems_bdbuf_init+0x139><== 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,
11102a: 52 push %edx
11102b: a1 5c b0 12 00 mov 0x12b05c,%eax
111030: 0f af c3 imul %ebx,%eax
111033: 50 push %eax
111034: 6a 20 push $0x20
111036: 68 58 b0 12 00 push $0x12b058
11103b: e8 10 3c 00 00 call 114c50 <rtems_memalign>
111040: 83 c4 10 add $0x10,%esp
111043: 85 c0 test %eax,%eax
111045: 0f 85 46 fe ff ff jne 110e91 <rtems_bdbuf_init+0x139><== 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,
11104b: 8b 3d c4 b0 12 00 mov 0x12b0c4,%edi
bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;
111051: 8b 35 54 b0 12 00 mov 0x12b054,%esi
111057: 8b 0d 58 b0 12 00 mov 0x12b058,%ecx
11105d: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
/*
* 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,
111064: 8b 45 e4 mov -0x1c(%ebp),%eax
111067: 3b 05 5c b0 12 00 cmp 0x12b05c,%eax
11106d: 73 4c jae 1110bb <rtems_bdbuf_init+0x363>
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;
11106f: c7 46 14 ff ff ff ff movl $0xffffffff,0x14(%esi)
111076: c7 46 18 ff ff ff ff movl $0xffffffff,0x18(%esi)
bd->group = group;
11107d: 89 7e 2c mov %edi,0x2c(%esi)
bd->buffer = buffer;
111080: 89 4e 20 mov %ecx,0x20(%esi)
111083: 50 push %eax
111084: 50 push %eax
111085: 56 push %esi
111086: 68 84 b0 12 00 push $0x12b084
11108b: 89 4d e0 mov %ecx,-0x20(%ebp)
11108e: e8 f5 c7 ff ff call 10d888 <_Chain_Append>
rtems_chain_append (&bdbuf_cache.lru, &bd->link);
if ((b % bdbuf_cache.max_bds_per_group) ==
111093: 8b 45 e4 mov -0x1c(%ebp),%eax
111096: 31 d2 xor %edx,%edx
111098: f7 35 60 b0 12 00 divl 0x12b060
11109e: a1 60 b0 12 00 mov 0x12b060,%eax
1110a3: 48 dec %eax
1110a4: 83 c4 10 add $0x10,%esp
1110a7: 39 c2 cmp %eax,%edx
1110a9: 8b 4d e0 mov -0x20(%ebp),%ecx
1110ac: 75 03 jne 1110b1 <rtems_bdbuf_init+0x359>
(bdbuf_cache.max_bds_per_group - 1))
group++;
1110ae: 83 c7 14 add $0x14,%edi
* 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)
1110b1: ff 45 e4 incl -0x1c(%ebp)
1110b4: 83 c6 3c add $0x3c,%esi
1110b7: 01 d9 add %ebx,%ecx
1110b9: eb a9 jmp 111064 <rtems_bdbuf_init+0x30c>
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
group = bdbuf_cache.groups,
1110bb: a1 c4 b0 12 00 mov 0x12b0c4,%eax
bd = bdbuf_cache.bds;
1110c0: 8b 0d 54 b0 12 00 mov 0x12b054,%ecx
1110c6: 8b 3d c0 b0 12 00 mov 0x12b0c0,%edi
b < bdbuf_cache.group_count;
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
{
group->bds_per_group = bdbuf_cache.max_bds_per_group;
1110cc: 8b 1d 60 b0 12 00 mov 0x12b060,%ebx
group = bdbuf_cache.groups,
bd = bdbuf_cache.bds;
b < bdbuf_cache.group_count;
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
1110d2: 6b f3 3c imul $0x3c,%ebx,%esi
1110d5: 31 d2 xor %edx,%edx
if ((b % bdbuf_cache.max_bds_per_group) ==
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
1110d7: 39 fa cmp %edi,%edx
1110d9: 73 0e jae 1110e9 <rtems_bdbuf_init+0x391>
b < bdbuf_cache.group_count;
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
{
group->bds_per_group = bdbuf_cache.max_bds_per_group;
1110db: 89 58 08 mov %ebx,0x8(%eax)
group->bdbuf = bd;
1110de: 89 48 10 mov %ecx,0x10(%eax)
for (b = 0,
group = bdbuf_cache.groups,
bd = bdbuf_cache.bds;
b < bdbuf_cache.group_count;
b++,
1110e1: 42 inc %edx
group++,
1110e2: 83 c0 14 add $0x14,%eax
bd += bdbuf_cache.max_bds_per_group)
1110e5: 01 f1 add %esi,%ecx
1110e7: eb ee jmp 1110d7 <rtems_bdbuf_init+0x37f>
/*
* Create and start swapout task. This task will create and manage the worker
* threads.
*/
bdbuf_cache.swapout_enabled = true;
1110e9: c6 05 44 b0 12 00 01 movb $0x1,0x12b044
sc = rtems_task_create (rtems_build_name('B', 'S', 'W', 'P'),
bdbuf_config.swapout_priority ?
1110f0: a1 88 37 12 00 mov 0x123788,%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'),
1110f5: 85 c0 test %eax,%eax
1110f7: 75 02 jne 1110fb <rtems_bdbuf_init+0x3a3><== ALWAYS TAKEN
1110f9: b0 0f mov $0xf,%al <== NOT EXECUTED
1110fb: 56 push %esi
1110fc: 56 push %esi
1110fd: 68 40 b0 12 00 push $0x12b040
111102: 6a 00 push $0x0
111104: 68 00 04 00 00 push $0x400
111109: 68 00 20 00 00 push $0x2000
11110e: 50 push %eax
11110f: 68 50 57 53 42 push $0x42535750
111114: e8 07 bf ff ff call 10d020 <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)
111119: 83 c4 20 add $0x20,%esp
11111c: 85 c0 test %eax,%eax
11111e: 0f 85 6d fd ff ff jne 110e91 <rtems_bdbuf_init+0x139><== NEVER TAKEN
goto error;
sc = rtems_task_start (bdbuf_cache.swapout,
111124: 53 push %ebx
111125: 68 40 b0 12 00 push $0x12b040
11112a: 68 ec 1a 11 00 push $0x111aec
11112f: ff 35 40 b0 12 00 pushl 0x12b040
111135: e8 46 c1 ff ff call 10d280 <rtems_task_start>
rtems_bdbuf_swapout_task,
(rtems_task_argument) &bdbuf_cache);
if (sc != RTEMS_SUCCESSFUL)
11113a: 83 c4 10 add $0x10,%esp
11113d: 85 c0 test %eax,%eax
11113f: 0f 85 4c fd ff ff jne 110e91 <rtems_bdbuf_init+0x139><== NEVER TAKEN
goto error;
rtems_bdbuf_unlock_cache ();
111145: e8 de f7 ff ff call 110928 <rtems_bdbuf_unlock_cache>
11114a: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
11114c: e9 34 fc ff ff jmp 110d85 <rtems_bdbuf_init+0x2d>
00110770 <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)
{
110770: 55 push %ebp
110771: 89 e5 mov %esp,%ebp
110773: 53 push %ebx
110774: 83 ec 08 sub $0x8,%esp
110777: 89 d3 mov %edx,%ebx
rtems_status_code sc = rtems_semaphore_obtain (lock,
110779: 6a 00 push $0x0
11077b: 6a 00 push $0x0
11077d: 50 push %eax
11077e: e8 01 c7 ff ff call 10ce84 <rtems_semaphore_obtain>
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
110783: 83 c4 10 add $0x10,%esp
110786: 85 c0 test %eax,%eax
110788: 75 05 jne 11078f <rtems_bdbuf_lock+0x1f> <== NEVER TAKEN
rtems_fatal_error_occurred (fatal_error_code);
}
11078a: 8b 5d fc mov -0x4(%ebp),%ebx
11078d: c9 leave
11078e: c3 ret
{
rtems_status_code sc = rtems_semaphore_obtain (lock,
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (fatal_error_code);
11078f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110792: 53 push %ebx <== NOT EXECUTED
110793: e8 b8 cc ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
00110978 <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)
{
110978: 55 push %ebp
110979: 89 e5 mov %esp,%ebp
11097b: 57 push %edi
11097c: 56 push %esi
11097d: 53 push %ebx
11097e: 83 ec 2c sub $0x2c,%esp
110981: 8b 75 0c mov 0xc(%ebp),%esi
110984: 8b 7d 10 mov 0x10(%ebp),%edi
rtems_disk_device *dd = NULL;
if (!bdbuf_cache.initialised)
110987: 80 3d c8 b0 12 00 00 cmpb $0x0,0x12b0c8
11098e: 75 10 jne 1109a0 <rtems_bdbuf_obtain_disk+0x28><== ALWAYS TAKEN
110990: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
*bds_per_group_ptr = bds_per_group;
}
return RTEMS_SUCCESSFUL;
}
110995: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
110998: 5b pop %ebx <== NOT EXECUTED
110999: 5e pop %esi <== NOT EXECUTED
11099a: 5f pop %edi <== NOT EXECUTED
11099b: c9 leave <== NOT EXECUTED
11099c: c3 ret <== NOT EXECUTED
11099d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return RTEMS_NOT_CONFIGURED;
/*
* Do not hold the cache lock when obtaining the disk table.
*/
dd = rtems_disk_obtain (dev);
1109a0: 83 ec 08 sub $0x8,%esp
1109a3: 52 push %edx
1109a4: 50 push %eax
1109a5: 89 4d dc mov %ecx,-0x24(%ebp)
1109a8: e8 6b 7b ff ff call 108518 <rtems_disk_obtain>
1109ad: 89 c3 mov %eax,%ebx
if (dd == NULL)
1109af: 83 c4 10 add $0x10,%esp
1109b2: 85 c0 test %eax,%eax
1109b4: 8b 4d dc mov -0x24(%ebp),%ecx
1109b7: 0f 84 93 00 00 00 je 110a50 <rtems_bdbuf_obtain_disk+0xd8><== NEVER TAKEN
return RTEMS_INVALID_ID;
*dd_ptr = dd;
1109bd: 8b 45 08 mov 0x8(%ebp),%eax
1109c0: 89 18 mov %ebx,(%eax)
if (media_block_ptr != NULL)
1109c2: 85 f6 test %esi,%esi
1109c4: 74 2a je 1109f0 <rtems_bdbuf_obtain_disk+0x78>
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)
1109c6: 89 c8 mov %ecx,%eax
1109c8: f7 63 20 mull 0x20(%ebx)
1109cb: 89 45 d0 mov %eax,-0x30(%ebp)
1109ce: 89 55 d4 mov %edx,-0x2c(%ebp)
1109d1: 8b 43 24 mov 0x24(%ebx),%eax
1109d4: 31 d2 xor %edx,%edx
1109d6: 52 push %edx
1109d7: 50 push %eax
1109d8: ff 75 d4 pushl -0x2c(%ebp)
1109db: ff 75 d0 pushl -0x30(%ebp)
1109de: e8 cd 22 01 00 call 122cb0 <__udivdi3>
1109e3: 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)
1109e6: 39 43 1c cmp %eax,0x1c(%ebx)
1109e9: 76 49 jbe 110a34 <rtems_bdbuf_obtain_disk+0xbc><== NEVER TAKEN
{
rtems_disk_release(dd);
return RTEMS_INVALID_NUMBER;
}
*media_block_ptr = mb + dd->start;
1109eb: 03 43 18 add 0x18(%ebx),%eax
1109ee: 89 06 mov %eax,(%esi)
}
if (bds_per_group_ptr != NULL)
1109f0: 85 ff test %edi,%edi
1109f2: 74 35 je 110a29 <rtems_bdbuf_obtain_disk+0xb1>
{
size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
1109f4: 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)
1109f7: 3b 05 a4 37 12 00 cmp 0x1237a4,%eax
1109fd: 77 35 ja 110a34 <rtems_bdbuf_obtain_disk+0xbc><== NEVER TAKEN
return 0;
bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;
1109ff: 48 dec %eax
110a00: 31 d2 xor %edx,%edx
110a02: f7 35 a0 37 12 00 divl 0x1237a0
110a08: 40 inc %eax
for (bds_per_size = 1;
110a09: 83 f8 01 cmp $0x1,%eax
110a0c: 76 4c jbe 110a5a <rtems_bdbuf_obtain_disk+0xe2>
110a0e: b9 01 00 00 00 mov $0x1,%ecx
110a13: 90 nop
bds_per_size < bufs_per_size;
bds_per_size <<= 1)
110a14: 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;
110a16: 39 c8 cmp %ecx,%eax
110a18: 77 fa ja 110a14 <rtems_bdbuf_obtain_disk+0x9c><== NEVER TAKEN
bds_per_size < bufs_per_size;
bds_per_size <<= 1)
;
return bdbuf_cache.max_bds_per_group / bds_per_size;
110a1a: a1 60 b0 12 00 mov 0x12b060,%eax
110a1f: 31 d2 xor %edx,%edx
110a21: 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)
110a23: 85 c0 test %eax,%eax
110a25: 74 0d je 110a34 <rtems_bdbuf_obtain_disk+0xbc><== NEVER TAKEN
{
rtems_disk_release (dd);
return RTEMS_INVALID_NUMBER;
}
*bds_per_group_ptr = bds_per_group;
110a27: 89 07 mov %eax,(%edi)
110a29: 31 c0 xor %eax,%eax
}
return RTEMS_SUCCESSFUL;
}
110a2b: 8d 65 f4 lea -0xc(%ebp),%esp
110a2e: 5b pop %ebx
110a2f: 5e pop %esi
110a30: 5f pop %edi
110a31: c9 leave
110a32: c3 ret
110a33: 90 nop
{
size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
if (bds_per_group == 0)
{
rtems_disk_release (dd);
110a34: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110a37: 53 push %ebx <== NOT EXECUTED
110a38: e8 b7 7c ff ff call 1086f4 <rtems_disk_release> <== NOT EXECUTED
110a3d: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
110a42: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
*bds_per_group_ptr = bds_per_group;
}
return RTEMS_SUCCESSFUL;
}
110a45: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
110a48: 5b pop %ebx <== NOT EXECUTED
110a49: 5e pop %esi <== NOT EXECUTED
110a4a: 5f pop %edi <== NOT EXECUTED
110a4b: c9 leave <== NOT EXECUTED
110a4c: c3 ret <== NOT EXECUTED
110a4d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/*
* Do not hold the cache lock when obtaining the disk table.
*/
dd = rtems_disk_obtain (dev);
if (dd == NULL)
110a50: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED
110a55: e9 3b ff ff ff jmp 110995 <rtems_bdbuf_obtain_disk+0x1d><== NOT EXECUTED
if (size > bdbuf_config.buffer_max)
return 0;
bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;
for (bds_per_size = 1;
110a5a: b9 01 00 00 00 mov $0x1,%ecx
110a5f: eb b9 jmp 110a1a <rtems_bdbuf_obtain_disk+0xa2>
001116ac <rtems_bdbuf_purge>:
}
}
static void
rtems_bdbuf_purge (rtems_bdbuf_purge_compare compare, dev_t dev)
{
1116ac: 55 push %ebp
1116ad: 89 e5 mov %esp,%ebp
1116af: 57 push %edi
1116b0: 56 push %esi
1116b1: 53 push %ebx
1116b2: 81 ec bc 00 00 00 sub $0xbc,%esp
1116b8: 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);
1116be: 8d 7d dc lea -0x24(%ebp),%edi
1116c1: 8d 45 e0 lea -0x20(%ebp),%eax
1116c4: 89 45 dc mov %eax,-0x24(%ebp)
the_chain->permanent_null = NULL;
1116c7: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
the_chain->last = _Chain_Head(the_chain);
1116ce: 89 7d e4 mov %edi,-0x1c(%ebp)
rtems_chain_control purge_list;
rtems_chain_initialize_empty (&purge_list);
rtems_bdbuf_lock_cache ();
1116d1: 89 95 44 ff ff ff mov %edx,-0xbc(%ebp)
1116d7: 89 8d 40 ff ff ff mov %ecx,-0xc0(%ebp)
1116dd: e8 b6 f0 ff ff call 110798 <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;
1116e2: 8b 1d 80 b0 12 00 mov 0x12b080,%ebx
*prev = NULL;
1116e8: c7 85 5c ff ff ff 00 movl $0x0,-0xa4(%ebp)
1116ef: 00 00 00
while (cur != NULL)
1116f2: 85 db test %ebx,%ebx
1116f4: 8b 95 44 ff ff ff mov -0xbc(%ebp),%edx
1116fa: 8b 8d 40 ff ff ff mov -0xc0(%ebp),%ecx
111700: 0f 84 ae 00 00 00 je 1117b4 <rtems_bdbuf_purge+0x108><== NEVER TAKEN
111706: 8d b5 5c ff ff ff lea -0xa4(%ebp),%esi
11170c: 89 95 48 ff ff ff mov %edx,-0xb8(%ebp)
111712: 89 8d 4c ff ff ff mov %ecx,-0xb4(%ebp)
{
if ((*compare) (cur->dev, dev))
111718: ff b5 4c ff ff ff pushl -0xb4(%ebp)
11171e: ff b5 48 ff ff ff pushl -0xb8(%ebp)
111724: ff 73 18 pushl 0x18(%ebx)
111727: ff 73 14 pushl 0x14(%ebx)
11172a: ff 95 54 ff ff ff call *-0xac(%ebp)
111730: 83 c4 10 add $0x10,%esp
111733: 84 c0 test %al,%al
111735: 74 1d je 111754 <rtems_bdbuf_purge+0xa8><== NEVER TAKEN
{
switch (cur->state)
111737: 8b 43 24 mov 0x24(%ebx),%eax
11173a: 83 f8 0a cmp $0xa,%eax
11173d: 76 2d jbe 11176c <rtems_bdbuf_purge+0xc0><== ALWAYS TAKEN
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);
11173f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111742: 68 01 00 00 42 push $0x42000001 <== NOT EXECUTED
111747: e8 04 bd ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
11174c: c7 43 24 0a 00 00 00 movl $0xa,0x24(%ebx)
111753: 90 nop
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
}
}
if (cur->avl.left != NULL)
111754: 8b 53 08 mov 0x8(%ebx),%edx
111757: 85 d2 test %edx,%edx
111759: 74 45 je 1117a0 <rtems_bdbuf_purge+0xf4><== ALWAYS TAKEN
{
/* Left */
++prev;
11175b: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
*prev = cur;
11175e: 89 1e mov %ebx,(%esi) <== NOT EXECUTED
cur = cur->avl.left;
111760: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
*prev = NULL;
while (cur != NULL)
111763: 85 c0 test %eax,%eax <== NOT EXECUTED
111765: 74 4d je 1117b4 <rtems_bdbuf_purge+0x108><== NOT EXECUTED
111767: 89 c3 mov %eax,%ebx <== NOT EXECUTED
111769: eb ad jmp 111718 <rtems_bdbuf_purge+0x6c><== NOT EXECUTED
11176b: 90 nop <== NOT EXECUTED
{
if ((*compare) (cur->dev, dev))
{
switch (cur->state)
11176c: ff 24 85 84 55 12 00 jmp *0x125584(,%eax,4)
111773: 90 nop
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);
111774: b8 b0 b0 12 00 mov $0x12b0b0,%eax
111779: e8 2e f0 ff ff call 1107ac <rtems_bdbuf_wake>
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
11177e: 8b 43 2c mov 0x2c(%ebx),%eax
111781: ff 48 0c decl 0xc(%eax)
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
111784: 83 ec 0c sub $0xc,%esp
111787: 53 push %ebx
111788: e8 1f c1 ff ff call 10d8ac <_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 );
11178d: 59 pop %ecx
11178e: 58 pop %eax
11178f: 53 push %ebx
111790: 57 push %edi
111791: e8 f2 c0 ff ff call 10d888 <_Chain_Append>
111796: 83 c4 10 add $0x10,%esp
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
}
}
if (cur->avl.left != NULL)
111799: 8b 53 08 mov 0x8(%ebx),%edx
11179c: 85 d2 test %edx,%edx
11179e: 75 bb jne 11175b <rtems_bdbuf_purge+0xaf><== NEVER TAKEN
/* Left */
++prev;
*prev = cur;
cur = cur->avl.left;
}
else if (cur->avl.right != NULL)
1117a0: 8b 43 0c mov 0xc(%ebx),%eax
1117a3: 85 c0 test %eax,%eax
1117a5: 74 59 je 111800 <rtems_bdbuf_purge+0x154><== ALWAYS TAKEN
{
/* Right */
++prev;
1117a7: 83 c6 04 add $0x4,%esi <== NOT EXECUTED
*prev = cur;
1117aa: 89 1e mov %ebx,(%esi) <== NOT EXECUTED
cur = cur->avl.right;
1117ac: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
*prev = NULL;
while (cur != NULL)
1117af: 85 c0 test %eax,%eax <== NOT EXECUTED
1117b1: 75 b4 jne 111767 <rtems_bdbuf_purge+0xbb><== NOT EXECUTED
1117b3: 90 nop <== NOT EXECUTED
1117b4: 31 db xor %ebx,%ebx
1117b6: eb 0e jmp 1117c6 <rtems_bdbuf_purge+0x11a>
while ((node = rtems_chain_get (purge_list)) != NULL)
{
rtems_bdbuf_buffer *bd = (rtems_bdbuf_buffer *) node;
if (bd->waiters == 0)
1117b8: 8b 50 28 mov 0x28(%eax),%edx
1117bb: 85 d2 test %edx,%edx
1117bd: 75 02 jne 1117c1 <rtems_bdbuf_purge+0x115>
1117bf: b3 01 mov $0x1,%bl
wake_buffer_waiters = true;
rtems_bdbuf_discard_buffer (bd);
1117c1: e8 2e fd ff ff call 1114f4 <rtems_bdbuf_discard_buffer>
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
1117c6: 83 ec 0c sub $0xc,%esp
1117c9: 57 push %edi
1117ca: e8 f5 c0 ff ff call 10d8c4 <_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)
1117cf: 83 c4 10 add $0x10,%esp
1117d2: 85 c0 test %eax,%eax
1117d4: 75 e2 jne 1117b8 <rtems_bdbuf_purge+0x10c>
wake_buffer_waiters = true;
rtems_bdbuf_discard_buffer (bd);
}
if (wake_buffer_waiters)
1117d6: 84 db test %bl,%bl
1117d8: 74 0a je 1117e4 <rtems_bdbuf_purge+0x138>
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
1117da: b8 b8 b0 12 00 mov $0x12b0b8,%eax
1117df: e8 c8 ef ff ff call 1107ac <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 ();
1117e4: e8 3f f1 ff ff call 110928 <rtems_bdbuf_unlock_cache>
}
1117e9: 8d 65 f4 lea -0xc(%ebp),%esp
1117ec: 5b pop %ebx
1117ed: 5e pop %esi
1117ee: 5f pop %edi
1117ef: c9 leave
1117f0: c3 ret
1117f1: 8d 76 00 lea 0x0(%esi),%esi
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
1117f4: c7 43 24 06 00 00 00 movl $0x6,0x24(%ebx)
1117fb: e9 54 ff ff ff jmp 111754 <rtems_bdbuf_purge+0xa8>
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
111800: 8b 0e mov (%esi),%ecx
111802: 85 c9 test %ecx,%ecx
111804: 74 ae je 1117b4 <rtems_bdbuf_purge+0x108><== ALWAYS TAKEN
111806: 8b 41 0c mov 0xc(%ecx),%eax <== NOT EXECUTED
111809: 39 c3 cmp %eax,%ebx <== NOT EXECUTED
11180b: 74 14 je 111821 <rtems_bdbuf_purge+0x175><== NOT EXECUTED
11180d: e9 51 ff ff ff jmp 111763 <rtems_bdbuf_purge+0xb7><== NOT EXECUTED
111812: 66 90 xchg %ax,%ax <== NOT EXECUTED
111814: 8b 42 0c mov 0xc(%edx),%eax <== NOT EXECUTED
111817: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
111819: 0f 85 44 ff ff ff jne 111763 <rtems_bdbuf_purge+0xb7><== NOT EXECUTED
else if (cur->avl.right != NULL)
{
/* Right */
++prev;
*prev = cur;
cur = cur->avl.right;
11181f: 89 d1 mov %edx,%ecx <== NOT EXECUTED
{
while (*prev != NULL && cur == (*prev)->avl.right)
{
/* Up */
cur = *prev;
--prev;
111821: 83 ee 04 sub $0x4,%esi <== NOT EXECUTED
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
111824: 8b 16 mov (%esi),%edx <== NOT EXECUTED
111826: 85 d2 test %edx,%edx <== NOT EXECUTED
111828: 75 ea jne 111814 <rtems_bdbuf_purge+0x168><== NOT EXECUTED
11182a: eb 88 jmp 1117b4 <rtems_bdbuf_purge+0x108><== NOT EXECUTED
00110760 <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)
{
110760: 55 push %ebp <== NOT EXECUTED
110761: 89 e5 mov %esp,%ebp <== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
110763: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
110766: 39 45 08 cmp %eax,0x8(%ebp) <== NOT EXECUTED
110769: 0f 94 c0 sete %al <== NOT EXECUTED
return rtems_filesystem_dev_major_t (a) == rtems_filesystem_dev_major_t (b);
}
11076c: c9 leave <== NOT EXECUTED
11076d: c3 ret <== NOT EXECUTED
0011182c <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)
{
11182c: 55 push %ebp <== NOT EXECUTED
11182d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
11182f: 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);
111832: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
111835: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
111837: b8 60 07 11 00 mov $0x110760,%eax <== NOT EXECUTED
}
11183c: 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);
11183d: e9 6a fe ff ff jmp 1116ac <rtems_bdbuf_purge> <== NOT EXECUTED
00112664 <rtems_bdbuf_read>:
rtems_status_code
rtems_bdbuf_read (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
112664: 55 push %ebp
112665: 89 e5 mov %esp,%ebp
112667: 57 push %edi
112668: 56 push %esi
112669: 53 push %ebx
11266a: 83 ec 50 sub $0x50,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
11266d: 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;
112674: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
size_t bds_per_group = 0;
11267b: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
112682: 8d 45 dc lea -0x24(%ebp),%eax
112685: 50 push %eax
112686: 8d 45 e0 lea -0x20(%ebp),%eax
112689: 50 push %eax
11268a: 8d 45 e4 lea -0x1c(%ebp),%eax
11268d: 50 push %eax
11268e: 8b 4d 10 mov 0x10(%ebp),%ecx
112691: 8b 45 08 mov 0x8(%ebp),%eax
112694: 8b 55 0c mov 0xc(%ebp),%edx
112697: e8 dc e2 ff ff call 110978 <rtems_bdbuf_obtain_disk>
if (sc != RTEMS_SUCCESSFUL)
11269c: 83 c4 10 add $0x10,%esp
11269f: 85 c0 test %eax,%eax
1126a1: 74 0d je 1126b0 <rtems_bdbuf_read+0x4c> <== ALWAYS TAKEN
1126a3: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_bdbuf_unlock_cache ();
rtems_bdbuf_release_disk (dd);
return sc;
}
1126a5: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1126a7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1126aa: 5b pop %ebx <== NOT EXECUTED
1126ab: 5e pop %esi <== NOT EXECUTED
1126ac: 5f pop %edi <== NOT EXECUTED
1126ad: c9 leave <== NOT EXECUTED
1126ae: c3 ret <== NOT EXECUTED
1126af: 90 nop <== NOT EXECUTED
/*
* 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) +
1126b0: 8b 3d 80 37 12 00 mov 0x123780,%edi
1126b6: 47 inc %edi
1126b7: 89 f8 mov %edi,%eax
1126b9: c1 e0 04 shl $0x4,%eax
1126bc: 83 c0 30 add $0x30,%eax
1126bf: 29 c4 sub %eax,%esp
1126c1: 8d 44 24 0f lea 0xf(%esp),%eax
1126c5: 83 e0 f0 and $0xfffffff0,%eax
1126c8: 89 45 cc mov %eax,-0x34(%ebp)
if (rtems_bdbuf_tracer)
printf ("bdbuf:read: %" PRIu32 " (%" PRIu32 ") (dev = %08x)\n",
media_block + dd->start, block, (unsigned) dev);
rtems_bdbuf_lock_cache ();
1126cb: e8 c8 e0 ff ff call 110798 <rtems_bdbuf_lock_cache>
rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
1126d0: 8b 55 dc mov -0x24(%ebp),%edx
1126d3: 89 55 b8 mov %edx,-0x48(%ebp)
1126d6: 8b 4d e0 mov -0x20(%ebp),%ecx
1126d9: 89 4d d0 mov %ecx,-0x30(%ebp)
1126dc: 8b 4d e4 mov -0x1c(%ebp),%ecx
size_t bds_per_group,
rtems_blkdev_request *req,
rtems_bdbuf_buffer **bd_ptr)
{
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block_end = dd->start + dd->size;
1126df: 8b 41 18 mov 0x18(%ecx),%eax
1126e2: 89 45 d4 mov %eax,-0x2c(%ebp)
1126e5: 8b 51 1c mov 0x1c(%ecx),%edx
1126e8: 89 55 bc mov %edx,-0x44(%ebp)
rtems_blkdev_bnum media_block_count = dd->block_size / dd->media_block_size;
1126eb: 8b 41 20 mov 0x20(%ecx),%eax
1126ee: 89 45 c0 mov %eax,-0x40(%ebp)
1126f1: 31 d2 xor %edx,%edx
1126f3: f7 71 24 divl 0x24(%ecx)
1126f6: 89 45 c4 mov %eax,-0x3c(%ebp)
dev_t dev = dd->dev;
1126f9: 8b 31 mov (%ecx),%esi
1126fb: 8b 59 04 mov 0x4(%ecx),%ebx
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;
1126fe: 8b 55 cc mov -0x34(%ebp),%edx
112701: c7 02 00 00 00 00 movl $0x0,(%edx)
req->req_done = rtems_bdbuf_transfer_done;
112707: c7 42 04 68 0b 11 00 movl $0x110b68,0x4(%edx)
req->done_arg = req;
11270e: 89 52 08 mov %edx,0x8(%edx)
req->io_task = rtems_task_self ();
112711: e8 f2 29 00 00 call 115108 <rtems_task_self>
112716: 8b 4d cc mov -0x34(%ebp),%ecx
112719: 89 41 14 mov %eax,0x14(%ecx)
req->status = RTEMS_RESOURCE_IN_USE;
11271c: c7 41 0c 0c 00 00 00 movl $0xc,0xc(%ecx)
req->bufnum = 0;
112723: c7 41 10 00 00 00 00 movl $0x0,0x10(%ecx)
bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
11272a: 83 ec 0c sub $0xc,%esp
11272d: ff 75 b8 pushl -0x48(%ebp)
112730: 8b 4d d0 mov -0x30(%ebp),%ecx
112733: 89 f0 mov %esi,%eax
112735: 89 da mov %ebx,%edx
112737: e8 a4 fc ff ff call 1123e0 <rtems_bdbuf_get_buffer_for_access>
11273c: 89 45 c8 mov %eax,-0x38(%ebp)
*bd_ptr = bd;
req->bufs [0].user = bd;
11273f: 8b 55 cc mov -0x34(%ebp),%edx
112742: 89 42 24 mov %eax,0x24(%edx)
req->bufs [0].block = media_block;
112745: 8b 4d d0 mov -0x30(%ebp),%ecx
112748: 89 4a 18 mov %ecx,0x18(%edx)
req->bufs [0].length = block_size;
11274b: 8b 45 c0 mov -0x40(%ebp),%eax
11274e: 89 42 1c mov %eax,0x1c(%edx)
req->bufs [0].buffer = bd->buffer;
112751: 8b 55 c8 mov -0x38(%ebp),%edx
112754: 8b 42 20 mov 0x20(%edx),%eax
112757: 8b 4d cc mov -0x34(%ebp),%ecx
11275a: 89 41 20 mov %eax,0x20(%ecx)
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read", bd);
switch (bd->state)
11275d: 8b 42 24 mov 0x24(%edx),%eax
112760: 83 c4 10 add $0x10,%esp
112763: 83 f8 02 cmp $0x2,%eax
112766: 0f 84 4a 01 00 00 je 1128b6 <rtems_bdbuf_read+0x252>
11276c: 83 f8 07 cmp $0x7,%eax
11276f: 0f 84 41 01 00 00 je 1128b6 <rtems_bdbuf_read+0x252>
112775: 48 dec %eax
112776: 74 17 je 11278f <rtems_bdbuf_read+0x12b><== ALWAYS TAKEN
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);
112778: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
11277b: 8b 42 24 mov 0x24(%edx),%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);
11277e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
112781: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
112784: 0d 1d 00 00 42 or $0x4200001d,%eax <== NOT EXECUTED
112789: 50 push %eax <== NOT EXECUTED
11278a: e8 c1 ac ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
req->bufs [0].buffer = bd->buffer;
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read", bd);
switch (bd->state)
11278f: 8b 55 bc mov -0x44(%ebp),%edx
112792: 03 55 d4 add -0x2c(%ebp),%edx
112795: 8b 4d d0 mov -0x30(%ebp),%ecx
112798: 29 ca sub %ecx,%edx
11279a: 89 55 b4 mov %edx,-0x4c(%ebp)
11279d: 39 fa cmp %edi,%edx
11279f: 76 03 jbe 1127a4 <rtems_bdbuf_read+0x140>
1127a1: 89 7d b4 mov %edi,-0x4c(%ebp)
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
1127a4: 8b 45 c8 mov -0x38(%ebp),%eax
1127a7: c7 40 24 09 00 00 00 movl $0x9,0x24(%eax)
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
break;
}
while (transfer_index < transfer_count)
1127ae: 83 7d b4 01 cmpl $0x1,-0x4c(%ebp)
1127b2: 0f 86 7d 01 00 00 jbe 112935 <rtems_bdbuf_read+0x2d1>
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
1127b8: 8b 4d cc mov -0x34(%ebp),%ecx
1127bb: 89 4d b0 mov %ecx,-0x50(%ebp)
1127be: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp)
break;
}
while (transfer_index < transfer_count)
{
media_block += media_block_count;
1127c5: 8b 45 c4 mov -0x3c(%ebp),%eax
1127c8: 01 45 d0 add %eax,-0x30(%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;
1127cb: a1 80 b0 12 00 mov 0x12b080,%eax
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
1127d0: 85 c0 test %eax,%eax
1127d2: 74 3b je 11280f <rtems_bdbuf_read+0x1ab><== NEVER TAKEN
1127d4: 89 75 d4 mov %esi,-0x2c(%ebp)
1127d7: eb 11 jmp 1127ea <rtems_bdbuf_read+0x186>
1127d9: 8d 76 00 lea 0x0(%esi),%esi
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
1127dc: 72 05 jb 1127e3 <rtems_bdbuf_read+0x17f><== NOT EXECUTED
1127de: 39 4d d4 cmp %ecx,-0x2c(%ebp) <== NOT EXECUTED
1127e1: 77 22 ja 112805 <rtems_bdbuf_read+0x1a1><== NOT EXECUTED
{
p = p->avl.right;
}
else
{
p = p->avl.left;
1127e3: 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)))
1127e6: 85 c0 test %eax,%eax <== NOT EXECUTED
1127e8: 74 22 je 11280c <rtems_bdbuf_read+0x1a8><== NOT EXECUTED
1127ea: 8b 48 14 mov 0x14(%eax),%ecx
1127ed: 8b 50 18 mov 0x18(%eax),%edx
1127f0: 89 df mov %ebx,%edi
1127f2: 31 d7 xor %edx,%edi
1127f4: 8b 75 d4 mov -0x2c(%ebp),%esi
1127f7: 31 ce xor %ecx,%esi
1127f9: 09 f7 or %esi,%edi
1127fb: 0f 84 9f 00 00 00 je 1128a0 <rtems_bdbuf_read+0x23c><== ALWAYS TAKEN
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
112801: 39 d3 cmp %edx,%ebx <== NOT EXECUTED
112803: 76 d7 jbe 1127dc <rtems_bdbuf_read+0x178><== NOT EXECUTED
{
p = p->avl.right;
112805: 8b 40 0c mov 0xc(%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)))
112808: 85 c0 test %eax,%eax
11280a: 75 de jne 1127ea <rtems_bdbuf_read+0x186><== NEVER TAKEN
11280c: 8b 75 d4 mov -0x2c(%ebp),%esi
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);
11280f: 83 ec 0c sub $0xc,%esp
112812: ff 75 b8 pushl -0x48(%ebp)
112815: 8b 4d d0 mov -0x30(%ebp),%ecx
112818: 89 f0 mov %esi,%eax
11281a: 89 da mov %ebx,%edx
11281c: e8 f3 f7 ff ff call 112014 <rtems_bdbuf_get_buffer_from_lru_list>
if (bd != NULL)
112821: 83 c4 10 add $0x10,%esp
112824: 85 c0 test %eax,%eax
112826: 74 3c je 112864 <rtems_bdbuf_read+0x200><== ALWAYS TAKEN
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
112828: 8b 50 2c mov 0x2c(%eax),%edx <== NOT EXECUTED
11282b: 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;
11282e: 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;
112835: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
112838: 89 41 34 mov %eax,0x34(%ecx) <== NOT EXECUTED
req->bufs [transfer_index].block = media_block;
11283b: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
11283e: 89 51 28 mov %edx,0x28(%ecx) <== NOT EXECUTED
req->bufs [transfer_index].length = block_size;
112841: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
112844: 89 51 2c mov %edx,0x2c(%ecx) <== NOT EXECUTED
req->bufs [transfer_index].buffer = bd->buffer;
112847: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
11284a: 89 41 30 mov %eax,0x30(%ecx) <== NOT EXECUTED
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
11284d: ff 45 bc incl -0x44(%ebp) <== NOT EXECUTED
112850: 83 c1 10 add $0x10,%ecx <== NOT EXECUTED
112853: 89 4d b0 mov %ecx,-0x50(%ebp) <== NOT EXECUTED
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
break;
}
while (transfer_index < transfer_count)
112856: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
112859: 39 4d bc cmp %ecx,-0x44(%ebp) <== NOT EXECUTED
11285c: 0f 82 63 ff ff ff jb 1127c5 <rtems_bdbuf_read+0x161><== NOT EXECUTED
112862: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
}
req->bufnum = transfer_index;
112864: 8b 55 bc mov -0x44(%ebp),%edx
112867: 8b 45 cc mov -0x34(%ebp),%eax
11286a: 89 50 10 mov %edx,0x10(%eax)
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)
11286d: 8b 4d bc mov -0x44(%ebp),%ecx
112870: 85 c9 test %ecx,%ecx
112872: 75 4d jne 1128c1 <rtems_bdbuf_read+0x25d>
}
}
if (sc == RTEMS_SUCCESSFUL)
{
switch (bd->state)
112874: 8b 55 c8 mov -0x38(%ebp),%edx
112877: 8b 42 24 mov 0x24(%edx),%eax
11287a: 83 f8 02 cmp $0x2,%eax
11287d: 0f 84 8a 00 00 00 je 11290d <rtems_bdbuf_read+0x2a9>
112883: 83 f8 07 cmp $0x7,%eax
112886: 74 6f je 1128f7 <rtems_bdbuf_read+0x293><== ALWAYS TAKEN
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);
112888: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
11288b: 8b 42 24 mov 0x24(%edx),%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);
11288e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
112891: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
112894: 0d 02 00 00 42 or $0x42000002,%eax <== NOT EXECUTED
112899: 50 push %eax <== NOT EXECUTED
11289a: e8 b1 ab ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
11289f: 90 nop <== NOT EXECUTED
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
1128a0: 8b 55 d0 mov -0x30(%ebp),%edx
1128a3: 3b 50 1c cmp 0x1c(%eax),%edx
1128a6: 74 bc je 112864 <rtems_bdbuf_read+0x200><== NEVER TAKEN
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
1128a8: 0f 86 35 ff ff ff jbe 1127e3 <rtems_bdbuf_read+0x17f><== NEVER TAKEN
{
p = p->avl.right;
1128ae: 8b 40 0c mov 0xc(%eax),%eax
1128b1: e9 52 ff ff ff jmp 112808 <rtems_bdbuf_read+0x1a4>
req->bufs [0].buffer = bd->buffer;
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read", bd);
switch (bd->state)
1128b6: 8b 45 cc mov -0x34(%ebp),%eax
1128b9: 8b 40 10 mov 0x10(%eax),%eax
1128bc: 89 45 bc mov %eax,-0x44(%ebp)
1128bf: eb ac jmp 11286d <rtems_bdbuf_read+0x209>
rtems_bdbuf_lock_cache ();
rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
if (req->bufnum > 0)
{
sc = rtems_bdbuf_execute_transfer_request (dd, req, true);
1128c1: b9 01 00 00 00 mov $0x1,%ecx
1128c6: 8b 55 cc mov -0x34(%ebp),%edx
1128c9: 8b 45 e4 mov -0x1c(%ebp),%eax
1128cc: e8 8b ef ff ff call 11185c <rtems_bdbuf_execute_transfer_request>
1128d1: 89 c3 mov %eax,%ebx
if (sc == RTEMS_SUCCESSFUL)
1128d3: 85 c0 test %eax,%eax
1128d5: 74 42 je 112919 <rtems_bdbuf_read+0x2b5>
}
*bd_ptr = bd;
}
else
*bd_ptr = NULL;
1128d7: 8b 55 14 mov 0x14(%ebp),%edx
1128da: c7 02 00 00 00 00 movl $0x0,(%edx)
rtems_bdbuf_unlock_cache ();
1128e0: e8 43 e0 ff ff call 110928 <rtems_bdbuf_unlock_cache>
rtems_bdbuf_release_disk (dd);
1128e5: 8b 45 e4 mov -0x1c(%ebp),%eax
1128e8: e8 77 e1 ff ff call 110a64 <rtems_bdbuf_release_disk>
return sc;
}
1128ed: 89 d8 mov %ebx,%eax
1128ef: 8d 65 f4 lea -0xc(%ebp),%esp
1128f2: 5b pop %ebx
1128f3: 5e pop %esi
1128f4: 5f pop %edi
1128f5: c9 leave
1128f6: c3 ret
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
1128f7: 8b 45 c8 mov -0x38(%ebp),%eax
1128fa: c7 40 24 04 00 00 00 movl $0x4,0x24(%eax)
{
rtems_bdbuf_show_users ("read", bd);
rtems_bdbuf_show_usage ();
}
*bd_ptr = bd;
112901: 8b 45 c8 mov -0x38(%ebp),%eax
112904: 8b 4d 14 mov 0x14(%ebp),%ecx
112907: 89 01 mov %eax,(%ecx)
112909: 31 db xor %ebx,%ebx
11290b: eb d3 jmp 1128e0 <rtems_bdbuf_read+0x27c>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
11290d: 8b 4d c8 mov -0x38(%ebp),%ecx
112910: c7 41 24 03 00 00 00 movl $0x3,0x24(%ecx)
112917: eb e8 jmp 112901 <rtems_bdbuf_read+0x29d>
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
112919: 83 ec 0c sub $0xc,%esp
11291c: ff 75 c8 pushl -0x38(%ebp)
11291f: e8 88 af ff ff call 10d8ac <_Chain_Extract>
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
112924: 8b 4d c8 mov -0x38(%ebp),%ecx
112927: 8b 41 2c mov 0x2c(%ecx),%eax
11292a: ff 40 0c incl 0xc(%eax)
11292d: 83 c4 10 add $0x10,%esp
112930: e9 3f ff ff ff jmp 112874 <rtems_bdbuf_read+0x210>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
break;
}
while (transfer_index < transfer_count)
112935: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp)
11293c: e9 23 ff ff ff jmp 112864 <rtems_bdbuf_read+0x200>
001115e8 <rtems_bdbuf_release>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release (rtems_bdbuf_buffer *bd)
{
1115e8: 55 push %ebp
1115e9: 89 e5 mov %esp,%ebp
1115eb: 53 push %ebx
1115ec: 83 ec 04 sub $0x4,%esp
1115ef: 8b 5d 08 mov 0x8(%ebp),%ebx
}
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
1115f2: 80 3d c8 b0 12 00 00 cmpb $0x0,0x12b0c8
1115f9: 74 2d je 111628 <rtems_bdbuf_release+0x40><== NEVER TAKEN
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
1115fb: 85 db test %ebx,%ebx
1115fd: 74 35 je 111634 <rtems_bdbuf_release+0x4c><== NEVER TAKEN
if (rtems_bdbuf_tracer)
{
printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);
rtems_bdbuf_show_users (kind, bd);
}
rtems_bdbuf_lock_cache();
1115ff: e8 94 f1 ff ff call 110798 <rtems_bdbuf_lock_cache>
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
111604: 8b 43 24 mov 0x24(%ebx),%eax
111607: 83 f8 04 cmp $0x4,%eax
11160a: 74 50 je 11165c <rtems_bdbuf_release+0x74>
11160c: 76 32 jbe 111640 <rtems_bdbuf_release+0x58>
11160e: 83 f8 06 cmp $0x6,%eax
111611: 77 32 ja 111645 <rtems_bdbuf_release+0x5d><== NEVER TAKEN
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);
111613: 89 d8 mov %ebx,%eax
111615: e8 16 ff ff ff call 111530 <rtems_bdbuf_discard_buffer_after_access>
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
11161a: e8 09 f3 ff ff call 110928 <rtems_bdbuf_unlock_cache>
11161f: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
111621: 8b 5d fc mov -0x4(%ebp),%ebx
111624: c9 leave
111625: c3 ret
111626: 66 90 xchg %ax,%ax
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
111628: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
return RTEMS_SUCCESSFUL;
}
11162d: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
111630: c9 leave <== NOT EXECUTED
111631: c3 ret <== NOT EXECUTED
111632: 66 90 xchg %ax,%ax <== NOT EXECUTED
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
111634: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
return RTEMS_SUCCESSFUL;
}
111639: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
11163c: c9 leave <== NOT EXECUTED
11163d: c3 ret <== NOT EXECUTED
11163e: 66 90 xchg %ax,%ax <== NOT EXECUTED
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
111640: 83 f8 03 cmp $0x3,%eax
111643: 74 23 je 111668 <rtems_bdbuf_release+0x80><== ALWAYS TAKEN
break;
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_add_to_modified_list_after_access (bd);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_0);
111645: 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);
111648: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11164b: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
11164e: 0d 1c 00 00 42 or $0x4200001c,%eax <== NOT EXECUTED
111653: 50 push %eax <== NOT EXECUTED
111654: e8 f7 bd ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
111659: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
break;
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_add_to_modified_list_after_access (bd);
11165c: 89 d8 mov %ebx,%eax
11165e: e8 51 f4 ff ff call 110ab4 <rtems_bdbuf_add_to_modified_list_after_access>
break;
111663: eb b5 jmp 11161a <rtems_bdbuf_release+0x32>
111665: 8d 76 00 lea 0x0(%esi),%esi
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
111668: 8b 43 2c mov 0x2c(%ebx),%eax
11166b: ff 48 0c decl 0xc(%eax)
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
11166e: 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 );
111675: 83 ec 08 sub $0x8,%esp
111678: 53 push %ebx
111679: 68 84 b0 12 00 push $0x12b084
11167e: e8 05 c2 ff ff call 10d888 <_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)
111683: 8b 43 28 mov 0x28(%ebx),%eax
111686: 83 c4 10 add $0x10,%esp
111689: 85 c0 test %eax,%eax
11168b: 74 0f je 11169c <rtems_bdbuf_release+0xb4>
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
11168d: b8 a8 b0 12 00 mov $0x12b0a8,%eax
111692: e8 15 f1 ff ff call 1107ac <rtems_bdbuf_wake>
111697: eb 81 jmp 11161a <rtems_bdbuf_release+0x32>
111699: 8d 76 00 lea 0x0(%esi),%esi
else
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
11169c: b8 b8 b0 12 00 mov $0x12b0b8,%eax
1116a1: e8 06 f1 ff ff call 1107ac <rtems_bdbuf_wake>
1116a6: e9 6f ff ff ff jmp 11161a <rtems_bdbuf_release+0x32>
00110a64 <rtems_bdbuf_release_disk>:
return RTEMS_SUCCESSFUL;
}
static void
rtems_bdbuf_release_disk (rtems_disk_device *dd)
{
110a64: 55 push %ebp
110a65: 89 e5 mov %esp,%ebp
110a67: 83 ec 14 sub $0x14,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_disk_release (dd);
110a6a: 50 push %eax
110a6b: e8 84 7c ff ff call 1086f4 <rtems_disk_release>
if (sc != RTEMS_SUCCESSFUL)
110a70: 83 c4 10 add $0x10,%esp
110a73: 85 c0 test %eax,%eax
110a75: 75 02 jne 110a79 <rtems_bdbuf_release_disk+0x15><== NEVER TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_DISK_REL);
}
110a77: c9 leave
110a78: c3 ret
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_disk_release (dd);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_DISK_REL);
110a79: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110a7c: 68 1f 00 00 42 push $0x4200001f <== NOT EXECUTED
110a81: e8 ca c9 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
0011156c <rtems_bdbuf_release_modified>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd)
{
11156c: 55 push %ebp
11156d: 89 e5 mov %esp,%ebp
11156f: 53 push %ebx
111570: 83 ec 04 sub $0x4,%esp
111573: 8b 5d 08 mov 0x8(%ebp),%ebx
}
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
111576: 80 3d c8 b0 12 00 00 cmpb $0x0,0x12b0c8
11157d: 74 31 je 1115b0 <rtems_bdbuf_release_modified+0x44><== NEVER TAKEN
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
11157f: 85 db test %ebx,%ebx
111581: 74 39 je 1115bc <rtems_bdbuf_release_modified+0x50><== NEVER TAKEN
if (rtems_bdbuf_tracer)
{
printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);
rtems_bdbuf_show_users (kind, bd);
}
rtems_bdbuf_lock_cache();
111583: e8 10 f2 ff ff call 110798 <rtems_bdbuf_lock_cache>
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
111588: 8b 43 24 mov 0x24(%ebx),%eax
11158b: 83 f8 03 cmp $0x3,%eax
11158e: 72 0a jb 11159a <rtems_bdbuf_release_modified+0x2e><== NEVER TAKEN
111590: 83 f8 05 cmp $0x5,%eax
111593: 76 47 jbe 1115dc <rtems_bdbuf_release_modified+0x70>
111595: 83 f8 06 cmp $0x6,%eax
111598: 74 2e je 1115c8 <rtems_bdbuf_release_modified+0x5c><== ALWAYS TAKEN
break;
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_6);
11159a: 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);
11159d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1115a0: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1115a3: 0d 04 00 00 42 or $0x42000004,%eax <== NOT EXECUTED
1115a8: 50 push %eax <== NOT EXECUTED
1115a9: e8 a2 be ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
1115ae: 66 90 xchg %ax,%ax <== NOT EXECUTED
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
1115b0: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
return RTEMS_SUCCESSFUL;
}
1115b5: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1115b8: c9 leave <== NOT EXECUTED
1115b9: c3 ret <== NOT EXECUTED
1115ba: 66 90 xchg %ax,%ax <== NOT EXECUTED
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
1115bc: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
return RTEMS_SUCCESSFUL;
}
1115c1: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1115c4: c9 leave <== NOT EXECUTED
1115c5: c3 ret <== NOT EXECUTED
1115c6: 66 90 xchg %ax,%ax <== NOT EXECUTED
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_add_to_modified_list_after_access (bd);
break;
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
1115c8: 89 d8 mov %ebx,%eax
1115ca: e8 61 ff ff ff call 111530 <rtems_bdbuf_discard_buffer_after_access>
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
1115cf: e8 54 f3 ff ff call 110928 <rtems_bdbuf_unlock_cache>
1115d4: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
1115d6: 8b 5d fc mov -0x4(%ebp),%ebx
1115d9: c9 leave
1115da: c3 ret
1115db: 90 nop
switch (bd->state)
{
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);
1115dc: 89 d8 mov %ebx,%eax
1115de: e8 d1 f4 ff ff call 110ab4 <rtems_bdbuf_add_to_modified_list_after_access>
break;
1115e3: eb ea jmp 1115cf <rtems_bdbuf_release_modified+0x63>
001111a4 <rtems_bdbuf_remove_from_tree>:
return bdbuf_cache.buffer_waiters.count;
}
static void
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)
{
1111a4: 55 push %ebp
1111a5: 89 e5 mov %esp,%ebp
1111a7: 57 push %edi
1111a8: 56 push %esi
1111a9: 53 push %ebx
1111aa: 81 ec ac 00 00 00 sub $0xac,%esp
1111b0: 89 85 60 ff ff ff mov %eax,-0xa0(%ebp)
*/
static int
rtems_bdbuf_avl_remove(rtems_bdbuf_buffer** root,
const rtems_bdbuf_buffer* node)
{
dev_t dev = node->dev;
1111b6: 8b 40 14 mov 0x14(%eax),%eax
1111b9: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp)
1111bf: 8b 95 60 ff ff ff mov -0xa0(%ebp),%edx
1111c5: 8b 5a 18 mov 0x18(%edx),%ebx
rtems_blkdev_bnum block = node->block;
1111c8: 8b 72 1c mov 0x1c(%edx),%esi
1111cb: 89 b5 5c ff ff ff mov %esi,-0xa4(%ebp)
rtems_bdbuf_buffer* p = *root;
1111d1: 8b 15 80 b0 12 00 mov 0x12b080,%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));
1111d7: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax
1111dd: 89 85 54 ff ff ff mov %eax,-0xac(%ebp)
1111e3: b9 80 00 00 00 mov $0x80,%ecx
1111e8: 31 c0 xor %eax,%eax
1111ea: 8b bd 54 ff ff ff mov -0xac(%ebp),%edi
1111f0: f3 aa rep stos %al,%es:(%edi)
while (p != NULL)
1111f2: 85 d2 test %edx,%edx
1111f4: 74 47 je 11123d <rtems_bdbuf_remove_from_tree+0x99><== NEVER TAKEN
1111f6: 8d 8d 68 ff ff ff lea -0x98(%ebp),%ecx
1111fc: eb 25 jmp 111223 <rtems_bdbuf_remove_from_tree+0x7f>
1111fe: 66 90 xchg %ax,%ax
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
111200: 72 08 jb 11120a <rtems_bdbuf_remove_from_tree+0x66><== NEVER TAKEN
111202: 39 bd 64 ff ff ff cmp %edi,-0x9c(%ebp)
111208: 77 28 ja 111232 <rtems_bdbuf_remove_from_tree+0x8e><== NEVER TAKEN
11120a: 31 de xor %ebx,%esi
11120c: 33 bd 64 ff ff ff xor -0x9c(%ebp),%edi
111212: 09 fe or %edi,%esi
111214: 74 42 je 111258 <rtems_bdbuf_remove_from_tree+0xb4><== ALWAYS TAKEN
p->avl.cache = 1;
p = p->avl.right;
}
else if ((p->dev != dev) || (p->block != block))
{
p->avl.cache = -1;
111216: c6 42 10 ff movb $0xff,0x10(%edx)
p = p->avl.left;
11121a: 8b 52 08 mov 0x8(%edx),%edx
bool modified = false;
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
11121d: 85 d2 test %edx,%edx
11121f: 74 1c je 11123d <rtems_bdbuf_remove_from_tree+0x99><== NEVER TAKEN
111221: 89 c1 mov %eax,%ecx
{
*buf_prev++ = p;
111223: 89 11 mov %edx,(%ecx)
111225: 8d 41 04 lea 0x4(%ecx),%eax
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
111228: 8b 7a 14 mov 0x14(%edx),%edi
11122b: 8b 72 18 mov 0x18(%edx),%esi
11122e: 39 f3 cmp %esi,%ebx
111230: 76 ce jbe 111200 <rtems_bdbuf_remove_from_tree+0x5c><== ALWAYS TAKEN
{
p->avl.cache = 1;
111232: c6 42 10 01 movb $0x1,0x10(%edx)
p = p->avl.right;
111236: 8b 52 0c mov 0xc(%edx),%edx
bool modified = false;
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
111239: 85 d2 test %edx,%edx
11123b: 75 e4 jne 111221 <rtems_bdbuf_remove_from_tree+0x7d><== ALWAYS TAKEN
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);
11123d: 8b b5 60 ff ff ff mov -0xa0(%ebp),%esi <== NOT EXECUTED
111243: 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);
111246: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111249: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
11124c: 0d 09 00 00 42 or $0x42000009,%eax <== NOT EXECUTED
111251: 50 push %eax <== NOT EXECUTED
111252: e8 f9 c1 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
111257: 90 nop <== NOT EXECUTED
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
111258: 8b b5 5c ff ff ff mov -0xa4(%ebp),%esi
11125e: 3b 72 1c cmp 0x1c(%edx),%esi
111261: 77 cf ja 111232 <rtems_bdbuf_remove_from_tree+0x8e>
{
p->avl.cache = 1;
p = p->avl.right;
}
else if ((p->dev != dev) || (p->block != block))
111263: 75 b1 jne 111216 <rtems_bdbuf_remove_from_tree+0x72>
111265: 89 85 60 ff ff ff mov %eax,-0xa0(%ebp)
}
q = p;
buf_prev--;
if (buf_prev > buf_stack)
11126b: 3b 8d 54 ff ff ff cmp -0xac(%ebp),%ecx
111271: 0f 87 8b 01 00 00 ja 111402 <rtems_bdbuf_remove_from_tree+0x25e>
111277: 31 ff xor %edi,%edi
{
p = NULL;
}
/* at this moment q - is a node to delete, p is q's parent */
if (q->avl.right == NULL)
111279: 8b 5a 0c mov 0xc(%edx),%ebx
11127c: 85 db test %ebx,%ebx
11127e: 0f 84 8c 01 00 00 je 111410 <rtems_bdbuf_remove_from_tree+0x26c>
{
rtems_bdbuf_buffer **t;
r = q->avl.right;
if (r->avl.left == NULL)
111284: 8b 43 08 mov 0x8(%ebx),%eax
111287: 85 c0 test %eax,%eax
111289: 0f 84 08 02 00 00 je 111497 <rtems_bdbuf_remove_from_tree+0x2f3><== ALWAYS TAKEN
11128f: 8b 85 60 ff ff ff mov -0xa0(%ebp),%eax <== NOT EXECUTED
111295: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
r->avl.left = q->avl.left;
r->avl.bal = q->avl.bal;
r->avl.cache = 1;
*buf_prev++ = q = r;
111298: 89 de mov %ebx,%esi <== NOT EXECUTED
t = buf_prev++;
s = r;
while (s->avl.left != NULL)
{
*buf_prev++ = r = s;
11129a: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
11129c: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
s = r->avl.left;
11129f: 8b 5b 08 mov 0x8(%ebx),%ebx <== NOT EXECUTED
r->avl.cache = -1;
1112a2: c6 46 10 ff movb $0xff,0x10(%esi) <== NOT EXECUTED
else
{
t = buf_prev++;
s = r;
while (s->avl.left != NULL)
1112a6: 83 7b 08 00 cmpl $0x0,0x8(%ebx) <== NOT EXECUTED
1112aa: 75 ec jne 111298 <rtems_bdbuf_remove_from_tree+0xf4><== NOT EXECUTED
1112ac: 89 85 60 ff ff ff mov %eax,-0xa0(%ebp) <== NOT EXECUTED
*buf_prev++ = r = s;
s = r->avl.left;
r->avl.cache = -1;
}
s->avl.left = q->avl.left;
1112b2: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
1112b5: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
r->avl.left = s->avl.right;
1112b8: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
1112bb: 89 46 08 mov %eax,0x8(%esi) <== NOT EXECUTED
s->avl.right = q->avl.right;
1112be: 8b 72 0c mov 0xc(%edx),%esi <== NOT EXECUTED
1112c1: 89 73 0c mov %esi,0xc(%ebx) <== NOT EXECUTED
s->avl.bal = q->avl.bal;
1112c4: 8a 52 11 mov 0x11(%edx),%dl <== NOT EXECUTED
1112c7: 88 53 11 mov %dl,0x11(%ebx) <== NOT EXECUTED
s->avl.cache = 1;
1112ca: c6 43 10 01 movb $0x1,0x10(%ebx) <== NOT EXECUTED
*t = q = s;
1112ce: 89 19 mov %ebx,(%ecx) <== NOT EXECUTED
}
}
if (p != NULL)
1112d0: 85 ff test %edi,%edi
1112d2: 0f 84 51 01 00 00 je 111429 <rtems_bdbuf_remove_from_tree+0x285>
{
if (p->avl.cache == -1)
1112d8: 80 7f 10 ff cmpb $0xff,0x10(%edi)
1112dc: 0f 84 76 01 00 00 je 111458 <rtems_bdbuf_remove_from_tree+0x2b4>
{
p->avl.left = q;
}
else
{
p->avl.right = q;
1112e2: 89 5f 0c mov %ebx,0xc(%edi)
modified = true;
while (modified)
{
if (buf_prev > buf_stack)
1112e5: 8b 95 54 ff ff ff mov -0xac(%ebp),%edx
1112eb: 39 95 60 ff ff ff cmp %edx,-0xa0(%ebp)
1112f1: 76 56 jbe 111349 <rtems_bdbuf_remove_from_tree+0x1a5>
1112f3: 8b 85 60 ff ff ff mov -0xa0(%ebp),%eax
1112f9: eb 21 jmp 11131c <rtems_bdbuf_remove_from_tree+0x178>
1112fb: 90 nop
case +1:
p->avl.bal = 0;
break;
case 0:
p->avl.bal = -1;
1112fc: c6 42 11 ff movb $0xff,0x11(%edx) <== NOT EXECUTED
111300: 89 d1 mov %edx,%ecx <== NOT EXECUTED
111302: 31 db xor %ebx,%ebx <== NOT EXECUTED
default:
break;
}
}
if (buf_prev > buf_stack)
111304: 3b 85 54 ff ff ff cmp -0xac(%ebp),%eax
11130a: 76 37 jbe 111343 <rtems_bdbuf_remove_from_tree+0x19f>
{
q = *(buf_prev - 1);
11130c: 8b 50 fc mov -0x4(%eax),%edx
if (q->avl.cache == -1)
11130f: 80 7a 10 ff cmpb $0xff,0x10(%edx)
111313: 74 53 je 111368 <rtems_bdbuf_remove_from_tree+0x1c4><== ALWAYS TAKEN
{
q->avl.left = p;
}
else
{
q->avl.right = p;
111315: 89 4a 0c mov %ecx,0xc(%edx) <== NOT EXECUTED
*root = q;
}
modified = true;
while (modified)
111318: 84 db test %bl,%bl
11131a: 74 2d je 111349 <rtems_bdbuf_remove_from_tree+0x1a5><== NEVER TAKEN
{
if (buf_prev > buf_stack)
{
p = *--buf_prev;
11131c: 83 e8 04 sub $0x4,%eax
11131f: 8b 10 mov (%eax),%edx
else
{
break;
}
if (p->avl.cache == -1)
111321: 80 7a 10 ff cmpb $0xff,0x10(%edx)
111325: 74 2d je 111354 <rtems_bdbuf_remove_from_tree+0x1b0>
}
}
else
{
/* rebalance right branch */
switch (p->avl.bal)
111327: 8a 4a 11 mov 0x11(%edx),%cl
11132a: 84 c9 test %cl,%cl
11132c: 74 ce je 1112fc <rtems_bdbuf_remove_from_tree+0x158><== NEVER TAKEN
11132e: 80 f9 01 cmp $0x1,%cl
111331: 74 46 je 111379 <rtems_bdbuf_remove_from_tree+0x1d5><== ALWAYS TAKEN
111333: fe c1 inc %cl <== NOT EXECUTED
111335: 74 4d je 111384 <rtems_bdbuf_remove_from_tree+0x1e0><== NOT EXECUTED
if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
p = p2;
p2->avl.bal = 0;
111337: 89 d1 mov %edx,%ecx <== NOT EXECUTED
111339: b3 01 mov $0x1,%bl <== NOT EXECUTED
default:
break;
}
}
if (buf_prev > buf_stack)
11133b: 3b 85 54 ff ff ff cmp -0xac(%ebp),%eax <== NOT EXECUTED
111341: 77 c9 ja 11130c <rtems_bdbuf_remove_from_tree+0x168><== NOT EXECUTED
q->avl.right = p;
}
}
else
{
*root = p;
111343: 89 0d 80 b0 12 00 mov %ecx,0x12b080
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);
}
111349: 8d 65 f4 lea -0xc(%ebp),%esp
11134c: 5b pop %ebx
11134d: 5e pop %esi
11134e: 5f pop %edi
11134f: c9 leave
111350: c3 ret
111351: 8d 76 00 lea 0x0(%esi),%esi
}
if (p->avl.cache == -1)
{
/* rebalance left branch */
switch (p->avl.bal)
111354: 8a 4a 11 mov 0x11(%edx),%cl
111357: 84 c9 test %cl,%cl
111359: 75 15 jne 111370 <rtems_bdbuf_remove_from_tree+0x1cc>
{
case -1:
p->avl.bal = 0;
break;
case 0:
p->avl.bal = 1;
11135b: c6 42 11 01 movb $0x1,0x11(%edx)
11135f: 89 d1 mov %edx,%ecx
111361: 31 db xor %ebx,%ebx
111363: eb 9f jmp 111304 <rtems_bdbuf_remove_from_tree+0x160>
111365: 8d 76 00 lea 0x0(%esi),%esi
{
q = *(buf_prev - 1);
if (q->avl.cache == -1)
{
q->avl.left = p;
111368: 89 4a 08 mov %ecx,0x8(%edx)
11136b: eb ab jmp 111318 <rtems_bdbuf_remove_from_tree+0x174>
11136d: 8d 76 00 lea 0x0(%esi),%esi
}
if (p->avl.cache == -1)
{
/* rebalance left branch */
switch (p->avl.bal)
111370: 80 f9 01 cmp $0x1,%cl
111373: 74 4f je 1113c4 <rtems_bdbuf_remove_from_tree+0x220>
111375: fe c1 inc %cl
111377: 75 be jne 111337 <rtems_bdbuf_remove_from_tree+0x193><== NEVER TAKEN
{
/* rebalance right branch */
switch (p->avl.bal)
{
case +1:
p->avl.bal = 0;
111379: c6 42 11 00 movb $0x0,0x11(%edx)
11137d: 89 d1 mov %edx,%ecx
11137f: b3 01 mov $0x1,%bl
111381: eb 81 jmp 111304 <rtems_bdbuf_remove_from_tree+0x160>
111383: 90 nop
p->avl.bal = -1;
modified = false;
break;
case -1:
p1 = p->avl.left;
111384: 8b 4a 08 mov 0x8(%edx),%ecx <== NOT EXECUTED
if (p1->avl.bal <= 0) /* simple LL-turn */
111387: 80 79 11 00 cmpb $0x0,0x11(%ecx) <== NOT EXECUTED
11138b: 7e 5f jle 1113ec <rtems_bdbuf_remove_from_tree+0x248><== NOT EXECUTED
}
p = p1;
}
else /* double LR-turn */
{
p2 = p1->avl.right;
11138d: 8b 59 0c mov 0xc(%ecx),%ebx <== NOT EXECUTED
p1->avl.right = p2->avl.left;
111390: 8b 73 08 mov 0x8(%ebx),%esi <== NOT EXECUTED
111393: 89 71 0c mov %esi,0xc(%ecx) <== NOT EXECUTED
p2->avl.left = p1;
111396: 89 4b 08 mov %ecx,0x8(%ebx) <== NOT EXECUTED
p->avl.left = p2->avl.right;
111399: 8b 73 0c mov 0xc(%ebx),%esi <== NOT EXECUTED
11139c: 89 72 08 mov %esi,0x8(%edx) <== NOT EXECUTED
p2->avl.right = p;
11139f: 89 53 0c mov %edx,0xc(%ebx) <== NOT EXECUTED
if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
1113a2: 80 7b 11 ff cmpb $0xff,0x11(%ebx) <== NOT EXECUTED
1113a6: 0f 94 42 11 sete 0x11(%edx) <== NOT EXECUTED
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
1113aa: 80 7b 11 01 cmpb $0x1,0x11(%ebx) <== NOT EXECUTED
1113ae: 0f 95 c2 setne %dl <== NOT EXECUTED
1113b1: 4a dec %edx <== NOT EXECUTED
1113b2: 88 51 11 mov %dl,0x11(%ecx) <== NOT EXECUTED
p = p2;
p2->avl.bal = 0;
1113b5: c6 43 11 00 movb $0x0,0x11(%ebx) <== NOT EXECUTED
1113b9: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
1113bb: b3 01 mov $0x1,%bl <== NOT EXECUTED
1113bd: e9 42 ff ff ff jmp 111304 <rtems_bdbuf_remove_from_tree+0x160><== NOT EXECUTED
1113c2: 66 90 xchg %ax,%ax <== NOT EXECUTED
p->avl.bal = 1;
modified = false;
break;
case +1:
p1 = p->avl.right;
1113c4: 8b 7a 0c mov 0xc(%edx),%edi
if (p1->avl.bal >= 0) /* simple RR-turn */
1113c7: 80 7f 11 00 cmpb $0x0,0x11(%edi)
1113cb: 0f 8c 8f 00 00 00 jl 111460 <rtems_bdbuf_remove_from_tree+0x2bc><== NEVER TAKEN
{
p->avl.right = p1->avl.left;
1113d1: 8b 4f 08 mov 0x8(%edi),%ecx
1113d4: 89 4a 0c mov %ecx,0xc(%edx)
p1->avl.left = p;
1113d7: 89 57 08 mov %edx,0x8(%edi)
if (p1->avl.bal == 0)
1113da: 75 58 jne 111434 <rtems_bdbuf_remove_from_tree+0x290><== NEVER TAKEN
{
p1->avl.bal = -1;
1113dc: c6 47 11 ff movb $0xff,0x11(%edi)
1113e0: 89 f9 mov %edi,%ecx
1113e2: 31 db xor %ebx,%ebx
1113e4: e9 1b ff ff ff jmp 111304 <rtems_bdbuf_remove_from_tree+0x160>
1113e9: 8d 76 00 lea 0x0(%esi),%esi
case -1:
p1 = p->avl.left;
if (p1->avl.bal <= 0) /* simple LL-turn */
{
p->avl.left = p1->avl.right;
1113ec: 8b 59 0c mov 0xc(%ecx),%ebx <== NOT EXECUTED
1113ef: 89 5a 08 mov %ebx,0x8(%edx) <== NOT EXECUTED
p1->avl.right = p;
1113f2: 89 51 0c mov %edx,0xc(%ecx) <== NOT EXECUTED
if (p1->avl.bal == 0)
1113f5: 75 51 jne 111448 <rtems_bdbuf_remove_from_tree+0x2a4><== NOT EXECUTED
{
p1->avl.bal = 1;
1113f7: c6 41 11 01 movb $0x1,0x11(%ecx) <== NOT EXECUTED
1113fb: 31 db xor %ebx,%ebx <== NOT EXECUTED
1113fd: e9 02 ff ff ff jmp 111304 <rtems_bdbuf_remove_from_tree+0x160><== NOT EXECUTED
q = p;
buf_prev--;
if (buf_prev > buf_stack)
{
p = *(buf_prev - 1);
111402: 8b 79 fc mov -0x4(%ecx),%edi
{
p = NULL;
}
/* at this moment q - is a node to delete, p is q's parent */
if (q->avl.right == NULL)
111405: 8b 5a 0c mov 0xc(%edx),%ebx
111408: 85 db test %ebx,%ebx
11140a: 0f 85 74 fe ff ff jne 111284 <rtems_bdbuf_remove_from_tree+0xe0>
{
r = q->avl.left;
111410: 8b 5a 08 mov 0x8(%edx),%ebx
if (r != NULL)
111413: 85 db test %ebx,%ebx
111415: 74 04 je 11141b <rtems_bdbuf_remove_from_tree+0x277>
{
r->avl.bal = 0;
111417: c6 43 11 00 movb $0x0,0x11(%ebx)
11141b: 89 8d 60 ff ff ff mov %ecx,-0xa0(%ebp)
*t = q = s;
}
}
if (p != NULL)
111421: 85 ff test %edi,%edi
111423: 0f 85 af fe ff ff jne 1112d8 <rtems_bdbuf_remove_from_tree+0x134>
p->avl.right = q;
}
}
else
{
*root = q;
111429: 89 1d 80 b0 12 00 mov %ebx,0x12b080
11142f: e9 b1 fe ff ff jmp 1112e5 <rtems_bdbuf_remove_from_tree+0x141>
p1->avl.bal = -1;
modified = false;
}
else
{
p->avl.bal = 0;
111434: c6 42 11 00 movb $0x0,0x11(%edx) <== NOT EXECUTED
p1->avl.bal = 0;
111438: c6 47 11 00 movb $0x0,0x11(%edi) <== NOT EXECUTED
11143c: 89 f9 mov %edi,%ecx <== NOT EXECUTED
11143e: b3 01 mov $0x1,%bl <== NOT EXECUTED
111440: e9 bf fe ff ff jmp 111304 <rtems_bdbuf_remove_from_tree+0x160><== NOT EXECUTED
111445: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
p1->avl.bal = 1;
modified = false;
}
else
{
p->avl.bal = 0;
111448: c6 42 11 00 movb $0x0,0x11(%edx) <== NOT EXECUTED
p1->avl.bal = 0;
11144c: c6 41 11 00 movb $0x0,0x11(%ecx) <== NOT EXECUTED
111450: b3 01 mov $0x1,%bl <== NOT EXECUTED
111452: e9 ad fe ff ff jmp 111304 <rtems_bdbuf_remove_from_tree+0x160><== NOT EXECUTED
111457: 90 nop <== NOT EXECUTED
if (p != NULL)
{
if (p->avl.cache == -1)
{
p->avl.left = q;
111458: 89 5f 08 mov %ebx,0x8(%edi)
11145b: e9 85 fe ff ff jmp 1112e5 <rtems_bdbuf_remove_from_tree+0x141>
}
p = p1;
}
else /* double RL-turn */
{
p2 = p1->avl.left;
111460: 8b 4f 08 mov 0x8(%edi),%ecx <== NOT EXECUTED
p1->avl.left = p2->avl.right;
111463: 8b 71 0c mov 0xc(%ecx),%esi <== NOT EXECUTED
111466: 89 77 08 mov %esi,0x8(%edi) <== NOT EXECUTED
p2->avl.right = p1;
111469: 89 79 0c mov %edi,0xc(%ecx) <== NOT EXECUTED
p->avl.right = p2->avl.left;
11146c: 8b 71 08 mov 0x8(%ecx),%esi <== NOT EXECUTED
11146f: 89 72 0c mov %esi,0xc(%edx) <== NOT EXECUTED
p2->avl.left = p;
111472: 89 51 08 mov %edx,0x8(%ecx) <== NOT EXECUTED
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
111475: 80 79 11 01 cmpb $0x1,0x11(%ecx) <== NOT EXECUTED
111479: 0f 95 c3 setne %bl <== NOT EXECUTED
11147c: 89 de mov %ebx,%esi <== NOT EXECUTED
11147e: 4e dec %esi <== NOT EXECUTED
11147f: 89 f3 mov %esi,%ebx <== NOT EXECUTED
111481: 88 5a 11 mov %bl,0x11(%edx) <== NOT EXECUTED
if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
111484: 80 79 11 ff cmpb $0xff,0x11(%ecx) <== NOT EXECUTED
111488: 0f 94 47 11 sete 0x11(%edi) <== NOT EXECUTED
p = p2;
p2->avl.bal = 0;
11148c: c6 41 11 00 movb $0x0,0x11(%ecx) <== NOT EXECUTED
111490: b3 01 mov $0x1,%bl <== NOT EXECUTED
111492: e9 6d fe ff ff jmp 111304 <rtems_bdbuf_remove_from_tree+0x160><== NOT EXECUTED
r = q->avl.right;
if (r->avl.left == NULL)
{
r->avl.left = q->avl.left;
111497: 8b 72 08 mov 0x8(%edx),%esi
11149a: 89 73 08 mov %esi,0x8(%ebx)
r->avl.bal = q->avl.bal;
11149d: 8a 52 11 mov 0x11(%edx),%dl
1114a0: 88 53 11 mov %dl,0x11(%ebx)
r->avl.cache = 1;
1114a3: c6 43 10 01 movb $0x1,0x10(%ebx)
*buf_prev++ = q = r;
1114a7: 89 19 mov %ebx,(%ecx)
1114a9: e9 22 fe ff ff jmp 1112d0 <rtems_bdbuf_remove_from_tree+0x12c>
001114b0 <rtems_bdbuf_remove_from_tree_and_lru_list>:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_TREE_RM);
}
static void
rtems_bdbuf_remove_from_tree_and_lru_list (rtems_bdbuf_buffer *bd)
{
1114b0: 55 push %ebp
1114b1: 89 e5 mov %esp,%ebp
1114b3: 53 push %ebx
1114b4: 83 ec 04 sub $0x4,%esp
1114b7: 89 c3 mov %eax,%ebx
switch (bd->state)
1114b9: 8b 40 24 mov 0x24(%eax),%eax
1114bc: 85 c0 test %eax,%eax
1114be: 74 23 je 1114e3 <rtems_bdbuf_remove_from_tree_and_lru_list+0x33>
1114c0: 83 f8 02 cmp $0x2,%eax
1114c3: 74 17 je 1114dc <rtems_bdbuf_remove_from_tree_and_lru_list+0x2c><== ALWAYS TAKEN
break;
case RTEMS_BDBUF_STATE_CACHED:
rtems_bdbuf_remove_from_tree (bd);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_10);
1114c5: 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);
1114c8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1114cb: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
1114ce: 0d 08 00 00 42 or $0x42000008,%eax <== NOT EXECUTED
1114d3: 50 push %eax <== NOT EXECUTED
1114d4: e8 77 bf ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
1114d9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
switch (bd->state)
{
case RTEMS_BDBUF_STATE_FREE:
break;
case RTEMS_BDBUF_STATE_CACHED:
rtems_bdbuf_remove_from_tree (bd);
1114dc: 89 d8 mov %ebx,%eax
1114de: e8 c1 fc ff ff call 1111a4 <rtems_bdbuf_remove_from_tree>
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
1114e3: 83 ec 0c sub $0xc,%esp
1114e6: 53 push %ebx
1114e7: e8 c0 c3 ff ff call 10d8ac <_Chain_Extract>
1114ec: 83 c4 10 add $0x10,%esp
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_10);
}
rtems_chain_extract (&bd->link);
}
1114ef: 8b 5d fc mov -0x4(%ebp),%ebx
1114f2: c9 leave
1114f3: c3 ret
00110c94 <rtems_bdbuf_restore_preemption>:
return prev_mode;
}
static void
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)
{
110c94: 55 push %ebp
110c95: 89 e5 mov %esp,%ebp
110c97: 83 ec 1c sub $0x1c,%esp
110c9a: 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);
110c9d: 8d 45 f4 lea -0xc(%ebp),%eax
110ca0: 50 push %eax
110ca1: 68 ff ff 00 00 push $0xffff
110ca6: ff 75 f4 pushl -0xc(%ebp)
110ca9: e8 1a 43 00 00 call 114fc8 <rtems_task_mode>
if (sc != RTEMS_SUCCESSFUL)
110cae: 83 c4 10 add $0x10,%esp
110cb1: 85 c0 test %eax,%eax
110cb3: 75 02 jne 110cb7 <rtems_bdbuf_restore_preemption+0x23><== NEVER TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_RST);
}
110cb5: c9 leave
110cb6: c3 ret
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_RST);
110cb7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110cba: 68 11 00 00 42 push $0x42000011 <== NOT EXECUTED
110cbf: e8 8c c7 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
001107dc <rtems_bdbuf_swapout_modified_processing>:
rtems_chain_control* chain,
rtems_chain_control* transfer,
bool sync_active,
bool update_timers,
uint32_t timer_delta)
{
1107dc: 55 push %ebp
1107dd: 89 e5 mov %esp,%ebp
1107df: 57 push %edi
1107e0: 56 push %esi
1107e1: 53 push %ebx
1107e2: 83 ec 2c sub $0x2c,%esp
1107e5: 89 c3 mov %eax,%ebx
1107e7: 89 4d e4 mov %ecx,-0x1c(%ebp)
1107ea: 8a 45 08 mov 0x8(%ebp),%al
1107ed: 88 45 df mov %al,-0x21(%ebp)
1107f0: 8a 45 0c mov 0xc(%ebp),%al
1107f3: 88 45 de mov %al,-0x22(%ebp)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
1107f6: 8d 7a 04 lea 0x4(%edx),%edi
if (!rtems_chain_is_empty (chain))
1107f9: 39 3a cmp %edi,(%edx)
1107fb: 0f 84 96 00 00 00 je 110897 <rtems_bdbuf_swapout_modified_processing+0xbb>
{
rtems_chain_node* node = rtems_chain_head (chain);
bool sync_all;
node = node->next;
110801: 8b 32 mov (%edx),%esi
/*
* A sync active with no valid dev means sync all.
*/
if (sync_active && (*dev == BDBUF_INVALID_DEV))
110803: 80 7d df 00 cmpb $0x0,-0x21(%ebp)
110807: 0f 85 e7 00 00 00 jne 1108f4 <rtems_bdbuf_swapout_modified_processing+0x118>
11080d: 31 c9 xor %ecx,%ecx
sync_all = true;
else
sync_all = false;
while (!rtems_chain_is_tail (chain, node))
11080f: 39 fe cmp %edi,%esi
110811: 0f 84 80 00 00 00 je 110897 <rtems_bdbuf_swapout_modified_processing+0xbb><== NEVER TAKEN
110817: 8b 55 e4 mov -0x1c(%ebp),%edx
11081a: 83 c2 04 add $0x4,%edx
11081d: 89 55 d8 mov %edx,-0x28(%ebp)
110820: 89 7d e0 mov %edi,-0x20(%ebp)
110823: 90 nop
* 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))
110824: 84 c9 test %cl,%cl
110826: 75 1e jne 110846 <rtems_bdbuf_swapout_modified_processing+0x6a>
110828: 80 7d df 00 cmpb $0x0,-0x21(%ebp)
11082c: 74 0f je 11083d <rtems_bdbuf_swapout_modified_processing+0x61>
11082e: 8b 03 mov (%ebx),%eax
110830: 8b 53 04 mov 0x4(%ebx),%edx
110833: 33 56 18 xor 0x18(%esi),%edx
110836: 33 46 14 xor 0x14(%esi),%eax
110839: 09 c2 or %eax,%edx
11083b: 74 09 je 110846 <rtems_bdbuf_swapout_modified_processing+0x6a>
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
11083d: a1 b8 b0 12 00 mov 0x12b0b8,%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))
110842: 85 c0 test %eax,%eax
110844: 74 07 je 11084d <rtems_bdbuf_swapout_modified_processing+0x71>
|| rtems_bdbuf_has_buffer_waiters ())
bd->hold_timer = 0;
110846: c7 46 30 00 00 00 00 movl $0x0,0x30(%esi)
if (bd->hold_timer)
11084d: 8b 46 30 mov 0x30(%esi),%eax
110850: 85 c0 test %eax,%eax
110852: 74 22 je 110876 <rtems_bdbuf_swapout_modified_processing+0x9a>
{
if (update_timers)
110854: 80 7d de 00 cmpb $0x0,-0x22(%ebp)
110858: 74 15 je 11086f <rtems_bdbuf_swapout_modified_processing+0x93>
{
if (bd->hold_timer > timer_delta)
11085a: 8b 46 30 mov 0x30(%esi),%eax
11085d: 3b 45 10 cmp 0x10(%ebp),%eax
110860: 0f 86 b6 00 00 00 jbe 11091c <rtems_bdbuf_swapout_modified_processing+0x140>
bd->hold_timer -= timer_delta;
110866: 8b 46 30 mov 0x30(%esi),%eax
110869: 2b 45 10 sub 0x10(%ebp),%eax
11086c: 89 46 30 mov %eax,0x30(%esi)
else
bd->hold_timer = 0;
}
if (bd->hold_timer)
11086f: 8b 46 30 mov 0x30(%esi),%eax
110872: 85 c0 test %eax,%eax
110874: 75 1a jne 110890 <rtems_bdbuf_swapout_modified_processing+0xb4>
/*
* 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)
110876: 8b 03 mov (%ebx),%eax
110878: 8b 53 04 mov 0x4(%ebx),%edx
11087b: 89 c7 mov %eax,%edi
11087d: 21 d7 and %edx,%edi
11087f: 47 inc %edi
110880: 0f 84 86 00 00 00 je 11090c <rtems_bdbuf_swapout_modified_processing+0x130>
*dev = bd->dev;
if (bd->dev == *dev)
110886: 33 56 18 xor 0x18(%esi),%edx
110889: 33 46 14 xor 0x14(%esi),%eax
11088c: 09 c2 or %eax,%edx
11088e: 74 10 je 1108a0 <rtems_bdbuf_swapout_modified_processing+0xc4><== ALWAYS TAKEN
node = next_node;
}
else
{
node = node->next;
110890: 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))
110892: 39 75 e0 cmp %esi,-0x20(%ebp)
110895: 75 8d jne 110824 <rtems_bdbuf_swapout_modified_processing+0x48>
{
node = node->next;
}
}
}
}
110897: 8d 65 f4 lea -0xc(%ebp),%esp
11089a: 5b pop %ebx
11089b: 5e pop %esi
11089c: 5f pop %edi
11089d: c9 leave
11089e: c3 ret
11089f: 90 nop
if (*dev == BDBUF_INVALID_DEV)
*dev = bd->dev;
if (bd->dev == *dev)
{
rtems_chain_node* next_node = node->next;
1108a0: 8b 3e mov (%esi),%edi
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
1108a2: 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 );
1108a9: 83 ec 0c sub $0xc,%esp
1108ac: 56 push %esi
1108ad: 88 4d d4 mov %cl,-0x2c(%ebp)
1108b0: e8 f7 cf ff ff call 10d8ac <_Chain_Extract>
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);
rtems_chain_extract (node);
tnode = tnode->previous;
1108b5: 8b 55 d8 mov -0x28(%ebp),%edx
1108b8: 8b 42 04 mov 0x4(%edx),%eax
while (node && !rtems_chain_is_head (transfer, tnode))
1108bb: 83 c4 10 add $0x10,%esp
1108be: 3b 45 e4 cmp -0x1c(%ebp),%eax
1108c1: 8a 4d d4 mov -0x2c(%ebp),%cl
1108c4: 74 13 je 1108d9 <rtems_bdbuf_swapout_modified_processing+0xfd>
1108c6: 8b 56 1c mov 0x1c(%esi),%edx
1108c9: 8d 76 00 lea 0x0(%esi),%esi
{
rtems_bdbuf_buffer* tbd = (rtems_bdbuf_buffer*) tnode;
if (bd->block > tbd->block)
1108cc: 39 50 1c cmp %edx,0x1c(%eax)
1108cf: 72 33 jb 110904 <rtems_bdbuf_swapout_modified_processing+0x128>
{
rtems_chain_insert (tnode, node);
node = NULL;
}
else
tnode = tnode->previous;
1108d1: 8b 40 04 mov 0x4(%eax),%eax
rtems_chain_extract (node);
tnode = tnode->previous;
while (node && !rtems_chain_is_head (transfer, tnode))
1108d4: 3b 45 e4 cmp -0x1c(%ebp),%eax
1108d7: 75 f3 jne 1108cc <rtems_bdbuf_swapout_modified_processing+0xf0>
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
1108d9: 83 ec 08 sub $0x8,%esp
1108dc: 56 push %esi
1108dd: ff 75 e4 pushl -0x1c(%ebp)
1108e0: 88 4d d4 mov %cl,-0x2c(%ebp)
1108e3: e8 4c 4b 00 00 call 115434 <_Chain_Insert>
1108e8: 89 fe mov %edi,%esi
1108ea: 83 c4 10 add $0x10,%esp
1108ed: 8a 4d d4 mov -0x2c(%ebp),%cl
1108f0: eb a0 jmp 110892 <rtems_bdbuf_swapout_modified_processing+0xb6>
1108f2: 66 90 xchg %ax,%ax
* @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,
1108f4: 8b 03 mov (%ebx),%eax
1108f6: 23 43 04 and 0x4(%ebx),%eax
1108f9: 40 inc %eax
1108fa: 0f 94 c1 sete %cl
1108fd: e9 0d ff ff ff jmp 11080f <rtems_bdbuf_swapout_modified_processing+0x33>
110902: 66 90 xchg %ax,%ax
RTEMS_INLINE_ROUTINE void rtems_chain_insert(
rtems_chain_node *after_node,
rtems_chain_node *the_node
)
{
_Chain_Insert( after_node, the_node );
110904: 83 ec 08 sub $0x8,%esp
110907: 56 push %esi
110908: 50 push %eax
110909: eb d5 jmp 1108e0 <rtems_bdbuf_swapout_modified_processing+0x104>
11090b: 90 nop
* 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)
*dev = bd->dev;
11090c: 8b 46 14 mov 0x14(%esi),%eax
11090f: 8b 56 18 mov 0x18(%esi),%edx
110912: 89 03 mov %eax,(%ebx)
110914: 89 53 04 mov %edx,0x4(%ebx)
110917: e9 6a ff ff ff jmp 110886 <rtems_bdbuf_swapout_modified_processing+0xaa>
if (update_timers)
{
if (bd->hold_timer > timer_delta)
bd->hold_timer -= timer_delta;
else
bd->hold_timer = 0;
11091c: c7 46 30 00 00 00 00 movl $0x0,0x30(%esi)
110923: e9 47 ff ff ff jmp 11086f <rtems_bdbuf_swapout_modified_processing+0x93>
00111aec <rtems_bdbuf_swapout_task>:
* not this.
* @return rtems_task Not used.
*/
static rtems_task
rtems_bdbuf_swapout_task (rtems_task_argument arg)
{
111aec: 55 push %ebp
111aed: 89 e5 mov %esp,%ebp
111aef: 57 push %edi
111af0: 56 push %esi
111af1: 53 push %ebx
111af2: 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 ();
111af5: e8 5a f6 ff ff call 111154 <rtems_bdbuf_swapout_writereq_alloc>
111afa: 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);
111afd: 8d 45 c8 lea -0x38(%ebp),%eax
111b00: 89 45 c4 mov %eax,-0x3c(%ebp)
the_chain->permanent_null = NULL;
111b03: c7 45 c8 00 00 00 00 movl $0x0,-0x38(%ebp)
the_chain->last = _Chain_Head(the_chain);
111b0a: 8d 45 c4 lea -0x3c(%ebp),%eax
111b0d: 89 45 cc mov %eax,-0x34(%ebp)
rtems_chain_initialize_empty (&transfer.bds);
transfer.dev = BDBUF_INVALID_DEV;
111b10: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp)
111b17: c7 45 d4 ff ff ff ff movl $0xffffffff,-0x2c(%ebp)
transfer.syncing = false;
111b1e: c6 45 d8 00 movb $0x0,-0x28(%ebp)
/*
* Localise the period.
*/
period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
111b22: 8b 15 8c 37 12 00 mov 0x12378c,%edx
111b28: 8d 04 92 lea (%edx,%edx,4),%eax
111b2b: 8d 04 80 lea (%eax,%eax,4),%eax
111b2e: 8d 04 80 lea (%eax,%eax,4),%eax
111b31: c1 e0 03 shl $0x3,%eax
111b34: 31 d2 xor %edx,%edx
111b36: f7 35 0c 72 12 00 divl 0x12720c
111b3c: 89 45 ac mov %eax,-0x54(%ebp)
rtems_bdbuf_swapout_workers_open (void)
{
rtems_status_code sc;
size_t w;
rtems_bdbuf_lock_cache ();
111b3f: e8 54 ec ff ff call 110798 <rtems_bdbuf_lock_cache>
for (w = 0; w < bdbuf_config.swapout_workers; w++)
111b44: 8b 1d 94 37 12 00 mov 0x123794,%ebx
111b4a: 85 db test %ebx,%ebx
111b4c: 0f 84 c3 00 00 00 je 111c15 <rtems_bdbuf_swapout_task+0x129><== ALWAYS TAKEN
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 ?
111b52: 8b 3d 88 37 12 00 mov 0x123788,%edi <== NOT EXECUTED
111b58: 31 f6 xor %esi,%esi <== NOT EXECUTED
111b5a: eb 55 jmp 111bb1 <rtems_bdbuf_swapout_task+0xc5><== NOT EXECUTED
worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
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),
111b5c: b8 0f 00 00 00 mov $0xf,%eax <== NOT EXECUTED
111b61: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
111b64: 8d 53 08 lea 0x8(%ebx),%edx <== NOT EXECUTED
111b67: 52 push %edx <== NOT EXECUTED
111b68: 6a 00 push $0x0 <== NOT EXECUTED
111b6a: 68 00 04 00 00 push $0x400 <== NOT EXECUTED
111b6f: 68 00 20 00 00 push $0x2000 <== NOT EXECUTED
111b74: 50 push %eax <== NOT EXECUTED
111b75: 8d 46 61 lea 0x61(%esi),%eax <== NOT EXECUTED
111b78: 0d 00 6f 44 42 or $0x42446f00,%eax <== NOT EXECUTED
111b7d: 50 push %eax <== NOT EXECUTED
111b7e: e8 9d b4 ff ff call 10d020 <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)
111b83: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
111b86: 85 c0 test %eax,%eax <== NOT EXECUTED
111b88: 0f 85 be 02 00 00 jne 111e4c <rtems_bdbuf_swapout_task+0x360><== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
sc = rtems_task_start (worker->id,
111b8e: 51 push %ecx <== NOT EXECUTED
111b8f: 53 push %ebx <== NOT EXECUTED
111b90: 68 5c 1e 11 00 push $0x111e5c <== NOT EXECUTED
111b95: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
111b98: e8 e3 b6 ff ff call 10d280 <rtems_task_start> <== NOT EXECUTED
rtems_bdbuf_swapout_worker_task,
(rtems_task_argument) worker);
if (sc != RTEMS_SUCCESSFUL)
111b9d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111ba0: 85 c0 test %eax,%eax <== NOT EXECUTED
111ba2: 0f 85 97 02 00 00 jne 111e3f <rtems_bdbuf_swapout_task+0x353><== NOT EXECUTED
rtems_status_code sc;
size_t w;
rtems_bdbuf_lock_cache ();
for (w = 0; w < bdbuf_config.swapout_workers; w++)
111ba8: 46 inc %esi <== NOT EXECUTED
111ba9: 3b 35 94 37 12 00 cmp 0x123794,%esi <== NOT EXECUTED
111baf: 73 64 jae 111c15 <rtems_bdbuf_swapout_task+0x129><== NOT EXECUTED
{
rtems_bdbuf_swapout_worker* worker;
worker = malloc (sizeof (rtems_bdbuf_swapout_worker));
111bb1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111bb4: 6a 30 push $0x30 <== NOT EXECUTED
111bb6: e8 a9 7b ff ff call 109764 <malloc> <== NOT EXECUTED
111bbb: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (!worker)
111bbd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111bc0: 85 c0 test %eax,%eax <== NOT EXECUTED
111bc2: 0f 84 6a 02 00 00 je 111e32 <rtems_bdbuf_swapout_task+0x346><== 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 );
111bc8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
111bcb: 50 push %eax <== NOT EXECUTED
111bcc: 68 48 b0 12 00 push $0x12b048 <== NOT EXECUTED
111bd1: e8 b2 bc ff ff call 10d888 <_Chain_Append> <== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
worker->enabled = true;
111bd6: c6 43 0c 01 movb $0x1,0xc(%ebx) <== NOT EXECUTED
worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
111bda: e8 75 f5 ff ff call 111154 <rtems_bdbuf_swapout_writereq_alloc><== NOT EXECUTED
111bdf: 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);
111be2: 8d 43 14 lea 0x14(%ebx),%eax <== NOT EXECUTED
111be5: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
111be8: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
111bef: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
111bf2: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
111bf5: c7 43 1c ff ff ff ff movl $0xffffffff,0x1c(%ebx) <== NOT EXECUTED
111bfc: 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),
111c03: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111c06: 85 ff test %edi,%edi <== NOT EXECUTED
111c08: 0f 84 4e ff ff ff je 111b5c <rtems_bdbuf_swapout_task+0x70><== NOT EXECUTED
111c0e: 89 f8 mov %edi,%eax <== NOT EXECUTED
111c10: e9 4c ff ff ff jmp 111b61 <rtems_bdbuf_swapout_task+0x75><== NOT EXECUTED
(rtems_task_argument) worker);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_START);
}
rtems_bdbuf_unlock_cache ();
111c15: e8 0e ed ff ff call 110928 <rtems_bdbuf_unlock_cache>
111c1a: 66 90 xchg %ax,%ax
/*
* Create the worker threads.
*/
rtems_bdbuf_swapout_workers_open ();
while (bdbuf_cache.swapout_enabled)
111c1c: a0 44 b0 12 00 mov 0x12b044,%al
111c21: 84 c0 test %al,%al
111c23: 0f 84 a3 01 00 00 je 111dcc <rtems_bdbuf_swapout_task+0x2e0><== NEVER TAKEN
111c29: c6 45 b3 01 movb $0x1,-0x4d(%ebp)
rtems_bdbuf_swapout_transfer* transfer)
{
rtems_bdbuf_swapout_worker* worker;
bool transfered_buffers = false;
rtems_bdbuf_lock_cache ();
111c2d: e8 66 eb ff ff call 110798 <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)
111c32: a0 70 b0 12 00 mov 0x12b070,%al
111c37: 84 c0 test %al,%al
111c39: 0f 84 51 01 00 00 je 111d90 <rtems_bdbuf_swapout_task+0x2a4>
111c3f: 31 f6 xor %esi,%esi
111c41: 8d 5d c4 lea -0x3c(%ebp),%ebx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
111c44: 8d 7b 04 lea 0x4(%ebx),%edi
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
111c47: 89 3b mov %edi,(%ebx)
the_chain->permanent_null = NULL;
111c49: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
the_chain->last = _Chain_Head(the_chain);
111c50: 89 5b 08 mov %ebx,0x8(%ebx)
if (worker)
transfer = &worker->transfer;
}
rtems_chain_initialize_empty (&transfer->bds);
transfer->dev = BDBUF_INVALID_DEV;
111c53: c7 43 0c ff ff ff ff movl $0xffffffff,0xc(%ebx)
111c5a: c7 43 10 ff ff ff ff movl $0xffffffff,0x10(%ebx)
transfer->syncing = bdbuf_cache.sync_active;
111c61: a0 70 b0 12 00 mov 0x12b070,%al
111c66: 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)
111c69: a0 70 b0 12 00 mov 0x12b070,%al
111c6e: 84 c0 test %al,%al
111c70: 74 11 je 111c83 <rtems_bdbuf_swapout_task+0x197>
transfer->dev = bdbuf_cache.sync_device;
111c72: a1 78 b0 12 00 mov 0x12b078,%eax
111c77: 8b 15 7c b0 12 00 mov 0x12b07c,%edx
111c7d: 89 43 0c mov %eax,0xc(%ebx)
111c80: 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,
111c83: 8d 43 0c lea 0xc(%ebx),%eax
111c86: 89 45 b4 mov %eax,-0x4c(%ebp)
111c89: 52 push %edx
111c8a: ff 35 8c 37 12 00 pushl 0x12378c
111c90: 6a 00 push $0x0
111c92: 6a 01 push $0x1
111c94: 89 d9 mov %ebx,%ecx
111c96: ba 9c b0 12 00 mov $0x12b09c,%edx
111c9b: e8 3c eb ff ff call 1107dc <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,
111ca0: a0 70 b0 12 00 mov 0x12b070,%al
timer_delta);
/*
* Process the cache's modified list.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
111ca5: 83 c4 0c add $0xc,%esp
111ca8: ff 35 8c 37 12 00 pushl 0x12378c
111cae: 0f b6 55 b3 movzbl -0x4d(%ebp),%edx
111cb2: 52 push %edx
111cb3: 0f b6 c0 movzbl %al,%eax
111cb6: 50 push %eax
111cb7: 89 d9 mov %ebx,%ecx
111cb9: ba 90 b0 12 00 mov $0x12b090,%edx
111cbe: 8b 45 b4 mov -0x4c(%ebp),%eax
111cc1: e8 16 eb ff ff call 1107dc <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 ();
111cc6: e8 5d ec ff ff call 110928 <rtems_bdbuf_unlock_cache>
/*
* If there are buffers to transfer to the media transfer them.
*/
if (!rtems_chain_is_empty (&transfer->bds))
111ccb: 83 c4 10 add $0x10,%esp
111cce: 3b 3b cmp (%ebx),%edi
111cd0: 0f 84 da 00 00 00 je 111db0 <rtems_bdbuf_swapout_task+0x2c4>
{
if (worker)
111cd6: 85 f6 test %esi,%esi
111cd8: 0f 84 da 00 00 00 je 111db8 <rtems_bdbuf_swapout_task+0x2cc><== ALWAYS TAKEN
{
rtems_status_code sc = rtems_event_send (worker->id,
111cde: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
111ce1: 6a 04 push $0x4 <== NOT EXECUTED
111ce3: ff 76 08 pushl 0x8(%esi) <== NOT EXECUTED
111ce6: e8 9d ac ff ff call 10c988 <rtems_event_send> <== NOT EXECUTED
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
111ceb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111cee: 85 c0 test %eax,%eax <== NOT EXECUTED
111cf0: 0f 85 2f 01 00 00 jne 111e25 <rtems_bdbuf_swapout_task+0x339><== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
}
else
{
rtems_bdbuf_swapout_write (transfer);
111cf6: b2 01 mov $0x1,%dl
}
transfered_buffers = true;
}
if (bdbuf_cache.sync_active && !transfered_buffers)
111cf8: a0 70 b0 12 00 mov 0x12b070,%al
111cfd: 84 c0 test %al,%al
111cff: 74 73 je 111d74 <rtems_bdbuf_swapout_task+0x288>
111d01: c6 45 b3 00 movb $0x0,-0x4d(%ebp)
111d05: 84 d2 test %dl,%dl
111d07: 0f 85 20 ff ff ff jne 111c2d <rtems_bdbuf_swapout_task+0x141>
{
rtems_id sync_requester;
rtems_bdbuf_lock_cache ();
111d0d: e8 86 ea ff ff call 110798 <rtems_bdbuf_lock_cache>
sync_requester = bdbuf_cache.sync_requester;
111d12: 8b 1d 74 b0 12 00 mov 0x12b074,%ebx
bdbuf_cache.sync_active = false;
111d18: c6 05 70 b0 12 00 00 movb $0x0,0x12b070
bdbuf_cache.sync_requester = 0;
111d1f: c7 05 74 b0 12 00 00 movl $0x0,0x12b074
111d26: 00 00 00
rtems_bdbuf_unlock_cache ();
111d29: e8 fa eb ff ff call 110928 <rtems_bdbuf_unlock_cache>
if (sync_requester)
111d2e: 85 db test %ebx,%ebx
111d30: 74 0e je 111d40 <rtems_bdbuf_swapout_task+0x254><== NEVER TAKEN
rtems_event_send (sync_requester, RTEMS_BDBUF_TRANSFER_SYNC);
111d32: 83 ec 08 sub $0x8,%esp
111d35: 6a 02 push $0x2
111d37: 53 push %ebx
111d38: e8 4b ac ff ff call 10c988 <rtems_event_send>
111d3d: 83 c4 10 add $0x10,%esp
*/
update_timers = false;
}
while (transfered_buffers);
sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,
111d40: 8d 55 e4 lea -0x1c(%ebp),%edx
111d43: 52 push %edx
111d44: ff 75 ac pushl -0x54(%ebp)
111d47: 6a 00 push $0x0
111d49: 6a 04 push $0x4
111d4b: e8 b4 aa ff ff call 10c804 <rtems_event_receive>
RTEMS_EVENT_ALL | RTEMS_WAIT,
period_in_ticks,
&out);
if ((sc != RTEMS_SUCCESSFUL) && (sc != RTEMS_TIMEOUT))
111d50: 83 c4 10 add $0x10,%esp
111d53: 85 c0 test %eax,%eax
111d55: 0f 84 c1 fe ff ff je 111c1c <rtems_bdbuf_swapout_task+0x130>
111d5b: 83 f8 06 cmp $0x6,%eax
111d5e: 0f 84 b8 fe ff ff je 111c1c <rtems_bdbuf_swapout_task+0x130><== ALWAYS TAKEN
rtems_fatal_error_occurred (BLKDEV_FATAL_BDBUF_SWAPOUT_RE);
111d64: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111d67: 68 18 00 00 42 push $0x42000018 <== NOT EXECUTED
111d6c: e8 df b6 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
111d71: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
sync_requester = bdbuf_cache.sync_requester;
bdbuf_cache.sync_active = false;
bdbuf_cache.sync_requester = 0;
rtems_bdbuf_unlock_cache ();
if (sync_requester)
rtems_event_send (sync_requester, RTEMS_BDBUF_TRANSFER_SYNC);
111d74: c6 45 b3 00 movb $0x0,-0x4d(%ebp)
/*
* 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,
111d78: 84 d2 test %dl,%dl
111d7a: 74 c4 je 111d40 <rtems_bdbuf_swapout_task+0x254>
rtems_bdbuf_swapout_transfer* transfer)
{
rtems_bdbuf_swapout_worker* worker;
bool transfered_buffers = false;
rtems_bdbuf_lock_cache ();
111d7c: e8 17 ea ff ff call 110798 <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)
111d81: a0 70 b0 12 00 mov 0x12b070,%al
111d86: 84 c0 test %al,%al
111d88: 0f 85 b1 fe ff ff jne 111c3f <rtems_bdbuf_swapout_task+0x153><== NEVER TAKEN
111d8e: 66 90 xchg %ax,%ax
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
111d90: 83 ec 0c sub $0xc,%esp
111d93: 68 48 b0 12 00 push $0x12b048
111d98: e8 27 bb ff ff call 10d8c4 <_Chain_Get>
111d9d: 89 c6 mov %eax,%esi
worker = NULL;
else
{
worker = (rtems_bdbuf_swapout_worker*)
rtems_chain_get (&bdbuf_cache.swapout_workers);
if (worker)
111d9f: 83 c4 10 add $0x10,%esp
111da2: 85 c0 test %eax,%eax
111da4: 74 1e je 111dc4 <rtems_bdbuf_swapout_task+0x2d8><== ALWAYS TAKEN
transfer = &worker->transfer;
111da6: 8d 58 10 lea 0x10(%eax),%ebx <== NOT EXECUTED
111da9: e9 96 fe ff ff jmp 111c44 <rtems_bdbuf_swapout_task+0x158><== NOT EXECUTED
111dae: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_bdbuf_unlock_cache ();
/*
* If there are buffers to transfer to the media transfer them.
*/
if (!rtems_chain_is_empty (&transfer->bds))
111db0: 31 d2 xor %edx,%edx
111db2: e9 41 ff ff ff jmp 111cf8 <rtems_bdbuf_swapout_task+0x20c>
111db7: 90 nop
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
}
else
{
rtems_bdbuf_swapout_write (transfer);
111db8: 89 d8 mov %ebx,%eax
111dba: e8 c1 fb ff ff call 111980 <rtems_bdbuf_swapout_write>
111dbf: e9 32 ff ff ff jmp 111cf6 <rtems_bdbuf_swapout_task+0x20a>
worker = NULL;
else
{
worker = (rtems_bdbuf_swapout_worker*)
rtems_chain_get (&bdbuf_cache.swapout_workers);
if (worker)
111dc4: 8d 5d c4 lea -0x3c(%ebp),%ebx
111dc7: e9 78 fe ff ff jmp 111c44 <rtems_bdbuf_swapout_task+0x158>
static void
rtems_bdbuf_swapout_workers_close (void)
{
rtems_chain_node* node;
rtems_bdbuf_lock_cache ();
111dcc: e8 c7 e9 ff ff call 110798 <rtems_bdbuf_lock_cache><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
111dd1: 8b 1d 48 b0 12 00 mov 0x12b048,%ebx <== NOT EXECUTED
node = rtems_chain_first (&bdbuf_cache.swapout_workers);
while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))
111dd7: 81 fb 4c b0 12 00 cmp $0x12b04c,%ebx <== NOT EXECUTED
111ddd: 74 1f je 111dfe <rtems_bdbuf_swapout_task+0x312><== NOT EXECUTED
111ddf: 90 nop <== NOT EXECUTED
{
rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) node;
worker->enabled = false;
111de0: c6 43 0c 00 movb $0x0,0xc(%ebx) <== NOT EXECUTED
rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);
111de4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
111de7: 6a 04 push $0x4 <== NOT EXECUTED
111de9: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
111dec: e8 97 ab ff ff call 10c988 <rtems_event_send> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
111df1: 8b 1b mov (%ebx),%ebx <== NOT EXECUTED
rtems_chain_node* node;
rtems_bdbuf_lock_cache ();
node = rtems_chain_first (&bdbuf_cache.swapout_workers);
while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))
111df3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111df6: 81 fb 4c b0 12 00 cmp $0x12b04c,%ebx <== NOT EXECUTED
111dfc: 75 e2 jne 111de0 <rtems_bdbuf_swapout_task+0x2f4><== NOT EXECUTED
worker->enabled = false;
rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);
node = rtems_chain_next (node);
}
rtems_bdbuf_unlock_cache ();
111dfe: e8 25 eb ff ff call 110928 <rtems_bdbuf_unlock_cache><== NOT EXECUTED
rtems_fatal_error_occurred (BLKDEV_FATAL_BDBUF_SWAPOUT_RE);
}
rtems_bdbuf_swapout_workers_close ();
free (transfer.write_req);
111e03: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111e06: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
111e09: e8 7e 76 ff ff call 10948c <free> <== NOT EXECUTED
rtems_task_delete (RTEMS_SELF);
111e0e: c7 04 24 00 00 00 00 movl $0x0,(%esp) <== NOT EXECUTED
111e15: e8 66 b3 ff ff call 10d180 <rtems_task_delete> <== NOT EXECUTED
111e1a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
111e1d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
111e20: 5b pop %ebx <== NOT EXECUTED
111e21: 5e pop %esi <== NOT EXECUTED
111e22: 5f pop %edi <== NOT EXECUTED
111e23: c9 leave <== NOT EXECUTED
111e24: c3 ret <== NOT EXECUTED
if (worker)
{
rtems_status_code sc = rtems_event_send (worker->id,
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
111e25: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111e28: 68 14 00 00 42 push $0x42000014 <== NOT EXECUTED
111e2d: e8 1e b6 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
{
rtems_bdbuf_swapout_worker* worker;
worker = malloc (sizeof (rtems_bdbuf_swapout_worker));
if (!worker)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
111e32: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111e35: 68 15 00 00 42 push $0x42000015 <== NOT EXECUTED
111e3a: e8 11 b6 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
sc = rtems_task_start (worker->id,
rtems_bdbuf_swapout_worker_task,
(rtems_task_argument) worker);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_START);
111e3f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111e42: 68 17 00 00 42 push $0x42000017 <== NOT EXECUTED
111e47: e8 04 b6 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
SWAPOUT_TASK_STACK_SIZE,
RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,
&worker->id);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
111e4c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111e4f: 68 16 00 00 42 push $0x42000016 <== NOT EXECUTED
111e54: e8 f7 b5 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
00111e5c <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)
{
111e5c: 55 push %ebp <== NOT EXECUTED
111e5d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
111e5f: 57 push %edi <== NOT EXECUTED
111e60: 56 push %esi <== NOT EXECUTED
111e61: 53 push %ebx <== NOT EXECUTED
111e62: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111e65: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
while (worker->enabled)
111e68: 8a 43 0c mov 0xc(%ebx),%al <== NOT EXECUTED
111e6b: 84 c0 test %al,%al <== NOT EXECUTED
111e6d: 74 57 je 111ec6 <rtems_bdbuf_swapout_worker_task+0x6a><== NOT EXECUTED
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);
rtems_bdbuf_swapout_write (&worker->transfer);
111e6f: 8d 73 10 lea 0x10(%ebx),%esi <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
111e72: 8d 7b 14 lea 0x14(%ebx),%edi <== NOT EXECUTED
111e75: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
while (worker->enabled)
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);
111e78: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED
111e7d: e8 0a ed ff ff call 110b8c <rtems_bdbuf_wait_for_event><== NOT EXECUTED
rtems_bdbuf_swapout_write (&worker->transfer);
111e82: 89 f0 mov %esi,%eax <== NOT EXECUTED
111e84: e8 f7 fa ff ff call 111980 <rtems_bdbuf_swapout_write><== NOT EXECUTED
rtems_bdbuf_lock_cache ();
111e89: e8 0a e9 ff ff call 110798 <rtems_bdbuf_lock_cache><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
111e8e: 89 7b 10 mov %edi,0x10(%ebx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
111e91: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
111e98: 89 73 18 mov %esi,0x18(%ebx) <== NOT EXECUTED
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
111e9b: c7 43 1c ff ff ff ff movl $0xffffffff,0x1c(%ebx) <== NOT EXECUTED
111ea2: 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 );
111ea9: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
111eac: 53 push %ebx <== NOT EXECUTED
111ead: 68 48 b0 12 00 push $0x12b048 <== NOT EXECUTED
111eb2: e8 d1 b9 ff ff call 10d888 <_Chain_Append> <== NOT EXECUTED
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
rtems_bdbuf_unlock_cache ();
111eb7: e8 6c ea ff ff call 110928 <rtems_bdbuf_unlock_cache><== 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)
111ebc: 8a 43 0c mov 0xc(%ebx),%al <== NOT EXECUTED
111ebf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111ec2: 84 c0 test %al,%al <== NOT EXECUTED
111ec4: 75 b2 jne 111e78 <rtems_bdbuf_swapout_worker_task+0x1c><== NOT EXECUTED
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
rtems_bdbuf_unlock_cache ();
}
free (worker->transfer.write_req);
111ec6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111ec9: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
111ecc: e8 bb 75 ff ff call 10948c <free> <== NOT EXECUTED
free (worker);
111ed1: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
111ed4: e8 b3 75 ff ff call 10948c <free> <== NOT EXECUTED
rtems_task_delete (RTEMS_SELF);
111ed9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111edc: c7 45 08 00 00 00 00 movl $0x0,0x8(%ebp) <== NOT EXECUTED
}
111ee3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
111ee6: 5b pop %ebx <== NOT EXECUTED
111ee7: 5e pop %esi <== NOT EXECUTED
111ee8: 5f pop %edi <== NOT EXECUTED
111ee9: c9 leave <== NOT EXECUTED
}
free (worker->transfer.write_req);
free (worker);
rtems_task_delete (RTEMS_SELF);
111eea: e9 91 b2 ff ff jmp 10d180 <rtems_task_delete> <== NOT EXECUTED
00111980 <rtems_bdbuf_swapout_write>:
*
* @param transfer The transfer transaction.
*/
static void
rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer)
{
111980: 55 push %ebp
111981: 89 e5 mov %esp,%ebp
111983: 57 push %edi
111984: 56 push %esi
111985: 53 push %ebx
111986: 83 ec 2c sub $0x2c,%esp
111989: 89 c3 mov %eax,%ebx
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
11198b: 8d 40 04 lea 0x4(%eax),%eax
11198e: 89 45 e4 mov %eax,-0x1c(%ebp)
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))
111991: 39 03 cmp %eax,(%ebx)
111993: 0f 84 e1 00 00 00 je 111a7a <rtems_bdbuf_swapout_write+0xfa><== 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);
111999: 83 ec 08 sub $0x8,%esp
11199c: ff 73 10 pushl 0x10(%ebx)
11199f: ff 73 0c pushl 0xc(%ebx)
1119a2: e8 71 6b ff ff call 108518 <rtems_disk_obtain>
1119a7: 89 c6 mov %eax,%esi
if (dd == NULL)
1119a9: 83 c4 10 add $0x10,%esp
1119ac: 85 c0 test %eax,%eax
1119ae: 0f 84 2c 01 00 00 je 111ae0 <rtems_bdbuf_swapout_write+0x160>
dd = &null_disk;
bufs_per_bd = dd->block_size / bdbuf_config.buffer_min;
1119b4: 8b 46 20 mov 0x20(%esi),%eax
1119b7: 31 d2 xor %edx,%edx
1119b9: f7 35 a0 37 12 00 divl 0x1237a0
1119bf: 89 45 dc mov %eax,-0x24(%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;
1119c2: 8b 43 18 mov 0x18(%ebx),%eax
1119c5: c7 40 0c 0c 00 00 00 movl $0xc,0xc(%eax)
transfer->write_req->bufnum = 0;
1119cc: 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))
1119d3: 31 ff xor %edi,%edi
1119d5: 89 7d d4 mov %edi,-0x2c(%ebp)
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
1119d8: 83 ec 0c sub $0xc,%esp
1119db: 53 push %ebx
1119dc: e8 e3 be ff ff call 10d8c4 <_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)
1119e1: 83 c4 10 add $0x10,%esp
1119e4: 85 c0 test %eax,%eax
1119e6: 74 78 je 111a60 <rtems_bdbuf_swapout_write+0xe0><== NEVER TAKEN
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) &&
1119e8: 8b 56 08 mov 0x8(%esi),%edx
1119eb: f6 42 0c 01 testb $0x1,0xc(%edx)
1119ef: 0f 84 8f 00 00 00 je 111a84 <rtems_bdbuf_swapout_write+0x104><== ALWAYS TAKEN
transfer->write_req->bufnum &&
1119f5: 8b 53 18 mov 0x18(%ebx),%edx <== NOT EXECUTED
1119f8: 8b 4a 10 mov 0x10(%edx),%ecx <== 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) &&
1119fb: 85 c9 test %ecx,%ecx <== NOT EXECUTED
1119fd: 0f 84 87 00 00 00 je 111a8a <rtems_bdbuf_swapout_write+0x10a><== NOT EXECUTED
transfer->write_req->bufnum &&
(bd->block != (last_block + bufs_per_bd)))
111a03: 8b 7d dc mov -0x24(%ebp),%edi <== NOT EXECUTED
111a06: 03 7d d4 add -0x2c(%ebp),%edi <== NOT EXECUTED
111a09: 39 78 1c cmp %edi,0x1c(%eax) <== NOT EXECUTED
111a0c: 74 7c je 111a8a <rtems_bdbuf_swapout_write+0x10a><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
111a0e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
111a11: 50 push %eax <== NOT EXECUTED
111a12: 53 push %ebx <== NOT EXECUTED
111a13: e8 1c 3a 00 00 call 115434 <_Chain_Insert> <== NOT EXECUTED
111a18: 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) &&
111a1a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111a1d: 8b 53 18 mov 0x18(%ebx),%edx <== NOT EXECUTED
/*
* 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) ||
111a20: 8b 4d e4 mov -0x1c(%ebp),%ecx
111a23: 3b 0b cmp (%ebx),%ecx
111a25: 74 0f je 111a36 <rtems_bdbuf_swapout_write+0xb6>
111a27: 8b 3d 84 37 12 00 mov 0x123784,%edi
111a2d: 39 7a 10 cmp %edi,0x10(%edx)
111a30: 0f 82 82 00 00 00 jb 111ab8 <rtems_bdbuf_swapout_write+0x138>
(transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
write = true;
if (write)
{
rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
111a36: 31 c9 xor %ecx,%ecx
111a38: 89 f0 mov %esi,%eax
111a3a: e8 1d fe ff ff call 11185c <rtems_bdbuf_execute_transfer_request>
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
111a3f: 8b 43 18 mov 0x18(%ebx),%eax
111a42: c7 40 0c 0c 00 00 00 movl $0xc,0xc(%eax)
transfer->write_req->bufnum = 0;
111a49: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax)
111a50: 83 ec 0c sub $0xc,%esp
111a53: 53 push %ebx
111a54: e8 6b be ff ff call 10d8c4 <_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)
111a59: 83 c4 10 add $0x10,%esp
111a5c: 85 c0 test %eax,%eax
111a5e: 75 88 jne 1119e8 <rtems_bdbuf_swapout_write+0x68>
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
transfer->write_req->bufnum = 0;
}
}
if (dd != &null_disk)
111a60: 81 fe 60 90 12 00 cmp $0x129060,%esi
111a66: 74 12 je 111a7a <rtems_bdbuf_swapout_write+0xfa><== NEVER TAKEN
{
/*
* If sync'ing and the deivce is capability of handling a sync IO control
* call perform the call.
*/
if (transfer->syncing &&
111a68: 80 7b 14 00 cmpb $0x0,0x14(%ebx)
111a6c: 75 5a jne 111ac8 <rtems_bdbuf_swapout_write+0x148>
{
/* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
/* How should the error be handled ? */
}
rtems_disk_release (dd);
111a6e: 83 ec 0c sub $0xc,%esp
111a71: 56 push %esi
111a72: e8 7d 6c ff ff call 1086f4 <rtems_disk_release>
111a77: 83 c4 10 add $0x10,%esp
}
}
}
111a7a: 8d 65 f4 lea -0xc(%ebp),%esp
111a7d: 5b pop %ebx
111a7e: 5e pop %esi
111a7f: 5f pop %edi
111a80: c9 leave
111a81: c3 ret
111a82: 66 90 xchg %ax,%ax
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) &&
111a84: 8b 53 18 mov 0x18(%ebx),%edx
111a87: 8b 4a 10 mov 0x10(%edx),%ecx
}
else
{
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
transfer->write_req->bufnum++;
111a8a: 41 inc %ecx
111a8b: 89 4a 10 mov %ecx,0x10(%edx)
buf->user = bd;
111a8e: c1 e1 04 shl $0x4,%ecx
111a91: 8d 0c 0a lea (%edx,%ecx,1),%ecx
111a94: 89 41 14 mov %eax,0x14(%ecx)
buf->block = bd->block;
111a97: 8b 78 1c mov 0x1c(%eax),%edi
111a9a: 89 79 08 mov %edi,0x8(%ecx)
buf->length = dd->block_size;
111a9d: 8b 7e 20 mov 0x20(%esi),%edi
111aa0: 89 79 0c mov %edi,0xc(%ecx)
buf->buffer = bd->buffer;
111aa3: 8b 78 20 mov 0x20(%eax),%edi
111aa6: 89 79 10 mov %edi,0x10(%ecx)
last_block = bd->block;
111aa9: 8b 40 1c mov 0x1c(%eax),%eax
111aac: 89 45 d4 mov %eax,-0x2c(%ebp)
111aaf: 31 c0 xor %eax,%eax
111ab1: e9 6a ff ff ff jmp 111a20 <rtems_bdbuf_swapout_write+0xa0>
111ab6: 66 90 xchg %ax,%ax
if (rtems_chain_is_empty (&transfer->bds) ||
(transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
write = true;
if (write)
111ab8: 84 c0 test %al,%al
111aba: 0f 84 18 ff ff ff je 1119d8 <rtems_bdbuf_swapout_write+0x58><== ALWAYS TAKEN
111ac0: e9 71 ff ff ff jmp 111a36 <rtems_bdbuf_swapout_write+0xb6><== NOT EXECUTED
111ac5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/*
* If sync'ing and the deivce is capability of handling a sync IO control
* call perform the call.
*/
if (transfer->syncing &&
(dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))
111ac8: 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 &&
111acb: f6 40 0c 02 testb $0x2,0xc(%eax)
111acf: 74 9d je 111a6e <rtems_bdbuf_swapout_write+0xee><== ALWAYS TAKEN
(dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))
{
/* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
111ad1: 57 push %edi <== NOT EXECUTED
111ad2: 6a 00 push $0x0 <== NOT EXECUTED
111ad4: 6a 02 push $0x2 <== NOT EXECUTED
111ad6: 50 push %eax <== NOT EXECUTED
111ad7: ff 56 28 call *0x28(%esi) <== NOT EXECUTED
111ada: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
111add: eb 8f jmp 111a6e <rtems_bdbuf_swapout_write+0xee><== NOT EXECUTED
111adf: 90 nop <== NOT EXECUTED
* 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);
if (dd == NULL)
111ae0: be 60 90 12 00 mov $0x129060,%esi
111ae5: e9 ca fe ff ff jmp 1119b4 <rtems_bdbuf_swapout_write+0x34>
00111154 <rtems_bdbuf_swapout_writereq_alloc>:
*
* @return rtems_blkdev_request* The write reference memory.
*/
static rtems_blkdev_request*
rtems_bdbuf_swapout_writereq_alloc (void)
{
111154: 55 push %ebp
111155: 89 e5 mov %esp,%ebp
111157: 53 push %ebx
111158: 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) +
11115b: a1 84 37 12 00 mov 0x123784,%eax
111160: c1 e0 04 shl $0x4,%eax
111163: 83 c0 18 add $0x18,%eax
111166: 50 push %eax
111167: e8 f8 85 ff ff call 109764 <malloc>
11116c: 89 c3 mov %eax,%ebx
(bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
if (!write_req)
11116e: 83 c4 10 add $0x10,%esp
111171: 85 c0 test %eax,%eax
111173: 74 1f je 111194 <rtems_bdbuf_swapout_writereq_alloc+0x40><== NEVER TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
write_req->req = RTEMS_BLKDEV_REQ_WRITE;
111175: c7 00 01 00 00 00 movl $0x1,(%eax)
write_req->req_done = rtems_bdbuf_transfer_done;
11117b: c7 40 04 68 0b 11 00 movl $0x110b68,0x4(%eax)
write_req->done_arg = write_req;
111182: 89 43 08 mov %eax,0x8(%ebx)
write_req->io_task = rtems_task_self ();
111185: e8 7e 3f 00 00 call 115108 <rtems_task_self>
11118a: 89 43 14 mov %eax,0x14(%ebx)
return write_req;
}
11118d: 89 d8 mov %ebx,%eax
11118f: 8b 5d fc mov -0x4(%ebp),%ebx
111192: c9 leave
111193: c3 ret
rtems_blkdev_request* write_req =
malloc (sizeof (rtems_blkdev_request) +
(bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
if (!write_req)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
111194: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111197: 68 15 00 00 42 push $0x42000015 <== NOT EXECUTED
11119c: e8 af c2 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
00111ef0 <rtems_bdbuf_sync>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_sync (rtems_bdbuf_buffer *bd)
{
111ef0: 55 push %ebp
111ef1: 89 e5 mov %esp,%ebp
111ef3: 53 push %ebx
111ef4: 83 ec 04 sub $0x4,%esp
111ef7: 8b 5d 08 mov 0x8(%ebp),%ebx
}
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
111efa: 80 3d c8 b0 12 00 00 cmpb $0x0,0x12b0c8
111f01: 74 31 je 111f34 <rtems_bdbuf_sync+0x44> <== NEVER TAKEN
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
111f03: 85 db test %ebx,%ebx
111f05: 74 39 je 111f40 <rtems_bdbuf_sync+0x50> <== NEVER TAKEN
if (rtems_bdbuf_tracer)
{
printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);
rtems_bdbuf_show_users (kind, bd);
}
rtems_bdbuf_lock_cache();
111f07: e8 8c e8 ff ff call 110798 <rtems_bdbuf_lock_cache>
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
111f0c: 8b 43 24 mov 0x24(%ebx),%eax
111f0f: 83 f8 03 cmp $0x3,%eax
111f12: 72 0a jb 111f1e <rtems_bdbuf_sync+0x2e> <== NEVER TAKEN
111f14: 83 f8 05 cmp $0x5,%eax
111f17: 76 47 jbe 111f60 <rtems_bdbuf_sync+0x70>
111f19: 83 f8 06 cmp $0x6,%eax
111f1c: 74 2e je 111f4c <rtems_bdbuf_sync+0x5c> <== ALWAYS TAKEN
break;
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_5);
111f1e: 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);
111f21: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111f24: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
111f27: 0d 03 00 00 42 or $0x42000003,%eax <== NOT EXECUTED
111f2c: 50 push %eax <== NOT EXECUTED
111f2d: e8 1e b5 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
111f32: 66 90 xchg %ax,%ax <== NOT EXECUTED
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
111f34: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
return RTEMS_SUCCESSFUL;
}
111f39: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
111f3c: c9 leave <== NOT EXECUTED
111f3d: c3 ret <== NOT EXECUTED
111f3e: 66 90 xchg %ax,%ax <== NOT EXECUTED
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
111f40: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
return RTEMS_SUCCESSFUL;
}
111f45: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
111f48: c9 leave <== NOT EXECUTED
111f49: c3 ret <== NOT EXECUTED
111f4a: 66 90 xchg %ax,%ax <== NOT EXECUTED
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);
111f4c: 89 d8 mov %ebx,%eax
111f4e: e8 dd f5 ff ff call 111530 <rtems_bdbuf_discard_buffer_after_access>
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
111f53: e8 d0 e9 ff ff call 110928 <rtems_bdbuf_unlock_cache>
111f58: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
111f5a: 8b 5d fc mov -0x4(%ebp),%ebx
111f5d: c9 leave
111f5e: c3 ret
111f5f: 90 nop
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
111f60: c7 43 24 08 00 00 00 movl $0x8,0x24(%ebx)
111f67: 83 ec 08 sub $0x8,%esp
111f6a: 53 push %ebx
111f6b: 68 9c b0 12 00 push $0x12b09c
111f70: e8 13 b9 ff ff call 10d888 <_Chain_Append>
{
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);
rtems_chain_append (&bdbuf_cache.sync, &bd->link);
if (bd->waiters)
111f75: 8b 43 28 mov 0x28(%ebx),%eax
111f78: 83 c4 10 add $0x10,%esp
111f7b: 85 c0 test %eax,%eax
111f7d: 75 65 jne 111fe4 <rtems_bdbuf_sync+0xf4>
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
rtems_bdbuf_wake_swapper ();
111f7f: e8 04 eb ff ff call 110a88 <rtems_bdbuf_wake_swapper>
static void
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
111f84: 8b 43 24 mov 0x24(%ebx),%eax
111f87: 83 f8 01 cmp $0x1,%eax
111f8a: 73 14 jae 111fa0 <rtems_bdbuf_sync+0xb0> <== ALWAYS TAKEN
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_9);
111f8c: 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);
111f8f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
111f92: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
111f95: 0d 07 00 00 42 or $0x42000007,%eax <== NOT EXECUTED
111f9a: 50 push %eax <== NOT EXECUTED
111f9b: e8 b0 b4 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
static void
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
111fa0: 83 f8 07 cmp $0x7,%eax
111fa3: 76 13 jbe 111fb8 <rtems_bdbuf_sync+0xc8>
111fa5: 83 f8 0a cmp $0xa,%eax
111fa8: 77 e2 ja 111f8c <rtems_bdbuf_sync+0x9c> <== 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);
111faa: ba b0 b0 12 00 mov $0x12b0b0,%edx
111faf: 89 d8 mov %ebx,%eax
111fb1: e8 72 ed ff ff call 110d28 <rtems_bdbuf_wait>
111fb6: eb cc jmp 111f84 <rtems_bdbuf_sync+0x94>
/*
* We may have created a cached or empty buffer which may be recycled.
*/
if (bd->waiters == 0
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
111fb8: 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
111fbb: 85 c0 test %eax,%eax
111fbd: 75 94 jne 111f53 <rtems_bdbuf_sync+0x63>
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
111fbf: 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
111fc2: 83 f8 02 cmp $0x2,%eax
111fc5: 74 06 je 111fcd <rtems_bdbuf_sync+0xdd>
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
111fc7: 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
111fca: 48 dec %eax
111fcb: 75 86 jne 111f53 <rtems_bdbuf_sync+0x63> <== NEVER TAKEN
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
{
if (bd->state == RTEMS_BDBUF_STATE_EMPTY)
111fcd: 8b 43 24 mov 0x24(%ebx),%eax
111fd0: 48 dec %eax
111fd1: 74 1d je 111ff0 <rtems_bdbuf_sync+0x100>
{
rtems_bdbuf_remove_from_tree (bd);
rtems_bdbuf_make_free_and_add_to_lru_list (bd);
}
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
111fd3: b8 b8 b0 12 00 mov $0x12b0b8,%eax
111fd8: e8 cf e7 ff ff call 1107ac <rtems_bdbuf_wake>
111fdd: e9 71 ff ff ff jmp 111f53 <rtems_bdbuf_sync+0x63>
111fe2: 66 90 xchg %ax,%ax
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);
rtems_chain_append (&bdbuf_cache.sync, &bd->link);
if (bd->waiters)
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
111fe4: b8 a8 b0 12 00 mov $0x12b0a8,%eax
111fe9: e8 be e7 ff ff call 1107ac <rtems_bdbuf_wake>
111fee: eb 8f jmp 111f7f <rtems_bdbuf_sync+0x8f>
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
{
if (bd->state == RTEMS_BDBUF_STATE_EMPTY)
{
rtems_bdbuf_remove_from_tree (bd);
111ff0: 89 d8 mov %ebx,%eax
111ff2: e8 ad f1 ff ff call 1111a4 <rtems_bdbuf_remove_from_tree>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
111ff7: 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);
111ffe: 83 ec 08 sub $0x8,%esp
112001: 53 push %ebx
112002: 68 84 b0 12 00 push $0x12b084
112007: e8 28 34 00 00 call 115434 <_Chain_Insert>
11200c: 83 c4 10 add $0x10,%esp
11200f: eb c2 jmp 111fd3 <rtems_bdbuf_sync+0xe3>
00110bc8 <rtems_bdbuf_syncdev>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_syncdev (dev_t dev)
{
110bc8: 55 push %ebp
110bc9: 89 e5 mov %esp,%ebp
110bcb: 57 push %edi
110bcc: 56 push %esi
110bcd: 53 push %ebx
110bce: 83 ec 20 sub $0x20,%esp
110bd1: 8b 5d 08 mov 0x8(%ebp),%ebx
110bd4: 8b 75 0c mov 0xc(%ebp),%esi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
110bd7: 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);
110bde: 6a 00 push $0x0
110be0: 6a 00 push $0x0
110be2: 8d 45 e4 lea -0x1c(%ebp),%eax
110be5: 50 push %eax
110be6: 31 c9 xor %ecx,%ecx
110be8: 89 d8 mov %ebx,%eax
110bea: 89 f2 mov %esi,%edx
110bec: e8 87 fd ff ff call 110978 <rtems_bdbuf_obtain_disk>
110bf1: 89 c7 mov %eax,%edi
if (sc != RTEMS_SUCCESSFUL)
110bf3: 83 c4 10 add $0x10,%esp
110bf6: 85 c0 test %eax,%eax
110bf8: 75 52 jne 110c4c <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);
110bfa: ba 0b 00 00 42 mov $0x4200000b,%edx
110bff: a1 6c b0 12 00 mov 0x12b06c,%eax
110c04: e8 67 fb ff ff call 110770 <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 ();
110c09: e8 8a fb ff ff call 110798 <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;
110c0e: c6 05 70 b0 12 00 01 movb $0x1,0x12b070
bdbuf_cache.sync_requester = rtems_task_self ();
110c15: e8 ee 44 00 00 call 115108 <rtems_task_self>
110c1a: a3 74 b0 12 00 mov %eax,0x12b074
bdbuf_cache.sync_device = dev;
110c1f: 89 1d 78 b0 12 00 mov %ebx,0x12b078
110c25: 89 35 7c b0 12 00 mov %esi,0x12b07c
rtems_bdbuf_wake_swapper ();
110c2b: e8 58 fe ff ff call 110a88 <rtems_bdbuf_wake_swapper>
rtems_bdbuf_unlock_cache ();
110c30: e8 f3 fc ff ff call 110928 <rtems_bdbuf_unlock_cache>
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_TRANSFER_SYNC);
110c35: b8 02 00 00 00 mov $0x2,%eax
110c3a: e8 4d ff ff ff call 110b8c <rtems_bdbuf_wait_for_event>
rtems_bdbuf_unlock_sync ();
110c3f: e8 0c fd ff ff call 110950 <rtems_bdbuf_unlock_sync>
rtems_bdbuf_release_disk (dd);
110c44: 8b 45 e4 mov -0x1c(%ebp),%eax
110c47: e8 18 fe ff ff call 110a64 <rtems_bdbuf_release_disk>
return RTEMS_SUCCESSFUL;
}
110c4c: 89 f8 mov %edi,%eax
110c4e: 8d 65 f4 lea -0xc(%ebp),%esp
110c51: 5b pop %ebx
110c52: 5e pop %esi
110c53: 5f pop %edi
110c54: c9 leave
110c55: c3 ret
00110928 <rtems_bdbuf_unlock_cache>:
/**
* Unlock the cache.
*/
static void
rtems_bdbuf_unlock_cache (void)
{
110928: 55 push %ebp
110929: 89 e5 mov %esp,%ebp
11092b: 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);
11092e: ff 35 68 b0 12 00 pushl 0x12b068
110934: e8 47 c6 ff ff call 10cf80 <rtems_semaphore_release>
if (sc != RTEMS_SUCCESSFUL)
110939: 83 c4 10 add $0x10,%esp
11093c: 85 c0 test %eax,%eax
11093e: 75 02 jne 110942 <rtems_bdbuf_unlock_cache+0x1a><== NEVER TAKEN
*/
static void
rtems_bdbuf_unlock_cache (void)
{
rtems_bdbuf_unlock (bdbuf_cache.lock, RTEMS_BLKDEV_FATAL_BDBUF_CACHE_UNLOCK);
}
110940: c9 leave
110941: c3 ret
static void
rtems_bdbuf_unlock (rtems_id lock, uint32_t fatal_error_code)
{
rtems_status_code sc = rtems_semaphore_release (lock);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (fatal_error_code);
110942: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110945: 68 0e 00 00 42 push $0x4200000e <== NOT EXECUTED
11094a: e8 01 cb ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
00110950 <rtems_bdbuf_unlock_sync>:
/**
* Unlock the cache's sync lock. Any blocked writers are woken.
*/
static void
rtems_bdbuf_unlock_sync (void)
{
110950: 55 push %ebp
110951: 89 e5 mov %esp,%ebp
110953: 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);
110956: ff 35 6c b0 12 00 pushl 0x12b06c
11095c: e8 1f c6 ff ff call 10cf80 <rtems_semaphore_release>
if (sc != RTEMS_SUCCESSFUL)
110961: 83 c4 10 add $0x10,%esp
110964: 85 c0 test %eax,%eax
110966: 75 02 jne 11096a <rtems_bdbuf_unlock_sync+0x1a><== NEVER TAKEN
static void
rtems_bdbuf_unlock_sync (void)
{
rtems_bdbuf_unlock (bdbuf_cache.sync_lock,
RTEMS_BLKDEV_FATAL_BDBUF_SYNC_UNLOCK);
}
110968: c9 leave
110969: c3 ret
static void
rtems_bdbuf_unlock (rtems_id lock, uint32_t fatal_error_code)
{
rtems_status_code sc = rtems_semaphore_release (lock);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (fatal_error_code);
11096a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11096d: 68 0c 00 00 42 push $0x4200000c <== NOT EXECUTED
110972: e8 d9 ca ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
00110b8c <rtems_bdbuf_wait_for_event>:
return RTEMS_UNSATISFIED;
}
static void
rtems_bdbuf_wait_for_event (rtems_event_set event)
{
110b8c: 55 push %ebp
110b8d: 89 e5 mov %esp,%ebp
110b8f: 53 push %ebx
110b90: 83 ec 14 sub $0x14,%esp
110b93: 89 c3 mov %eax,%ebx
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_event_set out = 0;
110b95: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
sc = rtems_event_receive (event,
110b9c: 8d 45 f4 lea -0xc(%ebp),%eax
110b9f: 50 push %eax
110ba0: 6a 00 push $0x0
110ba2: 6a 00 push $0x0
110ba4: 53 push %ebx
110ba5: e8 5a bc ff ff call 10c804 <rtems_event_receive>
RTEMS_EVENT_ALL | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&out);
if (sc != RTEMS_SUCCESSFUL || out != event)
110baa: 83 c4 10 add $0x10,%esp
110bad: 85 c0 test %eax,%eax
110baf: 75 0a jne 110bbb <rtems_bdbuf_wait_for_event+0x2f><== NEVER TAKEN
110bb1: 39 5d f4 cmp %ebx,-0xc(%ebp)
110bb4: 75 05 jne 110bbb <rtems_bdbuf_wait_for_event+0x2f><== NEVER TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_WAIT_EVNT);
}
110bb6: 8b 5d fc mov -0x4(%ebp),%ebx
110bb9: c9 leave
110bba: c3 ret
RTEMS_EVENT_ALL | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&out);
if (sc != RTEMS_SUCCESSFUL || out != event)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_WAIT_EVNT);
110bbb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110bbe: 68 1a 00 00 42 push $0x4200001a <== NOT EXECUTED
110bc3: e8 88 c8 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
001107ac <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)
{
1107ac: 55 push %ebp
1107ad: 89 e5 mov %esp,%ebp
1107af: 83 ec 08 sub $0x8,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (waiters->count > 0)
1107b2: 8b 10 mov (%eax),%edx
1107b4: 85 d2 test %edx,%edx
1107b6: 75 04 jne 1107bc <rtems_bdbuf_wake+0x10>
{
sc = rtems_semaphore_flush (waiters->sema);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAKE);
}
}
1107b8: c9 leave
1107b9: c3 ret
1107ba: 66 90 xchg %ax,%ax
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (waiters->count > 0)
{
sc = rtems_semaphore_flush (waiters->sema);
1107bc: 83 ec 0c sub $0xc,%esp
1107bf: ff 70 04 pushl 0x4(%eax)
1107c2: e8 7d 47 00 00 call 114f44 <rtems_semaphore_flush>
if (sc != RTEMS_SUCCESSFUL)
1107c7: 83 c4 10 add $0x10,%esp
1107ca: 85 c0 test %eax,%eax
1107cc: 74 ea je 1107b8 <rtems_bdbuf_wake+0xc> <== ALWAYS TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAKE);
1107ce: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1107d1: 68 13 00 00 42 push $0x42000013 <== NOT EXECUTED
1107d6: e8 75 cc ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
00110a88 <rtems_bdbuf_wake_swapper>:
}
}
static void
rtems_bdbuf_wake_swapper (void)
{
110a88: 55 push %ebp
110a89: 89 e5 mov %esp,%ebp
110a8b: 83 ec 10 sub $0x10,%esp
rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,
110a8e: 6a 04 push $0x4
110a90: ff 35 40 b0 12 00 pushl 0x12b040
110a96: e8 ed be ff ff call 10c988 <rtems_event_send>
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
110a9b: 83 c4 10 add $0x10,%esp
110a9e: 85 c0 test %eax,%eax
110aa0: 75 02 jne 110aa4 <rtems_bdbuf_wake_swapper+0x1c><== NEVER TAKEN
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
}
110aa2: c9 leave
110aa3: c3 ret
rtems_bdbuf_wake_swapper (void)
{
rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
110aa4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110aa7: 68 14 00 00 42 push $0x42000014 <== NOT EXECUTED
110aac: e8 9f c9 ff ff call 10d450 <rtems_fatal_error_occurred><== NOT EXECUTED
00129488 <rtems_bdpart_create>:
const rtems_bdpart_format *format,
rtems_bdpart_partition *pt,
const unsigned *dist,
size_t count
)
{
129488: 55 push %ebp <== NOT EXECUTED
129489: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12948b: 57 push %edi <== NOT EXECUTED
12948c: 56 push %esi <== NOT EXECUTED
12948d: 53 push %ebx <== NOT EXECUTED
12948e: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
129491: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
129494: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
129497: 85 ff test %edi,%edi <== NOT EXECUTED
129499: 74 0a je 1294a5 <rtems_bdpart_create+0x1d><== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
12949b: 8b 07 mov (%edi),%eax <== NOT EXECUTED
12949d: 85 c0 test %eax,%eax <== NOT EXECUTED
12949f: 0f 84 8f 01 00 00 je 129634 <rtems_bdpart_create+0x1ac><== NOT EXECUTED
&& format->mbr.dos_compatibility;
rtems_blkdev_bnum disk_end = 0;
1294a5: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
1294ac: c6 45 d0 00 movb $0x0,-0x30(%ebp) <== NOT EXECUTED
1294b0: c7 45 d4 01 00 00 00 movl $0x1,-0x2c(%ebp) <== 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) {
1294b7: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
1294ba: 85 db test %ebx,%ebx <== NOT EXECUTED
1294bc: 0f 84 99 01 00 00 je 12965b <rtems_bdpart_create+0x1d3><== NOT EXECUTED
/* Nothing to do */
return RTEMS_SUCCESSFUL;
}
/* Check parameter */
if (format == NULL || pt == NULL || dist == NULL) {
1294c2: 85 ff test %edi,%edi <== NOT EXECUTED
1294c4: 0f 84 9e 01 00 00 je 129668 <rtems_bdpart_create+0x1e0><== NOT EXECUTED
1294ca: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
1294cd: 85 c9 test %ecx,%ecx <== NOT EXECUTED
1294cf: 0f 84 93 01 00 00 je 129668 <rtems_bdpart_create+0x1e0><== NOT EXECUTED
1294d5: 85 f6 test %esi,%esi <== NOT EXECUTED
1294d7: 0f 84 8b 01 00 00 je 129668 <rtems_bdpart_create+0x1e0><== 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;
1294dd: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
1294e4: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%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);
1294eb: 52 push %edx <== NOT EXECUTED
1294ec: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1294ef: 50 push %eax <== NOT EXECUTED
1294f0: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
1294f3: 50 push %eax <== NOT EXECUTED
1294f4: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1294f7: e8 24 06 00 00 call 129b20 <rtems_bdpart_get_disk_data><== NOT EXECUTED
1294fc: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
1294fe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129501: 85 c0 test %eax,%eax <== NOT EXECUTED
129503: 0f 85 64 01 00 00 jne 12966d <rtems_bdpart_create+0x1e5><== NOT EXECUTED
/* Get distribution sum and check for overflow */
for (i = 0; i < count; ++i) {
unsigned prev_sum = dist_sum;
dist_sum += dist [i];
129509: 8b 06 mov (%esi),%eax <== NOT EXECUTED
12950b: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
if (dist_sum < prev_sum) {
return RTEMS_INVALID_NUMBER;
}
if (dist [i] == 0) {
12950e: 85 c0 test %eax,%eax <== NOT EXECUTED
129510: 0f 84 62 01 00 00 je 129678 <rtems_bdpart_create+0x1f0><== NOT EXECUTED
129516: 89 c1 mov %eax,%ecx <== NOT EXECUTED
129518: 31 c0 xor %eax,%eax <== NOT EXECUTED
12951a: 89 5d c8 mov %ebx,-0x38(%ebp) <== NOT EXECUTED
12951d: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
129520: eb 15 jmp 129537 <rtems_bdpart_create+0xaf><== NOT EXECUTED
129522: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* Get distribution sum and check for overflow */
for (i = 0; i < count; ++i) {
unsigned prev_sum = dist_sum;
dist_sum += dist [i];
129524: 8b 14 86 mov (%esi,%eax,4),%edx <== NOT EXECUTED
if (dist_sum < prev_sum) {
129527: 01 d1 add %edx,%ecx <== NOT EXECUTED
129529: 0f 82 49 01 00 00 jb 129678 <rtems_bdpart_create+0x1f0><== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
if (dist [i] == 0) {
12952f: 85 d2 test %edx,%edx <== NOT EXECUTED
129531: 0f 84 41 01 00 00 je 129678 <rtems_bdpart_create+0x1f0><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
/* Get distribution sum and check for overflow */
for (i = 0; i < count; ++i) {
129537: 40 inc %eax <== NOT EXECUTED
129538: 39 c3 cmp %eax,%ebx <== NOT EXECUTED
12953a: 77 e8 ja 129524 <rtems_bdpart_create+0x9c><== NOT EXECUTED
12953c: 8b 5d c8 mov -0x38(%ebp),%ebx <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
12953f: 8b 07 mov (%edi),%eax <== NOT EXECUTED
129541: 85 c0 test %eax,%eax <== NOT EXECUTED
129543: 0f 85 6b 01 00 00 jne 1296b4 <rtems_bdpart_create+0x22c><== NOT EXECUTED
return RTEMS_NOT_IMPLEMENTED;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
129549: 80 7d d0 00 cmpb $0x0,-0x30(%ebp) <== NOT EXECUTED
12954d: 0f 85 35 01 00 00 jne 129688 <rtems_bdpart_create+0x200><== NOT EXECUTED
129553: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
129556: 89 55 c0 mov %edx,-0x40(%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) {
129559: 83 7d 18 04 cmpl $0x4,0x18(%ebp) <== NOT EXECUTED
12955d: 0f 87 39 01 00 00 ja 12969c <rtems_bdpart_create+0x214><== NOT EXECUTED
129563: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
/*
* Account space to align every partition on cylinder boundaries if
* necessary.
*/
if (dos_compatibility) {
129566: 80 7d d0 00 cmpb $0x0,-0x30(%ebp) <== NOT EXECUTED
12956a: 74 0a je 129576 <rtems_bdpart_create+0xee><== NOT EXECUTED
overhead += (count - 1) * record_space;
12956c: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
12956f: 48 dec %eax <== NOT EXECUTED
129570: 0f af 45 d4 imul -0x2c(%ebp),%eax <== NOT EXECUTED
129574: 01 c2 add %eax,%edx <== NOT EXECUTED
}
/* Check disk space */
if ((overhead + count) > disk_end) {
129576: 8b 7d 18 mov 0x18(%ebp),%edi <== NOT EXECUTED
129579: 8d 04 3a lea (%edx,%edi,1),%eax <== NOT EXECUTED
12957c: 3b 45 c0 cmp -0x40(%ebp),%eax <== NOT EXECUTED
12957f: 0f 87 36 01 00 00 ja 1296bb <rtems_bdpart_create+0x233><== NOT EXECUTED
/* Begin of first primary partition */
pos = record_space;
/* Space for partitions */
free_space = disk_end - overhead;
129585: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
129588: 29 d0 sub %edx,%eax <== NOT EXECUTED
12958a: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
for (i = 0; i < count; ++i) {
rtems_bdpart_partition *p = pt + i;
/* Partition size */
rtems_blkdev_bnum s = free_space * dist [i];
12958d: 0f af 45 cc imul -0x34(%ebp),%eax <== NOT EXECUTED
if (s < free_space || s < dist [i]) {
129591: 39 45 c8 cmp %eax,-0x38(%ebp) <== NOT EXECUTED
129594: 0f 87 de 00 00 00 ja 129678 <rtems_bdpart_create+0x1f0><== NOT EXECUTED
12959a: 3b 45 cc cmp -0x34(%ebp),%eax <== NOT EXECUTED
12959d: 0f 82 d5 00 00 00 jb 129678 <rtems_bdpart_create+0x1f0><== NOT EXECUTED
1295a3: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1295a6: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
1295a9: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
1295ac: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
1295af: 31 d2 xor %edx,%edx <== NOT EXECUTED
1295b1: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
1295b4: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
1295b7: 89 5d bc mov %ebx,-0x44(%ebp) <== NOT EXECUTED
1295ba: 89 d3 mov %edx,%ebx <== NOT EXECUTED
1295bc: 89 75 c4 mov %esi,-0x3c(%ebp) <== NOT EXECUTED
1295bf: eb 27 jmp 1295e8 <rtems_bdpart_create+0x160><== NOT EXECUTED
1295c1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
for (i = 0; i < count; ++i) {
rtems_bdpart_partition *p = pt + i;
/* Partition size */
rtems_blkdev_bnum s = free_space * dist [i];
1295c4: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
1295c7: 8b 14 99 mov (%ecx,%ebx,4),%edx <== NOT EXECUTED
1295ca: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
1295cd: 0f af c2 imul %edx,%eax <== NOT EXECUTED
if (s < free_space || s < dist [i]) {
1295d0: 39 45 c8 cmp %eax,-0x38(%ebp) <== NOT EXECUTED
1295d3: 0f 87 9f 00 00 00 ja 129678 <rtems_bdpart_create+0x1f0><== NOT EXECUTED
1295d9: 83 45 d0 30 addl $0x30,-0x30(%ebp) <== NOT EXECUTED
1295dd: 39 c2 cmp %eax,%edx <== NOT EXECUTED
1295df: 0f 87 93 00 00 00 ja 129678 <rtems_bdpart_create+0x1f0><== NOT EXECUTED
1295e5: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
/* TODO: Calculate without overflow */
return RTEMS_INVALID_NUMBER;
}
s /= dist_sum;
1295e8: 31 d2 xor %edx,%edx <== NOT EXECUTED
1295ea: f7 75 cc divl -0x34(%ebp) <== NOT EXECUTED
/* Ensure that the partition is not empty */
if (s == 0) {
1295ed: 85 c0 test %eax,%eax <== NOT EXECUTED
1295ef: 75 02 jne 1295f3 <rtems_bdpart_create+0x16b><== NOT EXECUTED
1295f1: b0 01 mov $0x1,%al <== NOT EXECUTED
/* Align partition upwards */
s += record_space - (s % record_space);
/* Partition begin and end */
p->begin = pos;
1295f3: 89 39 mov %edi,(%ecx) <== NOT EXECUTED
if (s == 0) {
s = 1;
}
/* Align partition upwards */
s += record_space - (s % record_space);
1295f5: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
1295f8: 8d 34 17 lea (%edi,%edx,1),%esi <== NOT EXECUTED
/* Partition begin and end */
p->begin = pos;
pos += s;
1295fb: 8d 3c 30 lea (%eax,%esi,1),%edi <== NOT EXECUTED
1295fe: 31 d2 xor %edx,%edx <== NOT EXECUTED
129600: f7 75 d4 divl -0x2c(%ebp) <== NOT EXECUTED
129603: 29 d7 sub %edx,%edi <== NOT EXECUTED
p->end = pos;
129605: 89 79 04 mov %edi,0x4(%ecx) <== NOT EXECUTED
/* Reserve space for the EBR if necessary */
if (count > 4 && i > 2) {
129608: 83 7d 18 04 cmpl $0x4,0x18(%ebp) <== NOT EXECUTED
12960c: 76 07 jbe 129615 <rtems_bdpart_create+0x18d><== NOT EXECUTED
12960e: 83 fb 02 cmp $0x2,%ebx <== NOT EXECUTED
129611: 76 02 jbe 129615 <rtems_bdpart_create+0x18d><== NOT EXECUTED
p->begin += record_space;
129613: 89 31 mov %esi,(%ecx) <== NOT EXECUTED
pos = record_space;
/* Space for partitions */
free_space = disk_end - overhead;
for (i = 0; i < count; ++i) {
129615: 43 inc %ebx <== NOT EXECUTED
129616: 39 5d 18 cmp %ebx,0x18(%ebp) <== NOT EXECUTED
129619: 77 a9 ja 1295c4 <rtems_bdpart_create+0x13c><== NOT EXECUTED
12961b: 8b 5d bc mov -0x44(%ebp),%ebx <== NOT EXECUTED
p->begin += record_space;
}
}
/* Expand the last partition to the disk end */
pt [count - 1].end = disk_end;
12961e: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
129621: 8d 44 49 fd lea -0x3(%ecx,%ecx,2),%eax <== NOT EXECUTED
129625: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
129628: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
12962b: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
12962e: 89 54 38 04 mov %edx,0x4(%eax,%edi,1) <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
129632: eb 39 jmp 12966d <rtems_bdpart_create+0x1e5><== NOT EXECUTED
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
&& format->type == RTEMS_BDPART_FORMAT_MBR
&& format->mbr.dos_compatibility;
129634: 80 7f 08 00 cmpb $0x0,0x8(%edi) <== NOT EXECUTED
129638: 0f 84 67 fe ff ff je 1294a5 <rtems_bdpart_create+0x1d><== NOT EXECUTED
rtems_blkdev_bnum disk_end = 0;
12963e: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
129645: c6 45 d0 01 movb $0x1,-0x30(%ebp) <== NOT EXECUTED
129649: c7 45 d4 3f 00 00 00 movl $0x3f,-0x2c(%ebp) <== 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) {
129650: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
129653: 85 db test %ebx,%ebx <== NOT EXECUTED
129655: 0f 85 67 fe ff ff jne 1294c2 <rtems_bdpart_create+0x3a><== NOT EXECUTED
12965b: 31 db xor %ebx,%ebx <== NOT EXECUTED
/* Expand the last partition to the disk end */
pt [count - 1].end = disk_end;
return RTEMS_SUCCESSFUL;
}
12965d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12965f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129662: 5b pop %ebx <== NOT EXECUTED
129663: 5e pop %esi <== NOT EXECUTED
129664: 5f pop %edi <== NOT EXECUTED
129665: c9 leave <== NOT EXECUTED
129666: c3 ret <== NOT EXECUTED
129667: 90 nop <== NOT EXECUTED
}
/* Expand the last partition to the disk end */
pt [count - 1].end = disk_end;
return RTEMS_SUCCESSFUL;
129668: bb 09 00 00 00 mov $0x9,%ebx <== NOT EXECUTED
}
12966d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12966f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129672: 5b pop %ebx <== NOT EXECUTED
129673: 5e pop %esi <== NOT EXECUTED
129674: 5f pop %edi <== NOT EXECUTED
129675: c9 leave <== NOT EXECUTED
129676: c3 ret <== NOT EXECUTED
129677: 90 nop <== NOT EXECUTED
}
/* Expand the last partition to the disk end */
pt [count - 1].end = disk_end;
return RTEMS_SUCCESSFUL;
129678: bb 0a 00 00 00 mov $0xa,%ebx <== NOT EXECUTED
}
12967d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12967f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129682: 5b pop %ebx <== NOT EXECUTED
129683: 5e pop %esi <== NOT EXECUTED
129684: 5f pop %edi <== NOT EXECUTED
129685: c9 leave <== NOT EXECUTED
129686: c3 ret <== NOT EXECUTED
129687: 90 nop <== NOT EXECUTED
return RTEMS_NOT_IMPLEMENTED;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
disk_end -= (disk_end % record_space);
129688: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
12968b: 89 f8 mov %edi,%eax <== NOT EXECUTED
12968d: 31 d2 xor %edx,%edx <== NOT EXECUTED
12968f: f7 75 d4 divl -0x2c(%ebp) <== NOT EXECUTED
129692: 29 d7 sub %edx,%edi <== NOT EXECUTED
129694: 89 7d c0 mov %edi,-0x40(%ebp) <== NOT EXECUTED
129697: e9 bd fe ff ff jmp 129559 <rtems_bdpart_create+0xd1><== 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) {
overhead += (count - 3) * record_space;
12969c: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
12969f: 83 e8 03 sub $0x3,%eax <== NOT EXECUTED
1296a2: 0f af 45 d4 imul -0x2c(%ebp),%eax <== NOT EXECUTED
1296a6: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
1296a9: 8d 14 38 lea (%eax,%edi,1),%edx <== NOT EXECUTED
1296ac: e9 b5 fe ff ff jmp 129566 <rtems_bdpart_create+0xde><== NOT EXECUTED
1296b1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
1296b4: bb 18 00 00 00 mov $0x18,%ebx <== NOT EXECUTED
1296b9: eb b2 jmp 12966d <rtems_bdpart_create+0x1e5><== NOT EXECUTED
if (dos_compatibility) {
overhead += (count - 1) * record_space;
}
/* Check disk space */
if ((overhead + count) > disk_end) {
1296bb: bb 1b 00 00 00 mov $0x1b,%ebx <== NOT EXECUTED
1296c0: eb ab jmp 12966d <rtems_bdpart_create+0x1e5><== NOT EXECUTED
001296c4 <rtems_bdpart_dump>:
{
uuid_unparse_lower( type, str);
}
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{
1296c4: 55 push %ebp <== NOT EXECUTED
1296c5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1296c7: 57 push %edi <== NOT EXECUTED
1296c8: 56 push %esi <== NOT EXECUTED
1296c9: 53 push %ebx <== NOT EXECUTED
1296ca: 83 ec 58 sub $0x58,%esp <== NOT EXECUTED
size_t i = 0;
printf(
1296cd: 68 9c 3f 16 00 push $0x163f9c <== NOT EXECUTED
1296d2: e8 f1 11 02 00 call 14a8c8 <puts> <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
1296d7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1296da: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1296dd: 85 c0 test %eax,%eax <== NOT EXECUTED
1296df: 0f 84 cb 00 00 00 je 1297b0 <rtems_bdpart_dump+0xec><== NOT EXECUTED
1296e5: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1296e8: 31 f6 xor %esi,%esi <== NOT EXECUTED
1296ea: eb 54 jmp 129740 <rtems_bdpart_dump+0x7c><== 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) {
1296ec: 8a 45 e7 mov -0x19(%ebp),%al <== NOT EXECUTED
1296ef: 3c 0b cmp $0xb,%al <== NOT EXECUTED
1296f1: 0f 84 9d 00 00 00 je 129794 <rtems_bdpart_dump+0xd0><== NOT EXECUTED
1296f7: 77 77 ja 129770 <rtems_bdpart_dump+0xac><== NOT EXECUTED
1296f9: 3c 01 cmp $0x1,%al <== NOT EXECUTED
1296fb: 0f 84 a3 00 00 00 je 1297a4 <rtems_bdpart_dump+0xe0><== NOT EXECUTED
129701: 3c 04 cmp $0x4,%al <== NOT EXECUTED
129703: 0f 84 93 00 00 00 je 12979c <rtems_bdpart_dump+0xd8><== NOT EXECUTED
break;
case RTEMS_BDPART_MBR_DATA:
type = "DATA";
break;
default:
snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
129709: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
12970c: 50 push %eax <== NOT EXECUTED
12970d: 68 0c 41 16 00 push $0x16410c <== NOT EXECUTED
129712: 6a 34 push $0x34 <== NOT EXECUTED
129714: 8d 45 b3 lea -0x4d(%ebp),%eax <== NOT EXECUTED
129717: 50 push %eax <== NOT EXECUTED
129718: e8 03 24 02 00 call 14bb20 <snprintf> <== NOT EXECUTED
12971d: 8d 45 b3 lea -0x4d(%ebp),%eax <== NOT EXECUTED
129720: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129723: 90 nop <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
129724: 50 push %eax <== NOT EXECUTED
129725: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
129728: ff 33 pushl (%ebx) <== NOT EXECUTED
12972a: 68 13 41 16 00 push $0x164113 <== NOT EXECUTED
12972f: e8 80 0f 02 00 call 14a6b4 <printf> <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
129734: 46 inc %esi <== NOT EXECUTED
129735: 83 c3 30 add $0x30,%ebx <== NOT EXECUTED
129738: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12973b: 39 75 0c cmp %esi,0xc(%ebp) <== NOT EXECUTED
12973e: 76 70 jbe 1297b0 <rtems_bdpart_dump+0xec><== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
129740: c6 45 e7 00 movb $0x0,-0x19(%ebp) <== NOT EXECUTED
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
129744: 8d 7b 08 lea 0x8(%ebx),%edi <== NOT EXECUTED
129747: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12974a: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
12974d: 50 push %eax <== NOT EXECUTED
12974e: 57 push %edi <== NOT EXECUTED
12974f: e8 4c 04 00 00 call 129ba0 <rtems_bdpart_to_mbr_partition_type><== NOT EXECUTED
129754: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129757: 84 c0 test %al,%al <== NOT EXECUTED
129759: 75 91 jne 1296ec <rtems_bdpart_dump+0x28><== NOT EXECUTED
static void rtems_bdpart_type_to_string(
const uuid_t type,
char str [37]
)
{
uuid_unparse_lower( type, str);
12975b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12975e: 8d 45 b3 lea -0x4d(%ebp),%eax <== NOT EXECUTED
129761: 50 push %eax <== NOT EXECUTED
129762: 57 push %edi <== NOT EXECUTED
129763: e8 54 8f 01 00 call 1426bc <uuid_unparse_lower> <== NOT EXECUTED
129768: 8d 45 b3 lea -0x4d(%ebp),%eax <== NOT EXECUTED
12976b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12976e: eb b4 jmp 129724 <rtems_bdpart_dump+0x60><== 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) {
129770: 3c 0e cmp $0xe,%al <== NOT EXECUTED
129772: 74 18 je 12978c <rtems_bdpart_dump+0xc8><== NOT EXECUTED
129774: 3c da cmp $0xda,%al <== NOT EXECUTED
129776: 74 0c je 129784 <rtems_bdpart_dump+0xc0><== NOT EXECUTED
129778: 3c 0c cmp $0xc,%al <== NOT EXECUTED
12977a: 75 8d jne 129709 <rtems_bdpart_dump+0x45><== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
12977c: b8 fc 40 16 00 mov $0x1640fc,%eax <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_32_LBA:
type = "FAT 32 LBA";
break;
129781: eb a1 jmp 129724 <rtems_bdpart_dump+0x60><== NOT EXECUTED
129783: 90 nop <== NOT EXECUTED
129784: b8 07 41 16 00 mov $0x164107,%eax <== NOT EXECUTED
case RTEMS_BDPART_MBR_DATA:
type = "DATA";
break;
129789: eb 99 jmp 129724 <rtems_bdpart_dump+0x60><== NOT EXECUTED
12978b: 90 nop <== 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) {
12978c: b8 ea 40 16 00 mov $0x1640ea,%eax <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16:
type = "FAT 16";
break;
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
129791: eb 91 jmp 129724 <rtems_bdpart_dump+0x60><== NOT EXECUTED
129793: 90 nop <== NOT EXECUTED
129794: b8 f5 40 16 00 mov $0x1640f5,%eax <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
129799: eb 89 jmp 129724 <rtems_bdpart_dump+0x60><== NOT EXECUTED
12979b: 90 nop <== 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) {
12979c: b8 dc 40 16 00 mov $0x1640dc,%eax <== NOT EXECUTED
1297a1: eb 81 jmp 129724 <rtems_bdpart_dump+0x60><== NOT EXECUTED
1297a3: 90 nop <== NOT EXECUTED
1297a4: b8 e3 40 16 00 mov $0x1640e3,%eax <== NOT EXECUTED
1297a9: e9 76 ff ff ff jmp 129724 <rtems_bdpart_dump+0x60><== NOT EXECUTED
1297ae: 66 90 xchg %ax,%ax <== NOT EXECUTED
p->end,
type
);
}
puts( "------------+------------+-----------------------------------------------------");
1297b0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1297b3: 68 8c 40 16 00 push $0x16408c <== NOT EXECUTED
1297b8: e8 0b 11 02 00 call 14a8c8 <puts> <== NOT EXECUTED
1297bd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1297c0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1297c3: 5b pop %ebx <== NOT EXECUTED
1297c4: 5e pop %esi <== NOT EXECUTED
1297c5: 5f pop %edi <== NOT EXECUTED
1297c6: c9 leave <== NOT EXECUTED
1297c7: c3 ret <== NOT EXECUTED
00129b20 <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
)
{
129b20: 55 push %ebp <== NOT EXECUTED
129b21: 89 e5 mov %esp,%ebp <== NOT EXECUTED
129b23: 56 push %esi <== NOT EXECUTED
129b24: 53 push %ebx <== NOT EXECUTED
129b25: 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);
129b28: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
129b2b: 50 push %eax <== NOT EXECUTED
129b2c: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
129b2f: e8 4c 63 fe ff call 10fe80 <stat> <== NOT EXECUTED
if (rv != 0) {
129b34: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129b37: 85 c0 test %eax,%eax <== NOT EXECUTED
129b39: 74 0d je 129b48 <rtems_bdpart_get_disk_data+0x28><== NOT EXECUTED
if (block_size < RTEMS_BDPART_BLOCK_SIZE) {
return RTEMS_IO_ERROR;
}
/* Check that we have do not have a logical disk */
if (disk_begin != 0) {
129b3b: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
129b40: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
129b43: 5b pop %ebx <== NOT EXECUTED
129b44: 5e pop %esi <== NOT EXECUTED
129b45: c9 leave <== NOT EXECUTED
129b46: c3 ret <== NOT EXECUTED
129b47: 90 nop <== NOT EXECUTED
/* Get disk handle */
rv = stat( disk_name, &st);
if (rv != 0) {
return RTEMS_INVALID_NAME;
}
*disk = st.st_rdev;
129b48: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
129b4b: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
129b4e: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
129b51: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
129b53: 89 51 04 mov %edx,0x4(%ecx) <== NOT EXECUTED
/* Get disk begin, end and block size */
dd = rtems_disk_obtain( *disk);
129b56: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
129b59: 52 push %edx <== NOT EXECUTED
129b5a: 50 push %eax <== NOT EXECUTED
129b5b: e8 24 39 fe ff call 10d484 <rtems_disk_obtain> <== NOT EXECUTED
if (dd == NULL) {
129b60: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129b63: 85 c0 test %eax,%eax <== NOT EXECUTED
129b65: 74 d4 je 129b3b <rtems_bdpart_get_disk_data+0x1b><== NOT EXECUTED
return RTEMS_INVALID_NAME;
}
disk_begin = dd->start;
129b67: 8b 70 18 mov 0x18(%eax),%esi <== NOT EXECUTED
*disk_end = dd->size;
129b6a: 8b 48 1c mov 0x1c(%eax),%ecx <== NOT EXECUTED
129b6d: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
129b70: 89 0a mov %ecx,(%edx) <== NOT EXECUTED
block_size = dd->block_size;
129b72: 8b 58 20 mov 0x20(%eax),%ebx <== NOT EXECUTED
sc = rtems_disk_release( dd);
129b75: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129b78: 50 push %eax <== NOT EXECUTED
129b79: e8 e2 3a fe ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
129b7e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129b81: 85 c0 test %eax,%eax <== NOT EXECUTED
129b83: 75 bb jne 129b40 <rtems_bdpart_get_disk_data+0x20><== NOT EXECUTED
return sc;
}
/* Check block size */
if (block_size < RTEMS_BDPART_BLOCK_SIZE) {
129b85: 81 fb ff 01 00 00 cmp $0x1ff,%ebx <== NOT EXECUTED
129b8b: 76 04 jbe 129b91 <rtems_bdpart_get_disk_data+0x71><== NOT EXECUTED
return RTEMS_IO_ERROR;
}
/* Check that we have do not have a logical disk */
if (disk_begin != 0) {
129b8d: 85 f6 test %esi,%esi <== NOT EXECUTED
129b8f: 74 af je 129b40 <rtems_bdpart_get_disk_data+0x20><== NOT EXECUTED
129b91: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
129b96: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
129b99: 5b pop %ebx <== NOT EXECUTED
129b9a: 5e pop %esi <== NOT EXECUTED
129b9b: c9 leave <== NOT EXECUTED
129b9c: c3 ret <== NOT EXECUTED
001298f4 <rtems_bdpart_mount>:
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
1298f4: 55 push %ebp <== NOT EXECUTED
1298f5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1298f7: 57 push %edi <== NOT EXECUTED
1298f8: 56 push %esi <== NOT EXECUTED
1298f9: 53 push %ebx <== NOT EXECUTED
1298fa: 83 ec 34 sub $0x34,%esp <== NOT EXECUTED
1298fd: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
const char *disk_file_name = strrchr( disk_name, '/');
129900: 6a 2f push $0x2f <== NOT EXECUTED
129902: 56 push %esi <== NOT EXECUTED
129903: e8 58 32 02 00 call 14cb60 <strrchr> <== NOT EXECUTED
129908: 89 45 dc mov %eax,-0x24(%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);
12990b: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
129910: 89 f7 mov %esi,%edi <== NOT EXECUTED
129912: 31 c0 xor %eax,%eax <== NOT EXECUTED
129914: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
129916: 89 ca mov %ecx,%edx <== NOT EXECUTED
129918: f7 d2 not %edx <== NOT EXECUTED
12991a: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
12991d: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
129920: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
129925: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
129928: 31 c0 xor %eax,%eax <== NOT EXECUTED
12992a: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
12992c: f7 d1 not %ecx <== NOT EXECUTED
12992e: 49 dec %ecx <== NOT EXECUTED
12992f: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
size_t i = 0;
/* Create logical disk name base */
logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
129932: 83 c2 03 add $0x3,%edx <== NOT EXECUTED
129935: 89 14 24 mov %edx,(%esp) <== NOT EXECUTED
129938: e8 cb 54 fe ff call 10ee08 <malloc> <== NOT EXECUTED
12993d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (logical_disk_name == NULL) {
12993f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129942: 85 c0 test %eax,%eax <== NOT EXECUTED
129944: 0f 84 32 01 00 00 je 129a7c <rtems_bdpart_mount+0x188><== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
strncpy( logical_disk_name, disk_name, disk_name_size);
12994a: 50 push %eax <== NOT EXECUTED
12994b: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
12994e: 56 push %esi <== NOT EXECUTED
12994f: 53 push %ebx <== NOT EXECUTED
129950: e8 8b 2b 02 00 call 14c4e0 <strncpy> <== NOT EXECUTED
/* Get disk file name */
if (disk_file_name != NULL) {
129955: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129958: 8b 7d dc mov -0x24(%ebp),%edi <== NOT EXECUTED
12995b: 85 ff test %edi,%edi <== NOT EXECUTED
12995d: 0f 84 41 01 00 00 je 129aa4 <rtems_bdpart_mount+0x1b0><== NOT EXECUTED
disk_file_name += 1;
129963: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
129966: 41 inc %ecx <== NOT EXECUTED
129967: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
disk_file_name_size = strlen( disk_file_name);
12996a: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
12996f: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
129972: 31 c0 xor %eax,%eax <== NOT EXECUTED
129974: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
129976: f7 d1 not %ecx <== NOT EXECUTED
129978: 49 dec %ecx <== NOT EXECUTED
129979: 89 4d dc mov %ecx,-0x24(%ebp) <== 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);
12997c: 8b 75 dc mov -0x24(%ebp),%esi <== NOT EXECUTED
12997f: 03 75 e4 add -0x1c(%ebp),%esi <== NOT EXECUTED
129982: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129985: 8d 46 05 lea 0x5(%esi),%eax <== NOT EXECUTED
129988: 50 push %eax <== NOT EXECUTED
129989: e8 7a 54 fe ff call 10ee08 <malloc> <== NOT EXECUTED
12998e: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (mount_point == NULL) {
129990: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129993: 85 c0 test %eax,%eax <== NOT EXECUTED
129995: 0f 84 bd 00 00 00 je 129a58 <rtems_bdpart_mount+0x164><== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
12999b: 51 push %ecx <== NOT EXECUTED
12999c: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12999f: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
1299a2: 50 push %eax <== NOT EXECUTED
1299a3: e8 38 2b 02 00 call 14c4e0 <strncpy> <== NOT EXECUTED
mount_point [mount_base_size] = '/';
1299a8: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1299ab: c6 04 17 2f movb $0x2f,(%edi,%edx,1) <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
1299af: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1299b2: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
1299b5: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
1299b8: 8d 44 17 01 lea 0x1(%edi,%edx,1),%eax <== NOT EXECUTED
1299bc: 50 push %eax <== NOT EXECUTED
1299bd: e8 1e 2b 02 00 call 14c4e0 <strncpy> <== NOT EXECUTED
/* Markers */
logical_disk_marker = logical_disk_name + disk_name_size;
1299c2: 8b 4d d8 mov -0x28(%ebp),%ecx <== NOT EXECUTED
1299c5: 8d 04 0b lea (%ebx,%ecx,1),%eax <== NOT EXECUTED
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
1299c8: 8d 74 37 01 lea 0x1(%edi,%esi,1),%esi <== NOT EXECUTED
1299cc: 89 75 e0 mov %esi,-0x20(%ebp) <== NOT EXECUTED
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
1299cf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1299d2: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1299d5: 85 d2 test %edx,%edx <== NOT EXECUTED
1299d7: 74 7b je 129a54 <rtems_bdpart_mount+0x160><== NOT EXECUTED
1299d9: 31 f6 xor %esi,%esi <== NOT EXECUTED
1299db: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED
1299de: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1299e0: eb 07 jmp 1299e9 <rtems_bdpart_mount+0xf5><== NOT EXECUTED
1299e2: 66 90 xchg %ax,%ax <== NOT EXECUTED
1299e4: 39 75 10 cmp %esi,0x10(%ebp) <== NOT EXECUTED
1299e7: 76 68 jbe 129a51 <rtems_bdpart_mount+0x15d><== NOT EXECUTED
/* Create logical disk name */
int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
1299e9: 46 inc %esi <== NOT EXECUTED
1299ea: 56 push %esi <== NOT EXECUTED
1299eb: 68 08 f5 15 00 push $0x15f508 <== NOT EXECUTED
1299f0: 6a 04 push $0x4 <== NOT EXECUTED
1299f2: 53 push %ebx <== NOT EXECUTED
1299f3: e8 28 21 02 00 call 14bb20 <snprintf> <== NOT EXECUTED
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
1299f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1299fb: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
1299fe: 0f 8f 88 00 00 00 jg 129a8c <rtems_bdpart_mount+0x198><== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create mount point */
strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
129a04: 50 push %eax <== NOT EXECUTED
129a05: 6a 04 push $0x4 <== NOT EXECUTED
129a07: 53 push %ebx <== NOT EXECUTED
129a08: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
129a0b: e8 d0 2a 02 00 call 14c4e0 <strncpy> <== NOT EXECUTED
rv = rtems_mkdir( mount_point, S_IRWXU | S_IRWXG | S_IRWXO);
129a10: 5a pop %edx <== NOT EXECUTED
129a11: 59 pop %ecx <== NOT EXECUTED
129a12: 68 ff 01 00 00 push $0x1ff <== NOT EXECUTED
129a17: 57 push %edi <== NOT EXECUTED
129a18: e8 e7 62 fe ff call 10fd04 <rtems_mkdir> <== NOT EXECUTED
if (rv != 0) {
129a1d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129a20: 85 c0 test %eax,%eax <== NOT EXECUTED
129a22: 75 74 jne 129a98 <rtems_bdpart_mount+0x1a4><== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Mount */
rv = mount(
129a24: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129a27: 6a 00 push $0x0 <== NOT EXECUTED
129a29: 6a 00 push $0x0 <== NOT EXECUTED
129a2b: 68 29 41 16 00 push $0x164129 <== NOT EXECUTED
129a30: 57 push %edi <== NOT EXECUTED
129a31: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
129a34: e8 c7 56 fe ff call 10f100 <mount> <== NOT EXECUTED
mount_point,
"msdos",
0,
NULL
);
if (rv != 0) {
129a39: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
129a3c: 85 c0 test %eax,%eax <== NOT EXECUTED
129a3e: 74 a4 je 1299e4 <rtems_bdpart_mount+0xf0><== NOT EXECUTED
rmdir( mount_point);
129a40: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129a43: 57 push %edi <== NOT EXECUTED
129a44: e8 e3 5d 00 00 call 12f82c <rmdir> <== NOT EXECUTED
129a49: 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) {
129a4c: 39 75 10 cmp %esi,0x10(%ebp) <== NOT EXECUTED
129a4f: 77 98 ja 1299e9 <rtems_bdpart_mount+0xf5><== NOT EXECUTED
129a51: 8b 5d e4 mov -0x1c(%ebp),%ebx <== NOT EXECUTED
129a54: 31 f6 xor %esi,%esi <== NOT EXECUTED
129a56: eb 05 jmp 129a5d <rtems_bdpart_mount+0x169><== NOT EXECUTED
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);
if (mount_point == NULL) {
129a58: be 1a 00 00 00 mov $0x1a,%esi <== NOT EXECUTED
}
}
cleanup:
free( logical_disk_name);
129a5d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129a60: 53 push %ebx <== NOT EXECUTED
129a61: e8 02 4e fe ff call 10e868 <free> <== NOT EXECUTED
free( mount_point);
129a66: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED
129a69: e8 fa 4d fe ff call 10e868 <free> <== NOT EXECUTED
return esc;
129a6e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
129a71: 89 f0 mov %esi,%eax <== NOT EXECUTED
129a73: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129a76: 5b pop %ebx <== NOT EXECUTED
129a77: 5e pop %esi <== NOT EXECUTED
129a78: 5f pop %edi <== NOT EXECUTED
129a79: c9 leave <== NOT EXECUTED
129a7a: c3 ret <== NOT EXECUTED
129a7b: 90 nop <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
size_t i = 0;
/* Create logical disk name base */
logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
if (logical_disk_name == NULL) {
129a7c: be 1a 00 00 00 mov $0x1a,%esi <== NOT EXECUTED
free( logical_disk_name);
free( mount_point);
return esc;
}
129a81: 89 f0 mov %esi,%eax <== NOT EXECUTED
129a83: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129a86: 5b pop %ebx <== NOT EXECUTED
129a87: 5e pop %esi <== NOT EXECUTED
129a88: 5f pop %edi <== NOT EXECUTED
129a89: c9 leave <== NOT EXECUTED
129a8a: c3 ret <== NOT EXECUTED
129a8b: 90 nop <== NOT EXECUTED
129a8c: 8b 5d e4 mov -0x1c(%ebp),%ebx <== 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);
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
129a8f: be 03 00 00 00 mov $0x3,%esi <== NOT EXECUTED
129a94: eb c7 jmp 129a5d <rtems_bdpart_mount+0x169><== NOT EXECUTED
129a96: 66 90 xchg %ax,%ax <== NOT EXECUTED
129a98: 8b 5d e4 mov -0x1c(%ebp),%ebx <== NOT EXECUTED
}
/* Create mount point */
strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
rv = rtems_mkdir( mount_point, S_IRWXU | S_IRWXG | S_IRWXO);
if (rv != 0) {
129a9b: be 1b 00 00 00 mov $0x1b,%esi <== NOT EXECUTED
129aa0: eb bb jmp 129a5d <rtems_bdpart_mount+0x169><== NOT EXECUTED
129aa2: 66 90 xchg %ax,%ax <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
strncpy( logical_disk_name, disk_name, disk_name_size);
/* Get disk file name */
if (disk_file_name != NULL) {
129aa4: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
129aa7: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
129aaa: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
129aad: e9 ca fe ff ff jmp 12997c <rtems_bdpart_mount+0x88><== NOT EXECUTED
00129fbc <rtems_bdpart_new_record>:
static rtems_status_code rtems_bdpart_new_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
129fbc: 55 push %ebp <== NOT EXECUTED
129fbd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
129fbf: 57 push %edi <== NOT EXECUTED
129fc0: 56 push %esi <== NOT EXECUTED
129fc1: 53 push %ebx <== NOT EXECUTED
129fc2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129fc5: 89 c3 mov %eax,%ebx <== NOT EXECUTED
129fc7: 89 d6 mov %edx,%esi <== NOT EXECUTED
129fc9: 89 cf mov %ecx,%edi <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Synchronize previous block if necessary */
if (*block != NULL) {
129fcb: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
129fce: 8b 02 mov (%edx),%eax <== NOT EXECUTED
129fd0: 85 c0 test %eax,%eax <== NOT EXECUTED
129fd2: 74 12 je 129fe6 <rtems_bdpart_new_record+0x2a><== NOT EXECUTED
sc = rtems_bdbuf_sync( *block);
129fd4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129fd7: 50 push %eax <== NOT EXECUTED
129fd8: e8 a3 1d fe ff call 10bd80 <rtems_bdbuf_sync> <== NOT EXECUTED
129fdd: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
129fdf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129fe2: 85 c0 test %eax,%eax <== NOT EXECUTED
129fe4: 75 46 jne 12a02c <rtems_bdpart_new_record+0x70><== NOT EXECUTED
return sc;
}
}
/* Read the new record block (this accounts for disk block sizes > 512) */
sc = rtems_bdbuf_read( disk, index, block);
129fe6: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
129fe9: 57 push %edi <== NOT EXECUTED
129fea: 56 push %esi <== NOT EXECUTED
129feb: 53 push %ebx <== NOT EXECUTED
129fec: e8 03 25 fe ff call 10c4f4 <rtems_bdbuf_read> <== NOT EXECUTED
129ff1: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
129ff3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129ff6: 85 c0 test %eax,%eax <== NOT EXECUTED
129ff8: 75 32 jne 12a02c <rtems_bdpart_new_record+0x70><== NOT EXECUTED
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
129ffa: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
129ffd: 8b 01 mov (%ecx),%eax <== NOT EXECUTED
129fff: 85 c0 test %eax,%eax <== NOT EXECUTED
12a001: 74 35 je 12a038 <rtems_bdpart_new_record+0x7c><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
}
/* Clear record */
memset( (*block)->buffer, 0, RTEMS_BDPART_BLOCK_SIZE);
12a003: 8b 58 20 mov 0x20(%eax),%ebx <== NOT EXECUTED
12a006: b9 00 02 00 00 mov $0x200,%ecx <== NOT EXECUTED
12a00b: 31 c0 xor %eax,%eax <== NOT EXECUTED
12a00d: 89 df mov %ebx,%edi <== NOT EXECUTED
12a00f: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
/* Write signature */
(*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0] =
12a011: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
12a014: 8b 01 mov (%ecx),%eax <== NOT EXECUTED
12a016: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
12a019: c6 80 fe 01 00 00 55 movb $0x55,0x1fe(%eax) <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_0;
(*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_1] =
12a020: 8b 01 mov (%ecx),%eax <== NOT EXECUTED
12a022: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
12a025: c6 80 ff 01 00 00 aa movb $0xaa,0x1ff(%eax) <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_1;
return RTEMS_SUCCESSFUL;
}
12a02c: 89 d0 mov %edx,%eax <== NOT EXECUTED
12a02e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a031: 5b pop %ebx <== NOT EXECUTED
12a032: 5e pop %esi <== NOT EXECUTED
12a033: 5f pop %edi <== NOT EXECUTED
12a034: c9 leave <== NOT EXECUTED
12a035: c3 ret <== NOT EXECUTED
12a036: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
12a038: b2 09 mov $0x9,%dl <== NOT EXECUTED
12a03a: eb f0 jmp 12a02c <rtems_bdpart_new_record+0x70><== NOT EXECUTED
00129ce8 <rtems_bdpart_read>:
const char *disk_name,
rtems_bdpart_format *format,
rtems_bdpart_partition *pt,
size_t *count
)
{
129ce8: 55 push %ebp <== NOT EXECUTED
129ce9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
129ceb: 57 push %edi <== NOT EXECUTED
129cec: 56 push %esi <== NOT EXECUTED
129ced: 53 push %ebx <== NOT EXECUTED
129cee: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
129cf1: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
129cf4: 8b 5d 14 mov 0x14(%ebp),%ebx <== 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);
129cf7: 85 db test %ebx,%ebx <== NOT EXECUTED
129cf9: 0f 84 69 02 00 00 je 129f68 <rtems_bdpart_read+0x280><== NOT EXECUTED
129cff: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
129d01: 8d 34 40 lea (%eax,%eax,2),%esi <== NOT EXECUTED
129d04: c1 e6 04 shl $0x4,%esi <== NOT EXECUTED
dev_t disk = 0;
size_t i = 0;
const uint8_t *data = NULL;
/* Check parameter */
if (format == NULL || pt == NULL || count == NULL) {
129d07: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
129d0a: 85 d2 test %edx,%edx <== NOT EXECUTED
129d0c: 0f 84 a2 00 00 00 je 129db4 <rtems_bdpart_read+0xcc><== NOT EXECUTED
129d12: 85 ff test %edi,%edi <== NOT EXECUTED
129d14: 0f 84 9a 00 00 00 je 129db4 <rtems_bdpart_read+0xcc><== NOT EXECUTED
129d1a: 85 db test %ebx,%ebx <== NOT EXECUTED
129d1c: 0f 84 92 00 00 00 je 129db4 <rtems_bdpart_read+0xcc><== 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;
129d22: 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 */
129d29: 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;
129d30: c7 03 00 00 00 00 movl $0x0,(%ebx) <== 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;
129d36: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
129d3d: 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;
129d44: 8d 47 d0 lea -0x30(%edi),%eax <== NOT EXECUTED
129d47: 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;
129d4a: 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);
129d51: 50 push %eax <== NOT EXECUTED
129d52: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
129d55: 50 push %eax <== NOT EXECUTED
129d56: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
129d59: 50 push %eax <== NOT EXECUTED
129d5a: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
129d5d: e8 be fd ff ff call 129b20 <rtems_bdpart_get_disk_data><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
129d62: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129d65: 85 c0 test %eax,%eax <== NOT EXECUTED
129d67: 74 0b je 129d74 <rtems_bdpart_read+0x8c><== NOT EXECUTED
if (block != NULL) {
rtems_bdbuf_release( block);
}
return esc;
}
129d69: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129d6c: 5b pop %ebx <== NOT EXECUTED
129d6d: 5e pop %esi <== NOT EXECUTED
129d6e: 5f pop %edi <== NOT EXECUTED
129d6f: c9 leave <== NOT EXECUTED
129d70: c3 ret <== NOT EXECUTED
129d71: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
/* Read MBR */
sc = rtems_bdpart_read_record( disk, 0, &block);
129d74: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129d77: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
129d7a: 50 push %eax <== NOT EXECUTED
129d7b: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
129d7d: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
129d80: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
129d83: e8 2c fd ff ff call 129ab4 <rtems_bdpart_read_record><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
129d88: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129d8b: 85 c0 test %eax,%eax <== NOT EXECUTED
129d8d: 74 35 je 129dc4 <rtems_bdpart_read+0xdc><== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,
&p,
p_end,
NULL
);
if (sc != RTEMS_SUCCESSFUL) {
129d8f: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
129d92: 89 c3 mov %eax,%ebx <== NOT EXECUTED
/* Return partition count */
*count = (size_t) (p - pt + 1);
cleanup:
if (block != NULL) {
129d94: 85 d2 test %edx,%edx <== NOT EXECUTED
129d96: 0f 84 d4 01 00 00 je 129f70 <rtems_bdpart_read+0x288><== NOT EXECUTED
rtems_bdbuf_release( block);
129d9c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129d9f: 52 push %edx <== NOT EXECUTED
129da0: e8 d3 16 fe ff call 10b478 <rtems_bdbuf_release> <== NOT EXECUTED
129da5: 89 d8 mov %ebx,%eax <== NOT EXECUTED
129da7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return esc;
}
129daa: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129dad: 5b pop %ebx <== NOT EXECUTED
129dae: 5e pop %esi <== NOT EXECUTED
129daf: 5f pop %edi <== NOT EXECUTED
129db0: c9 leave <== NOT EXECUTED
129db1: c3 ret <== NOT EXECUTED
129db2: 66 90 xchg %ax,%ax <== NOT EXECUTED
*count = (size_t) (p - pt + 1);
cleanup:
if (block != NULL) {
rtems_bdbuf_release( block);
129db4: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED
}
return esc;
}
129db9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129dbc: 5b pop %ebx <== NOT EXECUTED
129dbd: 5e pop %esi <== NOT EXECUTED
129dbe: 5f pop %edi <== NOT EXECUTED
129dbf: c9 leave <== NOT EXECUTED
129dc0: c3 ret <== NOT EXECUTED
129dc1: 8d 76 00 lea 0x0(%esi),%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);
129dc4: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
129dc7: 89 75 c0 mov %esi,-0x40(%ebp) <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read the first partition entry */
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
129dca: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
129dcd: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
129dd0: 89 45 b8 mov %eax,-0x48(%ebp) <== NOT EXECUTED
129dd3: 89 c6 mov %eax,%esi <== NOT EXECUTED
129dd5: 81 c6 be 01 00 00 add $0x1be,%esi <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
129ddb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129dde: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
129de1: 52 push %edx <== NOT EXECUTED
129de2: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
129de5: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
129de8: 89 f0 mov %esi,%eax <== NOT EXECUTED
129dea: e8 f5 fd ff ff call 129be4 <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
129def: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129df2: 85 c0 test %eax,%eax <== NOT EXECUTED
129df4: 75 99 jne 129d8f <rtems_bdpart_read+0xa7><== 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) {
129df6: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
129df9: 80 78 08 ee cmpb $0xee,0x8(%eax) <== NOT EXECUTED
129dfd: 0f 84 91 01 00 00 je 129f94 <rtems_bdpart_read+0x2ac><== NOT EXECUTED
esc = RTEMS_NOT_IMPLEMENTED;
goto cleanup;
}
/* Set format */
format->type = RTEMS_BDPART_FORMAT_MBR;
129e03: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
129e06: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
format->mbr.disk_id = rtems_uint32_from_little_endian(
129e0c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
129e0f: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
129e12: 8d 91 b8 01 00 00 lea 0x1b8(%ecx),%edx <== NOT EXECUTED
129e18: 0f b6 42 03 movzbl 0x3(%edx),%eax <== NOT EXECUTED
129e1c: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
129e1f: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
129e22: 0f b6 42 02 movzbl 0x2(%edx),%eax <== NOT EXECUTED
129e26: 03 45 bc add -0x44(%ebp),%eax <== NOT EXECUTED
129e29: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
129e2c: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
129e2f: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
129e33: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
129e36: 01 c2 add %eax,%edx <== NOT EXECUTED
129e38: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
129e3b: 0f b6 81 b8 01 00 00 movzbl 0x1b8(%ecx),%eax <== NOT EXECUTED
129e42: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
129e45: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
129e48: 89 42 04 mov %eax,0x4(%edx) <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
format->mbr.dos_compatibility = true;
129e4b: c6 42 08 01 movb $0x1,0x8(%edx) <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
rtems_status_code rtems_bdpart_read(
129e4f: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
129e52: 05 ee 01 00 00 add $0x1ee,%eax <== NOT EXECUTED
129e57: 89 45 c4 mov %eax,-0x3c(%ebp) <== 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;
129e5a: 83 c6 10 add $0x10,%esi <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
129e5d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129e60: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
129e63: 52 push %edx <== NOT EXECUTED
129e64: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
129e67: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
129e6a: 89 f0 mov %esi,%eax <== NOT EXECUTED
129e6c: e8 73 fd ff ff call 129be4 <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
129e71: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129e74: 85 c0 test %eax,%eax <== NOT EXECUTED
129e76: 0f 85 13 ff ff ff jne 129d8f <rtems_bdpart_read+0xa7><== 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) {
129e7c: 3b 75 c4 cmp -0x3c(%ebp),%esi <== NOT EXECUTED
129e7f: 75 d9 jne 129e5a <rtems_bdpart_read+0x172><== NOT EXECUTED
goto cleanup;
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
129e81: 8b 75 dc mov -0x24(%ebp),%esi <== NOT EXECUTED
while (ebr != 0) {
129e84: 85 f6 test %esi,%esi <== NOT EXECUTED
129e86: 0f 84 22 01 00 00 je 129fae <rtems_bdpart_read+0x2c6><== NOT EXECUTED
129e8c: 89 7d b8 mov %edi,-0x48(%ebp) <== NOT EXECUTED
129e8f: 89 5d bc mov %ebx,-0x44(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum tmp = 0;
/* Read EBR */
sc = rtems_bdpart_read_record( disk, ebr, &block);
129e92: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129e95: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
129e98: 50 push %eax <== NOT EXECUTED
129e99: 89 f1 mov %esi,%ecx <== NOT EXECUTED
129e9b: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
129e9e: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
129ea1: e8 0e fc ff ff call 129ab4 <rtems_bdpart_read_record><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
129ea6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129ea9: 85 c0 test %eax,%eax <== NOT EXECUTED
129eab: 0f 85 de fe ff ff jne 129d8f <rtems_bdpart_read+0xa7><== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read first partition entry */
sc = rtems_bdpart_read_mbr_partition(
129eb1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129eb4: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
129eb7: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
129eba: 05 be 01 00 00 add $0x1be,%eax <== NOT EXECUTED
129ebf: 6a 00 push $0x0 <== NOT EXECUTED
129ec1: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
129ec4: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
129ec7: e8 18 fd ff ff call 129be4 <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,
&p,
p_end,
NULL
);
if (sc != RTEMS_SUCCESSFUL) {
129ecc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129ecf: 85 c0 test %eax,%eax <== NOT EXECUTED
129ed1: 0f 85 b8 fe ff ff jne 129d8f <rtems_bdpart_read+0xa7><== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Adjust partition begin */
tmp = p->begin + ebr;
129ed7: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
129eda: 8b 10 mov (%eax),%edx <== NOT EXECUTED
129edc: 8d 0c 16 lea (%esi,%edx,1),%ecx <== NOT EXECUTED
if (tmp > p->begin) {
129edf: 39 ca cmp %ecx,%edx <== NOT EXECUTED
129ee1: 0f 83 ba 00 00 00 jae 129fa1 <rtems_bdpart_read+0x2b9><== NOT EXECUTED
p->begin = tmp;
129ee7: 89 08 mov %ecx,(%eax) <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Adjust partition end */
tmp = p->end + ebr;
129ee9: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
129eec: 01 d6 add %edx,%esi <== NOT EXECUTED
if (tmp > p->end) {
129eee: 39 f2 cmp %esi,%edx <== NOT EXECUTED
129ef0: 0f 83 ab 00 00 00 jae 129fa1 <rtems_bdpart_read+0x2b9><== NOT EXECUTED
p->end = tmp;
129ef6: 89 70 04 mov %esi,0x4(%eax) <== NOT EXECUTED
goto cleanup;
}
/* Read second partition entry for next EBR block */
ebr = rtems_bdpart_next_ebr(
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1
129ef9: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
129efc: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Read second partition entry for next EBR block */
ebr = rtems_bdpart_next_ebr(
129eff: 8b 4a 20 mov 0x20(%edx),%ecx <== 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);
129f02: 8d 99 d6 01 00 00 lea 0x1d6(%ecx),%ebx <== NOT EXECUTED
129f08: 0f b6 73 03 movzbl 0x3(%ebx),%esi <== NOT EXECUTED
129f0c: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
129f0f: 0f b6 7b 02 movzbl 0x2(%ebx),%edi <== NOT EXECUTED
129f13: 01 fe add %edi,%esi <== NOT EXECUTED
129f15: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
129f18: 0f b6 7b 01 movzbl 0x1(%ebx),%edi <== NOT EXECUTED
129f1c: 01 fe add %edi,%esi <== NOT EXECUTED
129f1e: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
129f21: 0f b6 99 d6 01 00 00 movzbl 0x1d6(%ecx),%ebx <== NOT EXECUTED
129f28: 8d 1c 1e lea (%esi,%ebx,1),%ebx <== NOT EXECUTED
uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];
if (type == RTEMS_BDPART_MBR_EXTENDED) {
129f2b: 80 b9 d2 01 00 00 05 cmpb $0x5,0x1d2(%ecx) <== NOT EXECUTED
129f32: 74 44 je 129f78 <rtems_bdpart_read+0x290><== NOT EXECUTED
129f34: 8b 7d b8 mov -0x48(%ebp),%edi <== NOT EXECUTED
129f37: 8b 5d bc mov -0x44(%ebp),%ebx <== NOT EXECUTED
}
}
}
/* Return partition count */
*count = (size_t) (p - pt + 1);
129f3a: 29 f8 sub %edi,%eax <== NOT EXECUTED
129f3c: c1 f8 04 sar $0x4,%eax <== NOT EXECUTED
129f3f: 8d 14 80 lea (%eax,%eax,4),%edx <== NOT EXECUTED
129f42: 8d 14 90 lea (%eax,%edx,4),%edx <== NOT EXECUTED
129f45: 8d 14 90 lea (%eax,%edx,4),%edx <== NOT EXECUTED
129f48: 89 d1 mov %edx,%ecx <== NOT EXECUTED
129f4a: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
129f4d: 01 ca add %ecx,%edx <== NOT EXECUTED
129f4f: 89 d1 mov %edx,%ecx <== NOT EXECUTED
129f51: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
129f54: 01 ca add %ecx,%edx <== NOT EXECUTED
129f56: 8d 44 50 01 lea 0x1(%eax,%edx,2),%eax <== NOT EXECUTED
129f5a: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
129f5c: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
129f5f: 31 db xor %ebx,%ebx <== NOT EXECUTED
129f61: e9 2e fe ff ff jmp 129d94 <rtems_bdpart_read+0xac><== NOT EXECUTED
129f66: 66 90 xchg %ax,%ax <== 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);
129f68: 31 f6 xor %esi,%esi <== NOT EXECUTED
129f6a: e9 98 fd ff ff jmp 129d07 <rtems_bdpart_read+0x1f><== NOT EXECUTED
129f6f: 90 nop <== NOT EXECUTED
/* Return partition count */
*count = (size_t) (p - pt + 1);
cleanup:
if (block != NULL) {
129f70: 89 d8 mov %ebx,%eax <== NOT EXECUTED
129f72: e9 f2 fd ff ff jmp 129d69 <rtems_bdpart_read+0x81><== NOT EXECUTED
129f77: 90 nop <== 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) {
129f78: 85 db test %ebx,%ebx <== NOT EXECUTED
129f7a: 74 b8 je 129f34 <rtems_bdpart_read+0x24c><== NOT EXECUTED
/* Adjust partition EBR block index */
tmp = ebr + ep_begin;
129f7c: 8b 75 dc mov -0x24(%ebp),%esi <== NOT EXECUTED
129f7f: 01 de add %ebx,%esi <== NOT EXECUTED
if (tmp > ebr) {
129f81: 39 de cmp %ebx,%esi <== NOT EXECUTED
129f83: 0f 87 09 ff ff ff ja 129e92 <rtems_bdpart_read+0x1aa><== NOT EXECUTED
129f89: bb 1b 00 00 00 mov $0x1b,%ebx <== NOT EXECUTED
129f8e: e9 01 fe ff ff jmp 129d94 <rtems_bdpart_read+0xac><== NOT EXECUTED
129f93: 90 nop <== 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) {
129f94: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
129f97: bb 18 00 00 00 mov $0x18,%ebx <== NOT EXECUTED
129f9c: e9 f3 fd ff ff jmp 129d94 <rtems_bdpart_read+0xac><== NOT EXECUTED
goto cleanup;
}
/* Adjust partition end */
tmp = p->end + ebr;
if (tmp > p->end) {
129fa1: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
129fa4: bb 1b 00 00 00 mov $0x1b,%ebx <== NOT EXECUTED
129fa9: e9 e6 fd ff ff jmp 129d94 <rtems_bdpart_read+0xac><== NOT EXECUTED
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
while (ebr != 0) {
129fae: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
129fb1: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
129fb4: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
129fb7: eb 81 jmp 129f3a <rtems_bdpart_read+0x252><== NOT EXECUTED
00129be4 <rtems_bdpart_read_mbr_partition>:
const uint8_t *data,
rtems_bdpart_partition **p,
const rtems_bdpart_partition *p_end,
rtems_blkdev_bnum *ep_begin
)
{
129be4: 55 push %ebp <== NOT EXECUTED
129be5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
129be7: 57 push %edi <== NOT EXECUTED
129be8: 56 push %esi <== NOT EXECUTED
129be9: 53 push %ebx <== NOT EXECUTED
129bea: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
129bed: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_blkdev_bnum begin =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
129bef: 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];
129bf2: 0f b6 70 03 movzbl 0x3(%eax),%esi <== NOT EXECUTED
129bf6: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
129bf9: 0f b6 78 02 movzbl 0x2(%eax),%edi <== NOT EXECUTED
129bfd: 01 fe add %edi,%esi <== NOT EXECUTED
129bff: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
129c02: 0f b6 78 01 movzbl 0x1(%eax),%edi <== NOT EXECUTED
129c06: 01 fe add %edi,%esi <== NOT EXECUTED
129c08: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
129c0b: 0f b6 43 08 movzbl 0x8(%ebx),%eax <== NOT EXECUTED
129c0f: 8d 04 06 lea (%esi,%eax,1),%eax <== NOT EXECUTED
129c12: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum size =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_SIZE);
129c15: 8d 43 0c lea 0xc(%ebx),%eax <== NOT EXECUTED
129c18: 0f b6 78 03 movzbl 0x3(%eax),%edi <== NOT EXECUTED
129c1c: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
129c1f: 0f b6 70 02 movzbl 0x2(%eax),%esi <== NOT EXECUTED
129c23: 01 f7 add %esi,%edi <== NOT EXECUTED
129c25: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
129c28: 0f b6 70 01 movzbl 0x1(%eax),%esi <== NOT EXECUTED
129c2c: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
129c2f: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
129c32: 0f b6 43 0c movzbl 0xc(%ebx),%eax <== NOT EXECUTED
129c36: 01 c6 add %eax,%esi <== NOT EXECUTED
rtems_blkdev_bnum end = begin + size;
uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];
129c38: 8a 43 04 mov 0x4(%ebx),%al <== NOT EXECUTED
129c3b: 88 45 ef mov %al,-0x11(%ebp) <== NOT EXECUTED
if (type == RTEMS_BDPART_MBR_EMPTY) {
129c3e: 84 c0 test %al,%al <== NOT EXECUTED
129c40: 74 76 je 129cb8 <rtems_bdpart_read_mbr_partition+0xd4><== NOT EXECUTED
return RTEMS_SUCCESSFUL;
} else if (*p == p_end) {
129c42: 8b 02 mov (%edx),%eax <== NOT EXECUTED
129c44: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
129c46: 0f 84 94 00 00 00 je 129ce0 <rtems_bdpart_read_mbr_partition+0xfc><== 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;
129c4c: 03 75 f0 add -0x10(%ebp),%esi <== NOT EXECUTED
if (type == RTEMS_BDPART_MBR_EMPTY) {
return RTEMS_SUCCESSFUL;
} else if (*p == p_end) {
return RTEMS_TOO_MANY;
} else if (begin >= end) {
129c4f: 3b 75 f0 cmp -0x10(%ebp),%esi <== NOT EXECUTED
129c52: 76 54 jbe 129ca8 <rtems_bdpart_read_mbr_partition+0xc4><== NOT EXECUTED
return RTEMS_IO_ERROR;
} else if (type == RTEMS_BDPART_MBR_EXTENDED) {
129c54: 80 7d ef 05 cmpb $0x5,-0x11(%ebp) <== NOT EXECUTED
129c58: 74 6a je 129cc4 <rtems_bdpart_read_mbr_partition+0xe0><== NOT EXECUTED
if (ep_begin != NULL) {
*ep_begin = begin;
}
} else {
/* Increment partition index */
++(*p);
129c5a: 83 c0 30 add $0x30,%eax <== NOT EXECUTED
129c5d: 89 45 e8 mov %eax,-0x18(%ebp) <== NOT EXECUTED
129c60: 89 02 mov %eax,(%edx) <== NOT EXECUTED
/* Clear partition */
memset( *p, 0, sizeof( rtems_bdpart_partition));
129c62: b9 30 00 00 00 mov $0x30,%ecx <== NOT EXECUTED
129c67: 31 c0 xor %eax,%eax <== NOT EXECUTED
129c69: 8b 7d e8 mov -0x18(%ebp),%edi <== NOT EXECUTED
129c6c: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
/* Set values */
(*p)->begin = begin;
129c6e: 8b 02 mov (%edx),%eax <== NOT EXECUTED
129c70: 8b 4d f0 mov -0x10(%ebp),%ecx <== NOT EXECUTED
129c73: 89 08 mov %ecx,(%eax) <== NOT EXECUTED
(*p)->end = end;
129c75: 89 70 04 mov %esi,0x4(%eax) <== NOT EXECUTED
rtems_bdpart_to_partition_type( type, (*p)->type);
129c78: 83 c0 08 add $0x8,%eax <== NOT EXECUTED
129c7b: 50 push %eax <== NOT EXECUTED
129c7c: 0f b6 45 ef movzbl -0x11(%ebp),%eax <== NOT EXECUTED
129c80: 50 push %eax <== NOT EXECUTED
129c81: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
129c84: e8 3b ff ff ff call 129bc4 <rtems_bdpart_to_partition_type><== NOT EXECUTED
(*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];
129c89: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
129c8c: 8b 02 mov (%edx),%eax <== NOT EXECUTED
129c8e: 0f b6 13 movzbl (%ebx),%edx <== NOT EXECUTED
129c91: 89 50 28 mov %edx,0x28(%eax) <== NOT EXECUTED
129c94: c7 40 2c 00 00 00 00 movl $0x0,0x2c(%eax) <== NOT EXECUTED
129c9b: 31 c0 xor %eax,%eax <== NOT EXECUTED
129c9d: 5a pop %edx <== NOT EXECUTED
129c9e: 59 pop %ecx <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
129c9f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129ca2: 5b pop %ebx <== NOT EXECUTED
129ca3: 5e pop %esi <== NOT EXECUTED
129ca4: 5f pop %edi <== NOT EXECUTED
129ca5: c9 leave <== NOT EXECUTED
129ca6: c3 ret <== NOT EXECUTED
129ca7: 90 nop <== NOT EXECUTED
if (type == RTEMS_BDPART_MBR_EMPTY) {
return RTEMS_SUCCESSFUL;
} else if (*p == p_end) {
return RTEMS_TOO_MANY;
} else if (begin >= end) {
129ca8: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
rtems_bdpart_to_partition_type( type, (*p)->type);
(*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];
}
return RTEMS_SUCCESSFUL;
}
129cad: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129cb0: 5b pop %ebx <== NOT EXECUTED
129cb1: 5e pop %esi <== NOT EXECUTED
129cb2: 5f pop %edi <== NOT EXECUTED
129cb3: c9 leave <== NOT EXECUTED
129cb4: c3 ret <== NOT EXECUTED
129cb5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* Set values */
(*p)->begin = begin;
(*p)->end = end;
rtems_bdpart_to_partition_type( type, (*p)->type);
(*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];
129cb8: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
129cba: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129cbd: 5b pop %ebx <== NOT EXECUTED
129cbe: 5e pop %esi <== NOT EXECUTED
129cbf: 5f pop %edi <== NOT EXECUTED
129cc0: c9 leave <== NOT EXECUTED
129cc1: c3 ret <== NOT EXECUTED
129cc2: 66 90 xchg %ax,%ax <== NOT EXECUTED
} else if (*p == p_end) {
return RTEMS_TOO_MANY;
} else if (begin >= end) {
return RTEMS_IO_ERROR;
} else if (type == RTEMS_BDPART_MBR_EXTENDED) {
if (ep_begin != NULL) {
129cc4: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
129cc7: 85 db test %ebx,%ebx <== NOT EXECUTED
129cc9: 74 ed je 129cb8 <rtems_bdpart_read_mbr_partition+0xd4><== NOT EXECUTED
*ep_begin = begin;
129ccb: 8b 4d f0 mov -0x10(%ebp),%ecx <== NOT EXECUTED
129cce: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
129cd1: 89 0a mov %ecx,(%edx) <== NOT EXECUTED
129cd3: 31 c0 xor %eax,%eax <== NOT EXECUTED
rtems_bdpart_to_partition_type( type, (*p)->type);
(*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];
}
return RTEMS_SUCCESSFUL;
}
129cd5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129cd8: 5b pop %ebx <== NOT EXECUTED
129cd9: 5e pop %esi <== NOT EXECUTED
129cda: 5f pop %edi <== NOT EXECUTED
129cdb: c9 leave <== NOT EXECUTED
129cdc: c3 ret <== NOT EXECUTED
129cdd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_blkdev_bnum end = begin + size;
uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];
if (type == RTEMS_BDPART_MBR_EMPTY) {
return RTEMS_SUCCESSFUL;
} else if (*p == p_end) {
129ce0: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
129ce5: eb c6 jmp 129cad <rtems_bdpart_read_mbr_partition+0xc9><== NOT EXECUTED
00129ab4 <rtems_bdpart_read_record>:
static rtems_status_code rtems_bdpart_read_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
129ab4: 55 push %ebp <== NOT EXECUTED
129ab5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
129ab7: 57 push %edi <== NOT EXECUTED
129ab8: 56 push %esi <== NOT EXECUTED
129ab9: 53 push %ebx <== NOT EXECUTED
129aba: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
129abd: 89 c3 mov %eax,%ebx <== NOT EXECUTED
129abf: 89 d6 mov %edx,%esi <== NOT EXECUTED
129ac1: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Release previous block if necessary */
if (*block != NULL) {
129ac4: 8b 07 mov (%edi),%eax <== NOT EXECUTED
129ac6: 85 c0 test %eax,%eax <== NOT EXECUTED
129ac8: 74 16 je 129ae0 <rtems_bdpart_read_record+0x2c><== NOT EXECUTED
sc = rtems_bdbuf_release( *block);
129aca: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129acd: 50 push %eax <== NOT EXECUTED
129ace: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
129ad1: e8 a2 19 fe ff call 10b478 <rtems_bdbuf_release> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
129ad6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129ad9: 85 c0 test %eax,%eax <== NOT EXECUTED
129adb: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
129ade: 75 27 jne 129b07 <rtems_bdpart_read_record+0x53><== NOT EXECUTED
return sc;
}
}
/* Read the record block */
sc = rtems_bdbuf_read( disk, index, block);
129ae0: 57 push %edi <== NOT EXECUTED
129ae1: 51 push %ecx <== NOT EXECUTED
129ae2: 56 push %esi <== NOT EXECUTED
129ae3: 53 push %ebx <== NOT EXECUTED
129ae4: e8 0b 2a fe ff call 10c4f4 <rtems_bdbuf_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
129ae9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129aec: 85 c0 test %eax,%eax <== NOT EXECUTED
129aee: 75 17 jne 129b07 <rtems_bdpart_read_record+0x53><== NOT EXECUTED
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
129af0: 8b 17 mov (%edi),%edx <== NOT EXECUTED
129af2: 85 d2 test %edx,%edx <== NOT EXECUTED
129af4: 74 26 je 129b1c <rtems_bdpart_read_record+0x68><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
}
/* Check MBR signature */
if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {
129af6: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
static bool rtems_bdpart_is_valid_record( const uint8_t *data)
{
return data [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0]
129af9: 80 ba fe 01 00 00 55 cmpb $0x55,0x1fe(%edx) <== NOT EXECUTED
129b00: 74 0e je 129b10 <rtems_bdpart_read_record+0x5c><== NOT EXECUTED
129b02: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
129b07: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129b0a: 5b pop %ebx <== NOT EXECUTED
129b0b: 5e pop %esi <== NOT EXECUTED
129b0c: 5f pop %edi <== NOT EXECUTED
129b0d: c9 leave <== NOT EXECUTED
129b0e: c3 ret <== NOT EXECUTED
129b0f: 90 nop <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
static bool rtems_bdpart_is_valid_record( const uint8_t *data)
{
return data [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0]
129b10: 80 ba ff 01 00 00 aa cmpb $0xaa,0x1ff(%edx) <== NOT EXECUTED
129b17: 75 e9 jne 129b02 <rtems_bdpart_read_record+0x4e><== NOT EXECUTED
129b19: eb ec jmp 129b07 <rtems_bdpart_read_record+0x53><== NOT EXECUTED
129b1b: 90 nop <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
129b1c: b0 09 mov $0x9,%al <== NOT EXECUTED
129b1e: eb e7 jmp 129b07 <rtems_bdpart_read_record+0x53><== NOT EXECUTED
0010c84c <rtems_bdpart_register>:
rtems_status_code rtems_bdpart_register(
const char *disk_name,
const rtems_bdpart_partition *pt,
size_t count
)
{
10c84c: 55 push %ebp <== NOT EXECUTED
10c84d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10c84f: 57 push %edi <== NOT EXECUTED
10c850: 56 push %esi <== NOT EXECUTED
10c851: 53 push %ebx <== NOT EXECUTED
10c852: 83 ec 50 sub $0x50,%esp <== 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;
10c855: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
dev_t disk = 0;
10c85c: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
10c863: 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);
10c86a: 31 c0 xor %eax,%eax <== NOT EXECUTED
10c86c: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
10c871: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
10c874: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
10c876: 89 cb mov %ecx,%ebx <== NOT EXECUTED
10c878: f7 d3 not %ebx <== NOT EXECUTED
10c87a: 8d 73 ff lea -0x1(%ebx),%esi <== NOT EXECUTED
size_t i = 0;
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
10c87d: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10c880: 50 push %eax <== NOT EXECUTED
10c881: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
10c884: 50 push %eax <== NOT EXECUTED
10c885: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
10c888: e8 93 d2 01 00 call 129b20 <rtems_bdpart_get_disk_data><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
10c88d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10c890: 85 c0 test %eax,%eax <== NOT EXECUTED
10c892: 74 08 je 10c89c <rtems_bdpart_register+0x50><== NOT EXECUTED
cleanup:
free( logical_disk_name);
return esc;
}
10c894: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10c897: 5b pop %ebx <== NOT EXECUTED
10c898: 5e pop %esi <== NOT EXECUTED
10c899: 5f pop %edi <== NOT EXECUTED
10c89a: c9 leave <== NOT EXECUTED
10c89b: c3 ret <== NOT EXECUTED
)
{
union __rtems_dev_t temp;
temp.device = device;
return temp.__overlay.major;
10c89c: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
10c89f: 89 45 b8 mov %eax,-0x48(%ebp) <== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
10c8a2: 8b 7d dc mov -0x24(%ebp),%edi <== 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);
10c8a5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10c8a8: 83 c3 03 add $0x3,%ebx <== NOT EXECUTED
10c8ab: 53 push %ebx <== NOT EXECUTED
10c8ac: e8 57 25 00 00 call 10ee08 <malloc> <== NOT EXECUTED
10c8b1: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
if (logical_disk_name == NULL) {
10c8b4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10c8b7: 85 c0 test %eax,%eax <== NOT EXECUTED
10c8b9: 0f 84 ad 00 00 00 je 10c96c <rtems_bdpart_register+0x120><== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
strncpy( logical_disk_name, disk_name, disk_name_size);
10c8bf: 51 push %ecx <== NOT EXECUTED
10c8c0: 56 push %esi <== NOT EXECUTED
10c8c1: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
10c8c4: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
10c8c7: e8 14 fc 03 00 call 14c4e0 <strncpy> <== NOT EXECUTED
logical_disk_marker = logical_disk_name + disk_name_size;
10c8cc: 03 75 bc add -0x44(%ebp),%esi <== NOT EXECUTED
10c8cf: 89 75 b4 mov %esi,-0x4c(%ebp) <== NOT EXECUTED
/* Create a logical disk for each partition */
for (i = 0; i < count; ++i) {
10c8d2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10c8d5: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
10c8d8: 85 d2 test %edx,%edx <== NOT EXECUTED
10c8da: 0f 84 84 00 00 00 je 10c964 <rtems_bdpart_register+0x118><== NOT EXECUTED
10c8e0: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
10c8e3: 31 db xor %ebx,%ebx <== NOT EXECUTED
10c8e5: eb 2e jmp 10c915 <rtems_bdpart_register+0xc9><== NOT EXECUTED
10c8e7: 90 nop <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create logical disk */
sc = rtems_disk_create_log(
10c8e8: 8b 16 mov (%esi),%edx <== NOT EXECUTED
10c8ea: 50 push %eax <== NOT EXECUTED
10c8eb: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
10c8ee: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
10c8f1: 29 d0 sub %edx,%eax <== NOT EXECUTED
10c8f3: 50 push %eax <== NOT EXECUTED
10c8f4: 52 push %edx <== NOT EXECUTED
10c8f5: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
10c8f8: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
10c8fb: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
10c8fe: ff 75 c0 pushl -0x40(%ebp) <== NOT EXECUTED
10c901: e8 c6 0f 00 00 call 10d8cc <rtems_disk_create_log> <== NOT EXECUTED
disk,
p->begin,
p->end - p->begin,
logical_disk_name
);
if (sc != RTEMS_SUCCESSFUL) {
10c906: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10c909: 85 c0 test %eax,%eax <== NOT EXECUTED
10c90b: 75 5b jne 10c968 <rtems_bdpart_register+0x11c><== NOT EXECUTED
10c90d: 83 c6 30 add $0x30,%esi <== 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) {
10c910: 39 5d 10 cmp %ebx,0x10(%ebp) <== NOT EXECUTED
10c913: 76 4f jbe 10c964 <rtems_bdpart_register+0x118><== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
int rv = 0;
/* New minor number */
++minor;
10c915: 47 inc %edi <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
10c916: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
10c919: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
temp.__overlay.minor = _minor;
10c91c: 89 7d d4 mov %edi,-0x2c(%ebp) <== NOT EXECUTED
return temp.device;
10c91f: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
10c922: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
10c925: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
10c928: 89 55 c4 mov %edx,-0x3c(%ebp) <== 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);
10c92b: 43 inc %ebx <== NOT EXECUTED
10c92c: 53 push %ebx <== NOT EXECUTED
10c92d: 68 08 f5 15 00 push $0x15f508 <== NOT EXECUTED
10c932: 6a 04 push $0x4 <== NOT EXECUTED
10c934: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
10c937: e8 e4 f1 03 00 call 14bb20 <snprintf> <== NOT EXECUTED
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
10c93c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10c93f: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
10c942: 7e a4 jle 10c8e8 <rtems_bdpart_register+0x9c><== NOT EXECUTED
10c944: bb 03 00 00 00 mov $0x3,%ebx <== NOT EXECUTED
}
}
cleanup:
free( logical_disk_name);
10c949: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10c94c: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
10c94f: e8 14 1f 00 00 call 10e868 <free> <== NOT EXECUTED
10c954: 89 d8 mov %ebx,%eax <== NOT EXECUTED
return esc;
10c956: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10c959: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10c95c: 5b pop %ebx <== NOT EXECUTED
10c95d: 5e pop %esi <== NOT EXECUTED
10c95e: 5f pop %edi <== NOT EXECUTED
10c95f: c9 leave <== NOT EXECUTED
10c960: c3 ret <== NOT EXECUTED
10c961: 8d 76 00 lea 0x0(%esi),%esi <== 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) {
10c964: 31 db xor %ebx,%ebx <== NOT EXECUTED
10c966: eb e1 jmp 10c949 <rtems_bdpart_register+0xfd><== NOT EXECUTED
disk,
p->begin,
p->end - p->begin,
logical_disk_name
);
if (sc != RTEMS_SUCCESSFUL) {
10c968: 89 c3 mov %eax,%ebx <== NOT EXECUTED
10c96a: eb dd jmp 10c949 <rtems_bdpart_register+0xfd><== 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);
if (logical_disk_name == NULL) {
10c96c: b0 1a mov $0x1a,%al <== NOT EXECUTED
10c96e: e9 21 ff ff ff jmp 10c894 <rtems_bdpart_register+0x48><== NOT EXECUTED
0010c974 <rtems_bdpart_register_from_disk>:
return esc;
}
rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name)
{
10c974: 55 push %ebp <== NOT EXECUTED
10c975: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10c977: 56 push %esi <== NOT EXECUTED
10c978: 53 push %ebx <== NOT EXECUTED
10c979: 81 ec 20 03 00 00 sub $0x320,%esp <== NOT EXECUTED
10c97f: 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;
10c982: c7 45 f4 10 00 00 00 movl $0x10,-0xc(%ebp) <== NOT EXECUTED
/* Read partitions */
sc = rtems_bdpart_read( disk_name, &format, pt, &count);
10c989: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
10c98c: 50 push %eax <== NOT EXECUTED
10c98d: 8d b5 e0 fc ff ff lea -0x320(%ebp),%esi <== NOT EXECUTED
10c993: 56 push %esi <== NOT EXECUTED
10c994: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
10c997: 50 push %eax <== NOT EXECUTED
10c998: 53 push %ebx <== NOT EXECUTED
10c999: e8 4a d3 01 00 call 129ce8 <rtems_bdpart_read> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
10c99e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10c9a1: 85 c0 test %eax,%eax <== NOT EXECUTED
10c9a3: 75 0e jne 10c9b3 <rtems_bdpart_register_from_disk+0x3f><== NOT EXECUTED
return sc;
}
/* Register partitions */
return rtems_bdpart_register( disk_name, pt, count);
10c9a5: 50 push %eax <== NOT EXECUTED
10c9a6: ff 75 f4 pushl -0xc(%ebp) <== NOT EXECUTED
10c9a9: 56 push %esi <== NOT EXECUTED
10c9aa: 53 push %ebx <== NOT EXECUTED
10c9ab: e8 9c fe ff ff call 10c84c <rtems_bdpart_register> <== NOT EXECUTED
10c9b0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10c9b3: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10c9b6: 5b pop %ebx <== NOT EXECUTED
10c9b7: 5e pop %esi <== NOT EXECUTED
10c9b8: c9 leave <== NOT EXECUTED
10c9b9: c3 ret <== NOT EXECUTED
00129ba0 <rtems_bdpart_to_mbr_partition_type>:
bool rtems_bdpart_to_mbr_partition_type(
const uuid_t type,
uint8_t *mbr_type
)
{
129ba0: 55 push %ebp <== NOT EXECUTED
129ba1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
129ba3: 57 push %edi <== NOT EXECUTED
129ba4: 56 push %esi <== NOT EXECUTED
129ba5: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
*mbr_type = rtems_bdpart_mbr_partition_type( type);
129ba8: 8a 16 mov (%esi),%dl <== NOT EXECUTED
129baa: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
129bad: 88 10 mov %dl,(%eax) <== NOT EXECUTED
return memcmp(
129baf: 46 inc %esi <== NOT EXECUTED
129bb0: bf 30 41 16 00 mov $0x164130,%edi <== NOT EXECUTED
129bb5: b9 0f 00 00 00 mov $0xf,%ecx <== NOT EXECUTED
129bba: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NOT EXECUTED
129bbc: 0f 94 c0 sete %al <== NOT EXECUTED
type + 1,
RTEMS_BDPART_MBR_MASTER_TYPE + 1,
sizeof( uuid_t) - 1
) == 0;
}
129bbf: 5e pop %esi <== NOT EXECUTED
129bc0: 5f pop %edi <== NOT EXECUTED
129bc1: c9 leave <== NOT EXECUTED
129bc2: c3 ret <== NOT EXECUTED
00129bc4 <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)
{
129bc4: 55 push %ebp <== NOT EXECUTED
129bc5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
129bc7: 57 push %edi <== NOT EXECUTED
129bc8: 56 push %esi <== NOT EXECUTED
129bc9: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
type [0] = mbr_type;
129bcc: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
129bcf: 88 10 mov %dl,(%eax) <== NOT EXECUTED
memcpy( type + 1, RTEMS_BDPART_MBR_MASTER_TYPE + 1, sizeof( uuid_t) - 1);
129bd1: 40 inc %eax <== NOT EXECUTED
129bd2: be 30 41 16 00 mov $0x164130,%esi <== NOT EXECUTED
129bd7: b9 0f 00 00 00 mov $0xf,%ecx <== NOT EXECUTED
129bdc: 89 c7 mov %eax,%edi <== NOT EXECUTED
129bde: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
}
129be0: 5e pop %esi <== NOT EXECUTED
129be1: 5f pop %edi <== NOT EXECUTED
129be2: c9 leave <== NOT EXECUTED
129be3: c3 ret <== NOT EXECUTED
001297c8 <rtems_bdpart_unmount>:
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
1297c8: 55 push %ebp <== NOT EXECUTED
1297c9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1297cb: 57 push %edi <== NOT EXECUTED
1297cc: 56 push %esi <== NOT EXECUTED
1297cd: 53 push %ebx <== NOT EXECUTED
1297ce: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
1297d1: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
const char *disk_file_name = strrchr( disk_name, '/');
1297d4: 6a 2f push $0x2f <== NOT EXECUTED
1297d6: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1297d9: e8 82 33 02 00 call 14cb60 <strrchr> <== NOT EXECUTED
1297de: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1297e1: 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);
1297e3: 31 c0 xor %eax,%eax <== NOT EXECUTED
1297e5: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
1297ea: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
1297ed: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1297ef: f7 d1 not %ecx <== NOT EXECUTED
1297f1: 49 dec %ecx <== NOT EXECUTED
1297f2: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
1297f5: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
1297fa: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
1297fd: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1297ff: f7 d1 not %ecx <== NOT EXECUTED
129801: 8d 71 ff lea -0x1(%ecx),%esi <== NOT EXECUTED
size_t i = 0;
/* Get disk file name */
if (disk_file_name != NULL) {
129804: 85 d2 test %edx,%edx <== NOT EXECUTED
129806: 0f 84 dc 00 00 00 je 1298e8 <rtems_bdpart_unmount+0x120><== NOT EXECUTED
disk_file_name += 1;
12980c: 42 inc %edx <== NOT EXECUTED
12980d: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
disk_file_name_size = strlen( disk_file_name);
129810: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
129815: 89 d7 mov %edx,%edi <== NOT EXECUTED
129817: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
129819: f7 d1 not %ecx <== NOT EXECUTED
12981b: 49 dec %ecx <== NOT EXECUTED
12981c: 89 4d e0 mov %ecx,-0x20(%ebp) <== 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);
12981f: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
129822: 01 f2 add %esi,%edx <== NOT EXECUTED
129824: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
129827: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12982a: 89 d0 mov %edx,%eax <== NOT EXECUTED
12982c: 83 c0 05 add $0x5,%eax <== NOT EXECUTED
12982f: 50 push %eax <== NOT EXECUTED
129830: e8 d3 55 fe ff call 10ee08 <malloc> <== NOT EXECUTED
129835: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (mount_point == NULL) {
129837: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12983a: 85 c0 test %eax,%eax <== NOT EXECUTED
12983c: 0f 84 9e 00 00 00 je 1298e0 <rtems_bdpart_unmount+0x118><== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
129842: 50 push %eax <== NOT EXECUTED
129843: 56 push %esi <== NOT EXECUTED
129844: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
129847: 57 push %edi <== NOT EXECUTED
129848: e8 93 2c 02 00 call 14c4e0 <strncpy> <== NOT EXECUTED
mount_point [mount_base_size] = '/';
12984d: c6 04 37 2f movb $0x2f,(%edi,%esi,1) <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
129851: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
129854: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
129857: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
12985a: 8d 44 37 01 lea 0x1(%edi,%esi,1),%eax <== NOT EXECUTED
12985e: 50 push %eax <== NOT EXECUTED
12985f: e8 7c 2c 02 00 call 14c4e0 <strncpy> <== NOT EXECUTED
/* Marker */
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
129864: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
129867: 8d 44 17 01 lea 0x1(%edi,%edx,1),%eax <== NOT EXECUTED
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
12986b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12986e: 85 db test %ebx,%ebx <== NOT EXECUTED
129870: 74 4e je 1298c0 <rtems_bdpart_unmount+0xf8><== NOT EXECUTED
129872: 31 f6 xor %esi,%esi <== NOT EXECUTED
129874: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED
129877: 89 c3 mov %eax,%ebx <== NOT EXECUTED
129879: eb 06 jmp 129881 <rtems_bdpart_unmount+0xb9><== NOT EXECUTED
12987b: 90 nop <== NOT EXECUTED
12987c: 39 75 e4 cmp %esi,-0x1c(%ebp) <== NOT EXECUTED
12987f: 76 3f jbe 1298c0 <rtems_bdpart_unmount+0xf8><== NOT EXECUTED
/* Create mount point */
int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
129881: 46 inc %esi <== NOT EXECUTED
129882: 56 push %esi <== NOT EXECUTED
129883: 68 08 f5 15 00 push $0x15f508 <== NOT EXECUTED
129888: 6a 04 push $0x4 <== NOT EXECUTED
12988a: 53 push %ebx <== NOT EXECUTED
12988b: e8 90 22 02 00 call 14bb20 <snprintf> <== NOT EXECUTED
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
129890: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129893: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
129896: 7f 40 jg 1298d8 <rtems_bdpart_unmount+0x110><== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Unmount */
rv = unmount( mount_point);
129898: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12989b: 57 push %edi <== NOT EXECUTED
12989c: e8 bb 63 00 00 call 12fc5c <unmount> <== NOT EXECUTED
if (rv == 0) {
1298a1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1298a4: 85 c0 test %eax,%eax <== NOT EXECUTED
1298a6: 75 d4 jne 12987c <rtems_bdpart_unmount+0xb4><== NOT EXECUTED
/* Remove mount point */
rv = rmdir( mount_point);
1298a8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1298ab: 57 push %edi <== NOT EXECUTED
1298ac: e8 7b 5f 00 00 call 12f82c <rmdir> <== NOT EXECUTED
if (rv != 0) {
1298b1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1298b4: 85 c0 test %eax,%eax <== NOT EXECUTED
1298b6: 74 c4 je 12987c <rtems_bdpart_unmount+0xb4><== NOT EXECUTED
1298b8: bb 1b 00 00 00 mov $0x1b,%ebx <== NOT EXECUTED
1298bd: eb 03 jmp 1298c2 <rtems_bdpart_unmount+0xfa><== NOT EXECUTED
1298bf: 90 nop <== 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) {
1298c0: 31 db xor %ebx,%ebx <== NOT EXECUTED
}
}
cleanup:
free( mount_point);
1298c2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1298c5: 57 push %edi <== NOT EXECUTED
1298c6: e8 9d 4f fe ff call 10e868 <free> <== NOT EXECUTED
return esc;
}
1298cb: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1298cd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1298d0: 5b pop %ebx <== NOT EXECUTED
1298d1: 5e pop %esi <== NOT EXECUTED
1298d2: 5f pop %edi <== NOT EXECUTED
1298d3: c9 leave <== NOT EXECUTED
1298d4: c3 ret <== NOT EXECUTED
1298d5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
/* Create mount point */
int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
1298d8: bb 03 00 00 00 mov $0x3,%ebx <== NOT EXECUTED
1298dd: eb e3 jmp 1298c2 <rtems_bdpart_unmount+0xfa><== NOT EXECUTED
1298df: 90 nop <== NOT EXECUTED
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);
if (mount_point == NULL) {
1298e0: bb 1a 00 00 00 mov $0x1a,%ebx <== NOT EXECUTED
1298e5: eb db jmp 1298c2 <rtems_bdpart_unmount+0xfa><== NOT EXECUTED
1298e7: 90 nop <== NOT EXECUTED
size_t disk_name_size = strlen( disk_name);
size_t mount_base_size = strlen( mount_base);
size_t i = 0;
/* Get disk file name */
if (disk_file_name != NULL) {
1298e8: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1298eb: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
1298ee: e9 2c ff ff ff jmp 12981f <rtems_bdpart_unmount+0x57><== NOT EXECUTED
0010c7d4 <rtems_bdpart_unregister>:
rtems_status_code rtems_bdpart_unregister(
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count
)
{
10c7d4: 55 push %ebp <== NOT EXECUTED
10c7d5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10c7d7: 57 push %edi <== NOT EXECUTED
10c7d8: 56 push %esi <== NOT EXECUTED
10c7d9: 53 push %ebx <== NOT EXECUTED
10c7da: 83 ec 40 sub $0x40,%esp <== NOT EXECUTED
10c7dd: 8b 7d 10 mov 0x10(%ebp),%edi <== 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;
10c7e0: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
dev_t disk = 0;
10c7e7: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
10c7ee: 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);
10c7f5: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
10c7f8: 50 push %eax <== NOT EXECUTED
10c7f9: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
10c7fc: 50 push %eax <== NOT EXECUTED
10c7fd: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
10c800: e8 1b d3 01 00 call 129b20 <rtems_bdpart_get_disk_data><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
10c805: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10c808: 85 c0 test %eax,%eax <== NOT EXECUTED
10c80a: 75 38 jne 10c844 <rtems_bdpart_unregister+0x70><== NOT EXECUTED
return temp.__overlay.major;
10c80c: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
10c80f: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
10c812: 8b 5d dc mov -0x24(%ebp),%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) {
10c815: 85 ff test %edi,%edi <== NOT EXECUTED
10c817: 74 2b je 10c844 <rtems_bdpart_unregister+0x70><== NOT EXECUTED
10c819: 31 f6 xor %esi,%esi <== NOT EXECUTED
10c81b: eb 08 jmp 10c825 <rtems_bdpart_unregister+0x51><== NOT EXECUTED
10c81d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
10c820: 46 inc %esi <== NOT EXECUTED
10c821: 39 f7 cmp %esi,%edi <== NOT EXECUTED
10c823: 76 1f jbe 10c844 <rtems_bdpart_unregister+0x70><== NOT EXECUTED
/* New minor number */
++minor;
10c825: 43 inc %ebx <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
10c826: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
10c829: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
temp.__overlay.minor = _minor;
10c82c: 89 5d d4 mov %ebx,-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);
10c82f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10c832: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
10c835: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
10c838: e8 9f 0c 00 00 call 10d4dc <rtems_disk_delete> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
10c83d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10c840: 85 c0 test %eax,%eax <== NOT EXECUTED
10c842: 74 dc je 10c820 <rtems_bdpart_unregister+0x4c><== NOT EXECUTED
return sc;
}
}
return RTEMS_SUCCESSFUL;
}
10c844: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10c847: 5b pop %ebx <== NOT EXECUTED
10c848: 5e pop %esi <== NOT EXECUTED
10c849: 5f pop %edi <== NOT EXECUTED
10c84a: c9 leave <== NOT EXECUTED
10c84b: c3 ret <== NOT EXECUTED
0012a03c <rtems_bdpart_write>:
const char *disk_name,
const rtems_bdpart_format *format,
const rtems_bdpart_partition *pt,
size_t count
)
{
12a03c: 55 push %ebp <== NOT EXECUTED
12a03d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12a03f: 57 push %edi <== NOT EXECUTED
12a040: 56 push %esi <== NOT EXECUTED
12a041: 53 push %ebx <== NOT EXECUTED
12a042: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
12a045: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
12a048: 85 db test %ebx,%ebx <== NOT EXECUTED
12a04a: 74 0a je 12a056 <rtems_bdpart_write+0x1a><== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
12a04c: 8b 3b mov (%ebx),%edi <== NOT EXECUTED
12a04e: 85 ff test %edi,%edi <== NOT EXECUTED
12a050: 0f 84 96 01 00 00 je 12a1ec <rtems_bdpart_write+0x1b0><== NOT EXECUTED
&& format->mbr.dos_compatibility;
rtems_bdbuf_buffer *block = NULL;
12a056: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum disk_end = 0;
12a05d: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
12a064: c6 45 bc 00 movb $0x0,-0x44(%ebp) <== NOT EXECUTED
12a068: c7 45 c0 01 00 00 00 movl $0x1,-0x40(%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) {
12a06f: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
12a072: 85 f6 test %esi,%esi <== NOT EXECUTED
12a074: 0f 84 a0 01 00 00 je 12a21a <rtems_bdpart_write+0x1de><== NOT EXECUTED
/* Nothing to do */
return RTEMS_SUCCESSFUL;
}
/* Check parameter */
if (format == NULL || pt == NULL) {
12a07a: 85 db test %ebx,%ebx <== NOT EXECUTED
12a07c: 0f 84 b6 01 00 00 je 12a238 <rtems_bdpart_write+0x1fc><== NOT EXECUTED
12a082: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
12a085: 85 c9 test %ecx,%ecx <== NOT EXECUTED
12a087: 0f 84 ab 01 00 00 je 12a238 <rtems_bdpart_write+0x1fc><== 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;
12a08d: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
12a094: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%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);
12a09b: 52 push %edx <== NOT EXECUTED
12a09c: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
12a09f: 50 push %eax <== NOT EXECUTED
12a0a0: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
12a0a3: 50 push %eax <== NOT EXECUTED
12a0a4: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12a0a7: e8 74 fa ff ff call 129b20 <rtems_bdpart_get_disk_data><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
12a0ac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12a0af: 85 c0 test %eax,%eax <== NOT EXECUTED
12a0b1: 0f 85 65 01 00 00 jne 12a21c <rtems_bdpart_write+0x1e0><== NOT EXECUTED
return sc;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
12a0b7: 80 7d bc 00 cmpb $0x0,-0x44(%ebp) <== NOT EXECUTED
12a0bb: 0f 85 63 01 00 00 jne 12a224 <rtems_bdpart_write+0x1e8><== NOT EXECUTED
12a0c1: 8b 7d dc mov -0x24(%ebp),%edi <== 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) {
12a0c4: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
12a0c7: 8b 00 mov (%eax),%eax <== NOT EXECUTED
12a0c9: 89 45 b8 mov %eax,-0x48(%ebp) <== NOT EXECUTED
12a0cc: 39 f8 cmp %edi,%eax <== NOT EXECUTED
12a0ce: 0f 83 74 01 00 00 jae 12a248 <rtems_bdpart_write+0x20c><== NOT EXECUTED
12a0d4: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
12a0d7: 8b 42 04 mov 0x4(%edx),%eax <== NOT EXECUTED
12a0da: 39 f8 cmp %edi,%eax <== NOT EXECUTED
12a0dc: 0f 87 66 01 00 00 ja 12a248 <rtems_bdpart_write+0x20c><== NOT EXECUTED
esc = RTEMS_INVALID_NUMBER;
goto cleanup;
}
/* Check that begin and end are valid */
if (p->begin >= p->end) {
12a0e2: 3b 45 b8 cmp -0x48(%ebp),%eax <== NOT EXECUTED
12a0e5: 0f 86 5d 01 00 00 jbe 12a248 <rtems_bdpart_write+0x20c><== NOT EXECUTED
12a0eb: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
12a0ee: 89 d0 mov %edx,%eax <== NOT EXECUTED
12a0f0: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
12a0f2: 89 5d b4 mov %ebx,-0x4c(%ebp) <== NOT EXECUTED
12a0f5: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
12a0f8: eb 2c jmp 12a126 <rtems_bdpart_write+0xea><== NOT EXECUTED
12a0fa: 66 90 xchg %ax,%ax <== 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) {
12a0fc: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
12a0ff: 39 fa cmp %edi,%edx <== NOT EXECUTED
12a101: 0f 83 41 01 00 00 jae 12a248 <rtems_bdpart_write+0x20c><== NOT EXECUTED
12a107: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
12a10a: 39 fb cmp %edi,%ebx <== NOT EXECUTED
12a10c: 0f 87 36 01 00 00 ja 12a248 <rtems_bdpart_write+0x20c><== NOT EXECUTED
esc = RTEMS_INVALID_NUMBER;
goto cleanup;
}
/* Check that begin and end are valid */
if (p->begin >= p->end) {
12a112: 39 da cmp %ebx,%edx <== NOT EXECUTED
12a114: 0f 83 2e 01 00 00 jae 12a248 <rtems_bdpart_write+0x20c><== NOT EXECUTED
esc = RTEMS_INVALID_NUMBER;
goto cleanup;
}
/* Check that partitions do not overlap */
if (i > 0 && pt [i - 1].end > p->begin) {
12a11a: 3b 50 04 cmp 0x4(%eax),%edx <== NOT EXECUTED
12a11d: 0f 82 25 01 00 00 jb 12a248 <rtems_bdpart_write+0x20c><== NOT EXECUTED
12a123: 83 c0 30 add $0x30,%eax <== 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) {
12a126: 41 inc %ecx <== NOT EXECUTED
12a127: 39 ce cmp %ecx,%esi <== NOT EXECUTED
12a129: 77 d1 ja 12a0fc <rtems_bdpart_write+0xc0><== NOT EXECUTED
12a12b: 8b 5d b4 mov -0x4c(%ebp),%ebx <== NOT EXECUTED
goto cleanup;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
12a12e: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
12a130: 85 c0 test %eax,%eax <== NOT EXECUTED
12a132: 0f 85 38 01 00 00 jne 12a270 <rtems_bdpart_write+0x234><== 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;
12a138: 83 7d 14 04 cmpl $0x4,0x14(%ebp) <== NOT EXECUTED
12a13c: 0f 87 ea 03 00 00 ja 12a52c <rtems_bdpart_write+0x4f0><== NOT EXECUTED
12a142: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
12a145: 89 4d b4 mov %ecx,-0x4c(%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) {
12a148: 80 7d bc 00 cmpb $0x0,-0x44(%ebp) <== NOT EXECUTED
12a14c: 74 0a je 12a158 <rtems_bdpart_write+0x11c><== NOT EXECUTED
12a14e: 83 7d b8 3f cmpl $0x3f,-0x48(%ebp) <== NOT EXECUTED
12a152: 0f 85 f0 00 00 00 jne 12a248 <rtems_bdpart_write+0x20c><== 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) {
12a158: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
12a15b: 39 75 b4 cmp %esi,-0x4c(%ebp) <== NOT EXECUTED
12a15e: 73 54 jae 12a1b4 <rtems_bdpart_write+0x178><== NOT EXECUTED
if ((pt [i].begin - pt [i - 1].end) < record_space) {
12a160: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
12a163: 8d 04 7f lea (%edi,%edi,2),%eax <== NOT EXECUTED
12a166: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
12a169: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
12a16c: 01 c1 add %eax,%ecx <== NOT EXECUTED
12a16e: 8d 54 7f fd lea -0x3(%edi,%edi,2),%edx <== NOT EXECUTED
12a172: c1 e2 04 shl $0x4,%edx <== NOT EXECUTED
12a175: 8b 01 mov (%ecx),%eax <== NOT EXECUTED
12a177: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
12a17a: 2b 44 16 04 sub 0x4(%esi,%edx,1),%eax <== NOT EXECUTED
12a17e: 39 45 c0 cmp %eax,-0x40(%ebp) <== NOT EXECUTED
12a181: 0f 87 c1 00 00 00 ja 12a248 <rtems_bdpart_write+0x20c><== NOT EXECUTED
12a187: 8d 54 7f 03 lea 0x3(%edi,%edi,2),%edx <== NOT EXECUTED
12a18b: c1 e2 04 shl $0x4,%edx <== NOT EXECUTED
12a18e: 01 f2 add %esi,%edx <== NOT EXECUTED
12a190: 83 c1 04 add $0x4,%ecx <== NOT EXECUTED
12a193: 89 fe mov %edi,%esi <== NOT EXECUTED
12a195: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
12a198: eb 15 jmp 12a1af <rtems_bdpart_write+0x173><== NOT EXECUTED
12a19a: 66 90 xchg %ax,%ax <== NOT EXECUTED
12a19c: 8b 02 mov (%edx),%eax <== NOT EXECUTED
12a19e: 2b 01 sub (%ecx),%eax <== NOT EXECUTED
12a1a0: 83 c2 30 add $0x30,%edx <== NOT EXECUTED
12a1a3: 83 c1 30 add $0x30,%ecx <== NOT EXECUTED
12a1a6: 39 45 c0 cmp %eax,-0x40(%ebp) <== NOT EXECUTED
12a1a9: 0f 87 99 00 00 00 ja 12a248 <rtems_bdpart_write+0x20c><== 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) {
12a1af: 46 inc %esi <== NOT EXECUTED
12a1b0: 39 f7 cmp %esi,%edi <== NOT EXECUTED
12a1b2: 77 e8 ja 12a19c <rtems_bdpart_write+0x160><== NOT EXECUTED
12a1b4: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
12a1b7: 31 ff xor %edi,%edi <== NOT EXECUTED
12a1b9: 89 5d bc mov %ebx,-0x44(%ebp) <== NOT EXECUTED
12a1bc: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED
12a1bf: 90 nop <== NOT EXECUTED
}
}
/* Check that we can convert the parition descriptions to the MBR format */
for (i = 0; i < count; ++i) {
uint8_t type = 0;
12a1c0: 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)) {
12a1c4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12a1c7: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
12a1ca: 50 push %eax <== NOT EXECUTED
12a1cb: 8d 46 08 lea 0x8(%esi),%eax <== NOT EXECUTED
12a1ce: 50 push %eax <== NOT EXECUTED
12a1cf: e8 cc f9 ff ff call 129ba0 <rtems_bdpart_to_mbr_partition_type><== NOT EXECUTED
12a1d4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12a1d7: 84 c0 test %al,%al <== NOT EXECUTED
12a1d9: 74 0a je 12a1e5 <rtems_bdpart_write+0x1a9><== NOT EXECUTED
esc = RTEMS_INVALID_ID;
goto cleanup;
}
/* Check flags */
if (p->flags > 0xffU) {
12a1db: 83 7e 2c 00 cmpl $0x0,0x2c(%esi) <== NOT EXECUTED
12a1df: 0f 86 93 00 00 00 jbe 12a278 <rtems_bdpart_write+0x23c><== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
12a1e5: bb 04 00 00 00 mov $0x4,%ebx <== NOT EXECUTED
12a1ea: eb 61 jmp 12a24d <rtems_bdpart_write+0x211><== 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;
12a1ec: 80 7b 08 00 cmpb $0x0,0x8(%ebx) <== NOT EXECUTED
12a1f0: 0f 84 60 fe ff ff je 12a056 <rtems_bdpart_write+0x1a><== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
12a1f6: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum disk_end = 0;
12a1fd: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
12a204: c6 45 bc 01 movb $0x1,-0x44(%ebp) <== NOT EXECUTED
12a208: c7 45 c0 3f 00 00 00 movl $0x3f,-0x40(%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) {
12a20f: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
12a212: 85 f6 test %esi,%esi <== NOT EXECUTED
12a214: 0f 85 60 fe ff ff jne 12a07a <rtems_bdpart_write+0x3e><== NOT EXECUTED
12a21a: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (block != NULL) {
rtems_bdbuf_sync( block);
}
return esc;
}
12a21c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a21f: 5b pop %ebx <== NOT EXECUTED
12a220: 5e pop %esi <== NOT EXECUTED
12a221: 5f pop %edi <== NOT EXECUTED
12a222: c9 leave <== NOT EXECUTED
12a223: c3 ret <== NOT EXECUTED
return sc;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
disk_end -= (disk_end % record_space);
12a224: 8b 7d dc mov -0x24(%ebp),%edi <== NOT EXECUTED
12a227: 89 f8 mov %edi,%eax <== NOT EXECUTED
12a229: 31 d2 xor %edx,%edx <== NOT EXECUTED
12a22b: f7 75 c0 divl -0x40(%ebp) <== NOT EXECUTED
12a22e: 29 d7 sub %edx,%edi <== NOT EXECUTED
12a230: 89 7d dc mov %edi,-0x24(%ebp) <== NOT EXECUTED
12a233: e9 8c fe ff ff jmp 12a0c4 <rtems_bdpart_write+0x88><== NOT EXECUTED
}
cleanup:
if (block != NULL) {
rtems_bdbuf_sync( block);
12a238: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED
}
return esc;
}
12a23d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a240: 5b pop %ebx <== NOT EXECUTED
12a241: 5e pop %esi <== NOT EXECUTED
12a242: 5f pop %edi <== NOT EXECUTED
12a243: c9 leave <== NOT EXECUTED
12a244: c3 ret <== NOT EXECUTED
12a245: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
12a248: bb 0a 00 00 00 mov $0xa,%ebx <== NOT EXECUTED
}
}
cleanup:
if (block != NULL) {
12a24d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12a250: 85 c0 test %eax,%eax <== NOT EXECUTED
12a252: 74 18 je 12a26c <rtems_bdpart_write+0x230><== NOT EXECUTED
rtems_bdbuf_sync( block);
12a254: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12a257: 50 push %eax <== NOT EXECUTED
12a258: e8 23 1b fe ff call 10bd80 <rtems_bdbuf_sync> <== NOT EXECUTED
12a25d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12a25f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return esc;
}
12a262: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12a265: 5b pop %ebx <== NOT EXECUTED
12a266: 5e pop %esi <== NOT EXECUTED
12a267: 5f pop %edi <== NOT EXECUTED
12a268: c9 leave <== NOT EXECUTED
12a269: c3 ret <== NOT EXECUTED
12a26a: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
}
cleanup:
if (block != NULL) {
12a26c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12a26e: eb ac jmp 12a21c <rtems_bdpart_write+0x1e0><== NOT EXECUTED
goto cleanup;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
12a270: bb 18 00 00 00 mov $0x18,%ebx <== NOT EXECUTED
12a275: eb d6 jmp 12a24d <rtems_bdpart_write+0x211><== NOT EXECUTED
12a277: 90 nop <== NOT EXECUTED
esc = RTEMS_INVALID_ID;
goto cleanup;
}
/* Check flags */
if (p->flags > 0xffU) {
12a278: 81 7e 28 ff 00 00 00 cmpl $0xff,0x28(%esi) <== NOT EXECUTED
12a27f: 0f 87 60 ff ff ff ja 12a1e5 <rtems_bdpart_write+0x1a9><== NOT EXECUTED
goto cleanup;
}
}
/* Check that we can convert the parition descriptions to the MBR format */
for (i = 0; i < count; ++i) {
12a285: 47 inc %edi <== NOT EXECUTED
12a286: 83 c6 30 add $0x30,%esi <== NOT EXECUTED
12a289: 39 fb cmp %edi,%ebx <== NOT EXECUTED
12a28b: 0f 87 2f ff ff ff ja 12a1c0 <rtems_bdpart_write+0x184><== NOT EXECUTED
12a291: 8b 5d bc mov -0x44(%ebp),%ebx <== NOT EXECUTED
/* Check ID */
/* TODO */
}
/* New MBR */
sc = rtems_bdpart_new_record( disk, 0, &block);
12a294: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12a297: 8d 55 e0 lea -0x20(%ebp),%edx <== NOT EXECUTED
12a29a: 52 push %edx <== NOT EXECUTED
12a29b: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
12a29d: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
12a2a0: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
12a2a3: e8 14 fd ff ff call 129fbc <rtems_bdpart_new_record><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
12a2a8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12a2ab: 85 c0 test %eax,%eax <== NOT EXECUTED
12a2ad: 0f 85 85 02 00 00 jne 12a538 <rtems_bdpart_write+0x4fc><== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write disk ID */
rtems_uint32_to_little_endian(
12a2b3: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12a2b6: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
12a2b9: 8d 81 b8 01 00 00 lea 0x1b8(%ecx),%eax <== NOT EXECUTED
12a2bf: 8b 53 04 mov 0x4(%ebx),%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;
12a2c2: 88 91 b8 01 00 00 mov %dl,0x1b8(%ecx) <== NOT EXECUTED
value >>= 8;
12a2c8: 89 d1 mov %edx,%ecx <== NOT EXECUTED
12a2ca: 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;
12a2cd: 88 48 01 mov %cl,0x1(%eax) <== NOT EXECUTED
value >>= 8;
12a2d0: 89 d1 mov %edx,%ecx <== NOT EXECUTED
12a2d2: 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;
12a2d5: 88 48 02 mov %cl,0x2(%eax) <== NOT EXECUTED
12a2d8: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
12a2db: 88 50 03 mov %dl,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;
12a2de: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12a2e1: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
12a2e4: 05 be 01 00 00 add $0x1be,%eax <== NOT EXECUTED
12a2e9: 89 45 ac mov %eax,-0x54(%ebp) <== NOT EXECUTED
12a2ec: 31 ff xor %edi,%edi <== NOT EXECUTED
12a2ee: 89 7d a4 mov %edi,-0x5c(%ebp) <== NOT EXECUTED
12a2f1: 8b 4d b0 mov -0x50(%ebp),%ecx <== 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
12a2f4: 8b 59 28 mov 0x28(%ecx),%ebx <== NOT EXECUTED
12a2f7: 89 5d b8 mov %ebx,-0x48(%ebp) <== NOT EXECUTED
static inline uint8_t rtems_bdpart_mbr_partition_type(
const uuid_t type
)
{
return type [0];
12a2fa: 0f b6 71 08 movzbl 0x8(%ecx),%esi <== 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(
12a2fe: 8b 51 04 mov 0x4(%ecx),%edx <== NOT EXECUTED
12a301: 8b 19 mov (%ecx),%ebx <== NOT EXECUTED
12a303: 89 5d c4 mov %ebx,-0x3c(%ebp) <== NOT EXECUTED
12a306: 88 58 08 mov %bl,0x8(%eax) <== NOT EXECUTED
value >>= 8;
12a309: 8b 7d c4 mov -0x3c(%ebp),%edi <== NOT EXECUTED
12a30c: c1 ef 08 shr $0x8,%edi <== NOT EXECUTED
12a30f: 89 7d bc mov %edi,-0x44(%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;
12a312: 8a 5d bc mov -0x44(%ebp),%bl <== NOT EXECUTED
12a315: 88 58 09 mov %bl,0x9(%eax) <== NOT EXECUTED
value >>= 8;
12a318: 8b 7d c4 mov -0x3c(%ebp),%edi <== NOT EXECUTED
12a31b: 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;
12a31e: 89 fb mov %edi,%ebx <== NOT EXECUTED
12a320: 88 58 0a mov %bl,0xa(%eax) <== NOT EXECUTED
12a323: 8b 7d c4 mov -0x3c(%ebp),%edi <== NOT EXECUTED
12a326: c1 ef 18 shr $0x18,%edi <== NOT EXECUTED
12a329: 89 fb mov %edi,%ebx <== NOT EXECUTED
12a32b: 88 58 0b mov %bl,0xb(%eax) <== NOT EXECUTED
12a32e: 2b 55 c4 sub -0x3c(%ebp),%edx <== NOT EXECUTED
12a331: 88 50 0c mov %dl,0xc(%eax) <== NOT EXECUTED
value >>= 8;
12a334: 89 d3 mov %edx,%ebx <== NOT EXECUTED
12a336: 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;
12a339: 88 58 0d mov %bl,0xd(%eax) <== NOT EXECUTED
value >>= 8;
12a33c: 89 d3 mov %edx,%ebx <== NOT EXECUTED
12a33e: 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;
12a341: 88 58 0e mov %bl,0xe(%eax) <== NOT EXECUTED
12a344: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
12a347: 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;
12a34a: 89 f2 mov %esi,%edx <== NOT EXECUTED
12a34c: 88 50 04 mov %dl,0x4(%eax) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
12a34f: 8a 5d b8 mov -0x48(%ebp),%bl <== NOT EXECUTED
12a352: 88 18 mov %bl,(%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;
12a354: 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) {
12a357: ff 45 a4 incl -0x5c(%ebp) <== NOT EXECUTED
12a35a: 83 c1 30 add $0x30,%ecx <== NOT EXECUTED
12a35d: 8b 75 a4 mov -0x5c(%ebp),%esi <== NOT EXECUTED
12a360: 39 75 b4 cmp %esi,-0x4c(%ebp) <== NOT EXECUTED
12a363: 77 8f ja 12a2f4 <rtems_bdpart_write+0x2b8><== NOT EXECUTED
12a365: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
12a368: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
12a36b: 03 45 ac add -0x54(%ebp),%eax <== NOT EXECUTED
data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;
}
/* Write extended partition with logical partitions if necessary */
if (ppc != count) {
12a36e: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
12a371: 39 7d b4 cmp %edi,-0x4c(%ebp) <== NOT EXECUTED
12a374: 0f 84 c5 01 00 00 je 12a53f <rtems_bdpart_write+0x503><== 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;
12a37a: 6b 5d b4 30 imul $0x30,-0x4c(%ebp),%ebx <== NOT EXECUTED
12a37e: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
12a381: 8d 3c 13 lea (%ebx,%edx,1),%edi <== NOT EXECUTED
12a384: 8b 0f mov (%edi),%ecx <== NOT EXECUTED
12a386: 8b 5d c0 mov -0x40(%ebp),%ebx <== NOT EXECUTED
12a389: 29 d9 sub %ebx,%ecx <== NOT EXECUTED
12a38b: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
/* Write extended partition */
rtems_bdpart_write_mbr_partition(
12a38e: 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);
12a391: 8d 48 08 lea 0x8(%eax),%ecx <== NOT EXECUTED
12a394: 8a 5d b8 mov -0x48(%ebp),%bl <== NOT EXECUTED
12a397: 88 58 08 mov %bl,0x8(%eax) <== NOT EXECUTED
value >>= 8;
12a39a: 8b 75 b8 mov -0x48(%ebp),%esi <== NOT EXECUTED
12a39d: c1 ee 08 shr $0x8,%esi <== 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;
12a3a0: 89 f3 mov %esi,%ebx <== NOT EXECUTED
12a3a2: 88 59 01 mov %bl,0x1(%ecx) <== NOT EXECUTED
value >>= 8;
12a3a5: 8b 75 b8 mov -0x48(%ebp),%esi <== NOT EXECUTED
12a3a8: c1 ee 10 shr $0x10,%esi <== 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;
12a3ab: 89 f3 mov %esi,%ebx <== NOT EXECUTED
12a3ad: 88 59 02 mov %bl,0x2(%ecx) <== NOT EXECUTED
12a3b0: 8b 75 b8 mov -0x48(%ebp),%esi <== NOT EXECUTED
12a3b3: c1 ee 18 shr $0x18,%esi <== NOT EXECUTED
12a3b6: 89 f3 mov %esi,%ebx <== NOT EXECUTED
12a3b8: 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(
12a3bb: 2b 55 b8 sub -0x48(%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);
12a3be: 8d 48 0c lea 0xc(%eax),%ecx <== NOT EXECUTED
12a3c1: 88 50 0c mov %dl,0xc(%eax) <== NOT EXECUTED
value >>= 8;
12a3c4: 89 d6 mov %edx,%esi <== NOT EXECUTED
12a3c6: c1 ee 08 shr $0x8,%esi <== 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;
12a3c9: 89 f3 mov %esi,%ebx <== NOT EXECUTED
12a3cb: 88 59 01 mov %bl,0x1(%ecx) <== NOT EXECUTED
value >>= 8;
12a3ce: 89 d6 mov %edx,%esi <== NOT EXECUTED
12a3d0: c1 ee 10 shr $0x10,%esi <== 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;
12a3d3: 89 f3 mov %esi,%ebx <== NOT EXECUTED
12a3d5: 88 59 02 mov %bl,0x2(%ecx) <== NOT EXECUTED
12a3d8: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
12a3db: 88 51 03 mov %dl,0x3(%ecx) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
12a3de: c6 40 04 05 movb $0x5,0x4(%eax) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
12a3e2: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
12a3e5: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
12a3e8: 39 75 b4 cmp %esi,-0x4c(%ebp) <== NOT EXECUTED
12a3eb: 0f 83 4e 01 00 00 jae 12a53f <rtems_bdpart_write+0x503><== 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;
12a3f1: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
12a3f4: 40 inc %eax <== NOT EXECUTED
12a3f5: 6b c0 30 imul $0x30,%eax,%eax <== NOT EXECUTED
12a3f8: 03 45 10 add 0x10(%ebp),%eax <== NOT EXECUTED
12a3fb: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
12a3fe: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
12a401: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
12a404: 89 fb mov %edi,%ebx <== NOT EXECUTED
);
}
/* New EBR */
ebr = p->begin - record_space;
sc = rtems_bdpart_new_record( disk, ebr, &block);
12a406: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12a409: 8b 0b mov (%ebx),%ecx <== NOT EXECUTED
12a40b: 2b 4d c0 sub -0x40(%ebp),%ecx <== NOT EXECUTED
12a40e: 8d 75 e0 lea -0x20(%ebp),%esi <== NOT EXECUTED
12a411: 56 push %esi <== NOT EXECUTED
12a412: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
12a415: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
12a418: e8 9f fb ff ff call 129fbc <rtems_bdpart_new_record><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
12a41d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12a420: 85 c0 test %eax,%eax <== NOT EXECUTED
12a422: 0f 85 10 01 00 00 jne 12a538 <rtems_bdpart_write+0x4fc><== 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
12a428: 8b 73 28 mov 0x28(%ebx),%esi <== NOT EXECUTED
12a42b: 0f b6 7b 08 movzbl 0x8(%ebx),%edi <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
12a42f: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
12a432: 89 45 ac mov %eax,-0x54(%ebp) <== NOT EXECUTED
12a435: 8b 1b mov (%ebx),%ebx <== NOT EXECUTED
12a437: 89 5d b0 mov %ebx,-0x50(%ebp) <== NOT EXECUTED
12a43a: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12a43d: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
12a440: 8d 99 be 01 00 00 lea 0x1be(%ecx),%ebx <== NOT EXECUTED
12a446: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
12a449: 31 c0 xor %eax,%eax <== NOT EXECUTED
12a44b: 88 94 01 c6 01 00 00 mov %dl,0x1c6(%ecx,%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) {
12a452: 40 inc %eax <== NOT EXECUTED
12a453: 31 d2 xor %edx,%edx <== NOT EXECUTED
12a455: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED
12a458: 75 f1 jne 12a44b <rtems_bdpart_write+0x40f><== NOT EXECUTED
12a45a: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
12a45d: 2b 55 b0 sub -0x50(%ebp),%edx <== NOT EXECUTED
12a460: 89 55 ac mov %edx,-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);
12a463: 8d 53 0c lea 0xc(%ebx),%edx <== NOT EXECUTED
data [i] = (uint8_t) value;
12a466: 8a 45 ac mov -0x54(%ebp),%al <== NOT EXECUTED
12a469: 88 43 0c mov %al,0xc(%ebx) <== NOT EXECUTED
value >>= 8;
12a46c: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
12a46f: 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;
12a472: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
value >>= 8;
12a475: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
12a478: 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;
12a47b: 88 42 02 mov %al,0x2(%edx) <== NOT EXECUTED
12a47e: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
12a481: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
12a484: 88 42 03 mov %al,0x3(%edx) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
12a487: 89 fa mov %edi,%edx <== NOT EXECUTED
12a489: 88 53 04 mov %dl,0x4(%ebx) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
12a48c: 89 f3 mov %esi,%ebx <== NOT EXECUTED
12a48e: 88 99 be 01 00 00 mov %bl,0x1be(%ecx) <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
12a494: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
12a497: 8b 75 c4 mov -0x3c(%ebp),%esi <== NOT EXECUTED
12a49a: 39 75 14 cmp %esi,0x14(%ebp) <== NOT EXECUTED
12a49d: 0f 86 9c 00 00 00 jbe 12a53f <rtems_bdpart_write+0x503><== NOT EXECUTED
12a4a3: 8b 5d bc mov -0x44(%ebp),%ebx <== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
/* Write second partition entry */
if (i > ppc) {
12a4a6: 8b 7d c4 mov -0x3c(%ebp),%edi <== NOT EXECUTED
12a4a9: 39 7d b4 cmp %edi,-0x4c(%ebp) <== NOT EXECUTED
12a4ac: 73 75 jae 12a523 <rtems_bdpart_write+0x4e7><== NOT EXECUTED
rtems_blkdev_bnum begin = p->begin - record_space;
12a4ae: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
12a4b0: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
12a4b3: 29 d0 sub %edx,%eax <== NOT EXECUTED
12a4b5: 89 45 ac mov %eax,-0x54(%ebp) <== NOT EXECUTED
rtems_bdpart_write_mbr_partition(
12a4b8: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
12a4bb: 89 c6 mov %eax,%esi <== NOT EXECUTED
12a4bd: 2b 75 b8 sub -0x48(%ebp),%esi <== NOT EXECUTED
12a4c0: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12a4c3: 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);
12a4c6: 8d b8 d6 01 00 00 lea 0x1d6(%eax),%edi <== NOT EXECUTED
12a4cc: 89 f1 mov %esi,%ecx <== NOT EXECUTED
12a4ce: 88 88 d6 01 00 00 mov %cl,0x1d6(%eax) <== NOT EXECUTED
value >>= 8;
12a4d4: 89 f1 mov %esi,%ecx <== NOT EXECUTED
12a4d6: 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;
12a4d9: 88 4f 01 mov %cl,0x1(%edi) <== NOT EXECUTED
value >>= 8;
12a4dc: 89 f1 mov %esi,%ecx <== NOT EXECUTED
12a4de: 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;
12a4e1: 88 4f 02 mov %cl,0x2(%edi) <== NOT EXECUTED
12a4e4: c1 ee 18 shr $0x18,%esi <== NOT EXECUTED
12a4e7: 89 f1 mov %esi,%ecx <== NOT EXECUTED
12a4e9: 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(
12a4ec: 2b 55 ac sub -0x54(%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);
12a4ef: 8d b8 da 01 00 00 lea 0x1da(%eax),%edi <== NOT EXECUTED
12a4f5: 88 90 da 01 00 00 mov %dl,0x1da(%eax) <== NOT EXECUTED
value >>= 8;
12a4fb: 89 d6 mov %edx,%esi <== NOT EXECUTED
12a4fd: c1 ee 08 shr $0x8,%esi <== 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;
12a500: 89 f1 mov %esi,%ecx <== NOT EXECUTED
12a502: 88 4f 01 mov %cl,0x1(%edi) <== NOT EXECUTED
value >>= 8;
12a505: 89 d6 mov %edx,%esi <== NOT EXECUTED
12a507: c1 ee 10 shr $0x10,%esi <== 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;
12a50a: 89 f1 mov %esi,%ecx <== NOT EXECUTED
12a50c: 88 4f 02 mov %cl,0x2(%edi) <== NOT EXECUTED
12a50f: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
12a512: 88 57 03 mov %dl,0x3(%edi) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
12a515: c6 80 d2 01 00 00 05 movb $0x5,0x1d2(%eax) <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
12a51c: c6 80 ce 01 00 00 00 movb $0x0,0x1ce(%eax) <== NOT EXECUTED
12a523: 83 45 bc 30 addl $0x30,-0x44(%ebp) <== NOT EXECUTED
12a527: e9 da fe ff ff jmp 12a406 <rtems_bdpart_write+0x3ca><== 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;
12a52c: c7 45 b4 03 00 00 00 movl $0x3,-0x4c(%ebp) <== NOT EXECUTED
12a533: e9 10 fc ff ff jmp 12a148 <rtems_bdpart_write+0x10c><== NOT EXECUTED
}
/* New EBR */
ebr = p->begin - record_space;
sc = rtems_bdpart_new_record( disk, ebr, &block);
if (sc != RTEMS_SUCCESSFUL) {
12a538: 89 c3 mov %eax,%ebx <== NOT EXECUTED
12a53a: e9 0e fd ff ff jmp 12a24d <rtems_bdpart_write+0x211><== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
12a53f: 31 db xor %ebx,%ebx <== NOT EXECUTED
12a541: e9 07 fd ff ff jmp 12a24d <rtems_bdpart_write+0x211><== NOT EXECUTED
001129b4 <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)
{
1129b4: 55 push %ebp
1129b5: 89 e5 mov %esp,%ebp
1129b7: 53 push %ebx
1129b8: 83 ec 04 sub $0x4,%esp
1129bb: 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;
1129be: 8b 03 mov (%ebx),%eax
1129c0: 8b 50 34 mov 0x34(%eax),%edx
int rc;
switch (args->command)
1129c3: 8b 43 04 mov 0x4(%ebx),%eax
1129c6: 3d 03 42 04 40 cmp $0x40044203,%eax
1129cb: 0f 84 b7 00 00 00 je 112a88 <rtems_blkdev_generic_ioctl+0xd4><== NEVER TAKEN
1129d1: 76 2d jbe 112a00 <rtems_blkdev_generic_ioctl+0x4c><== NEVER TAKEN
1129d3: 3d 04 42 04 80 cmp $0x80044204,%eax
1129d8: 74 5a je 112a34 <rtems_blkdev_generic_ioctl+0x80>
1129da: 3d 01 42 18 c0 cmp $0xc0184201,%eax <== NOT EXECUTED
1129df: 74 43 je 112a24 <rtems_blkdev_generic_ioctl+0x70><== NOT EXECUTED
1129e1: 3d 05 42 04 40 cmp $0x40044205,%eax <== NOT EXECUTED
1129e6: 74 64 je 112a4c <rtems_blkdev_generic_ioctl+0x98><== NOT EXECUTED
*/
args->ioctl_return = (uint32_t) -1;
break;
default:
args->ioctl_return = (uint32_t) dd->ioctl(dd->phys_dev,
1129e8: 51 push %ecx <== NOT EXECUTED
1129e9: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
1129ec: 50 push %eax <== NOT EXECUTED
1129ed: ff 72 08 pushl 0x8(%edx) <== NOT EXECUTED
1129f0: ff 52 28 call *0x28(%edx) <== NOT EXECUTED
1129f3: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
1129f6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
1129f9: 31 c0 xor %eax,%eax <== NOT EXECUTED
1129fb: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1129fe: c9 leave <== NOT EXECUTED
1129ff: c3 ret <== NOT EXECUTED
rtems_libio_ioctl_args_t *args = arg;
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
int rc;
switch (args->command)
112a00: 3d 06 42 00 20 cmp $0x20004206,%eax <== NOT EXECUTED
112a05: 74 5d je 112a64 <rtems_blkdev_generic_ioctl+0xb0><== NOT EXECUTED
112a07: 3d 02 42 04 40 cmp $0x40044202,%eax <== NOT EXECUTED
112a0c: 75 da jne 1129e8 <rtems_blkdev_generic_ioctl+0x34><== NOT EXECUTED
{
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*((uint32_t *) args->buffer) = dd->media_block_size;
112a0e: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
112a11: 8b 52 24 mov 0x24(%edx),%edx <== NOT EXECUTED
112a14: 89 10 mov %edx,(%eax) <== NOT EXECUTED
args->ioctl_return = 0;
112a16: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
112a1d: 31 c0 xor %eax,%eax <== NOT EXECUTED
112a1f: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
112a22: c9 leave <== NOT EXECUTED
112a23: c3 ret <== NOT EXECUTED
case RTEMS_BLKIO_REQUEST:
/*
* It is not allowed to directly access the driver circumventing
* the cache.
*/
args->ioctl_return = (uint32_t) -1;
112a24: c7 43 0c ff ff ff ff movl $0xffffffff,0xc(%ebx) <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
112a2b: 31 c0 xor %eax,%eax <== NOT EXECUTED
112a2d: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
112a30: c9 leave <== NOT EXECUTED
112a31: c3 ret <== NOT EXECUTED
112a32: 66 90 xchg %ax,%ax <== NOT EXECUTED
*((uint32_t *) args->buffer) = dd->block_size;
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *((uint32_t *) args->buffer);
112a34: 8b 43 08 mov 0x8(%ebx),%eax
112a37: 8b 00 mov (%eax),%eax
112a39: 89 42 20 mov %eax,0x20(%edx)
args->ioctl_return = 0;
112a3c: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
112a43: 31 c0 xor %eax,%eax
112a45: 8b 5d fc mov -0x4(%ebp),%ebx
112a48: c9 leave
112a49: c3 ret
112a4a: 66 90 xchg %ax,%ax
dd->block_size = *((uint32_t *) args->buffer);
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_GETSIZE:
*((rtems_blkdev_bnum *) args->buffer) = dd->size;
112a4c: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
112a4f: 8b 52 1c mov 0x1c(%edx),%edx <== NOT EXECUTED
112a52: 89 10 mov %edx,(%eax) <== NOT EXECUTED
args->ioctl_return = 0;
112a54: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
112a5b: 31 c0 xor %eax,%eax <== NOT EXECUTED
112a5d: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
112a60: c9 leave <== NOT EXECUTED
112a61: c3 ret <== NOT EXECUTED
112a62: 66 90 xchg %ax,%ax <== NOT EXECUTED
*((rtems_blkdev_bnum *) args->buffer) = dd->size;
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_SYNCDEV:
rc = rtems_bdbuf_syncdev(dd->dev);
112a64: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
112a67: ff 72 04 pushl 0x4(%edx) <== NOT EXECUTED
112a6a: ff 32 pushl (%edx) <== NOT EXECUTED
112a6c: e8 57 e1 ff ff call 110bc8 <rtems_bdbuf_syncdev> <== NOT EXECUTED
args->ioctl_return = (uint32_t) (rc == RTEMS_SUCCESSFUL ? 0 : -1);
112a71: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
112a74: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
112a77: 19 c0 sbb %eax,%eax <== NOT EXECUTED
112a79: f7 d0 not %eax <== NOT EXECUTED
112a7b: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
112a7e: 31 c0 xor %eax,%eax <== NOT EXECUTED
112a80: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
112a83: c9 leave <== NOT EXECUTED
112a84: c3 ret <== NOT EXECUTED
112a85: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*((uint32_t *) args->buffer) = dd->media_block_size;
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_GETBLKSIZE:
*((uint32_t *) args->buffer) = dd->block_size;
112a88: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
112a8b: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
112a8e: 89 10 mov %edx,(%eax) <== NOT EXECUTED
args->ioctl_return = 0;
112a90: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
112a97: 31 c0 xor %eax,%eax <== NOT EXECUTED
112a99: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
112a9c: c9 leave <== NOT EXECUTED
112a9d: c3 ret <== NOT EXECUTED
00112be8 <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)
{
112be8: 55 push %ebp <== NOT EXECUTED
112be9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
112beb: 57 push %edi <== NOT EXECUTED
112bec: 56 push %esi <== NOT EXECUTED
112bed: 53 push %ebx <== NOT EXECUTED
112bee: 83 ec 3c sub $0x3c,%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;
112bf1: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
112bf4: 8b 02 mov (%edx),%eax <== NOT EXECUTED
112bf6: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
uint32_t block_size = dd->block_size;
112bf9: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
112bfc: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED
char *buf = args->buffer;
112bff: 8b 52 0c mov 0xc(%edx),%edx <== NOT EXECUTED
112c02: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
uint32_t count = args->count;
112c05: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
112c08: 8b 49 10 mov 0x10(%ecx),%ecx <== NOT EXECUTED
112c0b: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
112c0e: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
112c11: 8b 51 04 mov 0x4(%ecx),%edx <== NOT EXECUTED
112c14: 8b 49 08 mov 0x8(%ecx),%ecx <== NOT EXECUTED
112c17: 89 55 b8 mov %edx,-0x48(%ebp) <== NOT EXECUTED
112c1a: 89 4d bc mov %ecx,-0x44(%ebp) <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
112c1d: 8b 10 mov (%eax),%edx <== NOT EXECUTED
112c1f: 8b 48 04 mov 0x4(%eax),%ecx <== NOT EXECUTED
112c22: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
112c25: 89 4d c4 mov %ecx,-0x3c(%ebp) <== NOT EXECUTED
args->bytes_moved = 0;
112c28: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
112c2b: c7 41 18 00 00 00 00 movl $0x0,0x18(%ecx) <== NOT EXECUTED
while (count > 0)
112c32: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED
112c35: 85 f6 test %esi,%esi <== NOT EXECUTED
112c37: 0f 84 8f 00 00 00 je 112ccc <rtems_blkdev_generic_read+0xe4><== NOT EXECUTED
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
uint32_t block_size = dd->block_size;
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
112c3d: 8b 5d c8 mov -0x38(%ebp),%ebx <== NOT EXECUTED
112c40: 31 f6 xor %esi,%esi <== NOT EXECUTED
112c42: 56 push %esi <== NOT EXECUTED
112c43: 53 push %ebx <== NOT EXECUTED
112c44: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
112c47: ff 75 b8 pushl -0x48(%ebp) <== NOT EXECUTED
112c4a: e8 8d fd 00 00 call 1229dc <__divdi3> <== NOT EXECUTED
112c4f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
112c52: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
112c55: 56 push %esi <== NOT EXECUTED
112c56: 53 push %ebx <== NOT EXECUTED
112c57: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
112c5a: ff 75 b8 pushl -0x48(%ebp) <== NOT EXECUTED
112c5d: e8 ca fe 00 00 call 122b2c <__moddi3> <== NOT EXECUTED
112c62: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
112c65: 89 c6 mov %eax,%esi <== NOT EXECUTED
112c67: eb 42 jmp 112cab <rtems_blkdev_generic_read+0xc3><== NOT EXECUTED
112c69: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
uint32_t copy;
rc = rtems_bdbuf_read(dev, block, &diskbuf);
if (rc != RTEMS_SUCCESSFUL)
break;
copy = block_size - blkofs;
112c6c: 8b 5d c8 mov -0x38(%ebp),%ebx <== NOT EXECUTED
112c6f: 29 f3 sub %esi,%ebx <== NOT EXECUTED
112c71: 3b 5d d4 cmp -0x2c(%ebp),%ebx <== NOT EXECUTED
112c74: 76 03 jbe 112c79 <rtems_blkdev_generic_read+0x91><== NOT EXECUTED
112c76: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);
112c79: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
112c7c: 03 70 20 add 0x20(%eax),%esi <== NOT EXECUTED
112c7f: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
112c82: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
112c84: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rc = rtems_bdbuf_release(diskbuf);
112c86: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
112c89: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
112c8c: e8 57 e9 ff ff call 1115e8 <rtems_bdbuf_release> <== NOT EXECUTED
args->bytes_moved += copy;
112c91: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
112c94: 01 5a 18 add %ebx,0x18(%edx) <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
112c97: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
112c9a: 85 c0 test %eax,%eax <== NOT EXECUTED
112c9c: 75 26 jne 112cc4 <rtems_blkdev_generic_read+0xdc><== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
args->bytes_moved = 0;
while (count > 0)
112c9e: 29 5d d4 sub %ebx,-0x2c(%ebp) <== NOT EXECUTED
112ca1: 74 21 je 112cc4 <rtems_blkdev_generic_read+0xdc><== NOT EXECUTED
rc = rtems_bdbuf_release(diskbuf);
args->bytes_moved += copy;
if (rc != RTEMS_SUCCESSFUL)
break;
count -= copy;
buf += copy;
112ca3: 89 7d d0 mov %edi,-0x30(%ebp) <== NOT EXECUTED
blkofs = 0;
block++;
112ca6: ff 45 cc incl -0x34(%ebp) <== NOT EXECUTED
112ca9: 31 f6 xor %esi,%esi <== NOT EXECUTED
while (count > 0)
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
rc = rtems_bdbuf_read(dev, block, &diskbuf);
112cab: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
112cae: 50 push %eax <== NOT EXECUTED
112caf: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
112cb2: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
112cb5: ff 75 c0 pushl -0x40(%ebp) <== NOT EXECUTED
112cb8: e8 a7 f9 ff ff call 112664 <rtems_bdbuf_read> <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
112cbd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
112cc0: 85 c0 test %eax,%eax <== NOT EXECUTED
112cc2: 74 a8 je 112c6c <rtems_blkdev_generic_read+0x84><== NOT EXECUTED
blkofs = 0;
block++;
}
return rc;
}
112cc4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
112cc7: 5b pop %ebx <== NOT EXECUTED
112cc8: 5e pop %esi <== NOT EXECUTED
112cc9: 5f pop %edi <== NOT EXECUTED
112cca: c9 leave <== NOT EXECUTED
112ccb: c3 ret <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
break;
count -= copy;
buf += copy;
blkofs = 0;
block++;
112ccc: 31 c0 xor %eax,%eax <== NOT EXECUTED
112cce: eb f4 jmp 112cc4 <rtems_blkdev_generic_read+0xdc><== NOT EXECUTED
00112ae4 <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)
{
112ae4: 55 push %ebp <== NOT EXECUTED
112ae5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
112ae7: 57 push %edi <== NOT EXECUTED
112ae8: 56 push %esi <== NOT EXECUTED
112ae9: 53 push %ebx <== NOT EXECUTED
112aea: 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;
112aed: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
112af0: 8b 02 mov (%edx),%eax <== NOT EXECUTED
112af2: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
uint32_t block_size = dd->block_size;
112af5: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED
112af8: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED
char *buf = args->buffer;
112afb: 8b 72 0c mov 0xc(%edx),%esi <== NOT EXECUTED
uint32_t count = args->count;
112afe: 8b 52 10 mov 0x10(%edx),%edx <== NOT EXECUTED
112b01: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
112b04: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
112b07: 8b 51 04 mov 0x4(%ecx),%edx <== NOT EXECUTED
112b0a: 8b 49 08 mov 0x8(%ecx),%ecx <== NOT EXECUTED
112b0d: 89 55 b8 mov %edx,-0x48(%ebp) <== NOT EXECUTED
112b10: 89 4d bc mov %ecx,-0x44(%ebp) <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
112b13: 8b 10 mov (%eax),%edx <== NOT EXECUTED
112b15: 8b 48 04 mov 0x4(%eax),%ecx <== NOT EXECUTED
112b18: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED
112b1b: 89 4d c4 mov %ecx,-0x3c(%ebp) <== NOT EXECUTED
args->bytes_moved = 0;
112b1e: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
112b21: c7 41 18 00 00 00 00 movl $0x0,0x18(%ecx) <== NOT EXECUTED
while (count > 0)
112b28: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
112b2b: 85 db test %ebx,%ebx <== NOT EXECUTED
112b2d: 0f 84 b1 00 00 00 je 112be4 <rtems_blkdev_generic_write+0x100><== NOT EXECUTED
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
uint32_t block_size = dd->block_size;
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
112b33: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
112b36: 31 db xor %ebx,%ebx <== NOT EXECUTED
112b38: 53 push %ebx <== NOT EXECUTED
112b39: 51 push %ecx <== NOT EXECUTED
112b3a: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
112b3d: ff 75 b8 pushl -0x48(%ebp) <== NOT EXECUTED
112b40: 89 4d b4 mov %ecx,-0x4c(%ebp) <== NOT EXECUTED
112b43: e8 94 fe 00 00 call 1229dc <__divdi3> <== NOT EXECUTED
112b48: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
112b4b: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
112b4e: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
112b51: 53 push %ebx <== NOT EXECUTED
112b52: 51 push %ecx <== NOT EXECUTED
112b53: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
112b56: ff 75 b8 pushl -0x48(%ebp) <== NOT EXECUTED
112b59: e8 ce ff 00 00 call 122b2c <__moddi3> <== NOT EXECUTED
112b5e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
112b61: 89 c7 mov %eax,%edi <== NOT EXECUTED
while (count > 0)
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
if ((blkofs == 0) && (count >= block_size))
112b63: 85 c0 test %eax,%eax <== NOT EXECUTED
112b65: 74 53 je 112bba <rtems_blkdev_generic_write+0xd6><== NOT EXECUTED
112b67: 90 nop <== NOT EXECUTED
rc = rtems_bdbuf_get(dev, block, &diskbuf);
else
rc = rtems_bdbuf_read(dev, block, &diskbuf);
112b68: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
112b6b: 51 push %ecx <== NOT EXECUTED
112b6c: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
112b6f: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
112b72: ff 75 c0 pushl -0x40(%ebp) <== NOT EXECUTED
112b75: e8 ea fa ff ff call 112664 <rtems_bdbuf_read> <== NOT EXECUTED
112b7a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
112b7d: 85 c0 test %eax,%eax <== NOT EXECUTED
112b7f: 75 5b jne 112bdc <rtems_blkdev_generic_write+0xf8><== NOT EXECUTED
break;
copy = block_size - blkofs;
112b81: 8b 5d cc mov -0x34(%ebp),%ebx <== NOT EXECUTED
112b84: 29 fb sub %edi,%ebx <== NOT EXECUTED
112b86: 3b 5d d4 cmp -0x2c(%ebp),%ebx <== NOT EXECUTED
112b89: 76 03 jbe 112b8e <rtems_blkdev_generic_write+0xaa><== NOT EXECUTED
112b8b: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
112b8e: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
112b91: 03 78 20 add 0x20(%eax),%edi <== NOT EXECUTED
112b94: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
112b96: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
args->bytes_moved += copy;
112b98: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
112b9b: 01 58 18 add %ebx,0x18(%eax) <== NOT EXECUTED
rc = rtems_bdbuf_release_modified(diskbuf);
112b9e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
112ba1: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
112ba4: e8 c3 e9 ff ff call 11156c <rtems_bdbuf_release_modified><== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
112ba9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
112bac: 85 c0 test %eax,%eax <== NOT EXECUTED
112bae: 75 2c jne 112bdc <rtems_blkdev_generic_write+0xf8><== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
args->bytes_moved = 0;
while (count > 0)
112bb0: 29 5d d4 sub %ebx,-0x2c(%ebp) <== NOT EXECUTED
112bb3: 74 27 je 112bdc <rtems_blkdev_generic_write+0xf8><== NOT EXECUTED
break;
count -= copy;
buf += copy;
blkofs = 0;
block++;
112bb5: ff 45 d0 incl -0x30(%ebp) <== NOT EXECUTED
112bb8: 31 ff xor %edi,%edi <== NOT EXECUTED
while (count > 0)
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
if ((blkofs == 0) && (count >= block_size))
112bba: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
112bbd: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED
112bc0: 77 a6 ja 112b68 <rtems_blkdev_generic_write+0x84><== NOT EXECUTED
rc = rtems_bdbuf_get(dev, block, &diskbuf);
112bc2: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
112bc5: 52 push %edx <== NOT EXECUTED
112bc6: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
112bc9: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
112bcc: ff 75 c0 pushl -0x40(%ebp) <== NOT EXECUTED
112bcf: e8 c4 f9 ff ff call 112598 <rtems_bdbuf_get> <== NOT EXECUTED
while (count > 0)
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
if ((blkofs == 0) && (count >= block_size))
112bd4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc = rtems_bdbuf_get(dev, block, &diskbuf);
else
rc = rtems_bdbuf_read(dev, block, &diskbuf);
if (rc != RTEMS_SUCCESSFUL)
112bd7: 85 c0 test %eax,%eax <== NOT EXECUTED
112bd9: 74 a6 je 112b81 <rtems_blkdev_generic_write+0x9d><== NOT EXECUTED
112bdb: 90 nop <== NOT EXECUTED
blkofs = 0;
block++;
}
return rc;
}
112bdc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
112bdf: 5b pop %ebx <== NOT EXECUTED
112be0: 5e pop %esi <== NOT EXECUTED
112be1: 5f pop %edi <== NOT EXECUTED
112be2: c9 leave <== NOT EXECUTED
112be3: c3 ret <== NOT EXECUTED
break;
count -= copy;
buf += copy;
blkofs = 0;
block++;
112be4: 31 c0 xor %eax,%eax <== NOT EXECUTED
112be6: eb f4 jmp 112bdc <rtems_blkdev_generic_write+0xf8><== NOT EXECUTED
00112944 <rtems_blkdev_ioctl>:
return RTEMS_SUCCESSFUL;
}
int
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
112944: 55 push %ebp
112945: 89 e5 mov %esp,%ebp
112947: 83 ec 08 sub $0x8,%esp
11294a: 8b 4d 08 mov 0x8(%ebp),%ecx
11294d: 8b 45 0c mov 0xc(%ebp),%eax
112950: 8b 55 10 mov 0x10(%ebp),%edx
size_t *arg_size = argp;
int rc = 0;
switch (req)
112953: 3d 03 42 04 40 cmp $0x40044203,%eax
112958: 74 42 je 11299c <rtems_blkdev_ioctl+0x58><== NEVER TAKEN
11295a: 76 18 jbe 112974 <rtems_blkdev_ioctl+0x30><== ALWAYS TAKEN
11295c: 3d 05 42 04 40 cmp $0x40044205,%eax <== NOT EXECUTED
112961: 74 2d je 112990 <rtems_blkdev_ioctl+0x4c><== NOT EXECUTED
112963: 3d 04 42 04 80 cmp $0x80044204,%eax <== NOT EXECUTED
112968: 75 11 jne 11297b <rtems_blkdev_ioctl+0x37><== NOT EXECUTED
case RTEMS_BLKIO_GETBLKSIZE:
*arg_size = dd->block_size;
break;
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *arg_size;
11296a: 8b 02 mov (%edx),%eax <== NOT EXECUTED
11296c: 89 41 20 mov %eax,0x20(%ecx) <== NOT EXECUTED
11296f: 31 c0 xor %eax,%eax <== NOT EXECUTED
rc = -1;
break;
}
return rc;
}
112971: c9 leave <== NOT EXECUTED
112972: c3 ret <== NOT EXECUTED
112973: 90 nop <== NOT EXECUTED
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
size_t *arg_size = argp;
int rc = 0;
switch (req)
112974: 3d 02 42 04 40 cmp $0x40044202,%eax
112979: 74 2d je 1129a8 <rtems_blkdev_ioctl+0x64><== NEVER TAKEN
case RTEMS_BLKIO_GETSIZE:
*arg_size = dd->size;
break;
default:
errno = EINVAL;
11297b: e8 bc 50 00 00 call 117a3c <__errno>
112980: c7 00 16 00 00 00 movl $0x16,(%eax)
112986: b8 ff ff ff ff mov $0xffffffff,%eax
rc = -1;
break;
}
return rc;
}
11298b: c9 leave
11298c: c3 ret
11298d: 8d 76 00 lea 0x0(%esi),%esi
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *arg_size;
break;
case RTEMS_BLKIO_GETSIZE:
*arg_size = dd->size;
112990: 8b 41 1c mov 0x1c(%ecx),%eax <== NOT EXECUTED
112993: 89 02 mov %eax,(%edx) <== NOT EXECUTED
112995: 31 c0 xor %eax,%eax <== NOT EXECUTED
rc = -1;
break;
}
return rc;
}
112997: c9 leave <== NOT EXECUTED
112998: c3 ret <== NOT EXECUTED
112999: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*arg_size = dd->media_block_size;
break;
case RTEMS_BLKIO_GETBLKSIZE:
*arg_size = dd->block_size;
11299c: 8b 41 20 mov 0x20(%ecx),%eax <== NOT EXECUTED
11299f: 89 02 mov %eax,(%edx) <== NOT EXECUTED
1129a1: 31 c0 xor %eax,%eax <== NOT EXECUTED
rc = -1;
break;
}
return rc;
}
1129a3: c9 leave <== NOT EXECUTED
1129a4: c3 ret <== NOT EXECUTED
1129a5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
int rc = 0;
switch (req)
{
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*arg_size = dd->media_block_size;
1129a8: 8b 41 24 mov 0x24(%ecx),%eax <== NOT EXECUTED
1129ab: 89 02 mov %eax,(%edx) <== NOT EXECUTED
1129ad: 31 c0 xor %eax,%eax <== NOT EXECUTED
rc = -1;
break;
}
return rc;
}
1129af: c9 leave <== NOT EXECUTED
1129b0: c3 ret <== NOT EXECUTED
001080a8 <rtems_bsp_cmdline_get_param>:
const char *rtems_bsp_cmdline_get_param(
const char *name,
char *value,
size_t length
)
{
1080a8: 55 push %ebp
1080a9: 89 e5 mov %esp,%ebp
1080ab: 57 push %edi
1080ac: 56 push %esi
1080ad: 53 push %ebx
1080ae: 83 ec 1c sub $0x1c,%esp
1080b1: 8b 45 08 mov 0x8(%ebp),%eax
1080b4: 8b 5d 0c mov 0xc(%ebp),%ebx
1080b7: 8b 75 10 mov 0x10(%ebp),%esi
const char *p;
if ( !name )
1080ba: 85 c0 test %eax,%eax
1080bc: 75 0e jne 1080cc <rtems_bsp_cmdline_get_param+0x24>
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
1080be: 31 db xor %ebx,%ebx
return NULL;
copy_string( p, value, length );
return value;
}
1080c0: 89 d8 mov %ebx,%eax
1080c2: 8d 65 f4 lea -0xc(%ebp),%esp
1080c5: 5b pop %ebx
1080c6: 5e pop %esi
1080c7: 5f pop %edi
1080c8: c9 leave
1080c9: c3 ret
1080ca: 66 90 xchg %ax,%ax
const char *p;
if ( !name )
return NULL;
if ( !value )
1080cc: 85 db test %ebx,%ebx
1080ce: 74 f0 je 1080c0 <rtems_bsp_cmdline_get_param+0x18>
return NULL;
if ( !length )
1080d0: 85 f6 test %esi,%esi
1080d2: 74 ea je 1080be <rtems_bsp_cmdline_get_param+0x16>
return NULL;
value[0] = '\0';
1080d4: c6 03 00 movb $0x0,(%ebx)
p = rtems_bsp_cmdline_get_param_raw( name );
1080d7: 83 ec 0c sub $0xc,%esp
1080da: 50 push %eax
1080db: e8 48 00 00 00 call 108128 <rtems_bsp_cmdline_get_param_raw>
if ( !p )
1080e0: 83 c4 10 add $0x10,%esp
1080e3: 85 c0 test %eax,%eax
1080e5: 74 d7 je 1080be <rtems_bsp_cmdline_get_param+0x16>
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
1080e7: 8a 08 mov (%eax),%cl
1080e9: 84 c9 test %cl,%cl
1080eb: 74 d3 je 1080c0 <rtems_bsp_cmdline_get_param+0x18><== NEVER TAKEN
1080ed: 4e dec %esi
1080ee: 89 75 e4 mov %esi,-0x1c(%ebp)
1080f1: 74 cd je 1080c0 <rtems_bsp_cmdline_get_param+0x18><== NEVER TAKEN
1080f3: 31 f6 xor %esi,%esi
1080f5: 31 d2 xor %edx,%edx
1080f7: 31 ff xor %edi,%edi
1080f9: eb 24 jmp 10811f <rtems_bsp_cmdline_get_param+0x77>
1080fb: 90 nop
if ( *p == '\"' ) {
quotes++;
} else if ( ((quotes % 2) == 0) && *p == ' ' )
1080fc: f7 c7 01 00 00 00 test $0x1,%edi
108102: 75 05 jne 108109 <rtems_bsp_cmdline_get_param+0x61>
108104: 80 f9 20 cmp $0x20,%cl
108107: 74 b7 je 1080c0 <rtems_bsp_cmdline_get_param+0x18>
break;
value[i++] = *p++;
108109: 88 0c 33 mov %cl,(%ebx,%esi,1)
10810c: 42 inc %edx
10810d: 89 d6 mov %edx,%esi
value[i] = '\0';
10810f: 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; ) {
108113: 8a 0c 10 mov (%eax,%edx,1),%cl
108116: 84 c9 test %cl,%cl
108118: 74 a6 je 1080c0 <rtems_bsp_cmdline_get_param+0x18>
10811a: 3b 55 e4 cmp -0x1c(%ebp),%edx
10811d: 73 a1 jae 1080c0 <rtems_bsp_cmdline_get_param+0x18><== NEVER TAKEN
if ( *p == '\"' ) {
10811f: 80 f9 22 cmp $0x22,%cl
108122: 75 d8 jne 1080fc <rtems_bsp_cmdline_get_param+0x54>
quotes++;
108124: 47 inc %edi
108125: eb e2 jmp 108109 <rtems_bsp_cmdline_get_param+0x61>
00108128 <rtems_bsp_cmdline_get_param_raw>:
extern const char *bsp_boot_cmdline;
const char *rtems_bsp_cmdline_get_param_raw(
const char *name
)
{
108128: 55 push %ebp
108129: 89 e5 mov %esp,%ebp
10812b: 83 ec 08 sub $0x8,%esp
10812e: 8b 45 08 mov 0x8(%ebp),%eax
const char *p;
if ( !name )
108131: 85 c0 test %eax,%eax
108133: 75 07 jne 10813c <rtems_bsp_cmdline_get_param_raw+0x14>
if ( !bsp_boot_cmdline )
return NULL;
p = strstr(bsp_boot_cmdline, name);
/* printf( "raw: %p (%s)\n", p, p ); */
return p;
108135: 31 c0 xor %eax,%eax
}
108137: c9 leave
108138: c3 ret
108139: 8d 76 00 lea 0x0(%esi),%esi
const char *p;
if ( !name )
return NULL;
if ( !bsp_boot_cmdline )
10813c: 8b 15 58 80 12 00 mov 0x128058,%edx
108142: 85 d2 test %edx,%edx
108144: 74 ef je 108135 <rtems_bsp_cmdline_get_param_raw+0xd>
return NULL;
p = strstr(bsp_boot_cmdline, name);
108146: 83 ec 08 sub $0x8,%esp
108149: 50 push %eax
10814a: 52 push %edx
10814b: e8 24 d5 00 00 call 115674 <strstr>
108150: 83 c4 10 add $0x10,%esp
/* printf( "raw: %p (%s)\n", p, p ); */
return p;
}
108153: c9 leave
108154: c3 ret
00108158 <rtems_bsp_cmdline_get_param_rhs>:
const char *rtems_bsp_cmdline_get_param_rhs(
const char *name,
char *value,
size_t length
)
{
108158: 55 push %ebp
108159: 89 e5 mov %esp,%ebp
10815b: 57 push %edi
10815c: 53 push %ebx
10815d: 8b 7d 08 mov 0x8(%ebp),%edi
108160: 8b 5d 0c mov 0xc(%ebp),%ebx
const char *p;
const char *rhs;
char *d;
p = rtems_bsp_cmdline_get_param( name, value, length );
108163: 50 push %eax
108164: ff 75 10 pushl 0x10(%ebp)
108167: 53 push %ebx
108168: 57 push %edi
108169: e8 3a ff ff ff call 1080a8 <rtems_bsp_cmdline_get_param>
10816e: 89 c2 mov %eax,%edx
if ( !p )
108170: 83 c4 10 add $0x10,%esp
108173: 85 c0 test %eax,%eax
108175: 75 0d jne 108184 <rtems_bsp_cmdline_get_param_rhs+0x2c>
*d++ = *rhs++;
if ( *(d-1) == '\"' )
d--;
*d = '\0';
return value;
108177: 31 db xor %ebx,%ebx
}
108179: 89 d8 mov %ebx,%eax
10817b: 8d 65 f8 lea -0x8(%ebp),%esp
10817e: 5b pop %ebx
10817f: 5f pop %edi
108180: c9 leave
108181: c3 ret
108182: 66 90 xchg %ax,%ax
p = rtems_bsp_cmdline_get_param( name, value, length );
if ( !p )
return NULL;
rhs = &p[strlen(name)];
108184: 31 c0 xor %eax,%eax
108186: b9 ff ff ff ff mov $0xffffffff,%ecx
10818b: f2 ae repnz scas %es:(%edi),%al
10818d: f7 d1 not %ecx
10818f: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax
if ( *rhs != '=' )
108193: 80 38 3d cmpb $0x3d,(%eax)
108196: 75 df jne 108177 <rtems_bsp_cmdline_get_param_rhs+0x1f><== NEVER TAKEN
return NULL;
rhs++;
108198: 8d 48 01 lea 0x1(%eax),%ecx
if ( *rhs == '\"' )
10819b: 8a 50 01 mov 0x1(%eax),%dl
10819e: 80 fa 22 cmp $0x22,%dl
1081a1: 74 2d je 1081d0 <rtems_bsp_cmdline_get_param_rhs+0x78>
rhs++;
for ( d=value ; *rhs ; )
1081a3: 84 d2 test %dl,%dl
1081a5: 74 31 je 1081d8 <rtems_bsp_cmdline_get_param_rhs+0x80>
1081a7: 89 d8 mov %ebx,%eax
1081a9: 8d 76 00 lea 0x0(%esi),%esi
*d++ = *rhs++;
1081ac: 88 10 mov %dl,(%eax)
1081ae: 40 inc %eax
1081af: 41 inc %ecx
return NULL;
rhs++;
if ( *rhs == '\"' )
rhs++;
for ( d=value ; *rhs ; )
1081b0: 8a 11 mov (%ecx),%dl
1081b2: 84 d2 test %dl,%dl
1081b4: 75 f6 jne 1081ac <rtems_bsp_cmdline_get_param_rhs+0x54>
*d++ = *rhs++;
if ( *(d-1) == '\"' )
1081b6: 8d 50 ff lea -0x1(%eax),%edx
1081b9: 80 78 ff 22 cmpb $0x22,-0x1(%eax)
1081bd: 74 02 je 1081c1 <rtems_bsp_cmdline_get_param_rhs+0x69>
1081bf: 89 c2 mov %eax,%edx
d--;
*d = '\0';
1081c1: c6 02 00 movb $0x0,(%edx)
return value;
}
1081c4: 89 d8 mov %ebx,%eax
1081c6: 8d 65 f8 lea -0x8(%ebp),%esp
1081c9: 5b pop %ebx
1081ca: 5f pop %edi
1081cb: c9 leave
1081cc: c3 ret
1081cd: 8d 76 00 lea 0x0(%esi),%esi
if ( *rhs != '=' )
return NULL;
rhs++;
if ( *rhs == '\"' )
rhs++;
1081d0: 8d 48 02 lea 0x2(%eax),%ecx
1081d3: 8a 50 02 mov 0x2(%eax),%dl
1081d6: eb cb jmp 1081a3 <rtems_bsp_cmdline_get_param_rhs+0x4b>
for ( d=value ; *rhs ; )
1081d8: 89 d8 mov %ebx,%eax
1081da: eb da jmp 1081b6 <rtems_bsp_cmdline_get_param_rhs+0x5e>
001123c4 <rtems_clock_get>:
rtems_status_code rtems_clock_get(
rtems_clock_get_options option,
void *time_buffer
)
{
1123c4: 55 push %ebp
1123c5: 89 e5 mov %esp,%ebp
1123c7: 53 push %ebx
1123c8: 83 ec 04 sub $0x4,%esp
1123cb: 8b 45 08 mov 0x8(%ebp),%eax
1123ce: 8b 5d 0c mov 0xc(%ebp),%ebx
if ( !time_buffer )
1123d1: 85 db test %ebx,%ebx
1123d3: 74 3b je 112410 <rtems_clock_get+0x4c>
return RTEMS_INVALID_ADDRESS;
if ( option == RTEMS_CLOCK_GET_TOD )
1123d5: 85 c0 test %eax,%eax
1123d7: 74 2b je 112404 <rtems_clock_get+0x40>
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH )
1123d9: 83 f8 01 cmp $0x1,%eax
1123dc: 74 3e je 11241c <rtems_clock_get+0x58>
return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer);
if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) {
1123de: 83 f8 02 cmp $0x2,%eax
1123e1: 74 45 je 112428 <rtems_clock_get+0x64>
*interval = rtems_clock_get_ticks_since_boot();
return RTEMS_SUCCESSFUL;
}
if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) {
1123e3: 83 f8 03 cmp $0x3,%eax
1123e6: 74 4c je 112434 <rtems_clock_get+0x70>
*interval = rtems_clock_get_ticks_per_second();
return RTEMS_SUCCESSFUL;
}
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
1123e8: 83 f8 04 cmp $0x4,%eax
1123eb: 74 0b je 1123f8 <rtems_clock_get+0x34>
1123ed: b8 0a 00 00 00 mov $0xa,%eax
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
}
1123f2: 5a pop %edx
1123f3: 5b pop %ebx
1123f4: c9 leave
1123f5: c3 ret
1123f6: 66 90 xchg %ax,%ax
*interval = rtems_clock_get_ticks_per_second();
return RTEMS_SUCCESSFUL;
}
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
1123f8: 89 5d 08 mov %ebx,0x8(%ebp)
return RTEMS_INVALID_NUMBER;
}
1123fb: 59 pop %ecx
1123fc: 5b pop %ebx
1123fd: c9 leave
*interval = rtems_clock_get_ticks_per_second();
return RTEMS_SUCCESSFUL;
}
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
1123fe: e9 49 01 00 00 jmp 11254c <rtems_clock_get_tod_timeval>
112403: 90 nop
{
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
if ( option == RTEMS_CLOCK_GET_TOD )
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
112404: 89 5d 08 mov %ebx,0x8(%ebp)
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
}
112407: 58 pop %eax
112408: 5b pop %ebx
112409: c9 leave
{
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
if ( option == RTEMS_CLOCK_GET_TOD )
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
11240a: e9 7d 00 00 00 jmp 11248c <rtems_clock_get_tod>
11240f: 90 nop
rtems_status_code rtems_clock_get(
rtems_clock_get_options option,
void *time_buffer
)
{
if ( !time_buffer )
112410: b8 09 00 00 00 mov $0x9,%eax
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
}
112415: 5a pop %edx
112416: 5b pop %ebx
112417: c9 leave
112418: c3 ret
112419: 8d 76 00 lea 0x0(%esi),%esi
if ( option == RTEMS_CLOCK_GET_TOD )
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH )
return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer);
11241c: 89 5d 08 mov %ebx,0x8(%ebp)
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
}
11241f: 5b pop %ebx
112420: 5b pop %ebx
112421: c9 leave
if ( option == RTEMS_CLOCK_GET_TOD )
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH )
return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer);
112422: e9 19 00 00 00 jmp 112440 <rtems_clock_get_seconds_since_epoch>
112427: 90 nop
if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) {
rtems_interval *interval = (rtems_interval *)time_buffer;
*interval = rtems_clock_get_ticks_since_boot();
112428: e8 53 00 00 00 call 112480 <rtems_clock_get_ticks_since_boot>
11242d: 89 03 mov %eax,(%ebx)
11242f: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
112431: eb bf jmp 1123f2 <rtems_clock_get+0x2e>
112433: 90 nop
}
if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) {
rtems_interval *interval = (rtems_interval *)time_buffer;
*interval = rtems_clock_get_ticks_per_second();
112434: e8 33 00 00 00 call 11246c <rtems_clock_get_ticks_per_second>
112439: 89 03 mov %eax,(%ebx)
11243b: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
11243d: eb b3 jmp 1123f2 <rtems_clock_get+0x2e>
0010c668 <rtems_clock_get_tod>:
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_tod(
rtems_time_of_day *time_buffer
)
{
10c668: 55 push %ebp
10c669: 89 e5 mov %esp,%ebp
10c66b: 56 push %esi
10c66c: 53 push %ebx
10c66d: 83 ec 50 sub $0x50,%esp
10c670: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_time_of_day *tmbuf = time_buffer;
struct tm time;
struct timeval now;
if ( !time_buffer )
10c673: 85 db test %ebx,%ebx
10c675: 0f 84 a1 00 00 00 je 10c71c <rtems_clock_get_tod+0xb4>
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
10c67b: 80 3d 4c b9 12 00 00 cmpb $0x0,0x12b94c
10c682: 75 0c jne 10c690 <rtems_clock_get_tod+0x28>
10c684: b8 0b 00 00 00 mov $0xb,%eax
tmbuf->second = time.tm_sec;
tmbuf->ticks = now.tv_usec /
rtems_configuration_get_microseconds_per_tick();
return RTEMS_SUCCESSFUL;
}
10c689: 8d 65 f8 lea -0x8(%ebp),%esp
10c68c: 5b pop %ebx
10c68d: 5e pop %esi
10c68e: c9 leave
10c68f: c3 ret
{
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
10c690: 9c pushf
10c691: fa cli
10c692: 5e pop %esi
_TOD_Get( &now );
10c693: 83 ec 0c sub $0xc,%esp
10c696: 8d 45 e8 lea -0x18(%ebp),%eax
10c699: 50 push %eax
10c69a: e8 65 18 00 00 call 10df04 <_TOD_Get>
_ISR_Enable(level);
10c69f: 56 push %esi
10c6a0: 9d popf
useconds = (suseconds_t)now.tv_nsec;
10c6a1: 8b 4d ec mov -0x14(%ebp),%ecx
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
10c6a4: 8b 45 e8 mov -0x18(%ebp),%eax
10c6a7: 89 45 f0 mov %eax,-0x10(%ebp)
time->tv_usec = useconds;
10c6aa: be d3 4d 62 10 mov $0x10624dd3,%esi
10c6af: 89 c8 mov %ecx,%eax
10c6b1: f7 ee imul %esi
10c6b3: 89 45 b0 mov %eax,-0x50(%ebp)
10c6b6: 89 55 b4 mov %edx,-0x4c(%ebp)
10c6b9: 8b 75 b4 mov -0x4c(%ebp),%esi
10c6bc: c1 fe 06 sar $0x6,%esi
10c6bf: 89 c8 mov %ecx,%eax
10c6c1: 99 cltd
10c6c2: 29 d6 sub %edx,%esi
10c6c4: 89 75 f4 mov %esi,-0xc(%ebp)
/* Obtain the current time */
_TOD_Get_timeval( &now );
/* Split it into a closer format */
gmtime_r( &now.tv_sec, &time );
10c6c7: 58 pop %eax
10c6c8: 5a pop %edx
10c6c9: 8d 45 c4 lea -0x3c(%ebp),%eax
10c6cc: 50 push %eax
10c6cd: 8d 45 f0 lea -0x10(%ebp),%eax
10c6d0: 50 push %eax
10c6d1: e8 2a 97 00 00 call 115e00 <gmtime_r>
/* Now adjust it to the RTEMS format */
tmbuf->year = time.tm_year + 1900;
10c6d6: 8b 45 d8 mov -0x28(%ebp),%eax
10c6d9: 05 6c 07 00 00 add $0x76c,%eax
10c6de: 89 03 mov %eax,(%ebx)
tmbuf->month = time.tm_mon + 1;
10c6e0: 8b 45 d4 mov -0x2c(%ebp),%eax
10c6e3: 40 inc %eax
10c6e4: 89 43 04 mov %eax,0x4(%ebx)
tmbuf->day = time.tm_mday;
10c6e7: 8b 45 d0 mov -0x30(%ebp),%eax
10c6ea: 89 43 08 mov %eax,0x8(%ebx)
tmbuf->hour = time.tm_hour;
10c6ed: 8b 45 cc mov -0x34(%ebp),%eax
10c6f0: 89 43 0c mov %eax,0xc(%ebx)
tmbuf->minute = time.tm_min;
10c6f3: 8b 45 c8 mov -0x38(%ebp),%eax
10c6f6: 89 43 10 mov %eax,0x10(%ebx)
tmbuf->second = time.tm_sec;
10c6f9: 8b 45 c4 mov -0x3c(%ebp),%eax
10c6fc: 89 43 14 mov %eax,0x14(%ebx)
tmbuf->ticks = now.tv_usec /
10c6ff: 8b 45 f4 mov -0xc(%ebp),%eax
10c702: 31 d2 xor %edx,%edx
10c704: f7 35 ac 73 12 00 divl 0x1273ac
10c70a: 89 43 18 mov %eax,0x18(%ebx)
10c70d: 31 c0 xor %eax,%eax
rtems_configuration_get_microseconds_per_tick();
return RTEMS_SUCCESSFUL;
10c70f: 83 c4 10 add $0x10,%esp
}
10c712: 8d 65 f8 lea -0x8(%ebp),%esp
10c715: 5b pop %ebx
10c716: 5e pop %esi
10c717: c9 leave
10c718: c3 ret
10c719: 8d 76 00 lea 0x0(%esi),%esi
{
rtems_time_of_day *tmbuf = time_buffer;
struct tm time;
struct timeval now;
if ( !time_buffer )
10c71c: b8 09 00 00 00 mov $0x9,%eax
10c721: e9 63 ff ff ff jmp 10c689 <rtems_clock_get_tod+0x21>
0011254c <rtems_clock_get_tod_timeval>:
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_tod_timeval(
struct timeval *time
)
{
11254c: 55 push %ebp
11254d: 89 e5 mov %esp,%ebp
11254f: 56 push %esi
112550: 53 push %ebx
112551: 83 ec 20 sub $0x20,%esp
112554: 8b 5d 08 mov 0x8(%ebp),%ebx
if ( !time )
112557: 85 db test %ebx,%ebx
112559: 74 59 je 1125b4 <rtems_clock_get_tod_timeval+0x68>
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
11255b: 80 3d cc 2e 17 00 00 cmpb $0x0,0x172ecc
112562: 75 0c jne 112570 <rtems_clock_get_tod_timeval+0x24>
112564: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_NOT_DEFINED;
_TOD_Get_timeval( time );
return RTEMS_SUCCESSFUL;
}
112569: 8d 65 f8 lea -0x8(%ebp),%esp
11256c: 5b pop %ebx
11256d: 5e pop %esi
11256e: c9 leave
11256f: c3 ret
{
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
112570: 9c pushf
112571: fa cli
112572: 5e pop %esi
_TOD_Get( &now );
112573: 83 ec 0c sub $0xc,%esp
112576: 8d 45 f0 lea -0x10(%ebp),%eax
112579: 50 push %eax
11257a: e8 fd 1a 00 00 call 11407c <_TOD_Get>
_ISR_Enable(level);
11257f: 56 push %esi
112580: 9d popf
useconds = (suseconds_t)now.tv_nsec;
112581: 8b 4d f4 mov -0xc(%ebp),%ecx
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
112584: 8b 45 f0 mov -0x10(%ebp),%eax
112587: 89 03 mov %eax,(%ebx)
time->tv_usec = useconds;
112589: be d3 4d 62 10 mov $0x10624dd3,%esi
11258e: 89 c8 mov %ecx,%eax
112590: f7 ee imul %esi
112592: 89 45 e0 mov %eax,-0x20(%ebp)
112595: 89 55 e4 mov %edx,-0x1c(%ebp)
112598: 8b 75 e4 mov -0x1c(%ebp),%esi
11259b: c1 fe 06 sar $0x6,%esi
11259e: 89 c8 mov %ecx,%eax
1125a0: 99 cltd
1125a1: 29 d6 sub %edx,%esi
1125a3: 89 73 04 mov %esi,0x4(%ebx)
1125a6: 31 c0 xor %eax,%eax
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
_TOD_Get_timeval( time );
return RTEMS_SUCCESSFUL;
1125a8: 83 c4 10 add $0x10,%esp
}
1125ab: 8d 65 f8 lea -0x8(%ebp),%esp
1125ae: 5b pop %ebx
1125af: 5e pop %esi
1125b0: c9 leave
1125b1: c3 ret
1125b2: 66 90 xchg %ax,%ax
rtems_status_code rtems_clock_get_tod_timeval(
struct timeval *time
)
{
if ( !time )
1125b4: b8 09 00 00 00 mov $0x9,%eax
1125b9: eb ae jmp 112569 <rtems_clock_get_tod_timeval+0x1d>
00130254 <rtems_clock_get_uptime>:
* error code - if unsuccessful
*/
rtems_status_code rtems_clock_get_uptime(
struct timespec *uptime
)
{
130254: 55 push %ebp
130255: 89 e5 mov %esp,%ebp
130257: 83 ec 08 sub $0x8,%esp
13025a: 8b 45 08 mov 0x8(%ebp),%eax
if ( !uptime )
13025d: 85 c0 test %eax,%eax
13025f: 74 13 je 130274 <rtems_clock_get_uptime+0x20>
return RTEMS_INVALID_ADDRESS;
_TOD_Get_uptime_as_timespec( uptime );
130261: 83 ec 0c sub $0xc,%esp
130264: 50 push %eax
130265: e8 8a 0c 00 00 call 130ef4 <_TOD_Get_uptime_as_timespec>
13026a: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
13026c: 83 c4 10 add $0x10,%esp
}
13026f: c9 leave
130270: c3 ret
130271: 8d 76 00 lea 0x0(%esi),%esi
*/
rtems_status_code rtems_clock_get_uptime(
struct timespec *uptime
)
{
if ( !uptime )
130274: b0 09 mov $0x9,%al
return RTEMS_INVALID_ADDRESS;
_TOD_Get_uptime_as_timespec( uptime );
return RTEMS_SUCCESSFUL;
}
130276: c9 leave
130277: c3 ret
0010c740 <rtems_clock_set>:
*/
rtems_status_code rtems_clock_set(
rtems_time_of_day *time_buffer
)
{
10c740: 55 push %ebp
10c741: 89 e5 mov %esp,%ebp
10c743: 53 push %ebx
10c744: 83 ec 14 sub $0x14,%esp
10c747: 8b 5d 08 mov 0x8(%ebp),%ebx
struct timespec newtime;
if ( !time_buffer )
10c74a: 85 db test %ebx,%ebx
10c74c: 74 66 je 10c7b4 <rtems_clock_set+0x74>
return RTEMS_INVALID_ADDRESS;
if ( _TOD_Validate( time_buffer ) ) {
10c74e: 83 ec 0c sub $0xc,%esp
10c751: 53 push %ebx
10c752: e8 39 01 00 00 call 10c890 <_TOD_Validate>
10c757: 83 c4 10 add $0x10,%esp
10c75a: 84 c0 test %al,%al
10c75c: 75 0a jne 10c768 <rtems_clock_set+0x28>
10c75e: b8 14 00 00 00 mov $0x14,%eax
_TOD_Set( &newtime );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
return RTEMS_INVALID_CLOCK;
}
10c763: 8b 5d fc mov -0x4(%ebp),%ebx
10c766: c9 leave
10c767: c3 ret
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
if ( _TOD_Validate( time_buffer ) ) {
newtime.tv_sec = _TOD_To_seconds( time_buffer );
10c768: 83 ec 0c sub $0xc,%esp
10c76b: 53 push %ebx
10c76c: e8 93 00 00 00 call 10c804 <_TOD_To_seconds>
10c771: 89 45 f0 mov %eax,-0x10(%ebp)
newtime.tv_nsec = time_buffer->ticks *
10c774: 8b 43 18 mov 0x18(%ebx),%eax
10c777: 0f af 05 ac 73 12 00 imul 0x1273ac,%eax
10c77e: 8d 04 80 lea (%eax,%eax,4),%eax
10c781: 8d 04 80 lea (%eax,%eax,4),%eax
10c784: 8d 04 80 lea (%eax,%eax,4),%eax
10c787: c1 e0 03 shl $0x3,%eax
10c78a: 89 45 f4 mov %eax,-0xc(%ebp)
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10c78d: a1 38 b9 12 00 mov 0x12b938,%eax
10c792: 40 inc %eax
10c793: a3 38 b9 12 00 mov %eax,0x12b938
rtems_configuration_get_nanoseconds_per_tick();
_Thread_Disable_dispatch();
_TOD_Set( &newtime );
10c798: 8d 45 f0 lea -0x10(%ebp),%eax
10c79b: 89 04 24 mov %eax,(%esp)
10c79e: e8 45 18 00 00 call 10dfe8 <_TOD_Set>
_Thread_Enable_dispatch();
10c7a3: e8 10 2b 00 00 call 10f2b8 <_Thread_Enable_dispatch>
10c7a8: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10c7aa: 83 c4 10 add $0x10,%esp
}
return RTEMS_INVALID_CLOCK;
}
10c7ad: 8b 5d fc mov -0x4(%ebp),%ebx
10c7b0: c9 leave
10c7b1: c3 ret
10c7b2: 66 90 xchg %ax,%ax
rtems_time_of_day *time_buffer
)
{
struct timespec newtime;
if ( !time_buffer )
10c7b4: b8 09 00 00 00 mov $0x9,%eax
_TOD_Set( &newtime );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
return RTEMS_INVALID_CLOCK;
}
10c7b9: 8b 5d fc mov -0x4(%ebp),%ebx
10c7bc: c9 leave
10c7bd: c3 ret
0010b620 <rtems_clock_tick>:
*
* NOTE: This routine only works for leap-years through 2099.
*/
rtems_status_code rtems_clock_tick( void )
{
10b620: 55 push %ebp
10b621: 89 e5 mov %esp,%ebp
10b623: 83 ec 08 sub $0x8,%esp
_TOD_Tickle_ticks();
10b626: e8 29 14 00 00 call 10ca54 <_TOD_Tickle_ticks>
*/
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void )
{
_Watchdog_Tickle( &_Watchdog_Ticks_chain );
10b62b: 83 ec 0c sub $0xc,%esp
10b62e: 68 38 74 12 00 push $0x127438
10b633: e8 e8 35 00 00 call 10ec20 <_Watchdog_Tickle>
_Watchdog_Tickle_ticks();
_Thread_Tickle_timeslice();
10b638: e8 9f 30 00 00 call 10e6dc <_Thread_Tickle_timeslice>
* otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void )
{
return ( _Context_Switch_necessary );
10b63d: a0 28 74 12 00 mov 0x127428,%al
if ( _Thread_Is_context_switch_necessary() &&
10b642: 83 c4 10 add $0x10,%esp
10b645: 84 c0 test %al,%al
10b647: 74 09 je 10b652 <rtems_clock_tick+0x32>
* otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void )
{
return ( _Thread_Dispatch_disable_level == 0 );
10b649: a1 58 73 12 00 mov 0x127358,%eax
10b64e: 85 c0 test %eax,%eax
10b650: 74 06 je 10b658 <rtems_clock_tick+0x38>
_Thread_Is_dispatching_enabled() )
_Thread_Dispatch();
return RTEMS_SUCCESSFUL;
}
10b652: 31 c0 xor %eax,%eax
10b654: c9 leave
10b655: c3 ret
10b656: 66 90 xchg %ax,%ax
_Thread_Tickle_timeslice();
if ( _Thread_Is_context_switch_necessary() &&
_Thread_Is_dispatching_enabled() )
_Thread_Dispatch();
10b658: e8 d3 23 00 00 call 10da30 <_Thread_Dispatch>
return RTEMS_SUCCESSFUL;
}
10b65d: 31 c0 xor %eax,%eax
10b65f: c9 leave
10b660: c3 ret
0010881c <rtems_cpu_usage_report_with_plugin>:
void rtems_cpu_usage_report_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
10881c: 55 push %ebp
10881d: 89 e5 mov %esp,%ebp
10881f: 57 push %edi
108820: 56 push %esi
108821: 53 push %ebx
108822: 83 ec 6c sub $0x6c,%esp
108825: 8b 7d 08 mov 0x8(%ebp),%edi
Timestamp_Control uptime, total, ran;
#else
uint32_t total_units = 0;
#endif
if ( !print )
108828: 8b 45 0c mov 0xc(%ebp),%eax
10882b: 85 c0 test %eax,%eax
10882d: 0f 84 5f 01 00 00 je 108992 <rtems_cpu_usage_report_with_plugin+0x176><== 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 );
108833: 83 ec 0c sub $0xc,%esp
108836: 8d 45 d8 lea -0x28(%ebp),%eax
108839: 50 push %eax
10883a: e8 1d 57 00 00 call 10df5c <_TOD_Get_uptime>
_Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
10883f: 83 c4 0c add $0xc,%esp
108842: 8d 55 d0 lea -0x30(%ebp),%edx
108845: 52 push %edx
108846: 8d 4d d8 lea -0x28(%ebp),%ecx
108849: 51 push %ecx
10884a: 68 2c bc 12 00 push $0x12bc2c
10884f: e8 04 79 00 00 call 110158 <_Timespec_Subtract>
}
}
}
#endif
(*print)(
108854: 5b pop %ebx
108855: 5e pop %esi
108856: 68 d4 3a 12 00 push $0x123ad4
10885b: 57 push %edi
10885c: ff 55 0c call *0xc(%ebp)
10885f: c7 45 a4 01 00 00 00 movl $0x1,-0x5c(%ebp)
108866: 83 c4 10 add $0x10,%esp
);
for ( api_index = 1 ;
api_index <= OBJECTS_APIS_LAST ;
api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
108869: 8b 5d a4 mov -0x5c(%ebp),%ebx
10886c: 8b 04 9d 0c b9 12 00 mov 0x12b90c(,%ebx,4),%eax
108873: 85 c0 test %eax,%eax
108875: 0f 84 ed 00 00 00 je 108968 <rtems_cpu_usage_report_with_plugin+0x14c>
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
10887b: 8b 70 04 mov 0x4(%eax),%esi
if ( information ) {
10887e: 85 f6 test %esi,%esi
108880: 0f 84 e2 00 00 00 je 108968 <rtems_cpu_usage_report_with_plugin+0x14c><== NEVER TAKEN
for ( i=1 ; i <= information->maximum ; i++ ) {
108886: 66 83 7e 10 00 cmpw $0x0,0x10(%esi)
10888b: 0f 84 d7 00 00 00 je 108968 <rtems_cpu_usage_report_with_plugin+0x14c><== NEVER TAKEN
108891: bb 01 00 00 00 mov $0x1,%ebx
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
Timestamp_Control used;
_Timestamp_Subtract(
&_Thread_Time_of_last_context_switch, &uptime, &used
);
_Timestamp_Add_to( &ran, &used );
108896: 89 5d 94 mov %ebx,-0x6c(%ebp)
108899: eb 4b jmp 1088e6 <rtems_cpu_usage_report_with_plugin+0xca>
10889b: 90 nop
};
_Timestamp_Divide( &ran, &total, &ival, &fval );
10889c: 8d 5d e0 lea -0x20(%ebp),%ebx
10889f: 53 push %ebx
1088a0: 8d 45 e4 lea -0x1c(%ebp),%eax
1088a3: 50 push %eax
1088a4: 8d 55 d0 lea -0x30(%ebp),%edx
1088a7: 52 push %edx
1088a8: 8d 4d c8 lea -0x38(%ebp),%ecx
1088ab: 51 push %ecx
1088ac: e8 d3 77 00 00 call 110084 <_Timespec_Divide>
/*
* Print the information
*/
(*print)( context,
1088b1: 58 pop %eax
1088b2: 5a pop %edx
1088b3: ff 75 e0 pushl -0x20(%ebp)
1088b6: ff 75 e4 pushl -0x1c(%ebp)
1088b9: ba d3 4d 62 10 mov $0x10624dd3,%edx
1088be: 8b 45 cc mov -0x34(%ebp),%eax
1088c1: f7 e2 mul %edx
1088c3: c1 ea 06 shr $0x6,%edx
1088c6: 52 push %edx
1088c7: ff 75 c8 pushl -0x38(%ebp)
1088ca: 68 47 3d 12 00 push $0x123d47
1088cf: 57 push %edi
1088d0: ff 55 0c call *0xc(%ebp)
1088d3: 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++ ) {
1088d6: ff 45 94 incl -0x6c(%ebp)
1088d9: 0f b7 46 10 movzwl 0x10(%esi),%eax
1088dd: 3b 45 94 cmp -0x6c(%ebp),%eax
1088e0: 0f 82 82 00 00 00 jb 108968 <rtems_cpu_usage_report_with_plugin+0x14c>
the_thread = (Thread_Control *)information->local_table[ i ];
1088e6: 8b 46 1c mov 0x1c(%esi),%eax
1088e9: 8b 4d 94 mov -0x6c(%ebp),%ecx
1088ec: 8b 14 88 mov (%eax,%ecx,4),%edx
if ( !the_thread )
1088ef: 85 d2 test %edx,%edx
1088f1: 74 e3 je 1088d6 <rtems_cpu_usage_report_with_plugin+0xba><== NEVER TAKEN
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
1088f3: 51 push %ecx
1088f4: 8d 5d b3 lea -0x4d(%ebp),%ebx
1088f7: 53 push %ebx
1088f8: 6a 0d push $0xd
1088fa: ff 72 08 pushl 0x8(%edx)
1088fd: 89 55 a0 mov %edx,-0x60(%ebp)
108900: e8 07 44 00 00 call 10cd0c <rtems_object_get_name>
(*print)(
108905: 53 push %ebx
108906: 8b 55 a0 mov -0x60(%ebp),%edx
108909: ff 72 08 pushl 0x8(%edx)
10890c: 68 34 3d 12 00 push $0x123d34
108911: 57 push %edi
108912: 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;
108915: 8b 55 a0 mov -0x60(%ebp),%edx
108918: 8b 8a 84 00 00 00 mov 0x84(%edx),%ecx
10891e: 8b 9a 88 00 00 00 mov 0x88(%edx),%ebx
108924: 89 4d c8 mov %ecx,-0x38(%ebp)
108927: 89 5d cc mov %ebx,-0x34(%ebp)
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
10892a: 83 c4 20 add $0x20,%esp
10892d: a1 f8 b9 12 00 mov 0x12b9f8,%eax
108932: 8b 40 08 mov 0x8(%eax),%eax
108935: 3b 42 08 cmp 0x8(%edx),%eax
108938: 0f 85 5e ff ff ff jne 10889c <rtems_cpu_usage_report_with_plugin+0x80>
Timestamp_Control used;
_Timestamp_Subtract(
10893e: 52 push %edx
10893f: 8d 5d c0 lea -0x40(%ebp),%ebx
108942: 53 push %ebx
108943: 8d 45 d8 lea -0x28(%ebp),%eax
108946: 50 push %eax
108947: 68 00 ba 12 00 push $0x12ba00
10894c: e8 07 78 00 00 call 110158 <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch, &uptime, &used
);
_Timestamp_Add_to( &ran, &used );
108951: 59 pop %ecx
108952: 58 pop %eax
108953: 53 push %ebx
108954: 8d 4d c8 lea -0x38(%ebp),%ecx
108957: 51 push %ecx
108958: e8 eb 76 00 00 call 110048 <_Timespec_Add_to>
10895d: 83 c4 10 add $0x10,%esp
108960: e9 37 ff ff ff jmp 10889c <rtems_cpu_usage_report_with_plugin+0x80>
108965: 8d 76 00 lea 0x0(%esi),%esi
"------------+----------------------------------------+---------------+---------\n"
);
for ( api_index = 1 ;
api_index <= OBJECTS_APIS_LAST ;
api_index++ ) {
108968: ff 45 a4 incl -0x5c(%ebp)
" ID | NAME | TICKS | PERCENT\n"
#endif
"------------+----------------------------------------+---------------+---------\n"
);
for ( api_index = 1 ;
10896b: 83 7d a4 05 cmpl $0x5,-0x5c(%ebp)
10896f: 0f 85 f4 fe ff ff jne 108869 <rtems_cpu_usage_report_with_plugin+0x4d>
}
}
}
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)(
108975: ba d3 4d 62 10 mov $0x10624dd3,%edx
10897a: 8b 45 d4 mov -0x2c(%ebp),%eax
10897d: f7 e2 mul %edx
10897f: c1 ea 06 shr $0x6,%edx
108982: 52 push %edx
108983: ff 75 d0 pushl -0x30(%ebp)
108986: 68 48 3c 12 00 push $0x123c48
10898b: 57 push %edi
10898c: ff 55 0c call *0xc(%ebp)
10898f: 83 c4 10 add $0x10,%esp
"-------------------------------------------------------------------------------\n",
_Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset,
total_units
);
#endif
}
108992: 8d 65 f4 lea -0xc(%ebp),%esp
108995: 5b pop %ebx
108996: 5e pop %esi
108997: 5f pop %edi
108998: c9 leave
108999: c3 ret
00113d80 <rtems_deviceio_errno>:
{ 0, 0, 0 },
};
int
rtems_deviceio_errno(rtems_status_code code)
{
113d80: 55 push %ebp <== NOT EXECUTED
113d81: 89 e5 mov %esp,%ebp <== NOT EXECUTED
113d83: 53 push %ebx <== NOT EXECUTED
113d84: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
int rc;
if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
113d87: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
113d8a: 68 c0 21 12 00 push $0x1221c0 <== NOT EXECUTED
113d8f: e8 1c 00 00 00 call 113db0 <rtems_assoc_remote_by_local><== NOT EXECUTED
113d94: 89 c3 mov %eax,%ebx <== NOT EXECUTED
113d96: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
113d99: 85 c0 test %eax,%eax <== NOT EXECUTED
113d9b: 74 07 je 113da4 <rtems_deviceio_errno+0x24><== NOT EXECUTED
{
errno = rc;
113d9d: e8 9e 00 00 00 call 113e40 <__errno> <== NOT EXECUTED
113da2: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
return -1;
}
return -1;
}
113da4: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
113da9: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
113dac: c9 leave <== NOT EXECUTED
113dad: c3 ret <== NOT EXECUTED
00108960 <rtems_disk_create_log>:
dev_t phys,
rtems_blkdev_bnum begin_block,
rtems_blkdev_bnum block_count,
const char *name
)
{
108960: 55 push %ebp
108961: 89 e5 mov %esp,%ebp
108963: 57 push %edi
108964: 56 push %esi
108965: 53 push %ebx
108966: 83 ec 2c sub $0x2c,%esp
108969: 8b 45 08 mov 0x8(%ebp),%eax
10896c: 8b 55 0c mov 0xc(%ebp),%edx
10896f: 89 45 d0 mov %eax,-0x30(%ebp)
108972: 89 55 d4 mov %edx,-0x2c(%ebp)
108975: 8b 5d 10 mov 0x10(%ebp),%ebx
108978: 8b 75 14 mov 0x14(%ebp),%esi
10897b: 8b 7d 18 mov 0x18(%ebp),%edi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *physical_disk = NULL;
rtems_disk_device *dd = NULL;
10897e: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
rtems_blkdev_bnum end_block = begin_block + block_count;
sc = disk_lock();
108985: e8 72 fa ff ff call 1083fc <disk_lock>
if (sc != RTEMS_SUCCESSFUL) {
10898a: 85 c0 test %eax,%eax
10898c: 74 0a je 108998 <rtems_disk_create_log+0x38><== ALWAYS TAKEN
++physical_disk->uses;
disk_unlock();
return RTEMS_SUCCESSFUL;
}
10898e: 8d 65 f4 lea -0xc(%ebp),%esp
108991: 5b pop %ebx
108992: 5e pop %esi
108993: 5f pop %edi
108994: c9 leave
108995: c3 ret
108996: 66 90 xchg %ax,%ax
sc = disk_lock();
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
physical_disk = get_disk_entry(phys, true);
108998: b9 01 00 00 00 mov $0x1,%ecx
10899d: 89 d8 mov %ebx,%eax
10899f: 89 f2 mov %esi,%edx
1089a1: e8 76 f8 ff ff call 10821c <get_disk_entry>
1089a6: 89 c3 mov %eax,%ebx
if (physical_disk == NULL || !is_physical_disk(physical_disk)) {
1089a8: 85 c0 test %eax,%eax
1089aa: 74 05 je 1089b1 <rtems_disk_create_log+0x51>
1089ac: 3b 40 08 cmp 0x8(%eax),%eax
1089af: 74 13 je 1089c4 <rtems_disk_create_log+0x64>
disk_unlock();
1089b1: e8 76 fa ff ff call 10842c <disk_unlock>
1089b6: b8 04 00 00 00 mov $0x4,%eax
++physical_disk->uses;
disk_unlock();
return RTEMS_SUCCESSFUL;
}
1089bb: 8d 65 f4 lea -0xc(%ebp),%esp
1089be: 5b pop %ebx
1089bf: 5e pop %esi
1089c0: 5f pop %edi
1089c1: c9 leave
1089c2: c3 ret
1089c3: 90 nop
return RTEMS_INVALID_ID;
}
if (
begin_block >= physical_disk->size
|| end_block <= begin_block
1089c4: 8b 40 1c mov 0x1c(%eax),%eax
disk_unlock();
return RTEMS_INVALID_ID;
}
if (
1089c7: 39 c7 cmp %eax,%edi
1089c9: 73 09 jae 1089d4 <rtems_disk_create_log+0x74>
)
{
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;
1089cb: 8b 55 1c mov 0x1c(%ebp),%edx
1089ce: 01 fa add %edi,%edx
disk_unlock();
return RTEMS_INVALID_ID;
}
if (
1089d0: 39 d7 cmp %edx,%edi
1089d2: 72 0c jb 1089e0 <rtems_disk_create_log+0x80><== ALWAYS TAKEN
begin_block >= physical_disk->size
|| end_block <= begin_block
|| end_block > physical_disk->size
) {
disk_unlock();
1089d4: e8 53 fa ff ff call 10842c <disk_unlock>
1089d9: b8 0a 00 00 00 mov $0xa,%eax
return RTEMS_INVALID_NUMBER;
1089de: eb ae jmp 10898e <rtems_disk_create_log+0x2e>
disk_unlock();
return RTEMS_INVALID_ID;
}
if (
1089e0: 39 c2 cmp %eax,%edx
1089e2: 77 f0 ja 1089d4 <rtems_disk_create_log+0x74>
disk_unlock();
return RTEMS_INVALID_NUMBER;
}
sc = create_disk(dev, name, &dd);
1089e4: 83 ec 0c sub $0xc,%esp
1089e7: 8d 45 e4 lea -0x1c(%ebp),%eax
1089ea: 50 push %eax
1089eb: 8b 4d 20 mov 0x20(%ebp),%ecx
1089ee: 8b 45 d0 mov -0x30(%ebp),%eax
1089f1: 8b 55 d4 mov -0x2c(%ebp),%edx
1089f4: e8 43 fd ff ff call 10873c <create_disk>
if (sc != RTEMS_SUCCESSFUL) {
1089f9: 83 c4 10 add $0x10,%esp
1089fc: 85 c0 test %eax,%eax
1089fe: 75 27 jne 108a27 <rtems_disk_create_log+0xc7>
disk_unlock();
return sc;
}
dd->phys_dev = physical_disk;
108a00: 8b 55 e4 mov -0x1c(%ebp),%edx
108a03: 89 5a 08 mov %ebx,0x8(%edx)
dd->start = begin_block;
108a06: 89 7a 18 mov %edi,0x18(%edx)
dd->size = block_count;
108a09: 8b 4d 1c mov 0x1c(%ebp),%ecx
108a0c: 89 4a 1c mov %ecx,0x1c(%edx)
dd->block_size = dd->media_block_size = physical_disk->block_size;
108a0f: 8b 4b 20 mov 0x20(%ebx),%ecx
108a12: 89 4a 24 mov %ecx,0x24(%edx)
108a15: 89 4a 20 mov %ecx,0x20(%edx)
dd->ioctl = physical_disk->ioctl;
108a18: 8b 4b 28 mov 0x28(%ebx),%ecx
108a1b: 89 4a 28 mov %ecx,0x28(%edx)
dd->driver_data = physical_disk->driver_data;
108a1e: 8b 4b 2c mov 0x2c(%ebx),%ecx
108a21: 89 4a 2c mov %ecx,0x2c(%edx)
++physical_disk->uses;
108a24: ff 43 14 incl 0x14(%ebx)
disk_unlock();
108a27: 89 45 cc mov %eax,-0x34(%ebp)
108a2a: e8 fd f9 ff ff call 10842c <disk_unlock>
108a2f: 8b 45 cc mov -0x34(%ebp),%eax
return RTEMS_SUCCESSFUL;
108a32: e9 57 ff ff ff jmp 10898e <rtems_disk_create_log+0x2e>
00108a38 <rtems_disk_create_phys>:
rtems_blkdev_bnum block_count,
rtems_block_device_ioctl handler,
void *driver_data,
const char *name
)
{
108a38: 55 push %ebp
108a39: 89 e5 mov %esp,%ebp
108a3b: 57 push %edi
108a3c: 56 push %esi
108a3d: 53 push %ebx
108a3e: 83 ec 2c sub $0x2c,%esp
108a41: 8b 5d 08 mov 0x8(%ebp),%ebx
108a44: 8b 75 0c mov 0xc(%ebp),%esi
108a47: 8b 7d 18 mov 0x18(%ebp),%edi
rtems_disk_device *dd = NULL;
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (handler == NULL) {
108a4a: 85 ff test %edi,%edi
108a4c: 0f 84 9a 00 00 00 je 108aec <rtems_disk_create_phys+0xb4>
return RTEMS_INVALID_ADDRESS;
}
if (block_size == 0) {
108a52: 8b 45 10 mov 0x10(%ebp),%eax
108a55: 85 c0 test %eax,%eax
108a57: 75 0f jne 108a68 <rtems_disk_create_phys+0x30>
108a59: ba 0a 00 00 00 mov $0xa,%edx
}
disk_unlock();
return RTEMS_SUCCESSFUL;
}
108a5e: 89 d0 mov %edx,%eax
108a60: 8d 65 f4 lea -0xc(%ebp),%esp
108a63: 5b pop %ebx
108a64: 5e pop %esi
108a65: 5f pop %edi
108a66: c9 leave
108a67: c3 ret
rtems_block_device_ioctl handler,
void *driver_data,
const char *name
)
{
rtems_disk_device *dd = NULL;
108a68: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
if (block_size == 0) {
return RTEMS_INVALID_NUMBER;
}
sc = disk_lock();
108a6f: e8 88 f9 ff ff call 1083fc <disk_lock>
108a74: 89 c2 mov %eax,%edx
if (sc != RTEMS_SUCCESSFUL) {
108a76: 85 c0 test %eax,%eax
108a78: 75 e4 jne 108a5e <rtems_disk_create_phys+0x26><== NEVER TAKEN
return sc;
}
sc = create_disk(dev, name, &dd);
108a7a: 83 ec 0c sub $0xc,%esp
108a7d: 8d 45 e4 lea -0x1c(%ebp),%eax
108a80: 50 push %eax
108a81: 8b 4d 20 mov 0x20(%ebp),%ecx
108a84: 89 d8 mov %ebx,%eax
108a86: 89 f2 mov %esi,%edx
108a88: e8 af fc ff ff call 10873c <create_disk>
108a8d: 89 c2 mov %eax,%edx
if (sc != RTEMS_SUCCESSFUL) {
108a8f: 83 c4 10 add $0x10,%esp
108a92: 85 c0 test %eax,%eax
108a94: 75 3f jne 108ad5 <rtems_disk_create_phys+0x9d>
disk_unlock();
return sc;
}
dd->phys_dev = dd;
108a96: 8b 45 e4 mov -0x1c(%ebp),%eax
108a99: 89 40 08 mov %eax,0x8(%eax)
dd->start = 0;
108a9c: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax)
dd->size = block_count;
108aa3: 8b 4d 14 mov 0x14(%ebp),%ecx
108aa6: 89 48 1c mov %ecx,0x1c(%eax)
dd->block_size = dd->media_block_size = block_size;
108aa9: 8b 4d 10 mov 0x10(%ebp),%ecx
108aac: 89 48 24 mov %ecx,0x24(%eax)
108aaf: 89 48 20 mov %ecx,0x20(%eax)
dd->ioctl = handler;
108ab2: 89 78 28 mov %edi,0x28(%eax)
dd->driver_data = driver_data;
108ab5: 8b 4d 1c mov 0x1c(%ebp),%ecx
108ab8: 89 48 2c mov %ecx,0x2c(%eax)
if ((*handler)(dd, RTEMS_BLKIO_CAPABILITIES, &dd->capabilities) < 0) {
108abb: 51 push %ecx
108abc: 8d 48 0c lea 0xc(%eax),%ecx
108abf: 51 push %ecx
108ac0: 68 08 42 00 20 push $0x20004208
108ac5: 50 push %eax
108ac6: 89 55 d4 mov %edx,-0x2c(%ebp)
108ac9: ff d7 call *%edi
108acb: 83 c4 10 add $0x10,%esp
108ace: 85 c0 test %eax,%eax
108ad0: 8b 55 d4 mov -0x2c(%ebp),%edx
108ad3: 78 23 js 108af8 <rtems_disk_create_phys+0xc0>
dd->capabilities = 0;
}
disk_unlock();
108ad5: 89 55 d4 mov %edx,-0x2c(%ebp)
108ad8: e8 4f f9 ff ff call 10842c <disk_unlock>
108add: 8b 55 d4 mov -0x2c(%ebp),%edx
return RTEMS_SUCCESSFUL;
}
108ae0: 89 d0 mov %edx,%eax
108ae2: 8d 65 f4 lea -0xc(%ebp),%esp
108ae5: 5b pop %ebx
108ae6: 5e pop %esi
108ae7: 5f pop %edi
108ae8: c9 leave
108ae9: c3 ret
108aea: 66 90 xchg %ax,%ax
)
{
rtems_disk_device *dd = NULL;
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (handler == NULL) {
108aec: ba 09 00 00 00 mov $0x9,%edx
108af1: e9 68 ff ff ff jmp 108a5e <rtems_disk_create_phys+0x26>
108af6: 66 90 xchg %ax,%ax
dd->block_size = dd->media_block_size = block_size;
dd->ioctl = handler;
dd->driver_data = driver_data;
if ((*handler)(dd, RTEMS_BLKIO_CAPABILITIES, &dd->capabilities) < 0) {
dd->capabilities = 0;
108af8: 8b 45 e4 mov -0x1c(%ebp),%eax
108afb: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
108b02: eb d1 jmp 108ad5 <rtems_disk_create_phys+0x9d>
00108570 <rtems_disk_delete>:
}
}
rtems_status_code
rtems_disk_delete(dev_t dev)
{
108570: 55 push %ebp
108571: 89 e5 mov %esp,%ebp
108573: 57 push %edi
108574: 56 push %esi
108575: 53 push %ebx
108576: 83 ec 2c sub $0x2c,%esp
108579: 8b 5d 08 mov 0x8(%ebp),%ebx
10857c: 8b 75 0c mov 0xc(%ebp),%esi
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
sc = disk_lock();
10857f: e8 78 fe ff ff call 1083fc <disk_lock>
108584: 89 45 d4 mov %eax,-0x2c(%ebp)
if (sc != RTEMS_SUCCESSFUL) {
108587: 85 c0 test %eax,%eax
108589: 74 0d je 108598 <rtems_disk_delete+0x28><== ALWAYS TAKEN
rtems_disk_cleanup(dd);
disk_unlock();
return RTEMS_SUCCESSFUL;
}
10858b: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
10858e: 83 c4 2c add $0x2c,%esp <== NOT EXECUTED
108591: 5b pop %ebx <== NOT EXECUTED
108592: 5e pop %esi <== NOT EXECUTED
108593: 5f pop %edi <== NOT EXECUTED
108594: c9 leave <== NOT EXECUTED
108595: c3 ret <== NOT EXECUTED
108596: 66 90 xchg %ax,%ax <== NOT EXECUTED
sc = disk_lock();
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
dd = get_disk_entry(dev, true);
108598: b9 01 00 00 00 mov $0x1,%ecx
10859d: 89 d8 mov %ebx,%eax
10859f: 89 f2 mov %esi,%edx
1085a1: e8 76 fc ff ff call 10821c <get_disk_entry>
if (dd == NULL) {
1085a6: 85 c0 test %eax,%eax
1085a8: 0f 84 21 01 00 00 je 1086cf <rtems_disk_delete+0x15f><== NEVER TAKEN
disk_unlock();
return RTEMS_INVALID_ID;
}
dd->deleted = true;
1085ae: 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;
1085b2: 8b 50 08 mov 0x8(%eax),%edx
1085b5: 89 55 d8 mov %edx,-0x28(%ebp)
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
if (physical_disk->deleted) {
1085b8: 80 7a 30 00 cmpb $0x0,0x30(%edx)
1085bc: 0f 84 c2 00 00 00 je 108684 <rtems_disk_delete+0x114>
dev_t dev = physical_disk->dev;
1085c2: 8b 02 mov (%edx),%eax
1085c4: 89 45 e4 mov %eax,-0x1c(%ebp)
1085c7: 8b 52 04 mov 0x4(%edx),%edx
1085ca: 89 55 e0 mov %edx,-0x20(%ebp)
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
1085cd: 8b 15 04 af 12 00 mov 0x12af04,%edx
1085d3: 85 d2 test %edx,%edx
1085d5: 0f 84 0b 01 00 00 je 1086e6 <rtems_disk_delete+0x176><== NEVER TAKEN
1085db: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp)
1085e2: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
1085e9: 8d 76 00 lea 0x0(%esi),%esi
rtems_disk_device_table *dtab = disktab + major;
1085ec: 8b 75 dc mov -0x24(%ebp),%esi
1085ef: c1 e6 03 shl $0x3,%esi
1085f2: 03 35 00 af 12 00 add 0x12af00,%esi
for (minor = 0; minor < dtab->size; ++minor) {
1085f8: 8b 46 04 mov 0x4(%esi),%eax
1085fb: 85 c0 test %eax,%eax
1085fd: 74 49 je 108648 <rtems_disk_delete+0xd8>
1085ff: 31 db xor %ebx,%ebx
108601: eb 07 jmp 10860a <rtems_disk_delete+0x9a>
108603: 90 nop
108604: 43 inc %ebx
108605: 3b 5e 04 cmp 0x4(%esi),%ebx
108608: 73 3e jae 108648 <rtems_disk_delete+0xd8>
rtems_disk_device *dd = dtab->minor [minor];
10860a: 8d 14 9d 00 00 00 00 lea 0x0(,%ebx,4),%edx
108611: 03 16 add (%esi),%edx
108613: 8b 02 mov (%edx),%eax
if (dd != NULL && dd->phys_dev->dev == dev && dd != physical_disk) {
108615: 85 c0 test %eax,%eax
108617: 74 eb je 108604 <rtems_disk_delete+0x94>
108619: 8b 48 08 mov 0x8(%eax),%ecx
10861c: 8b 7d e0 mov -0x20(%ebp),%edi
10861f: 33 79 04 xor 0x4(%ecx),%edi
108622: 8b 09 mov (%ecx),%ecx
108624: 33 4d e4 xor -0x1c(%ebp),%ecx
108627: 09 cf or %ecx,%edi
108629: 75 d9 jne 108604 <rtems_disk_delete+0x94><== NEVER TAKEN
10862b: 39 45 d8 cmp %eax,-0x28(%ebp)
10862e: 74 d4 je 108604 <rtems_disk_delete+0x94>
if (dd->uses == 0) {
108630: 8b 78 14 mov 0x14(%eax),%edi
108633: 85 ff test %edi,%edi
108635: 0f 84 81 00 00 00 je 1086bc <rtems_disk_delete+0x14c>
++deleted_count;
dtab->minor [minor] = NULL;
free_disk_device(dd);
} else {
dd->deleted = true;
10863b: 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) {
10863f: 43 inc %ebx
108640: 3b 5e 04 cmp 0x4(%esi),%ebx
108643: 72 c5 jb 10860a <rtems_disk_delete+0x9a><== ALWAYS TAKEN
108645: 8d 76 00 lea 0x0(%esi),%esi
if (physical_disk->deleted) {
dev_t dev = physical_disk->dev;
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
108648: ff 45 dc incl -0x24(%ebp)
10864b: 8b 45 dc mov -0x24(%ebp),%eax
10864e: 3b 05 04 af 12 00 cmp 0x12af04,%eax
108654: 72 96 jb 1085ec <rtems_disk_delete+0x7c>
}
}
}
}
physical_disk->uses -= deleted_count;
108656: 8b 55 d8 mov -0x28(%ebp),%edx
108659: 8b 42 14 mov 0x14(%edx),%eax
10865c: 2b 45 d0 sub -0x30(%ebp),%eax
10865f: 89 42 14 mov %eax,0x14(%edx)
if (physical_disk->uses == 0) {
108662: 85 c0 test %eax,%eax
108664: 75 46 jne 1086ac <rtems_disk_delete+0x13c>
rtems_filesystem_split_dev_t(physical_disk->dev, major, minor);
108666: 8b 0a mov (%edx),%ecx
108668: 8b 52 04 mov 0x4(%edx),%edx
disktab [major].minor [minor] = NULL;
10866b: a1 00 af 12 00 mov 0x12af00,%eax
108670: 8b 04 c8 mov (%eax,%ecx,8),%eax
108673: c7 04 90 00 00 00 00 movl $0x0,(%eax,%edx,4)
free_disk_device(physical_disk);
10867a: 8b 45 d8 mov -0x28(%ebp),%eax
10867d: e8 de fb ff ff call 108260 <free_disk_device>
108682: eb 28 jmp 1086ac <rtems_disk_delete+0x13c>
}
} else {
if (disk_to_remove->uses == 0) {
108684: 8b 48 14 mov 0x14(%eax),%ecx
108687: 85 c9 test %ecx,%ecx
108689: 75 21 jne 1086ac <rtems_disk_delete+0x13c><== NEVER TAKEN
--physical_disk->uses;
10868b: 8b 55 d8 mov -0x28(%ebp),%edx
10868e: ff 4a 14 decl 0x14(%edx)
rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
108691: 8b 18 mov (%eax),%ebx
108693: 8b 48 04 mov 0x4(%eax),%ecx
disktab [major].minor [minor] = NULL;
108696: 8b 15 00 af 12 00 mov 0x12af00,%edx
10869c: 8b 14 da mov (%edx,%ebx,8),%edx
10869f: c7 04 8a 00 00 00 00 movl $0x0,(%edx,%ecx,4)
free_disk_device(disk_to_remove);
1086a6: e8 b5 fb ff ff call 108260 <free_disk_device>
1086ab: 90 nop
}
dd->deleted = true;
rtems_disk_cleanup(dd);
disk_unlock();
1086ac: e8 7b fd ff ff call 10842c <disk_unlock>
return RTEMS_SUCCESSFUL;
}
1086b1: 8b 45 d4 mov -0x2c(%ebp),%eax
1086b4: 83 c4 2c add $0x2c,%esp
1086b7: 5b pop %ebx
1086b8: 5e pop %esi
1086b9: 5f pop %edi
1086ba: c9 leave
1086bb: c3 ret
for (minor = 0; minor < dtab->size; ++minor) {
rtems_disk_device *dd = dtab->minor [minor];
if (dd != NULL && dd->phys_dev->dev == dev && dd != physical_disk) {
if (dd->uses == 0) {
++deleted_count;
1086bc: ff 45 d0 incl -0x30(%ebp)
dtab->minor [minor] = NULL;
1086bf: c7 02 00 00 00 00 movl $0x0,(%edx)
free_disk_device(dd);
1086c5: e8 96 fb ff ff call 108260 <free_disk_device>
1086ca: e9 35 ff ff ff jmp 108604 <rtems_disk_delete+0x94>
return sc;
}
dd = get_disk_entry(dev, true);
if (dd == NULL) {
disk_unlock();
1086cf: e8 58 fd ff ff call 10842c <disk_unlock> <== NOT EXECUTED
1086d4: c7 45 d4 04 00 00 00 movl $0x4,-0x2c(%ebp) <== NOT EXECUTED
rtems_disk_cleanup(dd);
disk_unlock();
return RTEMS_SUCCESSFUL;
}
1086db: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
1086de: 83 c4 2c add $0x2c,%esp <== NOT EXECUTED
1086e1: 5b pop %ebx <== NOT EXECUTED
1086e2: 5e pop %esi <== NOT EXECUTED
1086e3: 5f pop %edi <== NOT EXECUTED
1086e4: c9 leave <== NOT EXECUTED
1086e5: c3 ret <== NOT EXECUTED
if (physical_disk->deleted) {
dev_t dev = physical_disk->dev;
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
1086e6: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
1086ed: e9 64 ff ff ff jmp 108656 <rtems_disk_delete+0xe6><== NOT EXECUTED
001082b0 <rtems_disk_io_done>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_disk_io_done(void)
{
1082b0: 55 push %ebp
1082b1: 89 e5 mov %esp,%ebp
1082b3: 57 push %edi
1082b4: 56 push %esi
1082b5: 53 push %ebx
1082b6: 83 ec 0c sub $0xc,%esp
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
for (major = 0; major < disktab_size; ++major) {
1082b9: 8b 35 04 af 12 00 mov 0x12af04,%esi
1082bf: 85 f6 test %esi,%esi
1082c1: 74 46 je 108309 <rtems_disk_io_done+0x59><== NEVER TAKEN
1082c3: 31 ff xor %edi,%edi
1082c5: 8d 76 00 lea 0x0(%esi),%esi
rtems_disk_device_table *dtab = disktab + major;
1082c8: 8d 34 fd 00 00 00 00 lea 0x0(,%edi,8),%esi
1082cf: 03 35 00 af 12 00 add 0x12af00,%esi
for (minor = 0; minor < dtab->size; ++minor) {
1082d5: 8b 5e 04 mov 0x4(%esi),%ebx
1082d8: 85 db test %ebx,%ebx
1082da: 74 6f je 10834b <rtems_disk_io_done+0x9b>
1082dc: 8b 16 mov (%esi),%edx
1082de: 31 db xor %ebx,%ebx
rtems_disk_device *dd = dtab->minor [minor];
1082e0: 8b 04 9a mov (%edx,%ebx,4),%eax
if (dd != NULL) {
1082e3: 85 c0 test %eax,%eax
1082e5: 74 07 je 1082ee <rtems_disk_io_done+0x3e><== ALWAYS TAKEN
free_disk_device(dd);
1082e7: e8 74 ff ff ff call 108260 <free_disk_device> <== NOT EXECUTED
1082ec: 8b 16 mov (%esi),%edx <== 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) {
1082ee: 43 inc %ebx
1082ef: 39 5e 04 cmp %ebx,0x4(%esi)
1082f2: 77 ec ja 1082e0 <rtems_disk_io_done+0x30>
if (dd != NULL) {
free_disk_device(dd);
}
}
free(dtab->minor);
1082f4: 83 ec 0c sub $0xc,%esp
1082f7: 52 push %edx
1082f8: e8 8f 11 00 00 call 10948c <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) {
1082fd: 47 inc %edi
1082fe: 83 c4 10 add $0x10,%esp
108301: 39 3d 04 af 12 00 cmp %edi,0x12af04
108307: 77 bf ja 1082c8 <rtems_disk_io_done+0x18>
free_disk_device(dd);
}
}
free(dtab->minor);
}
free(disktab);
108309: 83 ec 0c sub $0xc,%esp
10830c: ff 35 00 af 12 00 pushl 0x12af00
108312: e8 75 11 00 00 call 10948c <free>
rtems_semaphore_delete(diskdevs_mutex);
108317: 59 pop %ecx
108318: ff 35 08 af 12 00 pushl 0x12af08
10831e: e8 bd 4a 00 00 call 10cde0 <rtems_semaphore_delete>
diskdevs_mutex = RTEMS_ID_NONE;
108323: c7 05 08 af 12 00 00 movl $0x0,0x12af08
10832a: 00 00 00
disktab = NULL;
10832d: c7 05 00 af 12 00 00 movl $0x0,0x12af00
108334: 00 00 00
disktab_size = 0;
108337: c7 05 04 af 12 00 00 movl $0x0,0x12af04
10833e: 00 00 00
return RTEMS_SUCCESSFUL;
}
108341: 31 c0 xor %eax,%eax
108343: 8d 65 f4 lea -0xc(%ebp),%esp
108346: 5b pop %ebx
108347: 5e pop %esi
108348: 5f pop %edi
108349: c9 leave
10834a: c3 ret
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) {
10834b: 8b 16 mov (%esi),%edx
10834d: eb a5 jmp 1082f4 <rtems_disk_io_done+0x44>
00108350 <rtems_disk_io_initialize>:
}
}
rtems_status_code
rtems_disk_io_initialize(void)
{
108350: 55 push %ebp
108351: 89 e5 mov %esp,%ebp
108353: 83 ec 08 sub $0x8,%esp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_device_major_number size = DISKTAB_INITIAL_SIZE;
if (disktab_size > 0) {
108356: 8b 15 04 af 12 00 mov 0x12af04,%edx
10835c: 85 d2 test %edx,%edx
10835e: 74 04 je 108364 <rtems_disk_io_initialize+0x14><== ALWAYS TAKEN
free(disktab);
return RTEMS_UNSATISFIED;
}
disktab_size = size;
108360: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
108362: c9 leave
108363: c3 ret
if (disktab_size > 0) {
return RTEMS_SUCCESSFUL;
}
disktab = calloc(size, sizeof(rtems_disk_device_table));
108364: 83 ec 08 sub $0x8,%esp
108367: 6a 08 push $0x8
108369: 6a 08 push $0x8
10836b: e8 04 0f 00 00 call 109274 <calloc>
108370: a3 00 af 12 00 mov %eax,0x12af00
if (disktab == NULL) {
108375: 83 c4 10 add $0x10,%esp
108378: 85 c0 test %eax,%eax
10837a: 74 58 je 1083d4 <rtems_disk_io_initialize+0x84><== NEVER TAKEN
return RTEMS_NO_MEMORY;
}
diskdevs_protected = false;
10837c: c6 05 0c af 12 00 00 movb $0x0,0x12af0c
sc = rtems_semaphore_create(
108383: 83 ec 0c sub $0xc,%esp
108386: 68 08 af 12 00 push $0x12af08
10838b: 6a 00 push $0x0
10838d: 6a 10 push $0x10
10838f: 6a 01 push $0x1
108391: 68 56 45 44 44 push $0x44444556
108396: e8 71 48 00 00 call 10cc0c <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) {
10839b: 83 c4 20 add $0x20,%esp
10839e: 85 c0 test %eax,%eax
1083a0: 74 1a je 1083bc <rtems_disk_io_initialize+0x6c><== ALWAYS TAKEN
free(disktab);
1083a2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1083a5: ff 35 00 af 12 00 pushl 0x12af00 <== NOT EXECUTED
1083ab: e8 dc 10 00 00 call 10948c <free> <== NOT EXECUTED
1083b0: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
return RTEMS_NO_MEMORY;
1083b5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
disktab_size = size;
return RTEMS_SUCCESSFUL;
}
1083b8: c9 leave <== NOT EXECUTED
1083b9: c3 ret <== NOT EXECUTED
1083ba: 66 90 xchg %ax,%ax <== NOT EXECUTED
free(disktab);
return RTEMS_NO_MEMORY;
}
sc = rtems_bdbuf_init();
1083bc: e8 97 89 00 00 call 110d58 <rtems_bdbuf_init>
if (sc != RTEMS_SUCCESSFUL) {
1083c1: 85 c0 test %eax,%eax
1083c3: 75 13 jne 1083d8 <rtems_disk_io_initialize+0x88><== NEVER TAKEN
free(disktab);
return RTEMS_UNSATISFIED;
}
disktab_size = size;
1083c5: c7 05 04 af 12 00 08 movl $0x8,0x12af04
1083cc: 00 00 00
1083cf: 31 c0 xor %eax,%eax
1083d1: eb 8f jmp 108362 <rtems_disk_io_initialize+0x12>
1083d3: 90 nop
if (disktab_size > 0) {
return RTEMS_SUCCESSFUL;
}
disktab = calloc(size, sizeof(rtems_disk_device_table));
if (disktab == NULL) {
1083d4: b0 1a mov $0x1a,%al <== NOT EXECUTED
}
disktab_size = size;
return RTEMS_SUCCESSFUL;
}
1083d6: c9 leave <== NOT EXECUTED
1083d7: c3 ret <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
sc = rtems_bdbuf_init();
if (sc != RTEMS_SUCCESSFUL) {
rtems_semaphore_delete(diskdevs_mutex);
1083d8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1083db: ff 35 08 af 12 00 pushl 0x12af08 <== NOT EXECUTED
1083e1: e8 fa 49 00 00 call 10cde0 <rtems_semaphore_delete><== NOT EXECUTED
free(disktab);
1083e6: 58 pop %eax <== NOT EXECUTED
1083e7: ff 35 00 af 12 00 pushl 0x12af00 <== NOT EXECUTED
1083ed: e8 9a 10 00 00 call 10948c <free> <== NOT EXECUTED
1083f2: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_UNSATISFIED;
1083f7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
disktab_size = size;
return RTEMS_SUCCESSFUL;
}
1083fa: c9 leave <== NOT EXECUTED
1083fb: c3 ret <== NOT EXECUTED
0010845c <rtems_disk_next>:
return RTEMS_SUCCESSFUL;
}
rtems_disk_device *
rtems_disk_next(dev_t dev)
{
10845c: 55 push %ebp
10845d: 89 e5 mov %esp,%ebp
10845f: 57 push %edi
108460: 56 push %esi
108461: 53 push %ebx
108462: 83 ec 1c sub $0x1c,%esp
108465: 8b 75 08 mov 0x8(%ebp),%esi
108468: 8b 5d 0c mov 0xc(%ebp),%ebx
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) {
10846b: 89 f0 mov %esi,%eax
10846d: 21 d8 and %ebx,%eax
10846f: 40 inc %eax
108470: 74 18 je 10848a <rtems_disk_next+0x2e>
rtems_filesystem_split_dev_t(dev, major, minor);
/* If minor wraps around */
if ((minor + 1) < minor) {
108472: 83 c3 01 add $0x1,%ebx
108475: 73 19 jae 108490 <rtems_disk_next+0x34> <== ALWAYS TAKEN
/* If major wraps around */
if ((major + 1) < major) {
108477: 83 c6 01 add $0x1,%esi <== NOT EXECUTED
10847a: 0f 83 8f 00 00 00 jae 10850f <rtems_disk_next+0xb3> <== NOT EXECUTED
++minor;
} else {
++dtab->minor [minor]->uses;
disk_unlock();
return dtab->minor [minor];
108480: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
}
108482: 83 c4 1c add $0x1c,%esp <== NOT EXECUTED
108485: 5b pop %ebx <== NOT EXECUTED
108486: 5e pop %esi <== NOT EXECUTED
108487: 5f pop %edi <== NOT EXECUTED
108488: c9 leave <== NOT EXECUTED
108489: c3 ret <== NOT EXECUTED
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) {
10848a: 31 db xor %ebx,%ebx
10848c: 31 f6 xor %esi,%esi
10848e: 66 90 xchg %ax,%ax
} else {
++minor;
}
}
sc = disk_lock();
108490: e8 67 ff ff ff call 1083fc <disk_lock>
if (sc != RTEMS_SUCCESSFUL) {
108495: 85 c0 test %eax,%eax
108497: 75 e7 jne 108480 <rtems_disk_next+0x24> <== NEVER TAKEN
return NULL;
}
if (major >= disktab_size) {
108499: a1 04 af 12 00 mov 0x12af04,%eax
10849e: 89 45 e4 mov %eax,-0x1c(%ebp)
1084a1: 39 c6 cmp %eax,%esi
1084a3: 73 3f jae 1084e4 <rtems_disk_next+0x88> <== NEVER TAKEN
disk_unlock();
return NULL;
}
dtab = disktab + major;
1084a5: a1 00 af 12 00 mov 0x12af00,%eax
1084aa: 89 45 e0 mov %eax,-0x20(%ebp)
1084ad: 8d 3c f0 lea (%eax,%esi,8),%edi
1084b0: 8b 07 mov (%edi),%eax
1084b2: 66 90 xchg %ax,%ax
while (true) {
if (dtab->minor == NULL || minor >= dtab->size) {
1084b4: 85 c0 test %eax,%eax
1084b6: 74 18 je 1084d0 <rtems_disk_next+0x74>
1084b8: 3b 5f 04 cmp 0x4(%edi),%ebx
1084bb: 73 13 jae 1084d0 <rtems_disk_next+0x74>
disk_unlock();
return NULL;
}
dtab = disktab + major;
} else if (dtab->minor [minor] == NULL) {
1084bd: 8d 0c 9d 00 00 00 00 lea 0x0(,%ebx,4),%ecx
1084c4: 8b 14 08 mov (%eax,%ecx,1),%edx
1084c7: 85 d2 test %edx,%edx
1084c9: 75 29 jne 1084f4 <rtems_disk_next+0x98>
++minor;
1084cb: 43 inc %ebx
return NULL;
}
dtab = disktab + major;
while (true) {
if (dtab->minor == NULL || minor >= dtab->size) {
1084cc: 85 c0 test %eax,%eax
1084ce: 75 e8 jne 1084b8 <rtems_disk_next+0x5c> <== ALWAYS TAKEN
minor = 0;
++major;
1084d0: 46 inc %esi
if (major >= disktab_size) {
1084d1: 39 75 e4 cmp %esi,-0x1c(%ebp)
1084d4: 76 0e jbe 1084e4 <rtems_disk_next+0x88>
disk_unlock();
return NULL;
}
dtab = disktab + major;
1084d6: 8b 45 e0 mov -0x20(%ebp),%eax
1084d9: 8d 3c f0 lea (%eax,%esi,8),%edi
1084dc: 8b 07 mov (%edi),%eax
1084de: 31 db xor %ebx,%ebx
return NULL;
}
dtab = disktab + major;
while (true) {
if (dtab->minor == NULL || minor >= dtab->size) {
1084e0: eb d2 jmp 1084b4 <rtems_disk_next+0x58>
1084e2: 66 90 xchg %ax,%ax
minor = 0;
++major;
if (major >= disktab_size) {
disk_unlock();
1084e4: e8 43 ff ff ff call 10842c <disk_unlock>
1084e9: 31 c0 xor %eax,%eax
disk_unlock();
return dtab->minor [minor];
}
}
}
1084eb: 83 c4 1c add $0x1c,%esp
1084ee: 5b pop %ebx
1084ef: 5e pop %esi
1084f0: 5f pop %edi
1084f1: c9 leave
1084f2: c3 ret
1084f3: 90 nop
}
dtab = disktab + major;
} else if (dtab->minor [minor] == NULL) {
++minor;
} else {
++dtab->minor [minor]->uses;
1084f4: ff 42 14 incl 0x14(%edx)
disk_unlock();
1084f7: 89 4d dc mov %ecx,-0x24(%ebp)
1084fa: e8 2d ff ff ff call 10842c <disk_unlock>
return dtab->minor [minor];
1084ff: 8b 07 mov (%edi),%eax
108501: 8b 4d dc mov -0x24(%ebp),%ecx
108504: 8b 04 08 mov (%eax,%ecx,1),%eax
}
}
}
108507: 83 c4 1c add $0x1c,%esp
10850a: 5b pop %ebx
10850b: 5e pop %esi
10850c: 5f pop %edi
10850d: c9 leave
10850e: c3 ret
rtems_filesystem_split_dev_t(dev, major, minor);
/* If minor wraps around */
if ((minor + 1) < minor) {
/* If major wraps around */
if ((major + 1) < major) {
10850f: 31 db xor %ebx,%ebx
108511: e9 7a ff ff ff jmp 108490 <rtems_disk_next+0x34> <== NOT EXECUTED
00108518 <rtems_disk_obtain>:
return RTEMS_SUCCESSFUL;
}
rtems_disk_device *
rtems_disk_obtain(dev_t dev)
{
108518: 55 push %ebp
108519: 89 e5 mov %esp,%ebp
10851b: 57 push %edi
10851c: 56 push %esi
10851d: 53 push %ebx
10851e: 83 ec 1c sub $0x1c,%esp
108521: 8b 5d 08 mov 0x8(%ebp),%ebx
108524: 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);
108527: 9c pushf
108528: fa cli
108529: 5f pop %edi
if (!diskdevs_protected) {
10852a: a0 0c af 12 00 mov 0x12af0c,%al
10852f: 84 c0 test %al,%al
108531: 75 15 jne 108548 <rtems_disk_obtain+0x30><== NEVER TAKEN
/* Frequent and quickest case */
dd = get_disk_entry(dev, false);
108533: 31 c9 xor %ecx,%ecx
108535: 89 d8 mov %ebx,%eax
108537: 89 f2 mov %esi,%edx
108539: e8 de fc ff ff call 10821c <get_disk_entry>
rtems_interrupt_enable(level);
10853e: 57 push %edi
10853f: 9d popf
disk_unlock();
}
}
return dd;
}
108540: 83 c4 1c add $0x1c,%esp
108543: 5b pop %ebx
108544: 5e pop %esi
108545: 5f pop %edi
108546: c9 leave
108547: c3 ret
if (!diskdevs_protected) {
/* Frequent and quickest case */
dd = get_disk_entry(dev, false);
rtems_interrupt_enable(level);
} else {
rtems_interrupt_enable(level);
108548: 57 push %edi <== NOT EXECUTED
108549: 9d popf <== NOT EXECUTED
sc = disk_lock();
10854a: e8 ad fe ff ff call 1083fc <disk_lock> <== NOT EXECUTED
if (sc == RTEMS_SUCCESSFUL) {
10854f: 85 c0 test %eax,%eax <== NOT EXECUTED
108551: 74 05 je 108558 <rtems_disk_obtain+0x40><== NOT EXECUTED
108553: 31 c0 xor %eax,%eax <== NOT EXECUTED
108555: eb e9 jmp 108540 <rtems_disk_obtain+0x28><== NOT EXECUTED
108557: 90 nop <== NOT EXECUTED
dd = get_disk_entry(dev, false);
108558: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
10855a: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10855c: 89 f2 mov %esi,%edx <== NOT EXECUTED
10855e: e8 b9 fc ff ff call 10821c <get_disk_entry> <== NOT EXECUTED
disk_unlock();
108563: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
108566: e8 c1 fe ff ff call 10842c <disk_unlock> <== NOT EXECUTED
10856b: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
10856e: eb d0 jmp 108540 <rtems_disk_obtain+0x28><== NOT EXECUTED
001086f4 <rtems_disk_release>:
return dd;
}
rtems_status_code
rtems_disk_release(rtems_disk_device *dd)
{
1086f4: 55 push %ebp
1086f5: 89 e5 mov %esp,%ebp
1086f7: 56 push %esi
1086f8: 53 push %ebx
1086f9: 8b 45 08 mov 0x8(%ebp),%eax
rtems_interrupt_level level;
dev_t dev = dd->dev;
1086fc: 8b 18 mov (%eax),%ebx
1086fe: 8b 70 04 mov 0x4(%eax),%esi
unsigned uses = 0;
bool deleted = false;
rtems_interrupt_disable(level);
108701: 9c pushf
108702: fa cli
108703: 59 pop %ecx
uses = --dd->uses;
108704: 8b 50 14 mov 0x14(%eax),%edx
108707: 4a dec %edx
108708: 89 50 14 mov %edx,0x14(%eax)
deleted = dd->deleted;
10870b: 8a 40 30 mov 0x30(%eax),%al
rtems_interrupt_enable(level);
10870e: 51 push %ecx
10870f: 9d popf
if (uses == 0 && deleted) {
108710: 85 d2 test %edx,%edx
108712: 75 04 jne 108718 <rtems_disk_release+0x24>
108714: 84 c0 test %al,%al
108716: 75 0c jne 108724 <rtems_disk_release+0x30>
rtems_disk_delete(dev);
}
return RTEMS_SUCCESSFUL;
}
108718: 31 c0 xor %eax,%eax
10871a: 8d 65 f8 lea -0x8(%ebp),%esp
10871d: 5b pop %ebx
10871e: 5e pop %esi
10871f: c9 leave
108720: c3 ret
108721: 8d 76 00 lea 0x0(%esi),%esi
uses = --dd->uses;
deleted = dd->deleted;
rtems_interrupt_enable(level);
if (uses == 0 && deleted) {
rtems_disk_delete(dev);
108724: 83 ec 08 sub $0x8,%esp
108727: 56 push %esi
108728: 53 push %ebx
108729: e8 42 fe ff ff call 108570 <rtems_disk_delete>
10872e: 83 c4 10 add $0x10,%esp
}
return RTEMS_SUCCESSFUL;
}
108731: 31 c0 xor %eax,%eax
108733: 8d 65 f8 lea -0x8(%ebp),%esp
108736: 5b pop %ebx
108737: 5e pop %esi
108738: c9 leave
108739: c3 ret
00125988 <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)
{
125988: 55 push %ebp <== NOT EXECUTED
125989: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12598b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
int rc;
rc = msdos_initialize_support(mt_entry,
12598e: 68 a0 78 16 00 push $0x1678a0 <== NOT EXECUTED
125993: 68 e0 78 16 00 push $0x1678e0 <== NOT EXECUTED
125998: 68 80 33 16 00 push $0x163380 <== NOT EXECUTED
12599d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1259a0: e8 03 00 00 00 call 1259a8 <msdos_initialize_support><== NOT EXECUTED
&msdos_ops,
&msdos_file_handlers,
&msdos_dir_handlers);
return rc;
}
1259a5: c9 leave <== NOT EXECUTED
1259a6: c3 ret <== NOT EXECUTED
0010ce34 <rtems_error>:
int rtems_error(
rtems_error_code_t error_flag,
const char *printf_format,
...
)
{
10ce34: 55 push %ebp <== NOT EXECUTED
10ce35: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10ce37: 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(
10ce3a: 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);
10ce3d: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
10ce40: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10ce43: e8 34 fe ff ff call 10cc7c <rtems_verror> <== NOT EXECUTED
va_end(arglist);
return chars_written;
}
10ce48: c9 leave <== NOT EXECUTED
10ce49: c3 ret <== NOT EXECUTED
0010b7e8 <rtems_event_send>:
rtems_status_code rtems_event_send(
rtems_id id,
rtems_event_set event_in
)
{
10b7e8: 55 push %ebp
10b7e9: 89 e5 mov %esp,%ebp
10b7eb: 53 push %ebx
10b7ec: 83 ec 1c sub $0x1c,%esp
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
the_thread = _Thread_Get( id, &location );
10b7ef: 8d 45 f4 lea -0xc(%ebp),%eax
10b7f2: 50 push %eax
10b7f3: ff 75 08 pushl 0x8(%ebp)
10b7f6: e8 b5 23 00 00 call 10dbb0 <_Thread_Get>
switch ( location ) {
10b7fb: 83 c4 10 add $0x10,%esp
10b7fe: 8b 55 f4 mov -0xc(%ebp),%edx
10b801: 85 d2 test %edx,%edx
10b803: 75 2b jne 10b830 <rtems_event_send+0x48>
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
10b805: 8b 90 f0 00 00 00 mov 0xf0(%eax),%edx
rtems_event_set *the_event_set
)
{
ISR_Level level;
_ISR_Disable( level );
10b80b: 9c pushf
10b80c: fa cli
10b80d: 59 pop %ecx
*the_event_set |= the_new_events;
10b80e: 8b 5d 0c mov 0xc(%ebp),%ebx
10b811: 09 1a or %ebx,(%edx)
_ISR_Enable( level );
10b813: 51 push %ecx
10b814: 9d popf
_Event_sets_Post( event_in, &api->pending_events );
_Event_Surrender( the_thread );
10b815: 83 ec 0c sub $0xc,%esp
10b818: 50 push %eax
10b819: e8 1e 00 00 00 call 10b83c <_Event_Surrender>
_Thread_Enable_dispatch();
10b81e: e8 69 23 00 00 call 10db8c <_Thread_Enable_dispatch>
10b823: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10b825: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10b828: 8b 5d fc mov -0x4(%ebp),%ebx
10b82b: c9 leave
10b82c: c3 ret
10b82d: 8d 76 00 lea 0x0(%esi),%esi
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
10b830: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10b835: 8b 5d fc mov -0x4(%ebp),%ebx
10b838: c9 leave
10b839: c3 ret
00110e5c <rtems_extension_create>:
rtems_status_code rtems_extension_create(
rtems_name name,
const rtems_extensions_table *extension_table,
rtems_id *id
)
{
110e5c: 55 push %ebp
110e5d: 89 e5 mov %esp,%ebp
110e5f: 57 push %edi
110e60: 56 push %esi
110e61: 53 push %ebx
110e62: 83 ec 1c sub $0x1c,%esp
110e65: 8b 75 0c mov 0xc(%ebp),%esi
110e68: 8b 5d 10 mov 0x10(%ebp),%ebx
Extension_Control *the_extension;
if ( !id )
110e6b: 85 db test %ebx,%ebx
110e6d: 0f 84 85 00 00 00 je 110ef8 <rtems_extension_create+0x9c><== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
110e73: 8b 45 08 mov 0x8(%ebp),%eax
110e76: 85 c0 test %eax,%eax
110e78: 75 0e jne 110e88 <rtems_extension_create+0x2c>
110e7a: b8 03 00 00 00 mov $0x3,%eax
);
*id = the_extension->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
110e7f: 8d 65 f4 lea -0xc(%ebp),%esp
110e82: 5b pop %ebx
110e83: 5e pop %esi
110e84: 5f pop %edi
110e85: c9 leave
110e86: c3 ret
110e87: 90 nop
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
110e88: a1 78 4c 13 00 mov 0x134c78,%eax
110e8d: 40 inc %eax
110e8e: a3 78 4c 13 00 mov %eax,0x134c78
#ifndef __EXTENSION_MANAGER_inl
#define __EXTENSION_MANAGER_inl
RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void )
{
return (Extension_Control *) _Objects_Allocate( &_Extension_Information );
110e93: 83 ec 0c sub $0xc,%esp
110e96: 68 00 4f 13 00 push $0x134f00
110e9b: e8 90 0c 00 00 call 111b30 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* to prevent deletion */
the_extension = _Extension_Allocate();
if ( !the_extension ) {
110ea0: 83 c4 10 add $0x10,%esp
110ea3: 85 c0 test %eax,%eax
110ea5: 74 45 je 110eec <rtems_extension_create+0x90>
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(
User_extensions_Control *extension,
const User_extensions_Table *extension_table
)
{
extension->Callouts = *extension_table;
110ea7: 8d 78 24 lea 0x24(%eax),%edi
110eaa: b9 08 00 00 00 mov $0x8,%ecx
110eaf: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
_User_extensions_Add_set( extension );
110eb1: 83 ec 0c sub $0xc,%esp
110eb4: 8d 50 10 lea 0x10(%eax),%edx
110eb7: 52 push %edx
110eb8: 89 45 e4 mov %eax,-0x1c(%ebp)
110ebb: e8 68 26 00 00 call 113528 <_User_extensions_Add_set>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
110ec0: 8b 45 e4 mov -0x1c(%ebp),%eax
110ec3: 8b 50 08 mov 0x8(%eax),%edx
110ec6: 0f b7 f2 movzwl %dx,%esi
110ec9: 8b 0d 1c 4f 13 00 mov 0x134f1c,%ecx
110ecf: 89 04 b1 mov %eax,(%ecx,%esi,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
110ed2: 8b 4d 08 mov 0x8(%ebp),%ecx
110ed5: 89 48 0c mov %ecx,0xc(%eax)
&_Extension_Information,
&the_extension->Object,
(Objects_Name) name
);
*id = the_extension->Object.id;
110ed8: 89 13 mov %edx,(%ebx)
_Thread_Enable_dispatch();
110eda: e8 b1 19 00 00 call 112890 <_Thread_Enable_dispatch>
110edf: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
110ee1: 83 c4 10 add $0x10,%esp
}
110ee4: 8d 65 f4 lea -0xc(%ebp),%esp
110ee7: 5b pop %ebx
110ee8: 5e pop %esi
110ee9: 5f pop %edi
110eea: c9 leave
110eeb: c3 ret
_Thread_Disable_dispatch(); /* to prevent deletion */
the_extension = _Extension_Allocate();
if ( !the_extension ) {
_Thread_Enable_dispatch();
110eec: e8 9f 19 00 00 call 112890 <_Thread_Enable_dispatch>
110ef1: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
110ef6: eb 87 jmp 110e7f <rtems_extension_create+0x23>
rtems_id *id
)
{
Extension_Control *the_extension;
if ( !id )
110ef8: b8 09 00 00 00 mov $0x9,%eax
110efd: eb 80 jmp 110e7f <rtems_extension_create+0x23>
00110f00 <rtems_extension_delete>:
#include <rtems/extension.h>
rtems_status_code rtems_extension_delete(
rtems_id id
)
{
110f00: 55 push %ebp
110f01: 89 e5 mov %esp,%ebp
110f03: 53 push %ebx
110f04: 83 ec 18 sub $0x18,%esp
RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Extension_Control *)
110f07: 8d 45 f4 lea -0xc(%ebp),%eax
110f0a: 50 push %eax
110f0b: ff 75 08 pushl 0x8(%ebp)
110f0e: 68 00 4f 13 00 push $0x134f00
110f13: e8 c8 10 00 00 call 111fe0 <_Objects_Get>
110f18: 89 c3 mov %eax,%ebx
Extension_Control *the_extension;
Objects_Locations location;
the_extension = _Extension_Get( id, &location );
switch ( location ) {
110f1a: 83 c4 10 add $0x10,%esp
110f1d: 8b 55 f4 mov -0xc(%ebp),%edx
110f20: 85 d2 test %edx,%edx
110f22: 75 38 jne 110f5c <rtems_extension_delete+0x5c>
case OBJECTS_LOCAL:
_User_extensions_Remove_set( &the_extension->Extension );
110f24: 83 ec 0c sub $0xc,%esp
110f27: 8d 40 10 lea 0x10(%eax),%eax
110f2a: 50 push %eax
110f2b: e8 f8 26 00 00 call 113628 <_User_extensions_Remove_set>
_Objects_Close( &_Extension_Information, &the_extension->Object );
110f30: 59 pop %ecx
110f31: 58 pop %eax
110f32: 53 push %ebx
110f33: 68 00 4f 13 00 push $0x134f00
110f38: e8 6f 0c 00 00 call 111bac <_Objects_Close>
RTEMS_INLINE_ROUTINE void _Extension_Free (
Extension_Control *the_extension
)
{
_Objects_Free( &_Extension_Information, &the_extension->Object );
110f3d: 58 pop %eax
110f3e: 5a pop %edx
110f3f: 53 push %ebx
110f40: 68 00 4f 13 00 push $0x134f00
110f45: e8 66 0f 00 00 call 111eb0 <_Objects_Free>
_Extension_Free( the_extension );
_Thread_Enable_dispatch();
110f4a: e8 41 19 00 00 call 112890 <_Thread_Enable_dispatch>
110f4f: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
110f51: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
110f54: 8b 5d fc mov -0x4(%ebp),%ebx
110f57: c9 leave
110f58: c3 ret
110f59: 8d 76 00 lea 0x0(%esi),%esi
{
Extension_Control *the_extension;
Objects_Locations location;
the_extension = _Extension_Get( id, &location );
switch ( location ) {
110f5c: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
110f61: 8b 5d fc mov -0x4(%ebp),%ebx
110f64: c9 leave
110f65: c3 ret
00108458 <rtems_filesystem_dirname>:
}
int rtems_filesystem_dirname(
const char *pathname
)
{
108458: 55 push %ebp
108459: 89 e5 mov %esp,%ebp
10845b: 57 push %edi
10845c: 56 push %esi
10845d: 53 push %ebx
10845e: 83 ec 0c sub $0xc,%esp
108461: 8b 55 08 mov 0x8(%ebp),%edx
int len = strlen( pathname );
108464: 31 c0 xor %eax,%eax
108466: b9 ff ff ff ff mov $0xffffffff,%ecx
10846b: 89 d7 mov %edx,%edi
10846d: f2 ae repnz scas %es:(%edi),%al
10846f: f7 d1 not %ecx
while ( len ) {
108471: 89 cb mov %ecx,%ebx
108473: 4b dec %ebx
108474: 74 20 je 108496 <rtems_filesystem_dirname+0x3e><== NEVER TAKEN
108476: 8d 34 1a lea (%edx,%ebx,1),%esi
108479: eb 06 jmp 108481 <rtems_filesystem_dirname+0x29>
10847b: 90 nop
len--;
if ( rtems_filesystem_is_separator( pathname[len] ) )
10847c: 4e dec %esi
const char *pathname
)
{
int len = strlen( pathname );
while ( len ) {
10847d: 85 db test %ebx,%ebx
10847f: 74 15 je 108496 <rtems_filesystem_dirname+0x3e>
len--;
108481: 4b dec %ebx
if ( rtems_filesystem_is_separator( pathname[len] ) )
108482: 83 ec 0c sub $0xc,%esp
108485: 0f be 46 ff movsbl -0x1(%esi),%eax
108489: 50 push %eax
10848a: e8 1d 10 00 00 call 1094ac <rtems_filesystem_is_separator>
10848f: 83 c4 10 add $0x10,%esp
108492: 85 c0 test %eax,%eax
108494: 74 e6 je 10847c <rtems_filesystem_dirname+0x24>
break;
}
return len;
}
108496: 89 d8 mov %ebx,%eax
108498: 8d 65 f4 lea -0xc(%ebp),%esp
10849b: 5b pop %ebx
10849c: 5e pop %esi
10849d: 5f pop %edi
10849e: c9 leave
10849f: c3 ret
00108574 <rtems_filesystem_evaluate_path>:
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
108574: 55 push %ebp
108575: 89 e5 mov %esp,%ebp
108577: 56 push %esi
108578: 53 push %ebx
108579: 83 ec 10 sub $0x10,%esp
10857c: 8b 5d 08 mov 0x8(%ebp),%ebx
10857f: 8b 75 14 mov 0x14(%ebp),%esi
int i = 0;
108582: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
/*
* Verify Input parameters.
*/
if ( !pathname )
108589: 85 db test %ebx,%ebx
10858b: 74 45 je 1085d2 <rtems_filesystem_evaluate_path+0x5e><== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EFAULT );
if ( !pathloc )
10858d: 85 f6 test %esi,%esi
10858f: 74 2f je 1085c0 <rtems_filesystem_evaluate_path+0x4c><== NEVER TAKEN
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
108591: 51 push %ecx
108592: 56 push %esi
108593: 8d 45 f4 lea -0xc(%ebp),%eax
108596: 50 push %eax
108597: 53 push %ebx
108598: e8 ab 0e 00 00 call 109448 <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],
10859d: 8b 45 f4 mov -0xc(%ebp),%eax
1085a0: 5a pop %edx
1085a1: ff 75 18 pushl 0x18(%ebp)
1085a4: 56 push %esi
1085a5: ff 75 10 pushl 0x10(%ebp)
1085a8: 8b 55 0c mov 0xc(%ebp),%edx
1085ab: 29 c2 sub %eax,%edx
1085ad: 52 push %edx
1085ae: 01 c3 add %eax,%ebx
1085b0: 53 push %ebx
1085b1: e8 ea fe ff ff call 1084a0 <rtems_filesystem_evaluate_relative_path>
1085b6: 83 c4 20 add $0x20,%esp
pathnamelen - i,
flags,
pathloc,
follow_link );
}
1085b9: 8d 65 f8 lea -0x8(%ebp),%esp
1085bc: 5b pop %ebx
1085bd: 5e pop %esi
1085be: c9 leave
1085bf: c3 ret
if ( !pathname )
rtems_set_errno_and_return_minus_one( EFAULT );
if ( !pathloc )
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
1085c0: e8 7b b8 00 00 call 113e40 <__errno> <== NOT EXECUTED
1085c5: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
1085cb: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1085d0: eb e7 jmp 1085b9 <rtems_filesystem_evaluate_path+0x45><== NOT EXECUTED
/*
* Verify Input parameters.
*/
if ( !pathname )
rtems_set_errno_and_return_minus_one( EFAULT );
1085d2: e8 69 b8 00 00 call 113e40 <__errno> <== NOT EXECUTED
1085d7: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
1085dd: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1085e2: eb d5 jmp 1085b9 <rtems_filesystem_evaluate_path+0x45><== NOT EXECUTED
001084a0 <rtems_filesystem_evaluate_relative_path>:
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
1084a0: 55 push %ebp
1084a1: 89 e5 mov %esp,%ebp
1084a3: 57 push %edi
1084a4: 56 push %esi
1084a5: 53 push %ebx
1084a6: 83 ec 1c sub $0x1c,%esp
1084a9: 8b 45 08 mov 0x8(%ebp),%eax
1084ac: 8b 4d 0c mov 0xc(%ebp),%ecx
1084af: 8b 7d 10 mov 0x10(%ebp),%edi
1084b2: 8b 5d 14 mov 0x14(%ebp),%ebx
1084b5: 8b 55 18 mov 0x18(%ebp),%edx
1084b8: 89 55 e4 mov %edx,-0x1c(%ebp)
/*
* Verify Input parameters.
*/
if ( !pathname )
1084bb: 85 c0 test %eax,%eax
1084bd: 0f 84 8c 00 00 00 je 10854f <rtems_filesystem_evaluate_relative_path+0xaf><== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EFAULT );
if ( !pathloc )
1084c3: 85 db test %ebx,%ebx
1084c5: 0f 84 96 00 00 00 je 108561 <rtems_filesystem_evaluate_relative_path+0xc1><== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
if ( !pathloc->ops->evalpath_h )
1084cb: 8b 53 0c mov 0xc(%ebx),%edx
1084ce: 8b 12 mov (%edx),%edx
1084d0: 85 d2 test %edx,%edx
1084d2: 74 69 je 10853d <rtems_filesystem_evaluate_relative_path+0x9d><== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc );
1084d4: 53 push %ebx
1084d5: 57 push %edi
1084d6: 51 push %ecx
1084d7: 50 push %eax
1084d8: ff d2 call *%edx
1084da: 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 ) {
1084dc: 83 c4 10 add $0x10,%esp
1084df: 85 c0 test %eax,%eax
1084e1: 75 25 jne 108508 <rtems_filesystem_evaluate_relative_path+0x68>
1084e3: 8b 45 e4 mov -0x1c(%ebp),%eax
1084e6: 85 c0 test %eax,%eax
1084e8: 74 1e je 108508 <rtems_filesystem_evaluate_relative_path+0x68>
if ( !pathloc->ops->node_type_h ){
1084ea: 8b 53 0c mov 0xc(%ebx),%edx
1084ed: 8b 42 10 mov 0x10(%edx),%eax
1084f0: 85 c0 test %eax,%eax
1084f2: 74 39 je 10852d <rtems_filesystem_evaluate_relative_path+0x8d><== NEVER TAKEN
rtems_filesystem_freenode( pathloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
type = (*pathloc->ops->node_type_h)( pathloc );
1084f4: 83 ec 0c sub $0xc,%esp
1084f7: 53 push %ebx
1084f8: ff d0 call *%eax
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
1084fa: 83 e8 03 sub $0x3,%eax
1084fd: 83 c4 10 add $0x10,%esp
108500: 83 f8 01 cmp $0x1,%eax
108503: 76 0f jbe 108514 <rtems_filesystem_evaluate_relative_path+0x74>
108505: 8d 76 00 lea 0x0(%esi),%esi
result = (*pathloc->ops->eval_link_h)( pathloc, flags );
}
}
return result;
}
108508: 89 f0 mov %esi,%eax
10850a: 8d 65 f4 lea -0xc(%ebp),%esp
10850d: 5b pop %ebx
10850e: 5e pop %esi
10850f: 5f pop %edi
108510: c9 leave
108511: c3 ret
108512: 66 90 xchg %ax,%ax
type = (*pathloc->ops->node_type_h)( pathloc );
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
( type == RTEMS_FILESYSTEM_SYM_LINK ) ) {
if ( !pathloc->ops->eval_link_h ){
108514: 8b 53 0c mov 0xc(%ebx),%edx
108517: 8b 42 34 mov 0x34(%edx),%eax
10851a: 85 c0 test %eax,%eax
10851c: 74 0f je 10852d <rtems_filesystem_evaluate_relative_path+0x8d><== NEVER TAKEN
* 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 );
10851e: 89 7d 0c mov %edi,0xc(%ebp)
108521: 89 5d 08 mov %ebx,0x8(%ebp)
}
}
return result;
}
108524: 8d 65 f4 lea -0xc(%ebp),%esp
108527: 5b pop %ebx
108528: 5e pop %esi
108529: 5f pop %edi
10852a: 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 );
10852b: ff e0 jmp *%eax
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
( type == RTEMS_FILESYSTEM_SYM_LINK ) ) {
if ( !pathloc->ops->eval_link_h ){
rtems_filesystem_freenode( pathloc );
10852d: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
108530: 85 c0 test %eax,%eax <== NOT EXECUTED
108532: 74 09 je 10853d <rtems_filesystem_evaluate_relative_path+0x9d><== NOT EXECUTED
108534: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108537: 53 push %ebx <== NOT EXECUTED
108538: ff d0 call *%eax <== NOT EXECUTED
10853a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
10853d: e8 fe b8 00 00 call 113e40 <__errno> <== NOT EXECUTED
108542: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
108548: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
10854d: eb b9 jmp 108508 <rtems_filesystem_evaluate_relative_path+0x68><== NOT EXECUTED
/*
* Verify Input parameters.
*/
if ( !pathname )
rtems_set_errno_and_return_minus_one( EFAULT );
10854f: e8 ec b8 00 00 call 113e40 <__errno> <== NOT EXECUTED
108554: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED
10855a: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
10855f: eb a7 jmp 108508 <rtems_filesystem_evaluate_relative_path+0x68><== NOT EXECUTED
if ( !pathloc )
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
108561: e8 da b8 00 00 call 113e40 <__errno> <== NOT EXECUTED
108566: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
10856c: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
108571: eb 95 jmp 108508 <rtems_filesystem_evaluate_relative_path+0x68><== NOT EXECUTED
00110fbc <rtems_filesystem_get_mount_handler>:
rtems_filesystem_fsmount_me_t
rtems_filesystem_get_mount_handler(
const char *type
)
{
110fbc: 55 push %ebp
110fbd: 89 e5 mov %esp,%ebp
110fbf: 83 ec 18 sub $0x18,%esp
110fc2: 8b 45 08 mov 0x8(%ebp),%eax
find_arg fa = {
.type = type,
.mount_h = NULL
};
110fc5: 89 45 f0 mov %eax,-0x10(%ebp)
110fc8: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
if ( type != NULL ) {
110fcf: 85 c0 test %eax,%eax
110fd1: 74 17 je 110fea <rtems_filesystem_get_mount_handler+0x2e><== NEVER TAKEN
rtems_filesystem_iterate( find_handler, &fa );
110fd3: 83 ec 08 sub $0x8,%esp
110fd6: 8d 45 f0 lea -0x10(%ebp),%eax
110fd9: 50 push %eax
110fda: 68 28 0e 11 00 push $0x110e28
110fdf: e8 34 ff ff ff call 110f18 <rtems_filesystem_iterate>
110fe4: 8b 45 f4 mov -0xc(%ebp),%eax
110fe7: 83 c4 10 add $0x10,%esp
}
return fa.mount_h;
}
110fea: c9 leave
110feb: c3 ret
001110c0 <rtems_filesystem_get_sym_start_loc>:
#include "rtems/libio_.h"
void rtems_filesystem_get_sym_start_loc(const char *path,
int *index,
rtems_filesystem_location_info_t *loc)
{
1110c0: 55 push %ebp
1110c1: 89 e5 mov %esp,%ebp
1110c3: 57 push %edi
1110c4: 56 push %esi
1110c5: 53 push %ebx
1110c6: 83 ec 18 sub $0x18,%esp
1110c9: 8b 5d 0c mov 0xc(%ebp),%ebx
if (rtems_filesystem_is_separator(path[0])) {
1110cc: 8b 45 08 mov 0x8(%ebp),%eax
1110cf: 0f be 00 movsbl (%eax),%eax
1110d2: 50 push %eax
1110d3: e8 d4 83 ff ff call 1094ac <rtems_filesystem_is_separator>
1110d8: 83 c4 10 add $0x10,%esp
1110db: 85 c0 test %eax,%eax
1110dd: 75 11 jne 1110f0 <rtems_filesystem_get_sym_start_loc+0x30>
*loc = rtems_filesystem_root;
*index = 1;
}
else {
*index = 0;
1110df: c7 03 00 00 00 00 movl $0x0,(%ebx)
}
}
1110e5: 8d 65 f4 lea -0xc(%ebp),%esp
1110e8: 5b pop %ebx
1110e9: 5e pop %esi
1110ea: 5f pop %edi
1110eb: c9 leave
1110ec: c3 ret
1110ed: 8d 76 00 lea 0x0(%esi),%esi
void rtems_filesystem_get_sym_start_loc(const char *path,
int *index,
rtems_filesystem_location_info_t *loc)
{
if (rtems_filesystem_is_separator(path[0])) {
*loc = rtems_filesystem_root;
1110f0: 8b 35 24 50 12 00 mov 0x125024,%esi
1110f6: 83 c6 18 add $0x18,%esi
1110f9: b9 05 00 00 00 mov $0x5,%ecx
1110fe: 8b 7d 10 mov 0x10(%ebp),%edi
111101: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
*index = 1;
111103: c7 03 01 00 00 00 movl $0x1,(%ebx)
}
else {
*index = 0;
}
}
111109: 8d 65 f4 lea -0xc(%ebp),%esp
11110c: 5b pop %ebx
11110d: 5e pop %esi
11110e: 5f pop %edi
11110f: c9 leave
111110: c3 ret
001082e4 <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 )
{
1082e4: 55 push %ebp
1082e5: 89 e5 mov %esp,%ebp
1082e7: 57 push %edi
1082e8: 56 push %esi
1082e9: 53 push %ebx
1082ea: 83 ec 2c sub $0x2c,%esp
/*
* Set the default umask to "022".
*/
rtems_filesystem_umask = 022;
1082ed: a1 24 50 12 00 mov 0x125024,%eax
1082f2: c7 40 2c 12 00 00 00 movl $0x12,0x2c(%eax)
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
1082f9: a1 60 fd 11 00 mov 0x11fd60,%eax
1082fe: 85 c0 test %eax,%eax
108300: 0f 84 9f 00 00 00 je 1083a5 <rtems_filesystem_initialize+0xc1><== NEVER TAKEN
rtems_fatal_error_occurred( 0xABCD0001 );
mt = &rtems_filesystem_mount_table[0];
108306: a1 54 31 12 00 mov 0x123154,%eax
status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
10830b: 83 ec 0c sub $0xc,%esp
10830e: 6a 00 push $0x0
108310: ff 70 04 pushl 0x4(%eax)
108313: ff 30 pushl (%eax)
108315: ff 70 0c pushl 0xc(%eax)
108318: ff 70 08 pushl 0x8(%eax)
10831b: e8 ec 07 00 00 call 108b0c <mount>
if ( status == -1 )
108320: 83 c4 20 add $0x20,%esp
108323: 40 inc %eax
108324: 0f 84 95 00 00 00 je 1083bf <rtems_filesystem_initialize+0xdb><== NEVER TAKEN
rtems_fatal_error_occurred( 0xABCD0002 );
rtems_filesystem_link_counts = 0;
10832a: a1 24 50 12 00 mov 0x125024,%eax
10832f: 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);
108335: 83 ec 0c sub $0xc,%esp
108338: 6a 00 push $0x0
10833a: 8d 5d d4 lea -0x2c(%ebp),%ebx
10833d: 53 push %ebx
10833e: 6a 00 push $0x0
108340: 6a 01 push $0x1
108342: 68 e7 17 12 00 push $0x1217e7
108347: e8 28 02 00 00 call 108574 <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
10834c: 8b 3d 24 50 12 00 mov 0x125024,%edi
108352: 83 c7 18 add $0x18,%edi
108355: b9 05 00 00 00 mov $0x5,%ecx
10835a: 89 de mov %ebx,%esi
10835c: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
10835e: 83 c4 14 add $0x14,%esp
108361: 6a 00 push $0x0
108363: 53 push %ebx
108364: 6a 00 push $0x0
108366: 6a 01 push $0x1
108368: 68 e7 17 12 00 push $0x1217e7
10836d: e8 02 02 00 00 call 108574 <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
108372: 8b 3d 24 50 12 00 mov 0x125024,%edi
108378: 83 c7 04 add $0x4,%edi
10837b: b9 05 00 00 00 mov $0x5,%ecx
108380: 89 de mov %ebx,%esi
108382: 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);
108384: 83 c4 18 add $0x18,%esp
108387: 68 ff 01 00 00 push $0x1ff
10838c: 68 e9 17 12 00 push $0x1217e9
108391: e8 e6 05 00 00 call 10897c <mkdir>
if ( status != 0 )
108396: 83 c4 10 add $0x10,%esp
108399: 85 c0 test %eax,%eax
10839b: 75 15 jne 1083b2 <rtems_filesystem_initialize+0xce><== NEVER TAKEN
* 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.
*/
}
10839d: 8d 65 f4 lea -0xc(%ebp),%esp
1083a0: 5b pop %ebx
1083a1: 5e pop %esi
1083a2: 5f pop %edi
1083a3: c9 leave
1083a4: c3 ret
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
rtems_fatal_error_occurred( 0xABCD0001 );
1083a5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1083a8: 68 01 00 cd ab push $0xabcd0001 <== NOT EXECUTED
1083ad: e8 42 3f 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
* created that way by the IMFS.
*/
status = mkdir( "/dev", 0777);
if ( status != 0 )
rtems_fatal_error_occurred( 0xABCD0003 );
1083b2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1083b5: 68 03 00 cd ab push $0xabcd0003 <== NOT EXECUTED
1083ba: e8 35 3f 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
mt = &rtems_filesystem_mount_table[0];
status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
if ( status == -1 )
rtems_fatal_error_occurred( 0xABCD0002 );
1083bf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1083c2: 68 02 00 cd ab push $0xabcd0002 <== NOT EXECUTED
1083c7: e8 28 3f 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
00110f18 <rtems_filesystem_iterate>:
bool rtems_filesystem_iterate(
rtems_per_filesystem_routine routine,
void *routine_arg
)
{
110f18: 55 push %ebp
110f19: 89 e5 mov %esp,%ebp
110f1b: 57 push %edi
110f1c: 56 push %esi
110f1d: 53 push %ebx
110f1e: 83 ec 1c sub $0x1c,%esp
110f21: 8b 75 08 mov 0x8(%ebp),%esi
110f24: 8b 7d 0c mov 0xc(%ebp),%edi
const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
rtems_chain_node *node = NULL;
bool stop = false;
while ( table_entry->type && !stop ) {
110f27: 8b 15 40 fd 11 00 mov 0x11fd40,%edx
110f2d: 85 d2 test %edx,%edx
110f2f: 74 24 je 110f55 <rtems_filesystem_iterate+0x3d><== NEVER TAKEN
110f31: bb 40 fd 11 00 mov $0x11fd40,%ebx
110f36: eb 04 jmp 110f3c <rtems_filesystem_iterate+0x24>
110f38: 84 d2 test %dl,%dl
110f3a: 75 70 jne 110fac <rtems_filesystem_iterate+0x94><== ALWAYS TAKEN
stop = (*routine)( table_entry, routine_arg );
110f3c: 83 ec 08 sub $0x8,%esp
110f3f: 57 push %edi
110f40: 53 push %ebx
110f41: ff d6 call *%esi
110f43: 88 c2 mov %al,%dl
++table_entry;
110f45: 83 c3 08 add $0x8,%ebx
{
const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
rtems_chain_node *node = NULL;
bool stop = false;
while ( table_entry->type && !stop ) {
110f48: 83 c4 10 add $0x10,%esp
110f4b: 8b 03 mov (%ebx),%eax
110f4d: 85 c0 test %eax,%eax
110f4f: 75 e7 jne 110f38 <rtems_filesystem_iterate+0x20>
stop = (*routine)( table_entry, routine_arg );
++table_entry;
}
if ( !stop ) {
110f51: 84 d2 test %dl,%dl
110f53: 75 57 jne 110fac <rtems_filesystem_iterate+0x94>
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 );
110f55: 51 push %ecx
110f56: 6a 00 push $0x0
110f58: 6a 00 push $0x0
110f5a: ff 35 e8 71 12 00 pushl 0x1271e8
110f60: e8 7f ad ff ff call 10bce4 <rtems_semaphore_obtain>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
110f65: 8b 1d 4c 50 12 00 mov 0x12504c,%ebx
rtems_libio_lock();
for (
110f6b: 83 c4 10 add $0x10,%esp
110f6e: 81 fb 50 50 12 00 cmp $0x125050,%ebx
110f74: 75 06 jne 110f7c <rtems_filesystem_iterate+0x64>
110f76: eb 3e jmp 110fb6 <rtems_filesystem_iterate+0x9e>
110f78: 84 c0 test %al,%al
110f7a: 75 19 jne 110f95 <rtems_filesystem_iterate+0x7d>
!rtems_chain_is_tail( &filesystem_chain, node ) && !stop;
node = rtems_chain_next( node )
) {
const filesystem_node *fsn = (filesystem_node *) node;
stop = (*routine)( &fsn->entry, routine_arg );
110f7c: 83 ec 08 sub $0x8,%esp
110f7f: 57 push %edi
110f80: 8d 43 08 lea 0x8(%ebx),%eax
110f83: 50 push %eax
110f84: ff d6 call *%esi
110f86: 88 c2 mov %al,%dl
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
110f88: 8b 1b mov (%ebx),%ebx
++table_entry;
}
if ( !stop ) {
rtems_libio_lock();
for (
110f8a: 83 c4 10 add $0x10,%esp
110f8d: 81 fb 50 50 12 00 cmp $0x125050,%ebx
110f93: 75 e3 jne 110f78 <rtems_filesystem_iterate+0x60>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
110f95: 83 ec 0c sub $0xc,%esp
110f98: ff 35 e8 71 12 00 pushl 0x1271e8
110f9e: 88 55 e4 mov %dl,-0x1c(%ebp)
110fa1: e8 3a ae ff ff call 10bde0 <rtems_semaphore_release>
110fa6: 83 c4 10 add $0x10,%esp
110fa9: 8a 55 e4 mov -0x1c(%ebp),%dl
}
rtems_libio_unlock();
}
return stop;
}
110fac: 88 d0 mov %dl,%al
110fae: 8d 65 f4 lea -0xc(%ebp),%esp
110fb1: 5b pop %ebx
110fb2: 5e pop %esi
110fb3: 5f pop %edi
110fb4: c9 leave
110fb5: c3 ret
++table_entry;
}
if ( !stop ) {
rtems_libio_lock();
for (
110fb6: 31 d2 xor %edx,%edx
110fb8: eb db jmp 110f95 <rtems_filesystem_iterate+0x7d>
00108a9c <rtems_filesystem_mount_iterate>:
bool rtems_filesystem_mount_iterate(
rtems_per_filesystem_mount_routine routine,
void *routine_arg
)
{
108a9c: 55 push %ebp
108a9d: 89 e5 mov %esp,%ebp
108a9f: 57 push %edi
108aa0: 56 push %esi
108aa1: 53 push %ebx
108aa2: 83 ec 20 sub $0x20,%esp
108aa5: 8b 7d 08 mov 0x8(%ebp),%edi
108aa8: 8b 75 0c mov 0xc(%ebp),%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 );
108aab: 6a 00 push $0x0
108aad: 6a 00 push $0x0
108aaf: ff 35 e8 71 12 00 pushl 0x1271e8
108ab5: e8 2a 32 00 00 call 10bce4 <rtems_semaphore_obtain>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
108aba: 8b 1d 04 50 12 00 mov 0x125004,%ebx
rtems_chain_node *node = NULL;
bool stop = false;
rtems_libio_lock();
for (
108ac0: 83 c4 10 add $0x10,%esp
108ac3: 81 fb 08 50 12 00 cmp $0x125008,%ebx
108ac9: 75 09 jne 108ad4 <rtems_filesystem_mount_iterate+0x38><== ALWAYS TAKEN
108acb: eb 3b jmp 108b08 <rtems_filesystem_mount_iterate+0x6c><== NOT EXECUTED
108acd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
108ad0: 84 c0 test %al,%al
108ad2: 75 16 jne 108aea <rtems_filesystem_mount_iterate+0x4e><== NEVER TAKEN
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 );
108ad4: 83 ec 08 sub $0x8,%esp
108ad7: 56 push %esi
108ad8: 53 push %ebx
108ad9: ff d7 call *%edi
108adb: 88 c2 mov %al,%dl
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
108add: 8b 1b mov (%ebx),%ebx
{
rtems_chain_node *node = NULL;
bool stop = false;
rtems_libio_lock();
for (
108adf: 83 c4 10 add $0x10,%esp
108ae2: 81 fb 08 50 12 00 cmp $0x125008,%ebx
108ae8: 75 e6 jne 108ad0 <rtems_filesystem_mount_iterate+0x34>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
108aea: 83 ec 0c sub $0xc,%esp
108aed: ff 35 e8 71 12 00 pushl 0x1271e8
108af3: 88 55 e4 mov %dl,-0x1c(%ebp)
108af6: e8 e5 32 00 00 call 10bde0 <rtems_semaphore_release>
stop = (*routine)( mt_entry, routine_arg );
}
rtems_libio_unlock();
return stop;
}
108afb: 8a 55 e4 mov -0x1c(%ebp),%dl
108afe: 88 d0 mov %dl,%al
108b00: 8d 65 f4 lea -0xc(%ebp),%esp
108b03: 5b pop %ebx
108b04: 5e pop %esi
108b05: 5f pop %edi
108b06: c9 leave
108b07: c3 ret
{
rtems_chain_node *node = NULL;
bool stop = false;
rtems_libio_lock();
for (
108b08: 31 d2 xor %edx,%edx <== NOT EXECUTED
108b0a: eb de jmp 108aea <rtems_filesystem_mount_iterate+0x4e><== NOT EXECUTED
00108408 <rtems_filesystem_prefix_separators>:
int rtems_filesystem_prefix_separators(
const char *pathname,
int pathnamelen
)
{
108408: 55 push %ebp
108409: 89 e5 mov %esp,%ebp
10840b: 57 push %edi
10840c: 56 push %esi
10840d: 53 push %ebx
10840e: 83 ec 0c sub $0xc,%esp
108411: 8b 75 08 mov 0x8(%ebp),%esi
108414: 8b 7d 0c mov 0xc(%ebp),%edi
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
108417: 8a 06 mov (%esi),%al
108419: 84 c0 test %al,%al
10841b: 74 34 je 108451 <rtems_filesystem_prefix_separators+0x49><== NEVER TAKEN
10841d: 85 ff test %edi,%edi
10841f: 74 30 je 108451 <rtems_filesystem_prefix_separators+0x49><== NEVER TAKEN
108421: 31 db xor %ebx,%ebx
108423: eb 0f jmp 108434 <rtems_filesystem_prefix_separators+0x2c>
108425: 8d 76 00 lea 0x0(%esi),%esi
{
pathname++;
pathnamelen--;
stripped++;
108428: 43 inc %ebx
{
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
108429: 8a 04 1e mov (%esi,%ebx,1),%al
10842c: 84 c0 test %al,%al
10842e: 74 17 je 108447 <rtems_filesystem_prefix_separators+0x3f><== NEVER TAKEN
108430: 39 df cmp %ebx,%edi
108432: 74 13 je 108447 <rtems_filesystem_prefix_separators+0x3f><== NEVER TAKEN
108434: 83 ec 0c sub $0xc,%esp
108437: 0f be c0 movsbl %al,%eax
10843a: 50 push %eax
10843b: e8 6c 10 00 00 call 1094ac <rtems_filesystem_is_separator>
108440: 83 c4 10 add $0x10,%esp
108443: 85 c0 test %eax,%eax
108445: 75 e1 jne 108428 <rtems_filesystem_prefix_separators+0x20>
pathname++;
pathnamelen--;
stripped++;
}
return stripped;
}
108447: 89 d8 mov %ebx,%eax
108449: 8d 65 f4 lea -0xc(%ebp),%esp
10844c: 5b pop %ebx
10844d: 5e pop %esi
10844e: 5f pop %edi
10844f: c9 leave
108450: c3 ret
{
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
108451: 31 db xor %ebx,%ebx
108453: eb f2 jmp 108447 <rtems_filesystem_prefix_separators+0x3f><== NOT EXECUTED
00110fec <rtems_filesystem_register>:
int
rtems_filesystem_register(
const char *type,
rtems_filesystem_fsmount_me_t mount_h
)
{
110fec: 55 push %ebp
110fed: 89 e5 mov %esp,%ebp
110fef: 57 push %edi
110ff0: 56 push %esi
110ff1: 53 push %ebx
110ff2: 83 ec 18 sub $0x18,%esp
110ff5: 8b 5d 08 mov 0x8(%ebp),%ebx
size_t fsn_size = sizeof( filesystem_node ) + strlen(type) + 1;
110ff8: 31 c0 xor %eax,%eax
110ffa: b9 ff ff ff ff mov $0xffffffff,%ecx
110fff: 89 df mov %ebx,%edi
111001: f2 ae repnz scas %es:(%edi),%al
111003: f7 d1 not %ecx
filesystem_node *fsn = malloc( fsn_size );
111005: 83 c1 10 add $0x10,%ecx
111008: 51 push %ecx
111009: e8 ae 78 ff ff call 1088bc <malloc>
11100e: 89 c6 mov %eax,%esi
char *type_storage = (char *) fsn + sizeof( filesystem_node );
if ( fsn == NULL )
111010: 83 c4 10 add $0x10,%esp
111013: 85 c0 test %eax,%eax
111015: 0f 84 92 00 00 00 je 1110ad <rtems_filesystem_register+0xc1><== NEVER TAKEN
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 );
11101b: 8d 78 10 lea 0x10(%eax),%edi
if ( fsn == NULL )
rtems_set_errno_and_return_minus_one( ENOMEM );
strcpy(type_storage, type);
11101e: 83 ec 08 sub $0x8,%esp
111021: 53 push %ebx
111022: 57 push %edi
111023: e8 38 39 00 00 call 114960 <strcpy>
fsn->entry.type = type_storage;
111028: 89 7e 08 mov %edi,0x8(%esi)
fsn->entry.mount_h = mount_h;
11102b: 8b 45 0c mov 0xc(%ebp),%eax
11102e: 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 );
111031: 83 c4 0c add $0xc,%esp
111034: 6a 00 push $0x0
111036: 6a 00 push $0x0
111038: ff 35 e8 71 12 00 pushl 0x1271e8
11103e: e8 a1 ac ff ff call 10bce4 <rtems_semaphore_obtain>
rtems_libio_lock();
if ( rtems_filesystem_get_mount_handler( type ) == NULL ) {
111043: 89 1c 24 mov %ebx,(%esp)
111046: e8 71 ff ff ff call 110fbc <rtems_filesystem_get_mount_handler>
11104b: 83 c4 10 add $0x10,%esp
11104e: 85 c0 test %eax,%eax
111050: 75 2a jne 11107c <rtems_filesystem_register+0x90><== 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 );
111052: 83 ec 08 sub $0x8,%esp
111055: 56 push %esi
111056: 68 4c 50 12 00 push $0x12504c
11105b: e8 28 b5 ff ff call 10c588 <_Chain_Append>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
111060: 59 pop %ecx
111061: ff 35 e8 71 12 00 pushl 0x1271e8
111067: e8 74 ad ff ff call 10bde0 <rtems_semaphore_release>
11106c: 31 c0 xor %eax,%eax
rtems_set_errno_and_return_minus_one( EINVAL );
}
rtems_libio_unlock();
return 0;
11106e: 83 c4 10 add $0x10,%esp
}
111071: 8d 65 f4 lea -0xc(%ebp),%esp
111074: 5b pop %ebx
111075: 5e pop %esi
111076: 5f pop %edi
111077: c9 leave
111078: c3 ret
111079: 8d 76 00 lea 0x0(%esi),%esi
11107c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
11107f: ff 35 e8 71 12 00 pushl 0x1271e8 <== NOT EXECUTED
111085: e8 56 ad ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
rtems_libio_lock();
if ( rtems_filesystem_get_mount_handler( type ) == NULL ) {
rtems_chain_append( &filesystem_chain, &fsn->node );
} else {
rtems_libio_unlock();
free( fsn );
11108a: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
11108d: e8 52 75 ff ff call 1085e4 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
111092: e8 a9 2d 00 00 call 113e40 <__errno> <== NOT EXECUTED
111097: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11109d: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1110a2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_libio_unlock();
return 0;
}
1110a5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1110a8: 5b pop %ebx <== NOT EXECUTED
1110a9: 5e pop %esi <== NOT EXECUTED
1110aa: 5f pop %edi <== NOT EXECUTED
1110ab: c9 leave <== NOT EXECUTED
1110ac: c3 ret <== NOT EXECUTED
size_t fsn_size = sizeof( filesystem_node ) + strlen(type) + 1;
filesystem_node *fsn = malloc( fsn_size );
char *type_storage = (char *) fsn + sizeof( filesystem_node );
if ( fsn == NULL )
rtems_set_errno_and_return_minus_one( ENOMEM );
1110ad: e8 8e 2d 00 00 call 113e40 <__errno> <== NOT EXECUTED
1110b2: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
1110b8: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1110bd: eb b2 jmp 111071 <rtems_filesystem_register+0x85><== NOT EXECUTED
00110e64 <rtems_filesystem_unregister>:
int
rtems_filesystem_unregister(
const char *type
)
{
110e64: 55 push %ebp <== NOT EXECUTED
110e65: 89 e5 mov %esp,%ebp <== NOT EXECUTED
110e67: 56 push %esi <== NOT EXECUTED
110e68: 53 push %ebx <== NOT EXECUTED
110e69: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_chain_node *node = NULL;
if ( type == NULL ) {
110e6c: 85 f6 test %esi,%esi <== NOT EXECUTED
110e6e: 0f 84 94 00 00 00 je 110f08 <rtems_filesystem_unregister+0xa4><== 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 );
110e74: 52 push %edx <== NOT EXECUTED
110e75: 6a 00 push $0x0 <== NOT EXECUTED
110e77: 6a 00 push $0x0 <== NOT EXECUTED
110e79: ff 35 e8 71 12 00 pushl 0x1271e8 <== NOT EXECUTED
110e7f: e8 60 ae ff ff call 10bce4 <rtems_semaphore_obtain><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
110e84: 8b 1d 4c 50 12 00 mov 0x12504c,%ebx <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
rtems_libio_lock();
for (
110e8a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110e8d: 81 fb 50 50 12 00 cmp $0x125050,%ebx <== NOT EXECUTED
110e93: 75 0d jne 110ea2 <rtems_filesystem_unregister+0x3e><== NOT EXECUTED
110e95: eb 49 jmp 110ee0 <rtems_filesystem_unregister+0x7c><== NOT EXECUTED
110e97: 90 nop <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
110e98: 8b 1b mov (%ebx),%ebx <== NOT EXECUTED
110e9a: 81 fb 50 50 12 00 cmp $0x125050,%ebx <== NOT EXECUTED
110ea0: 74 3e je 110ee0 <rtems_filesystem_unregister+0x7c><== 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 ) {
110ea2: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
110ea5: 56 push %esi <== NOT EXECUTED
110ea6: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
110ea9: e8 5a 3a 00 00 call 114908 <strcmp> <== NOT EXECUTED
110eae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
110eb1: 85 c0 test %eax,%eax <== NOT EXECUTED
110eb3: 75 e3 jne 110e98 <rtems_filesystem_unregister+0x34><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
110eb5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110eb8: 53 push %ebx <== NOT EXECUTED
110eb9: e8 ee b6 ff ff call 10c5ac <_Chain_Extract> <== NOT EXECUTED
rtems_chain_extract( node );
free( fsn );
110ebe: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
110ec1: e8 1e 77 ff ff call 1085e4 <free> <== NOT EXECUTED
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
110ec6: 58 pop %eax <== NOT EXECUTED
110ec7: ff 35 e8 71 12 00 pushl 0x1271e8 <== NOT EXECUTED
110ecd: e8 0e af ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
110ed2: 31 c0 xor %eax,%eax <== NOT EXECUTED
rtems_libio_unlock();
return 0;
110ed4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
}
110ed7: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
110eda: 5b pop %ebx <== NOT EXECUTED
110edb: 5e pop %esi <== NOT EXECUTED
110edc: c9 leave <== NOT EXECUTED
110edd: c3 ret <== NOT EXECUTED
110ede: 66 90 xchg %ax,%ax <== NOT EXECUTED
110ee0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
110ee3: ff 35 e8 71 12 00 pushl 0x1271e8 <== NOT EXECUTED
110ee9: e8 f2 ae ff ff call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
return 0;
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
110eee: e8 4d 2f 00 00 call 113e40 <__errno> <== NOT EXECUTED
110ef3: c7 00 02 00 00 00 movl $0x2,(%eax) <== NOT EXECUTED
110ef9: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
110efe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
110f01: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
110f04: 5b pop %ebx <== NOT EXECUTED
110f05: 5e pop %esi <== NOT EXECUTED
110f06: c9 leave <== NOT EXECUTED
110f07: c3 ret <== NOT EXECUTED
)
{
rtems_chain_node *node = NULL;
if ( type == NULL ) {
rtems_set_errno_and_return_minus_one( EINVAL );
110f08: e8 33 2f 00 00 call 113e40 <__errno> <== NOT EXECUTED
110f0d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
110f13: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
110f16: eb e9 jmp 110f01 <rtems_filesystem_unregister+0x9d><== NOT EXECUTED
0010da70 <rtems_fsmount>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
10da70: 55 push %ebp <== NOT EXECUTED
10da71: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10da73: 57 push %edi <== NOT EXECUTED
10da74: 56 push %esi <== NOT EXECUTED
10da75: 53 push %ebx <== NOT EXECUTED
10da76: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10da79: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
bool terminate = false;
/*
* scan through all fstab entries;
*/
while (!terminate &&
10da7c: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
10da7f: 85 d2 test %edx,%edx <== NOT EXECUTED
10da81: 0f 84 09 01 00 00 je 10db90 <rtems_fsmount+0x120> <== NOT EXECUTED
10da87: 31 ff xor %edi,%edi <== NOT EXECUTED
10da89: 8d 76 00 lea 0x0(%esi),%esi <== 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);
10da8c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10da8f: 68 ff 01 00 00 push $0x1ff <== NOT EXECUTED
10da94: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
10da97: e8 68 22 00 00 call 10fd04 <rtems_mkdir> <== NOT EXECUTED
10da9c: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (tmp_rc != 0) {
10da9e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10daa1: 85 c0 test %eax,%eax <== NOT EXECUTED
10daa3: 74 23 je 10dac8 <rtems_fsmount+0x58> <== NOT EXECUTED
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNTPNT_CRTERR)) {
10daa5: f6 43 10 02 testb $0x2,0x10(%ebx) <== NOT EXECUTED
10daa9: 75 55 jne 10db00 <rtems_fsmount+0x90> <== NOT EXECUTED
fprintf(stdout,"fsmount: creation of mount point \"%s\" failed: %s\n",
fstab_ptr->target,
strerror(errno));
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNTPNT_CRTERR)) {
10daab: f6 43 12 02 testb $0x2,0x12(%ebx) <== NOT EXECUTED
10daaf: 74 43 je 10daf4 <rtems_fsmount+0x84> <== NOT EXECUTED
if (!terminate) {
fstab_ptr++;
fstab_idx++;
}
}
if (fail_idx != NULL) {
10dab1: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
10dab4: 85 c0 test %eax,%eax <== NOT EXECUTED
10dab6: 74 05 je 10dabd <rtems_fsmount+0x4d> <== NOT EXECUTED
*fail_idx = fstab_idx;
10dab8: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
10dabb: 89 38 mov %edi,(%eax) <== NOT EXECUTED
}
return rc;
}
10dabd: 89 f0 mov %esi,%eax <== NOT EXECUTED
10dabf: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10dac2: 5b pop %ebx <== NOT EXECUTED
10dac3: 5e pop %esi <== NOT EXECUTED
10dac4: 5f pop %edi <== NOT EXECUTED
10dac5: c9 leave <== NOT EXECUTED
10dac6: c3 ret <== NOT EXECUTED
10dac7: 90 nop <== NOT EXECUTED
}
/*
* mount device to given mount point
*/
if (tmp_rc == 0) {
tmp_rc = mount(fstab_ptr->source,
10dac8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10dacb: 6a 00 push $0x0 <== NOT EXECUTED
10dacd: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
10dad0: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
10dad3: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
10dad6: ff 33 pushl (%ebx) <== NOT EXECUTED
10dad8: e8 23 16 00 00 call 10f100 <mount> <== NOT EXECUTED
10dadd: 89 c6 mov %eax,%esi <== NOT EXECUTED
fstab_ptr->target,
fstab_ptr->type,
fstab_ptr->options,
NULL);
if (tmp_rc != 0) {
10dadf: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10dae2: 85 c0 test %eax,%eax <== NOT EXECUTED
10dae4: 74 46 je 10db2c <rtems_fsmount+0xbc> <== NOT EXECUTED
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_FAILED)) {
10dae6: f6 43 10 04 testb $0x4,0x10(%ebx) <== NOT EXECUTED
10daea: 75 54 jne 10db40 <rtems_fsmount+0xd0> <== NOT EXECUTED
" \"%s\" failed: %s\n",
fstab_ptr->source,
fstab_ptr->target,
strerror(errno));
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNT_FAILED)) {
10daec: f6 43 12 04 testb $0x4,0x12(%ebx) <== NOT EXECUTED
10daf0: 75 bf jne 10dab1 <rtems_fsmount+0x41> <== NOT EXECUTED
10daf2: 66 90 xchg %ax,%ax <== NOT EXECUTED
/*
* proceed to next entry
*/
if (!terminate) {
fstab_ptr++;
fstab_idx++;
10daf4: 47 inc %edi <== NOT EXECUTED
bool terminate = false;
/*
* scan through all fstab entries;
*/
while (!terminate &&
10daf5: 39 7d 0c cmp %edi,0xc(%ebp) <== NOT EXECUTED
10daf8: 76 3e jbe 10db38 <rtems_fsmount+0xc8> <== NOT EXECUTED
}
/*
* proceed to next entry
*/
if (!terminate) {
fstab_ptr++;
10dafa: 83 c3 14 add $0x14,%ebx <== NOT EXECUTED
10dafd: eb 8d jmp 10da8c <rtems_fsmount+0x1c> <== NOT EXECUTED
10daff: 90 nop <== NOT EXECUTED
*/
if (tmp_rc == 0) {
tmp_rc = rtems_mkdir(fstab_ptr->target, S_IRWXU | S_IRWXG | S_IRWXO);
if (tmp_rc != 0) {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNTPNT_CRTERR)) {
fprintf(stdout,"fsmount: creation of mount point \"%s\" failed: %s\n",
10db00: e8 87 8c 03 00 call 14678c <__errno> <== NOT EXECUTED
10db05: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10db08: ff 30 pushl (%eax) <== NOT EXECUTED
10db0a: e8 ed e5 03 00 call 14c0fc <strerror> <== NOT EXECUTED
10db0f: 50 push %eax <== NOT EXECUTED
10db10: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
10db13: 68 a0 f6 15 00 push $0x15f6a0 <== NOT EXECUTED
10db18: a1 00 db 16 00 mov 0x16db00,%eax <== NOT EXECUTED
10db1d: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
10db20: e8 e7 95 03 00 call 14710c <fprintf> <== NOT EXECUTED
10db25: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10db28: eb 81 jmp 10daab <rtems_fsmount+0x3b> <== NOT EXECUTED
10db2a: 66 90 xchg %ax,%ax <== NOT EXECUTED
terminate = true;
rc = tmp_rc;
}
}
else {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_OK)) {
10db2c: f6 43 10 01 testb $0x1,0x10(%ebx) <== NOT EXECUTED
10db30: 75 42 jne 10db74 <rtems_fsmount+0x104> <== NOT EXECUTED
fprintf(stdout,"fsmount: mounting of \"%s\" to"
" \"%s\" succeeded\n",
fstab_ptr->source,
fstab_ptr->target);
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNT_OK)) {
10db32: f6 43 12 01 testb $0x1,0x12(%ebx) <== NOT EXECUTED
10db36: 74 bc je 10daf4 <rtems_fsmount+0x84> <== NOT EXECUTED
tmp_rc = mount(fstab_ptr->source,
fstab_ptr->target,
fstab_ptr->type,
fstab_ptr->options,
NULL);
if (tmp_rc != 0) {
10db38: 31 f6 xor %esi,%esi <== NOT EXECUTED
10db3a: e9 72 ff ff ff jmp 10dab1 <rtems_fsmount+0x41> <== NOT EXECUTED
10db3f: 90 nop <== NOT EXECUTED
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_FAILED)) {
fprintf(stdout,"fsmount: mounting of \"%s\" to"
10db40: e8 47 8c 03 00 call 14678c <__errno> <== NOT EXECUTED
10db45: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10db48: ff 30 pushl (%eax) <== NOT EXECUTED
10db4a: e8 ad e5 03 00 call 14c0fc <strerror> <== NOT EXECUTED
10db4f: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
10db52: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
10db55: ff 33 pushl (%ebx) <== NOT EXECUTED
10db57: 68 d4 f6 15 00 push $0x15f6d4 <== NOT EXECUTED
10db5c: a1 00 db 16 00 mov 0x16db00,%eax <== NOT EXECUTED
10db61: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
10db64: e8 a3 95 03 00 call 14710c <fprintf> <== NOT EXECUTED
10db69: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10db6c: e9 7b ff ff ff jmp 10daec <rtems_fsmount+0x7c> <== NOT EXECUTED
10db71: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rc = tmp_rc;
}
}
else {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_OK)) {
fprintf(stdout,"fsmount: mounting of \"%s\" to"
10db74: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
10db77: ff 33 pushl (%ebx) <== NOT EXECUTED
10db79: 68 04 f7 15 00 push $0x15f704 <== NOT EXECUTED
10db7e: a1 00 db 16 00 mov 0x16db00,%eax <== NOT EXECUTED
10db83: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
10db86: e8 81 95 03 00 call 14710c <fprintf> <== NOT EXECUTED
10db8b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10db8e: eb a2 jmp 10db32 <rtems_fsmount+0xc2> <== NOT EXECUTED
bool terminate = false;
/*
* scan through all fstab entries;
*/
while (!terminate &&
10db90: 31 ff xor %edi,%edi <== NOT EXECUTED
10db92: 31 f6 xor %esi,%esi <== NOT EXECUTED
10db94: e9 18 ff ff ff jmp 10dab1 <rtems_fsmount+0x41> <== NOT EXECUTED
00113ab4 <rtems_io_close>:
rtems_status_code rtems_io_close(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
113ab4: 55 push %ebp
113ab5: 89 e5 mov %esp,%ebp
113ab7: 56 push %esi
113ab8: 53 push %ebx
113ab9: 8b 45 08 mov 0x8(%ebp),%eax
113abc: 8b 4d 0c mov 0xc(%ebp),%ecx
113abf: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
113ac2: 39 05 c0 76 12 00 cmp %eax,0x1276c0
113ac8: 76 22 jbe 113aec <rtems_io_close+0x38>
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].close_entry;
113aca: 8d 34 40 lea (%eax,%eax,2),%esi
113acd: 8b 15 c4 76 12 00 mov 0x1276c4,%edx
113ad3: 8b 54 f2 08 mov 0x8(%edx,%esi,8),%edx
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113ad7: 85 d2 test %edx,%edx
113ad9: 74 1d je 113af8 <rtems_io_close+0x44>
113adb: 89 5d 10 mov %ebx,0x10(%ebp)
113ade: 89 4d 0c mov %ecx,0xc(%ebp)
113ae1: 89 45 08 mov %eax,0x8(%ebp)
}
113ae4: 5b pop %ebx
113ae5: 5e pop %esi
113ae6: c9 leave
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].close_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113ae7: ff e2 jmp *%edx
113ae9: 8d 76 00 lea 0x0(%esi),%esi
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
113aec: b8 0a 00 00 00 mov $0xa,%eax
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].close_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
}
113af1: 5b pop %ebx
113af2: 5e pop %esi
113af3: c9 leave
113af4: c3 ret
113af5: 8d 76 00 lea 0x0(%esi),%esi
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].close_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113af8: 31 c0 xor %eax,%eax
}
113afa: 5b pop %ebx
113afb: 5e pop %esi
113afc: c9 leave
113afd: c3 ret
00113b00 <rtems_io_control>:
rtems_status_code rtems_io_control(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
113b00: 55 push %ebp
113b01: 89 e5 mov %esp,%ebp
113b03: 56 push %esi
113b04: 53 push %ebx
113b05: 8b 45 08 mov 0x8(%ebp),%eax
113b08: 8b 4d 0c mov 0xc(%ebp),%ecx
113b0b: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
113b0e: 39 05 c0 76 12 00 cmp %eax,0x1276c0
113b14: 76 22 jbe 113b38 <rtems_io_control+0x38>
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].control_entry;
113b16: 8d 34 40 lea (%eax,%eax,2),%esi
113b19: 8b 15 c4 76 12 00 mov 0x1276c4,%edx
113b1f: 8b 54 f2 14 mov 0x14(%edx,%esi,8),%edx
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113b23: 85 d2 test %edx,%edx
113b25: 74 1d je 113b44 <rtems_io_control+0x44>
113b27: 89 5d 10 mov %ebx,0x10(%ebp)
113b2a: 89 4d 0c mov %ecx,0xc(%ebp)
113b2d: 89 45 08 mov %eax,0x8(%ebp)
}
113b30: 5b pop %ebx
113b31: 5e pop %esi
113b32: c9 leave
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].control_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113b33: ff e2 jmp *%edx
113b35: 8d 76 00 lea 0x0(%esi),%esi
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
113b38: b8 0a 00 00 00 mov $0xa,%eax
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].control_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
}
113b3d: 5b pop %ebx
113b3e: 5e pop %esi
113b3f: c9 leave
113b40: c3 ret
113b41: 8d 76 00 lea 0x0(%esi),%esi
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].control_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113b44: 31 c0 xor %eax,%eax
}
113b46: 5b pop %ebx
113b47: 5e pop %esi
113b48: c9 leave
113b49: c3 ret
00111628 <rtems_io_initialize>:
rtems_status_code rtems_io_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
111628: 55 push %ebp
111629: 89 e5 mov %esp,%ebp
11162b: 56 push %esi
11162c: 53 push %ebx
11162d: 8b 45 08 mov 0x8(%ebp),%eax
111630: 8b 4d 0c mov 0xc(%ebp),%ecx
111633: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
111636: 39 05 c0 76 12 00 cmp %eax,0x1276c0
11163c: 76 1e jbe 11165c <rtems_io_initialize+0x34>
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].initialization_entry;
11163e: 8d 34 40 lea (%eax,%eax,2),%esi
111641: 8b 15 c4 76 12 00 mov 0x1276c4,%edx
111647: 8b 14 f2 mov (%edx,%esi,8),%edx
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
11164a: 85 d2 test %edx,%edx
11164c: 74 1a je 111668 <rtems_io_initialize+0x40>
11164e: 89 5d 10 mov %ebx,0x10(%ebp)
111651: 89 4d 0c mov %ecx,0xc(%ebp)
111654: 89 45 08 mov %eax,0x8(%ebp)
}
111657: 5b pop %ebx
111658: 5e pop %esi
111659: c9 leave
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].initialization_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
11165a: ff e2 jmp *%edx
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
11165c: b8 0a 00 00 00 mov $0xa,%eax
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].initialization_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
}
111661: 5b pop %ebx
111662: 5e pop %esi
111663: c9 leave
111664: c3 ret
111665: 8d 76 00 lea 0x0(%esi),%esi
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].initialization_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
111668: 31 c0 xor %eax,%eax
}
11166a: 5b pop %ebx
11166b: 5e pop %esi
11166c: c9 leave
11166d: c3 ret
00108178 <rtems_io_lookup_name>:
rtems_status_code rtems_io_lookup_name(
const char *name,
rtems_driver_name_t *device_info
)
{
108178: 55 push %ebp <== NOT EXECUTED
108179: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10817b: 57 push %edi <== NOT EXECUTED
10817c: 56 push %esi <== NOT EXECUTED
10817d: 53 push %ebx <== NOT EXECUTED
10817e: 83 ec 48 sub $0x48,%esp <== NOT EXECUTED
108181: 8b 75 08 mov 0x8(%ebp),%esi <== 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 );
108184: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
108189: 89 f7 mov %esi,%edi <== NOT EXECUTED
10818b: 31 c0 xor %eax,%eax <== NOT EXECUTED
10818d: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
10818f: f7 d1 not %ecx <== NOT EXECUTED
108191: 49 dec %ecx <== NOT EXECUTED
108192: 6a 01 push $0x1 <== NOT EXECUTED
108194: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED
108197: 53 push %ebx <== NOT EXECUTED
108198: 6a 00 push $0x0 <== NOT EXECUTED
10819a: 51 push %ecx <== NOT EXECUTED
10819b: 56 push %esi <== NOT EXECUTED
10819c: e8 d3 03 00 00 call 108574 <rtems_filesystem_evaluate_path><== NOT EXECUTED
1081a1: 89 c7 mov %eax,%edi <== NOT EXECUTED
the_jnode = loc.node_access;
1081a3: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
if ( !loc.ops->node_type_h ) {
1081a6: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
1081a9: 8b 41 10 mov 0x10(%ecx),%eax <== NOT EXECUTED
1081ac: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1081af: 85 c0 test %eax,%eax <== NOT EXECUTED
1081b1: 74 41 je 1081f4 <rtems_io_lookup_name+0x7c><== NOT EXECUTED
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
node_type = (*loc.ops->node_type_h)( &loc );
1081b3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1081b6: 53 push %ebx <== NOT EXECUTED
1081b7: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
1081ba: ff d0 call *%eax <== NOT EXECUTED
if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {
1081bc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1081bf: 85 ff test %edi,%edi <== NOT EXECUTED
1081c1: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
1081c4: 74 56 je 10821c <rtems_io_lookup_name+0xa4><== NOT EXECUTED
rtems_filesystem_freenode( &loc );
1081c6: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1081c9: 85 c0 test %eax,%eax <== NOT EXECUTED
1081cb: 0f 84 93 00 00 00 je 108264 <rtems_io_lookup_name+0xec><== NOT EXECUTED
1081d1: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1081d4: 85 c0 test %eax,%eax <== NOT EXECUTED
1081d6: 0f 84 88 00 00 00 je 108264 <rtems_io_lookup_name+0xec><== NOT EXECUTED
1081dc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1081df: 53 push %ebx <== NOT EXECUTED
1081e0: ff d0 call *%eax <== NOT EXECUTED
1081e2: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
1081e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
return RTEMS_SUCCESSFUL;
}
1081ea: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1081ed: 5b pop %ebx <== NOT EXECUTED
1081ee: 5e pop %esi <== NOT EXECUTED
1081ef: 5f pop %edi <== NOT EXECUTED
1081f0: c9 leave <== NOT EXECUTED
1081f1: c3 ret <== NOT EXECUTED
1081f2: 66 90 xchg %ax,%ax <== NOT EXECUTED
result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true );
the_jnode = loc.node_access;
if ( !loc.ops->node_type_h ) {
rtems_filesystem_freenode( &loc );
1081f4: 8b 41 1c mov 0x1c(%ecx),%eax <== NOT EXECUTED
1081f7: 85 c0 test %eax,%eax <== NOT EXECUTED
1081f9: 74 09 je 108204 <rtems_io_lookup_name+0x8c><== NOT EXECUTED
1081fb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1081fe: 53 push %ebx <== NOT EXECUTED
1081ff: ff d0 call *%eax <== NOT EXECUTED
108201: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
108204: e8 37 bc 00 00 call 113e40 <__errno> <== NOT EXECUTED
108209: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10820f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
return RTEMS_SUCCESSFUL;
}
108214: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
108217: 5b pop %ebx <== NOT EXECUTED
108218: 5e pop %esi <== NOT EXECUTED
108219: 5f pop %edi <== NOT EXECUTED
10821a: c9 leave <== NOT EXECUTED
10821b: c3 ret <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
node_type = (*loc.ops->node_type_h)( &loc );
if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {
10821c: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
10821f: 75 a5 jne 1081c6 <rtems_io_lookup_name+0x4e><== NOT EXECUTED
rtems_filesystem_freenode( &loc );
return RTEMS_UNSATISFIED;
}
device_info->device_name = (char *) name;
108221: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
108224: 89 31 mov %esi,(%ecx) <== NOT EXECUTED
device_info->device_name_length = strlen( name );
108226: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
10822b: 89 f7 mov %esi,%edi <== NOT EXECUTED
10822d: 31 c0 xor %eax,%eax <== NOT EXECUTED
10822f: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
108231: f7 d1 not %ecx <== NOT EXECUTED
108233: 49 dec %ecx <== NOT EXECUTED
108234: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
108237: 89 48 04 mov %ecx,0x4(%eax) <== NOT EXECUTED
device_info->major = the_jnode->info.device.major;
10823a: 8b 42 50 mov 0x50(%edx),%eax <== NOT EXECUTED
10823d: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
108240: 89 41 08 mov %eax,0x8(%ecx) <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
108243: 8b 42 54 mov 0x54(%edx),%eax <== NOT EXECUTED
108246: 89 41 0c mov %eax,0xc(%ecx) <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
108249: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10824c: 85 c0 test %eax,%eax <== NOT EXECUTED
10824e: 74 21 je 108271 <rtems_io_lookup_name+0xf9><== NOT EXECUTED
108250: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
108253: 85 c0 test %eax,%eax <== NOT EXECUTED
108255: 74 1a je 108271 <rtems_io_lookup_name+0xf9><== NOT EXECUTED
108257: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10825a: 53 push %ebx <== NOT EXECUTED
10825b: ff d0 call *%eax <== NOT EXECUTED
10825d: 31 c0 xor %eax,%eax <== NOT EXECUTED
10825f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
108262: eb 86 jmp 1081ea <rtems_io_lookup_name+0x72><== NOT EXECUTED
108264: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
108269: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10826c: 5b pop %ebx <== NOT EXECUTED
10826d: 5e pop %esi <== NOT EXECUTED
10826e: 5f pop %edi <== NOT EXECUTED
10826f: c9 leave <== NOT EXECUTED
108270: c3 ret <== NOT EXECUTED
device_info->device_name = (char *) name;
device_info->device_name_length = strlen( name );
device_info->major = the_jnode->info.device.major;
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
108271: 31 c0 xor %eax,%eax <== NOT EXECUTED
108273: e9 72 ff ff ff jmp 1081ea <rtems_io_lookup_name+0x72><== NOT EXECUTED
00113b4c <rtems_io_open>:
rtems_status_code rtems_io_open(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
113b4c: 55 push %ebp
113b4d: 89 e5 mov %esp,%ebp
113b4f: 56 push %esi
113b50: 53 push %ebx
113b51: 8b 45 08 mov 0x8(%ebp),%eax
113b54: 8b 4d 0c mov 0xc(%ebp),%ecx
113b57: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
113b5a: 39 05 c0 76 12 00 cmp %eax,0x1276c0
113b60: 76 22 jbe 113b84 <rtems_io_open+0x38>
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].open_entry;
113b62: 8d 34 40 lea (%eax,%eax,2),%esi
113b65: 8b 15 c4 76 12 00 mov 0x1276c4,%edx
113b6b: 8b 54 f2 04 mov 0x4(%edx,%esi,8),%edx
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113b6f: 85 d2 test %edx,%edx
113b71: 74 1d je 113b90 <rtems_io_open+0x44>
113b73: 89 5d 10 mov %ebx,0x10(%ebp)
113b76: 89 4d 0c mov %ecx,0xc(%ebp)
113b79: 89 45 08 mov %eax,0x8(%ebp)
}
113b7c: 5b pop %ebx
113b7d: 5e pop %esi
113b7e: c9 leave
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].open_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113b7f: ff e2 jmp *%edx
113b81: 8d 76 00 lea 0x0(%esi),%esi
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
113b84: b8 0a 00 00 00 mov $0xa,%eax
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].open_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
}
113b89: 5b pop %ebx
113b8a: 5e pop %esi
113b8b: c9 leave
113b8c: c3 ret
113b8d: 8d 76 00 lea 0x0(%esi),%esi
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].open_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113b90: 31 c0 xor %eax,%eax
}
113b92: 5b pop %ebx
113b93: 5e pop %esi
113b94: c9 leave
113b95: c3 ret
00113b98 <rtems_io_read>:
rtems_status_code rtems_io_read(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
113b98: 55 push %ebp
113b99: 89 e5 mov %esp,%ebp
113b9b: 56 push %esi
113b9c: 53 push %ebx
113b9d: 8b 45 08 mov 0x8(%ebp),%eax
113ba0: 8b 4d 0c mov 0xc(%ebp),%ecx
113ba3: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
113ba6: 39 05 c0 76 12 00 cmp %eax,0x1276c0
113bac: 76 22 jbe 113bd0 <rtems_io_read+0x38>
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].read_entry;
113bae: 8d 34 40 lea (%eax,%eax,2),%esi
113bb1: 8b 15 c4 76 12 00 mov 0x1276c4,%edx
113bb7: 8b 54 f2 0c mov 0xc(%edx,%esi,8),%edx
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113bbb: 85 d2 test %edx,%edx
113bbd: 74 1d je 113bdc <rtems_io_read+0x44>
113bbf: 89 5d 10 mov %ebx,0x10(%ebp)
113bc2: 89 4d 0c mov %ecx,0xc(%ebp)
113bc5: 89 45 08 mov %eax,0x8(%ebp)
}
113bc8: 5b pop %ebx
113bc9: 5e pop %esi
113bca: c9 leave
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].read_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113bcb: ff e2 jmp *%edx
113bcd: 8d 76 00 lea 0x0(%esi),%esi
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
113bd0: b8 0a 00 00 00 mov $0xa,%eax
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].read_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
}
113bd5: 5b pop %ebx
113bd6: 5e pop %esi
113bd7: c9 leave
113bd8: c3 ret
113bd9: 8d 76 00 lea 0x0(%esi),%esi
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].read_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113bdc: 31 c0 xor %eax,%eax
}
113bde: 5b pop %ebx
113bdf: 5e pop %esi
113be0: c9 leave
113be1: c3 ret
0010d52c <rtems_io_register_driver>:
rtems_status_code rtems_io_register_driver(
rtems_device_major_number major,
const rtems_driver_address_table *driver_table,
rtems_device_major_number *registered_major
)
{
10d52c: 55 push %ebp
10d52d: 89 e5 mov %esp,%ebp
10d52f: 57 push %edi
10d530: 56 push %esi
10d531: 53 push %ebx
10d532: 83 ec 0c sub $0xc,%esp
10d535: 8b 5d 08 mov 0x8(%ebp),%ebx
10d538: 8b 75 0c mov 0xc(%ebp),%esi
10d53b: 8b 55 10 mov 0x10(%ebp),%edx
rtems_device_major_number major_limit = _IO_Number_of_drivers;
10d53e: a1 e0 b7 12 00 mov 0x12b7e0,%eax
if ( rtems_interrupt_is_in_progress() )
10d543: 8b 0d 14 b5 12 00 mov 0x12b514,%ecx
10d549: 85 c9 test %ecx,%ecx
10d54b: 0f 85 ab 00 00 00 jne 10d5fc <rtems_io_register_driver+0xd0>
return RTEMS_CALLED_FROM_ISR;
if ( registered_major == NULL )
10d551: 85 d2 test %edx,%edx
10d553: 0f 84 e3 00 00 00 je 10d63c <rtems_io_register_driver+0x110>
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
10d559: 89 02 mov %eax,(%edx)
if ( driver_table == NULL )
10d55b: 85 f6 test %esi,%esi
10d55d: 0f 84 d9 00 00 00 je 10d63c <rtems_io_register_driver+0x110>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
10d563: 8b 3e mov (%esi),%edi
10d565: 85 ff test %edi,%edi
10d567: 0f 84 c3 00 00 00 je 10d630 <rtems_io_register_driver+0x104>
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
if ( major >= major_limit )
10d56d: 39 d8 cmp %ebx,%eax
10d56f: 76 7b jbe 10d5ec <rtems_io_register_driver+0xc0>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10d571: a1 78 b4 12 00 mov 0x12b478,%eax
10d576: 40 inc %eax
10d577: a3 78 b4 12 00 mov %eax,0x12b478
return RTEMS_INVALID_NUMBER;
_Thread_Disable_dispatch();
if ( major == 0 ) {
10d57c: 85 db test %ebx,%ebx
10d57e: 0f 85 88 00 00 00 jne 10d60c <rtems_io_register_driver+0xe0>
static rtems_status_code rtems_io_obtain_major_number(
rtems_device_major_number *major
)
{
rtems_device_major_number n = _IO_Number_of_drivers;
10d584: 8b 0d e0 b7 12 00 mov 0x12b7e0,%ecx
rtems_device_major_number m = 0;
/* major is error checked by caller */
for ( m = 0; m < n; ++m ) {
10d58a: 85 c9 test %ecx,%ecx
10d58c: 0f 84 b7 00 00 00 je 10d649 <rtems_io_register_driver+0x11d><== NEVER TAKEN
10d592: 8b 3d e4 b7 12 00 mov 0x12b7e4,%edi
10d598: 89 f8 mov %edi,%eax
10d59a: eb 08 jmp 10d5a4 <rtems_io_register_driver+0x78>
10d59c: 43 inc %ebx
10d59d: 83 c0 18 add $0x18,%eax
10d5a0: 39 d9 cmp %ebx,%ecx
10d5a2: 76 0b jbe 10d5af <rtems_io_register_driver+0x83>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
10d5a4: 83 38 00 cmpl $0x0,(%eax)
10d5a7: 75 f3 jne 10d59c <rtems_io_register_driver+0x70>
10d5a9: 83 78 04 00 cmpl $0x0,0x4(%eax)
10d5ad: 75 ed jne 10d59c <rtems_io_register_driver+0x70>
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
10d5af: 89 1a mov %ebx,(%edx)
if ( m != n )
10d5b1: 39 d9 cmp %ebx,%ecx
10d5b3: 0f 84 97 00 00 00 je 10d650 <rtems_io_register_driver+0x124>
10d5b9: 8d 04 5b lea (%ebx,%ebx,2),%eax
10d5bc: 8d 04 c7 lea (%edi,%eax,8),%eax
}
*registered_major = major;
}
_IO_Driver_address_table [major] = *driver_table;
10d5bf: b9 06 00 00 00 mov $0x6,%ecx
10d5c4: 89 c7 mov %eax,%edi
10d5c6: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
_Thread_Enable_dispatch();
10d5c8: e8 3f 19 00 00 call 10ef0c <_Thread_Enable_dispatch>
return rtems_io_initialize( major, 0, NULL );
10d5cd: c7 45 10 00 00 00 00 movl $0x0,0x10(%ebp)
10d5d4: c7 45 0c 00 00 00 00 movl $0x0,0xc(%ebp)
10d5db: 89 5d 08 mov %ebx,0x8(%ebp)
}
10d5de: 83 c4 0c add $0xc,%esp
10d5e1: 5b pop %ebx
10d5e2: 5e pop %esi
10d5e3: 5f pop %edi
10d5e4: c9 leave
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
10d5e5: e9 02 7e 00 00 jmp 1153ec <rtems_io_initialize>
10d5ea: 66 90 xchg %ax,%ax
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
if ( major >= major_limit )
10d5ec: b8 0a 00 00 00 mov $0xa,%eax
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
10d5f1: 83 c4 0c add $0xc,%esp
10d5f4: 5b pop %ebx
10d5f5: 5e pop %esi
10d5f6: 5f pop %edi
10d5f7: c9 leave
10d5f8: c3 ret
10d5f9: 8d 76 00 lea 0x0(%esi),%esi
rtems_device_major_number *registered_major
)
{
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
10d5fc: b8 12 00 00 00 mov $0x12,%eax
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
10d601: 83 c4 0c add $0xc,%esp
10d604: 5b pop %ebx
10d605: 5e pop %esi
10d606: 5f pop %edi
10d607: c9 leave
10d608: c3 ret
10d609: 8d 76 00 lea 0x0(%esi),%esi
_Thread_Enable_dispatch();
return sc;
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
10d60c: 8d 04 5b lea (%ebx,%ebx,2),%eax
10d60f: c1 e0 03 shl $0x3,%eax
10d612: 03 05 e4 b7 12 00 add 0x12b7e4,%eax
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
10d618: 8b 38 mov (%eax),%edi
10d61a: 85 ff test %edi,%edi
10d61c: 74 3e je 10d65c <rtems_io_register_driver+0x130>
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
if ( !rtems_io_is_empty_table( table ) ) {
_Thread_Enable_dispatch();
10d61e: e8 e9 18 00 00 call 10ef0c <_Thread_Enable_dispatch>
10d623: b8 0c 00 00 00 mov $0xc,%eax
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
10d628: 83 c4 0c add $0xc,%esp
10d62b: 5b pop %ebx
10d62c: 5e pop %esi
10d62d: 5f pop %edi
10d62e: c9 leave
10d62f: c3 ret
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
10d630: 8b 4e 04 mov 0x4(%esi),%ecx
10d633: 85 c9 test %ecx,%ecx
10d635: 0f 85 32 ff ff ff jne 10d56d <rtems_io_register_driver+0x41>
10d63b: 90 nop
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
10d63c: b8 09 00 00 00 mov $0x9,%eax
}
10d641: 83 c4 0c add $0xc,%esp
10d644: 5b pop %ebx
10d645: 5e pop %esi
10d646: 5f pop %edi
10d647: c9 leave
10d648: c3 ret
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
10d649: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
10d64f: 90 nop <== NOT EXECUTED
if ( major == 0 ) {
rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
if ( sc != RTEMS_SUCCESSFUL ) {
_Thread_Enable_dispatch();
10d650: e8 b7 18 00 00 call 10ef0c <_Thread_Enable_dispatch>
10d655: b8 05 00 00 00 mov $0x5,%eax
return sc;
10d65a: eb 95 jmp 10d5f1 <rtems_io_register_driver+0xc5>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
10d65c: 8b 48 04 mov 0x4(%eax),%ecx
10d65f: 85 c9 test %ecx,%ecx
10d661: 75 bb jne 10d61e <rtems_io_register_driver+0xf2>
if ( !rtems_io_is_empty_table( table ) ) {
_Thread_Enable_dispatch();
return RTEMS_RESOURCE_IN_USE;
}
*registered_major = major;
10d663: 89 1a mov %ebx,(%edx)
10d665: e9 55 ff ff ff jmp 10d5bf <rtems_io_register_driver+0x93>
0010d66c <rtems_io_unregister_driver>:
*/
rtems_status_code rtems_io_unregister_driver(
rtems_device_major_number major
)
{
10d66c: 55 push %ebp
10d66d: 89 e5 mov %esp,%ebp
10d66f: 57 push %edi
10d670: 83 ec 04 sub $0x4,%esp
10d673: 8b 45 08 mov 0x8(%ebp),%eax
if ( rtems_interrupt_is_in_progress() )
10d676: 8b 15 14 b5 12 00 mov 0x12b514,%edx
10d67c: 85 d2 test %edx,%edx
10d67e: 75 44 jne 10d6c4 <rtems_io_unregister_driver+0x58>
return RTEMS_CALLED_FROM_ISR;
if ( major < _IO_Number_of_drivers ) {
10d680: 39 05 e0 b7 12 00 cmp %eax,0x12b7e0
10d686: 77 0c ja 10d694 <rtems_io_unregister_driver+0x28>
10d688: b8 0d 00 00 00 mov $0xd,%eax
return RTEMS_SUCCESSFUL;
}
return RTEMS_UNSATISFIED;
}
10d68d: 5a pop %edx
10d68e: 5f pop %edi
10d68f: c9 leave
10d690: c3 ret
10d691: 8d 76 00 lea 0x0(%esi),%esi
10d694: 8b 15 78 b4 12 00 mov 0x12b478,%edx
10d69a: 42 inc %edx
10d69b: 89 15 78 b4 12 00 mov %edx,0x12b478
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
if ( major < _IO_Number_of_drivers ) {
_Thread_Disable_dispatch();
memset(
10d6a1: 8d 14 40 lea (%eax,%eax,2),%edx
10d6a4: c1 e2 03 shl $0x3,%edx
10d6a7: 03 15 e4 b7 12 00 add 0x12b7e4,%edx
10d6ad: b9 18 00 00 00 mov $0x18,%ecx
10d6b2: 31 c0 xor %eax,%eax
10d6b4: 89 d7 mov %edx,%edi
10d6b6: f3 aa rep stos %al,%es:(%edi)
&_IO_Driver_address_table[major],
0,
sizeof( rtems_driver_address_table )
);
_Thread_Enable_dispatch();
10d6b8: e8 4f 18 00 00 call 10ef0c <_Thread_Enable_dispatch>
10d6bd: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
return RTEMS_UNSATISFIED;
}
10d6bf: 5a pop %edx
10d6c0: 5f pop %edi
10d6c1: c9 leave
10d6c2: c3 ret
10d6c3: 90 nop
rtems_status_code rtems_io_unregister_driver(
rtems_device_major_number major
)
{
if ( rtems_interrupt_is_in_progress() )
10d6c4: b8 12 00 00 00 mov $0x12,%eax
return RTEMS_SUCCESSFUL;
}
return RTEMS_UNSATISFIED;
}
10d6c9: 5a pop %edx
10d6ca: 5f pop %edi
10d6cb: c9 leave
10d6cc: c3 ret
00113be4 <rtems_io_write>:
rtems_status_code rtems_io_write(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
113be4: 55 push %ebp
113be5: 89 e5 mov %esp,%ebp
113be7: 56 push %esi
113be8: 53 push %ebx
113be9: 8b 45 08 mov 0x8(%ebp),%eax
113bec: 8b 4d 0c mov 0xc(%ebp),%ecx
113bef: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
113bf2: 39 05 c0 76 12 00 cmp %eax,0x1276c0
113bf8: 76 22 jbe 113c1c <rtems_io_write+0x38>
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].write_entry;
113bfa: 8d 34 40 lea (%eax,%eax,2),%esi
113bfd: 8b 15 c4 76 12 00 mov 0x1276c4,%edx
113c03: 8b 54 f2 10 mov 0x10(%edx,%esi,8),%edx
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113c07: 85 d2 test %edx,%edx
113c09: 74 1d je 113c28 <rtems_io_write+0x44>
113c0b: 89 5d 10 mov %ebx,0x10(%ebp)
113c0e: 89 4d 0c mov %ecx,0xc(%ebp)
113c11: 89 45 08 mov %eax,0x8(%ebp)
}
113c14: 5b pop %ebx
113c15: 5e pop %esi
113c16: c9 leave
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].write_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113c17: ff e2 jmp *%edx
113c19: 8d 76 00 lea 0x0(%esi),%esi
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
113c1c: b8 0a 00 00 00 mov $0xa,%eax
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].write_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
}
113c21: 5b pop %ebx
113c22: 5e pop %esi
113c23: c9 leave
113c24: c3 ret
113c25: 8d 76 00 lea 0x0(%esi),%esi
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].write_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
113c28: 31 c0 xor %eax,%eax
}
113c2a: 5b pop %ebx
113c2b: 5e pop %esi
113c2c: c9 leave
113c2d: c3 ret
0010e494 <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)
{
10e494: 55 push %ebp
10e495: 89 e5 mov %esp,%ebp
10e497: 57 push %edi
10e498: 56 push %esi
10e499: 53 push %ebx
10e49a: 83 ec 1c sub $0x1c,%esp
10e49d: 8b 7d 08 mov 0x8(%ebp),%edi
uint32_t i;
uint32_t api_index;
Thread_Control *the_thread;
Objects_Information *information;
if ( !routine )
10e4a0: 85 ff test %edi,%edi
10e4a2: 74 4d je 10e4f1 <rtems_iterate_over_all_threads+0x5d><== NEVER TAKEN
10e4a4: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp)
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
10e4ab: 8b 55 e4 mov -0x1c(%ebp),%edx
10e4ae: 8b 04 95 0c b9 12 00 mov 0x12b90c(,%edx,4),%eax
10e4b5: 85 c0 test %eax,%eax
10e4b7: 74 2f je 10e4e8 <rtems_iterate_over_all_threads+0x54>
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
10e4b9: 8b 70 04 mov 0x4(%eax),%esi
if ( !information )
10e4bc: 85 f6 test %esi,%esi
10e4be: 74 28 je 10e4e8 <rtems_iterate_over_all_threads+0x54>
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
10e4c0: 66 83 7e 10 00 cmpw $0x0,0x10(%esi)
10e4c5: 74 21 je 10e4e8 <rtems_iterate_over_all_threads+0x54><== NEVER TAKEN
10e4c7: bb 01 00 00 00 mov $0x1,%ebx
the_thread = (Thread_Control *)information->local_table[ i ];
10e4cc: 8b 46 1c mov 0x1c(%esi),%eax
10e4cf: 8b 04 98 mov (%eax,%ebx,4),%eax
if ( !the_thread )
10e4d2: 85 c0 test %eax,%eax
10e4d4: 74 09 je 10e4df <rtems_iterate_over_all_threads+0x4b><== NEVER TAKEN
continue;
(*routine)(the_thread);
10e4d6: 83 ec 0c sub $0xc,%esp
10e4d9: 50 push %eax
10e4da: ff d7 call *%edi
10e4dc: 83 c4 10 add $0x10,%esp
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
10e4df: 43 inc %ebx
10e4e0: 0f b7 46 10 movzwl 0x10(%esi),%eax
10e4e4: 39 d8 cmp %ebx,%eax
10e4e6: 73 e4 jae 10e4cc <rtems_iterate_over_all_threads+0x38>
Objects_Information *information;
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
10e4e8: ff 45 e4 incl -0x1c(%ebp)
10e4eb: 83 7d e4 05 cmpl $0x5,-0x1c(%ebp)
10e4ef: 75 ba jne 10e4ab <rtems_iterate_over_all_threads+0x17>
(*routine)(the_thread);
}
}
}
10e4f1: 8d 65 f4 lea -0xc(%ebp),%esp
10e4f4: 5b pop %ebx
10e4f5: 5e pop %esi
10e4f6: 5f pop %edi
10e4f7: c9 leave
10e4f8: c3 ret
00110d64 <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 )
{
110d64: 55 push %ebp
110d65: 89 e5 mov %esp,%ebp
110d67: 57 push %edi
110d68: 53 push %ebx
110d69: 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 );
110d6c: 6a 00 push $0x0
110d6e: 6a 00 push $0x0
110d70: ff 35 e8 71 12 00 pushl 0x1271e8
110d76: e8 69 af ff ff call 10bce4 <rtems_semaphore_obtain>
rtems_status_code rc;
rtems_id sema;
rtems_libio_lock();
if (rtems_libio_iop_freelist) {
110d7b: a1 e4 71 12 00 mov 0x1271e4,%eax
110d80: 83 c4 10 add $0x10,%esp
110d83: 85 c0 test %eax,%eax
110d85: 75 19 jne 110da0 <rtems_libio_allocate+0x3c>
next = iop->data1;
(void) memset( iop, 0, sizeof(rtems_libio_t) );
iop->flags = LIBIO_FLAGS_OPEN;
iop->sem = sema;
rtems_libio_iop_freelist = next;
goto done;
110d87: 31 db xor %ebx,%ebx
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
110d89: 83 ec 0c sub $0xc,%esp
110d8c: ff 35 e8 71 12 00 pushl 0x1271e8
110d92: e8 49 b0 ff ff call 10bde0 <rtems_semaphore_release>
iop = 0;
done:
rtems_libio_unlock();
return iop;
}
110d97: 89 d8 mov %ebx,%eax
110d99: 8d 65 f8 lea -0x8(%ebp),%esp
110d9c: 5b pop %ebx
110d9d: 5f pop %edi
110d9e: c9 leave
110d9f: c3 ret
rtems_id sema;
rtems_libio_lock();
if (rtems_libio_iop_freelist) {
rc = rtems_semaphore_create(
110da0: 83 ec 0c sub $0xc,%esp
110da3: 8d 55 f4 lea -0xc(%ebp),%edx
110da6: 52 push %edx
110da7: 6a 00 push $0x0
110da9: 6a 54 push $0x54
110dab: 6a 01 push $0x1
110dad: 2b 05 e0 71 12 00 sub 0x1271e0,%eax
110db3: c1 f8 06 sar $0x6,%eax
110db6: 0d 00 49 42 4c or $0x4c424900,%eax
110dbb: 50 push %eax
110dbc: e8 ab ac ff ff call 10ba6c <rtems_semaphore_create>
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
0,
&sema
);
if (rc != RTEMS_SUCCESSFUL)
110dc1: 83 c4 20 add $0x20,%esp
110dc4: 85 c0 test %eax,%eax
110dc6: 75 bf jne 110d87 <rtems_libio_allocate+0x23><== NEVER TAKEN
goto failed;
iop = rtems_libio_iop_freelist;
110dc8: 8b 1d e4 71 12 00 mov 0x1271e4,%ebx
next = iop->data1;
110dce: 8b 53 34 mov 0x34(%ebx),%edx
(void) memset( iop, 0, sizeof(rtems_libio_t) );
110dd1: b9 40 00 00 00 mov $0x40,%ecx
110dd6: 89 df mov %ebx,%edi
110dd8: f3 aa rep stos %al,%es:(%edi)
iop->flags = LIBIO_FLAGS_OPEN;
110dda: c7 43 14 00 01 00 00 movl $0x100,0x14(%ebx)
iop->sem = sema;
110de1: 8b 45 f4 mov -0xc(%ebp),%eax
110de4: 89 43 2c mov %eax,0x2c(%ebx)
rtems_libio_iop_freelist = next;
110de7: 89 15 e4 71 12 00 mov %edx,0x1271e4
goto done;
110ded: eb 9a jmp 110d89 <rtems_libio_allocate+0x25>
00110d0c <rtems_libio_free>:
*/
void rtems_libio_free(
rtems_libio_t *iop
)
{
110d0c: 55 push %ebp
110d0d: 89 e5 mov %esp,%ebp
110d0f: 53 push %ebx
110d10: 83 ec 08 sub $0x8,%esp
110d13: 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 );
110d16: 6a 00 push $0x0
110d18: 6a 00 push $0x0
110d1a: ff 35 e8 71 12 00 pushl 0x1271e8
110d20: e8 bf af ff ff call 10bce4 <rtems_semaphore_obtain>
rtems_libio_lock();
if (iop->sem)
110d25: 8b 43 2c mov 0x2c(%ebx),%eax
110d28: 83 c4 10 add $0x10,%esp
110d2b: 85 c0 test %eax,%eax
110d2d: 74 0c je 110d3b <rtems_libio_free+0x2f> <== NEVER TAKEN
rtems_semaphore_delete(iop->sem);
110d2f: 83 ec 0c sub $0xc,%esp
110d32: 50 push %eax
110d33: e8 08 af ff ff call 10bc40 <rtems_semaphore_delete>
110d38: 83 c4 10 add $0x10,%esp
iop->flags &= ~LIBIO_FLAGS_OPEN;
110d3b: 81 63 14 ff fe ff ff andl $0xfffffeff,0x14(%ebx)
iop->data1 = rtems_libio_iop_freelist;
110d42: a1 e4 71 12 00 mov 0x1271e4,%eax
110d47: 89 43 34 mov %eax,0x34(%ebx)
rtems_libio_iop_freelist = iop;
110d4a: 89 1d e4 71 12 00 mov %ebx,0x1271e4
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
110d50: a1 e8 71 12 00 mov 0x1271e8,%eax
110d55: 89 45 08 mov %eax,0x8(%ebp)
rtems_libio_unlock();
}
110d58: 8b 5d fc mov -0x4(%ebp),%ebx
110d5b: c9 leave
110d5c: e9 7f b0 ff ff jmp 10bde0 <rtems_semaphore_release>
001086e8 <rtems_libio_init>:
*
* Called by BSP startup code to initialize the libio subsystem.
*/
void rtems_libio_init( void )
{
1086e8: 55 push %ebp
1086e9: 89 e5 mov %esp,%ebp
1086eb: 53 push %ebx
1086ec: 83 ec 04 sub $0x4,%esp
rtems_status_code rc;
uint32_t i;
rtems_libio_t *iop;
if (rtems_libio_number_iops > 0)
1086ef: a1 4c 31 12 00 mov 0x12314c,%eax
1086f4: 85 c0 test %eax,%eax
1086f6: 74 4d je 108745 <rtems_libio_init+0x5d> <== NEVER TAKEN
{
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
1086f8: 83 ec 08 sub $0x8,%esp
1086fb: 6a 40 push $0x40
1086fd: 50 push %eax
1086fe: e8 c9 fc ff ff call 1083cc <calloc>
108703: 89 c2 mov %eax,%edx
108705: a3 e0 71 12 00 mov %eax,0x1271e0
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
10870a: 83 c4 10 add $0x10,%esp
10870d: 85 c0 test %eax,%eax
10870f: 74 71 je 108782 <rtems_libio_init+0x9a> <== NEVER TAKEN
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
iop = rtems_libio_iop_freelist = rtems_libio_iops;
108711: a3 e4 71 12 00 mov %eax,0x1271e4
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
108716: 8b 1d 4c 31 12 00 mov 0x12314c,%ebx
10871c: 83 fb 01 cmp $0x1,%ebx
10871f: 76 1d jbe 10873e <rtems_libio_init+0x56> <== NEVER TAKEN
108721: 8d 50 40 lea 0x40(%eax),%edx
108724: b9 01 00 00 00 mov $0x1,%ecx
108729: 8d 76 00 lea 0x0(%esi),%esi
iop->data1 = iop + 1;
10872c: 89 52 f4 mov %edx,-0xc(%edx)
10872f: 83 c2 40 add $0x40,%edx
108732: 41 inc %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++)
108733: 39 d9 cmp %ebx,%ecx
108735: 75 f5 jne 10872c <rtems_libio_init+0x44>
108737: c1 e1 06 shl $0x6,%ecx
10873a: 8d 54 01 c0 lea -0x40(%ecx,%eax,1),%edx
iop->data1 = iop + 1;
iop->data1 = NULL;
10873e: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx)
/*
* Create the binary semaphore used to provide mutual exclusion
* on the IOP Table.
*/
rc = rtems_semaphore_create(
108745: 83 ec 0c sub $0xc,%esp
108748: 68 e8 71 12 00 push $0x1271e8
10874d: 6a 00 push $0x0
10874f: 6a 54 push $0x54
108751: 6a 01 push $0x1
108753: 68 4f 49 42 4c push $0x4c42494f
108758: e8 0f 33 00 00 call 10ba6c <rtems_semaphore_create>
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&rtems_libio_semaphore
);
if ( rc != RTEMS_SUCCESSFUL )
10875d: 83 c4 20 add $0x20,%esp
108760: 85 c0 test %eax,%eax
108762: 75 15 jne 108779 <rtems_libio_init+0x91> <== NEVER TAKEN
/*
* Initialize the base file system infrastructure.
*/
if (rtems_fs_init_helper)
108764: a1 48 31 12 00 mov 0x123148,%eax
108769: 85 c0 test %eax,%eax
10876b: 74 07 je 108774 <rtems_libio_init+0x8c> <== NEVER TAKEN
(* rtems_fs_init_helper)();
}
10876d: 8b 5d fc mov -0x4(%ebp),%ebx
108770: c9 leave
/*
* Initialize the base file system infrastructure.
*/
if (rtems_fs_init_helper)
(* rtems_fs_init_helper)();
108771: ff e0 jmp *%eax
108773: 90 nop
}
108774: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
108777: c9 leave <== NOT EXECUTED
108778: c3 ret <== NOT EXECUTED
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&rtems_libio_semaphore
);
if ( rc != RTEMS_SUCCESSFUL )
rtems_fatal_error_occurred( rc );
108779: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10877c: 50 push %eax <== NOT EXECUTED
10877d: e8 72 3b 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
if (rtems_libio_number_iops > 0)
{
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
108782: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
108785: 6a 1a push $0x1a <== NOT EXECUTED
108787: e8 68 3b 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
00110c44 <rtems_libio_is_file_open>:
*/
int rtems_libio_is_file_open(
void *node_access
)
{
110c44: 55 push %ebp
110c45: 89 e5 mov %esp,%ebp
110c47: 53 push %ebx
110c48: 83 ec 08 sub $0x8,%esp
110c4b: 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 );
110c4e: 6a 00 push $0x0
110c50: 6a 00 push $0x0
110c52: ff 35 e8 71 12 00 pushl 0x1271e8
110c58: e8 87 b0 ff ff call 10bce4 <rtems_semaphore_obtain>
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
110c5d: a1 e0 71 12 00 mov 0x1271e0,%eax
110c62: 8b 0d 4c 31 12 00 mov 0x12314c,%ecx
110c68: 83 c4 10 add $0x10,%esp
110c6b: 85 c9 test %ecx,%ecx
110c6d: 74 18 je 110c87 <rtems_libio_is_file_open+0x43><== NEVER TAKEN
110c6f: 31 d2 xor %edx,%edx
110c71: eb 04 jmp 110c77 <rtems_libio_is_file_open+0x33>
110c73: 90 nop
110c74: 83 c0 40 add $0x40,%eax
if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {
110c77: f6 40 15 01 testb $0x1,0x15(%eax)
110c7b: 74 05 je 110c82 <rtems_libio_is_file_open+0x3e>
/*
* Check if this node is under the file system that we
* are trying to dismount.
*/
if ( iop->pathinfo.node_access == node_access ) {
110c7d: 39 58 18 cmp %ebx,0x18(%eax)
110c80: 74 1e je 110ca0 <rtems_libio_is_file_open+0x5c>
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
110c82: 42 inc %edx
110c83: 39 ca cmp %ecx,%edx
110c85: 72 ed jb 110c74 <rtems_libio_is_file_open+0x30>
110c87: 31 db xor %ebx,%ebx
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
110c89: 83 ec 0c sub $0xc,%esp
110c8c: ff 35 e8 71 12 00 pushl 0x1271e8
110c92: e8 49 b1 ff ff call 10bde0 <rtems_semaphore_release>
}
rtems_libio_unlock();
return result;
}
110c97: 89 d8 mov %ebx,%eax
110c99: 8b 5d fc mov -0x4(%ebp),%ebx
110c9c: c9 leave
110c9d: c3 ret
110c9e: 66 90 xchg %ax,%ax
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
110ca0: bb 01 00 00 00 mov $0x1,%ebx
110ca5: eb e2 jmp 110c89 <rtems_libio_is_file_open+0x45>
00110ca8 <rtems_libio_is_open_files_in_fs>:
*/
int rtems_libio_is_open_files_in_fs(
rtems_filesystem_mount_table_entry_t * fs_mt_entry
)
{
110ca8: 55 push %ebp
110ca9: 89 e5 mov %esp,%ebp
110cab: 53 push %ebx
110cac: 83 ec 08 sub $0x8,%esp
110caf: 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 );
110cb2: 6a 00 push $0x0
110cb4: 6a 00 push $0x0
110cb6: ff 35 e8 71 12 00 pushl 0x1271e8
110cbc: e8 23 b0 ff ff call 10bce4 <rtems_semaphore_obtain>
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
110cc1: a1 e0 71 12 00 mov 0x1271e0,%eax
110cc6: 8b 0d 4c 31 12 00 mov 0x12314c,%ecx
110ccc: 83 c4 10 add $0x10,%esp
110ccf: 85 c9 test %ecx,%ecx
110cd1: 74 18 je 110ceb <rtems_libio_is_open_files_in_fs+0x43><== NEVER TAKEN
110cd3: 31 d2 xor %edx,%edx
110cd5: eb 04 jmp 110cdb <rtems_libio_is_open_files_in_fs+0x33>
110cd7: 90 nop
110cd8: 83 c0 40 add $0x40,%eax
if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {
110cdb: f6 40 15 01 testb $0x1,0x15(%eax)
110cdf: 74 05 je 110ce6 <rtems_libio_is_open_files_in_fs+0x3e>
/*
* Check if this node is under the file system that we
* are trying to dismount.
*/
if ( iop->pathinfo.mt_entry == fs_mt_entry ) {
110ce1: 39 58 28 cmp %ebx,0x28(%eax)
110ce4: 74 1e je 110d04 <rtems_libio_is_open_files_in_fs+0x5c>
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
110ce6: 42 inc %edx
110ce7: 39 ca cmp %ecx,%edx
110ce9: 72 ed jb 110cd8 <rtems_libio_is_open_files_in_fs+0x30>
110ceb: 31 db xor %ebx,%ebx
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
110ced: 83 ec 0c sub $0xc,%esp
110cf0: ff 35 e8 71 12 00 pushl 0x1271e8
110cf6: e8 e5 b0 ff ff call 10bde0 <rtems_semaphore_release>
}
rtems_libio_unlock();
return result;
}
110cfb: 89 d8 mov %ebx,%eax
110cfd: 8b 5d fc mov -0x4(%ebp),%ebx
110d00: c9 leave
110d01: c3 ret
110d02: 66 90 xchg %ax,%ax
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
110d04: bb 01 00 00 00 mov $0x1,%ebx
110d09: eb e2 jmp 110ced <rtems_libio_is_open_files_in_fs+0x45>
0012f60c <rtems_libio_set_private_env>:
rtems_filesystem_freenode( &env->root_directory);
free(env);
}
}
rtems_status_code rtems_libio_set_private_env(void) {
12f60c: 55 push %ebp
12f60d: 89 e5 mov %esp,%ebp
12f60f: 57 push %edi
12f610: 56 push %esi
12f611: 53 push %ebx
12f612: 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);
12f615: 8d 45 e4 lea -0x1c(%ebp),%eax
12f618: 50 push %eax
12f619: 6a 00 push $0x0
12f61b: 6a 00 push $0x0
12f61d: e8 e2 10 00 00 call 130704 <rtems_task_ident>
if (sc != RTEMS_SUCCESSFUL) return sc;
12f622: 83 c4 10 add $0x10,%esp
12f625: 85 c0 test %eax,%eax
12f627: 75 75 jne 12f69e <rtems_libio_set_private_env+0x92><== NEVER TAKEN
/* Only for the first time a malloc is necesary */
if (rtems_current_user_env==&rtems_global_user_env) {
12f629: 8b 1d 20 d3 16 00 mov 0x16d320,%ebx
12f62f: 81 fb a0 2d 17 00 cmp $0x172da0,%ebx
12f635: 74 71 je 12f6a8 <rtems_libio_set_private_env+0x9c>
return sc;
}
rtems_current_user_env = tmp;
};
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
12f637: be a0 2d 17 00 mov $0x172da0,%esi
12f63c: b9 12 00 00 00 mov $0x12,%ecx
12f641: 89 df mov %ebx,%edi
12f643: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
rtems_current_user_env->task_id=task_id; /* mark the local values*/
12f645: 8b 45 e4 mov -0x1c(%ebp),%eax
12f648: 89 03 mov %eax,(%ebx)
* 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);
12f64a: 83 ec 0c sub $0xc,%esp
12f64d: 6a 00 push $0x0
12f64f: 8d 5d d0 lea -0x30(%ebp),%ebx
12f652: 53 push %ebx
12f653: 6a 00 push $0x0
12f655: 6a 01 push $0x1
12f657: 68 26 a1 16 00 push $0x16a126
12f65c: e8 97 f1 fd ff call 10e7f8 <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
12f661: 8b 3d 20 d3 16 00 mov 0x16d320,%edi
12f667: 83 c7 18 add $0x18,%edi
12f66a: b9 05 00 00 00 mov $0x5,%ecx
12f66f: 89 de mov %ebx,%esi
12f671: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
12f673: 83 c4 14 add $0x14,%esp
12f676: 6a 00 push $0x0
12f678: 53 push %ebx
12f679: 6a 00 push $0x0
12f67b: 6a 01 push $0x1
12f67d: 68 26 a1 16 00 push $0x16a126
12f682: e8 71 f1 fd ff call 10e7f8 <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
12f687: 8b 3d 20 d3 16 00 mov 0x16d320,%edi
12f68d: 83 c7 04 add $0x4,%edi
12f690: b9 05 00 00 00 mov $0x5,%ecx
12f695: 89 de mov %ebx,%esi
12f697: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
12f699: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
12f69b: 83 c4 20 add $0x20,%esp
}
12f69e: 8d 65 f4 lea -0xc(%ebp),%esp
12f6a1: 5b pop %ebx
12f6a2: 5e pop %esi
12f6a3: 5f pop %edi
12f6a4: c9 leave
12f6a5: c3 ret
12f6a6: 66 90 xchg %ax,%ax
sc=rtems_task_ident(RTEMS_SELF,0,&task_id);
if (sc != RTEMS_SUCCESSFUL) return sc;
/* Only for the first time a malloc is necesary */
if (rtems_current_user_env==&rtems_global_user_env) {
rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t));
12f6a8: 83 ec 0c sub $0xc,%esp
12f6ab: 6a 48 push $0x48
12f6ad: e8 56 f7 fd ff call 10ee08 <malloc>
12f6b2: 89 c3 mov %eax,%ebx
if (!tmp)
12f6b4: 83 c4 10 add $0x10,%esp
12f6b7: 85 c0 test %eax,%eax
12f6b9: 74 25 je 12f6e0 <rtems_libio_set_private_env+0xd4><== NEVER TAKEN
#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);
12f6bb: 51 push %ecx
12f6bc: 68 18 f5 12 00 push $0x12f518
12f6c1: 68 20 d3 16 00 push $0x16d320
12f6c6: 6a 00 push $0x0
12f6c8: e8 cb 12 00 00 call 130998 <rtems_task_variable_add>
if (sc != RTEMS_SUCCESSFUL) {
12f6cd: 83 c4 10 add $0x10,%esp
12f6d0: 85 c0 test %eax,%eax
12f6d2: 75 14 jne 12f6e8 <rtems_libio_set_private_env+0xdc><== NEVER TAKEN
* not initialized yet
*/
free(tmp);
return sc;
}
rtems_current_user_env = tmp;
12f6d4: 89 1d 20 d3 16 00 mov %ebx,0x16d320
12f6da: e9 58 ff ff ff jmp 12f637 <rtems_libio_set_private_env+0x2b>
12f6df: 90 nop
if (sc != RTEMS_SUCCESSFUL) return sc;
/* Only for the first time a malloc is necesary */
if (rtems_current_user_env==&rtems_global_user_env) {
rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t));
if (!tmp)
12f6e0: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
12f6e5: eb b7 jmp 12f69e <rtems_libio_set_private_env+0x92><== NOT EXECUTED
12f6e7: 90 nop <== NOT EXECUTED
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env);
if (sc != RTEMS_SUCCESSFUL) {
/* don't use free_user_env because the pathlocs are
* not initialized yet
*/
free(tmp);
12f6e8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12f6eb: 53 push %ebx <== NOT EXECUTED
12f6ec: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
12f6ef: e8 74 f1 fd ff call 10e868 <free> <== NOT EXECUTED
return sc;
12f6f4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12f6f7: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
12f6fa: eb a2 jmp 12f69e <rtems_libio_set_private_env+0x92><== NOT EXECUTED
0012f574 <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) {
12f574: 55 push %ebp <== NOT EXECUTED
12f575: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12f577: 53 push %ebx <== NOT EXECUTED
12f578: 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);
12f57b: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
12f57e: 50 push %eax <== NOT EXECUTED
12f57f: 6a 00 push $0x0 <== NOT EXECUTED
12f581: 6a 00 push $0x0 <== NOT EXECUTED
12f583: e8 7c 11 00 00 call 130704 <rtems_task_ident> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
12f588: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12f58b: 85 c0 test %eax,%eax <== NOT EXECUTED
12f58d: 75 30 jne 12f5bf <rtems_libio_share_private_env+0x4b><== NOT EXECUTED
if (rtems_current_user_env->task_id==current_task_id) {
12f58f: 8b 1d 20 d3 16 00 mov 0x16d320,%ebx <== NOT EXECUTED
12f595: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
12f597: 3b 45 f0 cmp -0x10(%ebp),%eax <== NOT EXECUTED
12f59a: 74 28 je 12f5c4 <rtems_libio_share_private_env+0x50><== NOT EXECUTED
free_user_env(tmp);
};
/* AT THIS POINT, rtems_current_user_env is DANGLING */
sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env,
12f59c: 52 push %edx <== NOT EXECUTED
12f59d: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
12f5a0: 50 push %eax <== NOT EXECUTED
12f5a1: 68 20 d3 16 00 push $0x16d320 <== NOT EXECUTED
12f5a6: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
12f5a9: e8 3a 15 00 00 call 130ae8 <rtems_task_variable_get><== NOT EXECUTED
(void*)&shared_user_env );
if (sc != RTEMS_SUCCESSFUL)
12f5ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12f5b1: 85 c0 test %eax,%eax <== NOT EXECUTED
12f5b3: 74 33 je 12f5e8 <rtems_libio_share_private_env+0x74><== NOT EXECUTED
return RTEMS_SUCCESSFUL;
bailout:
/* fallback to the global env */
rtems_current_user_env = &rtems_global_user_env;
12f5b5: c7 05 20 d3 16 00 a0 movl $0x172da0,0x16d320 <== NOT EXECUTED
12f5bc: 2d 17 00
return sc;
}
12f5bf: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
12f5c2: c9 leave <== NOT EXECUTED
12f5c3: c3 ret <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
if (rtems_current_user_env->task_id==current_task_id) {
/* 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);
12f5c4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12f5c7: 68 20 d3 16 00 push $0x16d320 <== NOT EXECUTED
12f5cc: 6a 00 push $0x0 <== NOT EXECUTED
12f5ce: e8 89 14 00 00 call 130a5c <rtems_task_variable_delete><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
12f5d3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12f5d6: 85 c0 test %eax,%eax <== NOT EXECUTED
12f5d8: 75 e5 jne 12f5bf <rtems_libio_share_private_env+0x4b><== NOT EXECUTED
free_user_env(tmp);
12f5da: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12f5dd: 53 push %ebx <== NOT EXECUTED
12f5de: e8 35 ff ff ff call 12f518 <free_user_env> <== NOT EXECUTED
12f5e3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12f5e6: eb b4 jmp 12f59c <rtems_libio_share_private_env+0x28><== NOT EXECUTED
sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env,
(void*)&shared_user_env );
if (sc != RTEMS_SUCCESSFUL)
goto bailout;
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env);
12f5e8: 50 push %eax <== NOT EXECUTED
12f5e9: 68 18 f5 12 00 push $0x12f518 <== NOT EXECUTED
12f5ee: 68 20 d3 16 00 push $0x16d320 <== NOT EXECUTED
12f5f3: 6a 00 push $0x0 <== NOT EXECUTED
12f5f5: e8 9e 13 00 00 call 130998 <rtems_task_variable_add><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12f5fa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12f5fd: 85 c0 test %eax,%eax <== NOT EXECUTED
12f5ff: 75 b4 jne 12f5b5 <rtems_libio_share_private_env+0x41><== NOT EXECUTED
goto bailout;
/* the current_user_env is the same pointer that remote env */
rtems_current_user_env = shared_user_env;
12f601: 8b 55 f4 mov -0xc(%ebp),%edx <== NOT EXECUTED
12f604: 89 15 20 d3 16 00 mov %edx,0x16d320 <== NOT EXECUTED
/* increase the reference count */
#ifdef HAVE_USERENV_REFCNT
rtems_current_user_env->refcnt++;
#endif
return RTEMS_SUCCESSFUL;
12f60a: eb b3 jmp 12f5bf <rtems_libio_share_private_env+0x4b><== NOT EXECUTED
00110c04 <rtems_libio_to_fcntl_flags>:
*/
uint32_t rtems_libio_to_fcntl_flags(
uint32_t flags
)
{
110c04: 55 push %ebp
110c05: 89 e5 mov %esp,%ebp
110c07: 8b 55 08 mov 0x8(%ebp),%edx
uint32_t fcntl_flags = 0;
if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
110c0a: 89 d0 mov %edx,%eax
110c0c: 83 e0 06 and $0x6,%eax
110c0f: 83 f8 06 cmp $0x6,%eax
110c12: 74 2c je 110c40 <rtems_libio_to_fcntl_flags+0x3c><== NEVER TAKEN
fcntl_flags |= O_RDWR;
} else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {
110c14: f6 c2 02 test $0x2,%dl
110c17: 75 23 jne 110c3c <rtems_libio_to_fcntl_flags+0x38><== ALWAYS TAKEN
110c19: 89 d0 mov %edx,%eax <== NOT EXECUTED
110c1b: c1 e8 02 shr $0x2,%eax <== NOT EXECUTED
110c1e: 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 ) {
110c21: f6 c2 01 test $0x1,%dl
110c24: 74 03 je 110c29 <rtems_libio_to_fcntl_flags+0x25>
fcntl_flags |= O_NONBLOCK;
110c26: 80 cc 40 or $0x40,%ah
}
if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {
110c29: f6 c6 02 test $0x2,%dh
110c2c: 74 03 je 110c31 <rtems_libio_to_fcntl_flags+0x2d>
fcntl_flags |= O_APPEND;
110c2e: 83 c8 08 or $0x8,%eax
}
if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {
110c31: 80 e6 04 and $0x4,%dh
110c34: 74 03 je 110c39 <rtems_libio_to_fcntl_flags+0x35>
fcntl_flags |= O_CREAT;
110c36: 80 cc 02 or $0x2,%ah
}
return fcntl_flags;
}
110c39: c9 leave
110c3a: c3 ret
110c3b: 90 nop
{
uint32_t fcntl_flags = 0;
if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
fcntl_flags |= O_RDWR;
} else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {
110c3c: 31 c0 xor %eax,%eax
110c3e: eb e1 jmp 110c21 <rtems_libio_to_fcntl_flags+0x1d>
uint32_t flags
)
{
uint32_t fcntl_flags = 0;
if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
110c40: b0 02 mov $0x2,%al <== NOT EXECUTED
110c42: eb dd jmp 110c21 <rtems_libio_to_fcntl_flags+0x1d><== NOT EXECUTED
0010eec8 <rtems_malloc_statistics_at_free>:
* size and thus we skip updating the statistics.
*/
static void rtems_malloc_statistics_at_free(
void *pointer
)
{
10eec8: 55 push %ebp
10eec9: 89 e5 mov %esp,%ebp
10eecb: 83 ec 1c sub $0x1c,%esp
uintptr_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
10eece: 8d 45 f4 lea -0xc(%ebp),%eax
10eed1: 50 push %eax
10eed2: ff 75 08 pushl 0x8(%ebp)
10eed5: ff 35 58 b1 16 00 pushl 0x16b158
10eedb: e8 4c 5f 00 00 call 114e2c <_Protected_heap_Get_block_size>
10eee0: 83 c4 10 add $0x10,%esp
10eee3: 84 c0 test %al,%al
10eee5: 74 11 je 10eef8 <rtems_malloc_statistics_at_free+0x30><== NEVER TAKEN
MSBUMP(lifetime_freed, size);
10eee7: 8b 45 f4 mov -0xc(%ebp),%eax
10eeea: 31 d2 xor %edx,%edx
10eeec: 01 05 84 2d 17 00 add %eax,0x172d84
10eef2: 11 15 88 2d 17 00 adc %edx,0x172d88
}
}
10eef8: c9 leave
10eef9: c3 ret
0010eefc <rtems_malloc_statistics_at_malloc>:
}
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
10eefc: 55 push %ebp
10eefd: 89 e5 mov %esp,%ebp
10eeff: 83 ec 18 sub $0x18,%esp
10ef02: 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 )
10ef05: 85 c0 test %eax,%eax
10ef07: 74 4a je 10ef53 <rtems_malloc_statistics_at_malloc+0x57><== NEVER TAKEN
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
uintptr_t actual_size = 0;
10ef09: 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);
10ef10: 52 push %edx
10ef11: 8d 55 f4 lea -0xc(%ebp),%edx
10ef14: 52 push %edx
10ef15: 50 push %eax
10ef16: ff 35 58 b1 16 00 pushl 0x16b158
10ef1c: e8 0b 5f 00 00 call 114e2c <_Protected_heap_Get_block_size>
MSBUMP(lifetime_allocated, actual_size);
10ef21: 8b 45 f4 mov -0xc(%ebp),%eax
10ef24: 31 d2 xor %edx,%edx
10ef26: 03 05 7c 2d 17 00 add 0x172d7c,%eax
10ef2c: 13 15 80 2d 17 00 adc 0x172d80,%edx
10ef32: a3 7c 2d 17 00 mov %eax,0x172d7c
10ef37: 89 15 80 2d 17 00 mov %edx,0x172d80
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
10ef3d: 2b 05 84 2d 17 00 sub 0x172d84,%eax
if (current_depth > s->max_depth)
10ef43: 83 c4 10 add $0x10,%esp
10ef46: 3b 05 78 2d 17 00 cmp 0x172d78,%eax
10ef4c: 76 05 jbe 10ef53 <rtems_malloc_statistics_at_malloc+0x57>
s->max_depth = current_depth;
10ef4e: a3 78 2d 17 00 mov %eax,0x172d78
}
10ef53: c9 leave
10ef54: c3 ret
00114c50 <rtems_memalign>:
int rtems_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
114c50: 55 push %ebp
114c51: 89 e5 mov %esp,%ebp
114c53: 53 push %ebx
114c54: 83 ec 14 sub $0x14,%esp
114c57: 8b 5d 08 mov 0x8(%ebp),%ebx
void *return_this;
/*
* Parameter error checks
*/
if ( !pointer )
114c5a: 85 db test %ebx,%ebx
114c5c: 74 5b je 114cb9 <rtems_memalign+0x69>
return EINVAL;
*pointer = NULL;
114c5e: 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()) &&
114c64: 83 3d 40 b6 12 00 03 cmpl $0x3,0x12b640
114c6b: 74 43 je 114cb0 <rtems_memalign+0x60>
/*
*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
114c6d: e8 1a 4a ff ff call 10968c <malloc_deferred_frees_process>
uintptr_t size,
uintptr_t alignment
)
{
return
_Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 );
114c72: 6a 00 push $0x0
114c74: ff 75 0c pushl 0xc(%ebp)
114c77: ff 75 10 pushl 0x10(%ebp)
114c7a: ff 35 58 71 12 00 pushl 0x127158
114c80: e8 5b 9c ff ff call 10e8e0 <_Protected_heap_Allocate_aligned_with_boundary>
return_this = _Protected_heap_Allocate_aligned(
RTEMS_Malloc_Heap,
size,
alignment
);
if ( !return_this )
114c85: 83 c4 10 add $0x10,%esp
114c88: 85 c0 test %eax,%eax
114c8a: 74 38 je 114cc4 <rtems_memalign+0x74>
return ENOMEM;
/*
* If configured, update the more involved statistics
*/
if ( rtems_malloc_statistics_helpers )
114c8c: 8b 15 48 96 12 00 mov 0x129648,%edx
114c92: 85 d2 test %edx,%edx
114c94: 74 10 je 114ca6 <rtems_memalign+0x56>
(*rtems_malloc_statistics_helpers->at_malloc)(pointer);
114c96: 83 ec 0c sub $0xc,%esp
114c99: 53 push %ebx
114c9a: 89 45 f4 mov %eax,-0xc(%ebp)
114c9d: ff 52 04 call *0x4(%edx)
114ca0: 83 c4 10 add $0x10,%esp
114ca3: 8b 45 f4 mov -0xc(%ebp),%eax
*/
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
*pointer = return_this;
114ca6: 89 03 mov %eax,(%ebx)
114ca8: 31 c0 xor %eax,%eax
return 0;
}
114caa: 8b 5d fc mov -0x4(%ebp),%ebx
114cad: c9 leave
114cae: c3 ret
114caf: 90 nop
*pointer = NULL;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
114cb0: e8 7f 49 ff ff call 109634 <malloc_is_system_state_OK>
114cb5: 84 c0 test %al,%al
114cb7: 75 b4 jne 114c6d <rtems_memalign+0x1d> <== ALWAYS TAKEN
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
*pointer = return_this;
return 0;
114cb9: b8 16 00 00 00 mov $0x16,%eax
}
114cbe: 8b 5d fc mov -0x4(%ebp),%ebx
114cc1: c9 leave
114cc2: c3 ret
114cc3: 90 nop
return_this = _Protected_heap_Allocate_aligned(
RTEMS_Malloc_Heap,
size,
alignment
);
if ( !return_this )
114cc4: b0 0c mov $0xc,%al
114cc6: eb e2 jmp 114caa <rtems_memalign+0x5a>
00116c74 <rtems_message_queue_broadcast>:
rtems_id id,
const void *buffer,
size_t size,
uint32_t *count
)
{
116c74: 55 push %ebp
116c75: 89 e5 mov %esp,%ebp
116c77: 57 push %edi
116c78: 56 push %esi
116c79: 53 push %ebx
116c7a: 83 ec 1c sub $0x1c,%esp
116c7d: 8b 7d 08 mov 0x8(%ebp),%edi
116c80: 8b 5d 0c mov 0xc(%ebp),%ebx
116c83: 8b 75 14 mov 0x14(%ebp),%esi
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status core_status;
if ( !buffer )
116c86: 85 db test %ebx,%ebx
116c88: 74 62 je 116cec <rtems_message_queue_broadcast+0x78>
return RTEMS_INVALID_ADDRESS;
if ( !count )
116c8a: 85 f6 test %esi,%esi
116c8c: 74 5e je 116cec <rtems_message_queue_broadcast+0x78>
RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
116c8e: 51 push %ecx
116c8f: 8d 45 e4 lea -0x1c(%ebp),%eax
116c92: 50 push %eax
116c93: 57 push %edi
116c94: 68 a0 2a 14 00 push $0x142aa0
116c99: e8 e2 4b 00 00 call 11b880 <_Objects_Get>
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
116c9e: 83 c4 10 add $0x10,%esp
116ca1: 8b 55 e4 mov -0x1c(%ebp),%edx
116ca4: 85 d2 test %edx,%edx
116ca6: 74 10 je 116cb8 <rtems_message_queue_broadcast+0x44>
116ca8: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116cad: 8d 65 f4 lea -0xc(%ebp),%esp
116cb0: 5b pop %ebx
116cb1: 5e pop %esi
116cb2: 5f pop %edi
116cb3: c9 leave
116cb4: c3 ret
116cb5: 8d 76 00 lea 0x0(%esi),%esi
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
core_status = _CORE_message_queue_Broadcast(
116cb8: 83 ec 08 sub $0x8,%esp
116cbb: 56 push %esi
116cbc: 6a 00 push $0x0
116cbe: 57 push %edi
116cbf: ff 75 10 pushl 0x10(%ebp)
116cc2: 53 push %ebx
116cc3: 83 c0 14 add $0x14,%eax
116cc6: 50 push %eax
116cc7: e8 78 34 00 00 call 11a144 <_CORE_message_queue_Broadcast>
116ccc: 89 c3 mov %eax,%ebx
NULL,
#endif
count
);
_Thread_Enable_dispatch();
116cce: 83 c4 20 add $0x20,%esp
116cd1: e8 5a 54 00 00 call 11c130 <_Thread_Enable_dispatch>
return
_Message_queue_Translate_core_message_queue_return_code( core_status );
116cd6: 83 ec 0c sub $0xc,%esp
116cd9: 53 push %ebx
116cda: e8 69 03 00 00 call 117048 <_Message_queue_Translate_core_message_queue_return_code>
#endif
count
);
_Thread_Enable_dispatch();
return
116cdf: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116ce2: 8d 65 f4 lea -0xc(%ebp),%esp
116ce5: 5b pop %ebx
116ce6: 5e pop %esi
116ce7: 5f pop %edi
116ce8: c9 leave
116ce9: c3 ret
116cea: 66 90 xchg %ax,%ax
#endif
count
);
_Thread_Enable_dispatch();
return
116cec: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116cf1: 8d 65 f4 lea -0xc(%ebp),%esp
116cf4: 5b pop %ebx
116cf5: 5e pop %esi
116cf6: 5f pop %edi
116cf7: c9 leave
116cf8: c3 ret
00114178 <rtems_message_queue_create>:
uint32_t count,
size_t max_message_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
114178: 55 push %ebp
114179: 89 e5 mov %esp,%ebp
11417b: 57 push %edi
11417c: 56 push %esi
11417d: 53 push %ebx
11417e: 83 ec 2c sub $0x2c,%esp
114181: 8b 5d 08 mov 0x8(%ebp),%ebx
114184: 8b 75 0c mov 0xc(%ebp),%esi
114187: 8b 4d 10 mov 0x10(%ebp),%ecx
11418a: 8b 7d 18 mov 0x18(%ebp),%edi
CORE_message_queue_Attributes the_msgq_attributes;
#if defined(RTEMS_MULTIPROCESSING)
bool is_global;
#endif
if ( !rtems_is_name_valid( name ) )
11418d: 85 db test %ebx,%ebx
11418f: 74 2f je 1141c0 <rtems_message_queue_create+0x48>
return RTEMS_INVALID_NAME;
if ( !id )
114191: 85 ff test %edi,%edi
114193: 0f 84 a3 00 00 00 je 11423c <rtems_message_queue_create+0xc4>
if ( (is_global = _Attributes_Is_global( attribute_set ) ) &&
!_System_state_Is_multiprocessing )
return RTEMS_MP_NOT_CONFIGURED;
#endif
if ( count == 0 )
114199: 85 f6 test %esi,%esi
11419b: 74 13 je 1141b0 <rtems_message_queue_create+0x38>
return RTEMS_INVALID_NUMBER;
if ( max_message_size == 0 )
11419d: 85 c9 test %ecx,%ecx
11419f: 75 2f jne 1141d0 <rtems_message_queue_create+0x58>
1141a1: b8 08 00 00 00 mov $0x8,%eax
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
1141a6: 8d 65 f4 lea -0xc(%ebp),%esp
1141a9: 5b pop %ebx
1141aa: 5e pop %esi
1141ab: 5f pop %edi
1141ac: c9 leave
1141ad: c3 ret
1141ae: 66 90 xchg %ax,%ax
if ( (is_global = _Attributes_Is_global( attribute_set ) ) &&
!_System_state_Is_multiprocessing )
return RTEMS_MP_NOT_CONFIGURED;
#endif
if ( count == 0 )
1141b0: b8 0a 00 00 00 mov $0xa,%eax
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
1141b5: 8d 65 f4 lea -0xc(%ebp),%esp
1141b8: 5b pop %ebx
1141b9: 5e pop %esi
1141ba: 5f pop %edi
1141bb: c9 leave
1141bc: c3 ret
1141bd: 8d 76 00 lea 0x0(%esi),%esi
CORE_message_queue_Attributes the_msgq_attributes;
#if defined(RTEMS_MULTIPROCESSING)
bool is_global;
#endif
if ( !rtems_is_name_valid( name ) )
1141c0: b8 03 00 00 00 mov $0x3,%eax
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
1141c5: 8d 65 f4 lea -0xc(%ebp),%esp
1141c8: 5b pop %ebx
1141c9: 5e pop %esi
1141ca: 5f pop %edi
1141cb: c9 leave
1141cc: c3 ret
1141cd: 8d 76 00 lea 0x0(%esi),%esi
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
1141d0: a1 58 1a 13 00 mov 0x131a58,%eax
1141d5: 40 inc %eax
1141d6: a3 58 1a 13 00 mov %eax,0x131a58
#endif
#endif
_Thread_Disable_dispatch(); /* protects object pointer */
the_message_queue = _Message_queue_Allocate();
1141db: 89 4d d4 mov %ecx,-0x2c(%ebp)
1141de: e8 d1 60 00 00 call 11a2b4 <_Message_queue_Allocate>
1141e3: 89 c2 mov %eax,%edx
if ( !the_message_queue ) {
1141e5: 85 c0 test %eax,%eax
1141e7: 8b 4d d4 mov -0x2c(%ebp),%ecx
1141ea: 74 7c je 114268 <rtems_message_queue_create+0xf0>
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_message_queue->attribute_set = attribute_set;
1141ec: 8b 45 14 mov 0x14(%ebp),%eax
1141ef: 89 42 10 mov %eax,0x10(%edx)
if (_Attributes_Is_priority( attribute_set ) )
the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY;
1141f2: a8 04 test $0x4,%al
1141f4: 0f 95 c0 setne %al
1141f7: 0f b6 c0 movzbl %al,%eax
1141fa: 89 45 e4 mov %eax,-0x1c(%ebp)
else
the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO;
if ( ! _CORE_message_queue_Initialize(
1141fd: 51 push %ecx
1141fe: 56 push %esi
1141ff: 8d 45 e4 lea -0x1c(%ebp),%eax
114202: 50 push %eax
114203: 8d 42 14 lea 0x14(%edx),%eax
114206: 50 push %eax
114207: 89 55 d4 mov %edx,-0x2c(%ebp)
11420a: e8 a5 10 00 00 call 1152b4 <_CORE_message_queue_Initialize>
11420f: 83 c4 10 add $0x10,%esp
114212: 84 c0 test %al,%al
114214: 8b 55 d4 mov -0x2c(%ebp),%edx
114217: 75 2f jne 114248 <rtems_message_queue_create+0xd0>
*/
RTEMS_INLINE_ROUTINE void _Message_queue_Free (
Message_queue_Control *the_message_queue
)
{
_Objects_Free( &_Message_queue_Information, &the_message_queue->Object );
114219: 83 ec 08 sub $0x8,%esp
11421c: 52 push %edx
11421d: 68 80 1d 13 00 push $0x131d80
114222: e8 41 1e 00 00 call 116068 <_Objects_Free>
_Objects_MP_Close(
&_Message_queue_Information, the_message_queue->Object.id);
#endif
_Message_queue_Free( the_message_queue );
_Thread_Enable_dispatch();
114227: e8 34 28 00 00 call 116a60 <_Thread_Enable_dispatch>
11422c: b8 0d 00 00 00 mov $0xd,%eax
return RTEMS_UNSATISFIED;
114231: 83 c4 10 add $0x10,%esp
114234: e9 6d ff ff ff jmp 1141a6 <rtems_message_queue_create+0x2e>
114239: 8d 76 00 lea 0x0(%esi),%esi
#endif
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
11423c: b8 09 00 00 00 mov $0x9,%eax
114241: e9 60 ff ff ff jmp 1141a6 <rtems_message_queue_create+0x2e>
114246: 66 90 xchg %ax,%ax
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
114248: 8b 42 08 mov 0x8(%edx),%eax
11424b: 0f b7 f0 movzwl %ax,%esi
11424e: 8b 0d 9c 1d 13 00 mov 0x131d9c,%ecx
114254: 89 14 b1 mov %edx,(%ecx,%esi,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
114257: 89 5a 0c mov %ebx,0xc(%edx)
&_Message_queue_Information,
&the_message_queue->Object,
(Objects_Name) name
);
*id = the_message_queue->Object.id;
11425a: 89 07 mov %eax,(%edi)
name,
0
);
#endif
_Thread_Enable_dispatch();
11425c: e8 ff 27 00 00 call 116a60 <_Thread_Enable_dispatch>
114261: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
114263: e9 3e ff ff ff jmp 1141a6 <rtems_message_queue_create+0x2e>
_Thread_Disable_dispatch(); /* protects object pointer */
the_message_queue = _Message_queue_Allocate();
if ( !the_message_queue ) {
_Thread_Enable_dispatch();
114268: e8 f3 27 00 00 call 116a60 <_Thread_Enable_dispatch>
11426d: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
114272: e9 2f ff ff ff jmp 1141a6 <rtems_message_queue_create+0x2e>
001188d8 <rtems_message_queue_delete>:
*/
rtems_status_code rtems_message_queue_delete(
rtems_id id
)
{
1188d8: 55 push %ebp
1188d9: 89 e5 mov %esp,%ebp
1188db: 53 push %ebx
1188dc: 83 ec 18 sub $0x18,%esp
1188df: 8d 45 f4 lea -0xc(%ebp),%eax
1188e2: 50 push %eax
1188e3: ff 75 08 pushl 0x8(%ebp)
1188e6: 68 00 50 13 00 push $0x135000
1188eb: e8 f0 96 ff ff call 111fe0 <_Objects_Get>
1188f0: 89 c3 mov %eax,%ebx
register Message_queue_Control *the_message_queue;
Objects_Locations location;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
1188f2: 83 c4 10 add $0x10,%esp
1188f5: 8b 4d f4 mov -0xc(%ebp),%ecx
1188f8: 85 c9 test %ecx,%ecx
1188fa: 75 3c jne 118938 <rtems_message_queue_delete+0x60>
case OBJECTS_LOCAL:
_Objects_Close( &_Message_queue_Information,
1188fc: 83 ec 08 sub $0x8,%esp
1188ff: 50 push %eax
118900: 68 00 50 13 00 push $0x135000
118905: e8 a2 92 ff ff call 111bac <_Objects_Close>
&the_message_queue->Object );
_CORE_message_queue_Close(
11890a: 83 c4 0c add $0xc,%esp
11890d: 6a 05 push $0x5
11890f: 6a 00 push $0x0
118911: 8d 43 14 lea 0x14(%ebx),%eax
118914: 50 push %eax
118915: e8 de 05 00 00 call 118ef8 <_CORE_message_queue_Close>
*/
RTEMS_INLINE_ROUTINE void _Message_queue_Free (
Message_queue_Control *the_message_queue
)
{
_Objects_Free( &_Message_queue_Information, &the_message_queue->Object );
11891a: 58 pop %eax
11891b: 5a pop %edx
11891c: 53 push %ebx
11891d: 68 00 50 13 00 push $0x135000
118922: e8 89 95 ff ff call 111eb0 <_Objects_Free>
0, /* Not used */
0
);
}
#endif
_Thread_Enable_dispatch();
118927: e8 64 9f ff ff call 112890 <_Thread_Enable_dispatch>
11892c: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
11892e: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
118931: 8b 5d fc mov -0x4(%ebp),%ebx
118934: c9 leave
118935: c3 ret
118936: 66 90 xchg %ax,%ax
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
118938: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
11893d: 8b 5d fc mov -0x4(%ebp),%ebx
118940: c9 leave
118941: c3 ret
00116e68 <rtems_message_queue_flush>:
rtems_status_code rtems_message_queue_flush(
rtems_id id,
uint32_t *count
)
{
116e68: 55 push %ebp
116e69: 89 e5 mov %esp,%ebp
116e6b: 53 push %ebx
116e6c: 83 ec 14 sub $0x14,%esp
116e6f: 8b 5d 0c mov 0xc(%ebp),%ebx
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
116e72: 85 db test %ebx,%ebx
116e74: 74 46 je 116ebc <rtems_message_queue_flush+0x54>
RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
116e76: 51 push %ecx
116e77: 8d 45 f4 lea -0xc(%ebp),%eax
116e7a: 50 push %eax
116e7b: ff 75 08 pushl 0x8(%ebp)
116e7e: 68 a0 2a 14 00 push $0x142aa0
116e83: e8 f8 49 00 00 call 11b880 <_Objects_Get>
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
116e88: 83 c4 10 add $0x10,%esp
116e8b: 8b 55 f4 mov -0xc(%ebp),%edx
116e8e: 85 d2 test %edx,%edx
116e90: 74 0a je 116e9c <rtems_message_queue_flush+0x34>
116e92: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116e97: 8b 5d fc mov -0x4(%ebp),%ebx
116e9a: c9 leave
116e9b: c3 ret
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
*count = _CORE_message_queue_Flush( &the_message_queue->message_queue );
116e9c: 83 ec 0c sub $0xc,%esp
116e9f: 83 c0 14 add $0x14,%eax
116ea2: 50 push %eax
116ea3: e8 5c 33 00 00 call 11a204 <_CORE_message_queue_Flush>
116ea8: 89 03 mov %eax,(%ebx)
_Thread_Enable_dispatch();
116eaa: e8 81 52 00 00 call 11c130 <_Thread_Enable_dispatch>
116eaf: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
116eb1: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116eb4: 8b 5d fc mov -0x4(%ebp),%ebx
116eb7: c9 leave
116eb8: c3 ret
116eb9: 8d 76 00 lea 0x0(%esi),%esi
)
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
116ebc: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116ec1: 8b 5d fc mov -0x4(%ebp),%ebx
116ec4: c9 leave
116ec5: c3 ret
00116ec8 <rtems_message_queue_get_number_pending>:
rtems_status_code rtems_message_queue_get_number_pending(
rtems_id id,
uint32_t *count
)
{
116ec8: 55 push %ebp
116ec9: 89 e5 mov %esp,%ebp
116ecb: 53 push %ebx
116ecc: 83 ec 14 sub $0x14,%esp
116ecf: 8b 5d 0c mov 0xc(%ebp),%ebx
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
116ed2: 85 db test %ebx,%ebx
116ed4: 74 3a je 116f10 <rtems_message_queue_get_number_pending+0x48>
116ed6: 51 push %ecx
116ed7: 8d 45 f4 lea -0xc(%ebp),%eax
116eda: 50 push %eax
116edb: ff 75 08 pushl 0x8(%ebp)
116ede: 68 a0 2a 14 00 push $0x142aa0
116ee3: e8 98 49 00 00 call 11b880 <_Objects_Get>
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
116ee8: 83 c4 10 add $0x10,%esp
116eeb: 8b 55 f4 mov -0xc(%ebp),%edx
116eee: 85 d2 test %edx,%edx
116ef0: 74 0a je 116efc <rtems_message_queue_get_number_pending+0x34>
116ef2: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116ef7: 8b 5d fc mov -0x4(%ebp),%ebx
116efa: c9 leave
116efb: c3 ret
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
*count = the_message_queue->message_queue.number_of_pending_messages;
116efc: 8b 40 5c mov 0x5c(%eax),%eax
116eff: 89 03 mov %eax,(%ebx)
_Thread_Enable_dispatch();
116f01: e8 2a 52 00 00 call 11c130 <_Thread_Enable_dispatch>
116f06: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116f08: 8b 5d fc mov -0x4(%ebp),%ebx
116f0b: c9 leave
116f0c: c3 ret
116f0d: 8d 76 00 lea 0x0(%esi),%esi
)
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
116f10: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116f15: 8b 5d fc mov -0x4(%ebp),%ebx
116f18: c9 leave
116f19: c3 ret
0011429c <rtems_message_queue_receive>:
void *buffer,
size_t *size,
rtems_option option_set,
rtems_interval timeout
)
{
11429c: 55 push %ebp
11429d: 89 e5 mov %esp,%ebp
11429f: 56 push %esi
1142a0: 53 push %ebx
1142a1: 83 ec 10 sub $0x10,%esp
1142a4: 8b 5d 0c mov 0xc(%ebp),%ebx
1142a7: 8b 75 10 mov 0x10(%ebp),%esi
register Message_queue_Control *the_message_queue;
Objects_Locations location;
bool wait;
if ( !buffer )
1142aa: 85 db test %ebx,%ebx
1142ac: 74 6e je 11431c <rtems_message_queue_receive+0x80>
return RTEMS_INVALID_ADDRESS;
if ( !size )
1142ae: 85 f6 test %esi,%esi
1142b0: 74 6a je 11431c <rtems_message_queue_receive+0x80>
RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
1142b2: 51 push %ecx
1142b3: 8d 45 f4 lea -0xc(%ebp),%eax
1142b6: 50 push %eax
1142b7: ff 75 08 pushl 0x8(%ebp)
1142ba: 68 80 1d 13 00 push $0x131d80
1142bf: e8 d4 1e 00 00 call 116198 <_Objects_Get>
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
1142c4: 83 c4 10 add $0x10,%esp
1142c7: 8b 55 f4 mov -0xc(%ebp),%edx
1142ca: 85 d2 test %edx,%edx
1142cc: 75 42 jne 114310 <rtems_message_queue_receive+0x74>
if ( _Options_Is_no_wait( option_set ) )
wait = false;
else
wait = true;
_CORE_message_queue_Seize(
1142ce: 83 ec 08 sub $0x8,%esp
1142d1: ff 75 18 pushl 0x18(%ebp)
1142d4: 8b 55 14 mov 0x14(%ebp),%edx
1142d7: 83 e2 01 and $0x1,%edx
1142da: 83 f2 01 xor $0x1,%edx
1142dd: 52 push %edx
1142de: 56 push %esi
1142df: 53 push %ebx
1142e0: ff 70 08 pushl 0x8(%eax)
1142e3: 83 c0 14 add $0x14,%eax
1142e6: 50 push %eax
1142e7: e8 78 10 00 00 call 115364 <_CORE_message_queue_Seize>
buffer,
size,
wait,
timeout
);
_Thread_Enable_dispatch();
1142ec: 83 c4 20 add $0x20,%esp
1142ef: e8 6c 27 00 00 call 116a60 <_Thread_Enable_dispatch>
return _Message_queue_Translate_core_message_queue_return_code(
1142f4: 83 ec 0c sub $0xc,%esp
1142f7: a1 18 1b 13 00 mov 0x131b18,%eax
1142fc: ff 70 34 pushl 0x34(%eax)
1142ff: e8 a0 00 00 00 call 1143a4 <_Message_queue_Translate_core_message_queue_return_code>
114304: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
114307: 8d 65 f8 lea -0x8(%ebp),%esp
11430a: 5b pop %ebx
11430b: 5e pop %esi
11430c: c9 leave
11430d: c3 ret
11430e: 66 90 xchg %ax,%ax
if ( !size )
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
114310: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
114315: 8d 65 f8 lea -0x8(%ebp),%esp
114318: 5b pop %ebx
114319: 5e pop %esi
11431a: c9 leave
11431b: c3 ret
size,
wait,
timeout
);
_Thread_Enable_dispatch();
return _Message_queue_Translate_core_message_queue_return_code(
11431c: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
114321: 8d 65 f8 lea -0x8(%ebp),%esp
114324: 5b pop %ebx
114325: 5e pop %esi
114326: c9 leave
114327: c3 ret
0010b9e0 <rtems_message_queue_send>:
rtems_status_code rtems_message_queue_send(
rtems_id id,
const void *buffer,
size_t size
)
{
10b9e0: 55 push %ebp
10b9e1: 89 e5 mov %esp,%ebp
10b9e3: 56 push %esi
10b9e4: 53 push %ebx
10b9e5: 83 ec 10 sub $0x10,%esp
10b9e8: 8b 75 08 mov 0x8(%ebp),%esi
10b9eb: 8b 5d 0c mov 0xc(%ebp),%ebx
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
10b9ee: 85 db test %ebx,%ebx
10b9f0: 74 5e je 10ba50 <rtems_message_queue_send+0x70><== NEVER TAKEN
RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
10b9f2: 51 push %ecx
10b9f3: 8d 45 f4 lea -0xc(%ebp),%eax
10b9f6: 50 push %eax
10b9f7: 56 push %esi
10b9f8: 68 80 76 12 00 push $0x127680
10b9fd: e8 42 19 00 00 call 10d344 <_Objects_Get>
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
10ba02: 83 c4 10 add $0x10,%esp
10ba05: 8b 55 f4 mov -0xc(%ebp),%edx
10ba08: 85 d2 test %edx,%edx
10ba0a: 74 0c je 10ba18 <rtems_message_queue_send+0x38>
10ba0c: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10ba11: 8d 65 f8 lea -0x8(%ebp),%esp
10ba14: 5b pop %ebx
10ba15: 5e pop %esi
10ba16: c9 leave
10ba17: c3 ret
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
bool wait,
Watchdog_Interval timeout
)
{
return _CORE_message_queue_Submit(
10ba18: 6a 00 push $0x0
10ba1a: 6a 00 push $0x0
10ba1c: 68 ff ff ff 7f push $0x7fffffff
10ba21: 6a 00 push $0x0
10ba23: 56 push %esi
10ba24: ff 75 10 pushl 0x10(%ebp)
10ba27: 53 push %ebx
10ba28: 83 c0 14 add $0x14,%eax
10ba2b: 50 push %eax
10ba2c: e8 b7 0b 00 00 call 10c5e8 <_CORE_message_queue_Submit>
10ba31: 89 c3 mov %eax,%ebx
MESSAGE_QUEUE_MP_HANDLER,
false, /* sender does not block */
0 /* no timeout */
);
_Thread_Enable_dispatch();
10ba33: 83 c4 20 add $0x20,%esp
10ba36: e8 51 21 00 00 call 10db8c <_Thread_Enable_dispatch>
/*
* Since this API does not allow for blocking sends, we can directly
* return the returned status.
*/
return _Message_queue_Translate_core_message_queue_return_code(status);
10ba3b: 83 ec 0c sub $0xc,%esp
10ba3e: 53 push %ebx
10ba3f: e8 18 00 00 00 call 10ba5c <_Message_queue_Translate_core_message_queue_return_code>
10ba44: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10ba47: 8d 65 f8 lea -0x8(%ebp),%esp
10ba4a: 5b pop %ebx
10ba4b: 5e pop %esi
10ba4c: c9 leave
10ba4d: c3 ret
10ba4e: 66 90 xchg %ax,%ax
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
10ba50: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10ba55: 8d 65 f8 lea -0x8(%ebp),%esp
10ba58: 5b pop %ebx
10ba59: 5e pop %esi
10ba5a: c9 leave
10ba5b: c3 ret
00117058 <rtems_message_queue_urgent>:
rtems_status_code rtems_message_queue_urgent(
rtems_id id,
const void *buffer,
size_t size
)
{
117058: 55 push %ebp
117059: 89 e5 mov %esp,%ebp
11705b: 56 push %esi
11705c: 53 push %ebx
11705d: 83 ec 10 sub $0x10,%esp
117060: 8b 75 08 mov 0x8(%ebp),%esi
117063: 8b 5d 0c mov 0xc(%ebp),%ebx
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
117066: 85 db test %ebx,%ebx
117068: 74 5e je 1170c8 <rtems_message_queue_urgent+0x70>
11706a: 51 push %ecx
11706b: 8d 45 f4 lea -0xc(%ebp),%eax
11706e: 50 push %eax
11706f: 56 push %esi
117070: 68 a0 2a 14 00 push $0x142aa0
117075: e8 06 48 00 00 call 11b880 <_Objects_Get>
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
11707a: 83 c4 10 add $0x10,%esp
11707d: 8b 55 f4 mov -0xc(%ebp),%edx
117080: 85 d2 test %edx,%edx
117082: 74 0c je 117090 <rtems_message_queue_urgent+0x38>
117084: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
117089: 8d 65 f8 lea -0x8(%ebp),%esp
11708c: 5b pop %ebx
11708d: 5e pop %esi
11708e: c9 leave
11708f: c3 ret
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
bool wait,
Watchdog_Interval timeout
)
{
return _CORE_message_queue_Submit(
117090: 6a 00 push $0x0
117092: 6a 00 push $0x0
117094: 68 00 00 00 80 push $0x80000000
117099: 6a 00 push $0x0
11709b: 56 push %esi
11709c: ff 75 10 pushl 0x10(%ebp)
11709f: 53 push %ebx
1170a0: 83 c0 14 add $0x14,%eax
1170a3: 50 push %eax
1170a4: e8 4b 33 00 00 call 11a3f4 <_CORE_message_queue_Submit>
1170a9: 89 c3 mov %eax,%ebx
id,
MESSAGE_QUEUE_MP_HANDLER,
false, /* sender does not block */
0 /* no timeout */
);
_Thread_Enable_dispatch();
1170ab: 83 c4 20 add $0x20,%esp
1170ae: e8 7d 50 00 00 call 11c130 <_Thread_Enable_dispatch>
/*
* Since this API does not allow for blocking sends, we can directly
* return the returned status.
*/
return _Message_queue_Translate_core_message_queue_return_code(status);
1170b3: 83 ec 0c sub $0xc,%esp
1170b6: 53 push %ebx
1170b7: e8 8c ff ff ff call 117048 <_Message_queue_Translate_core_message_queue_return_code>
1170bc: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1170bf: 8d 65 f8 lea -0x8(%ebp),%esp
1170c2: 5b pop %ebx
1170c3: 5e pop %esi
1170c4: c9 leave
1170c5: c3 ret
1170c6: 66 90 xchg %ax,%ax
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
1170c8: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1170cd: 8d 65 f8 lea -0x8(%ebp),%esp
1170d0: 5b pop %ebx
1170d1: 5e pop %esi
1170d2: c9 leave
1170d3: c3 ret
0010fd04 <rtems_mkdir>:
return (retval);
}
int
rtems_mkdir(const char *path, mode_t mode)
{
10fd04: 55 push %ebp <== NOT EXECUTED
10fd05: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10fd07: 57 push %edi <== NOT EXECUTED
10fd08: 56 push %esi <== NOT EXECUTED
10fd09: 53 push %ebx <== NOT EXECUTED
10fd0a: 83 ec 78 sub $0x78,%esp <== NOT EXECUTED
int success = 0;
char *dup_path = strdup(path);
10fd0d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
10fd10: e8 8f c3 03 00 call 14c0a4 <strdup> <== NOT EXECUTED
10fd15: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (dup_path != NULL) {
10fd17: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fd1a: 85 c0 test %eax,%eax <== NOT EXECUTED
10fd1c: 0f 84 0a 01 00 00 je 10fe2c <rtems_mkdir+0x128> <== NOT EXECUTED
char *p;
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
10fd22: 8a 10 mov (%eax),%dl <== NOT EXECUTED
10fd24: 80 fa 2f cmp $0x2f,%dl <== NOT EXECUTED
10fd27: 0f 84 0f 01 00 00 je 10fe3c <rtems_mkdir+0x138> <== NOT EXECUTED
10fd2d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
++p;
10fd2f: c7 45 94 00 00 00 00 movl $0x0,-0x6c(%ebp) <== NOT EXECUTED
10fd36: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
for (first = 1, last = 0; !last ; ++p) {
if (p[0] == '\0')
10fd3b: 84 d2 test %dl,%dl <== NOT EXECUTED
10fd3d: 74 11 je 10fd50 <rtems_mkdir+0x4c> <== NOT EXECUTED
10fd3f: 90 nop <== NOT EXECUTED
last = 1;
else if (p[0] != '/')
10fd40: 80 fa 2f cmp $0x2f,%dl <== NOT EXECUTED
10fd43: 0f 84 83 00 00 00 je 10fdcc <rtems_mkdir+0xc8> <== NOT EXECUTED
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
++p;
for (first = 1, last = 0; !last ; ++p) {
10fd49: 43 inc %ebx <== NOT EXECUTED
10fd4a: 8a 13 mov (%ebx),%dl <== NOT EXECUTED
if (p[0] == '\0')
10fd4c: 84 d2 test %dl,%dl <== NOT EXECUTED
10fd4e: 75 f0 jne 10fd40 <rtems_mkdir+0x3c> <== NOT EXECUTED
last = 1;
else if (p[0] != '/')
continue;
*p = '\0';
10fd50: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
10fd53: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
if (!last && p[1] == '\0')
last = 1;
if (first) {
10fd58: 85 c0 test %eax,%eax <== NOT EXECUTED
10fd5a: 75 54 jne 10fdb0 <rtems_mkdir+0xac> <== NOT EXECUTED
oumask = umask(0);
numask = oumask & ~(S_IWUSR | S_IXUSR);
(void)umask(numask);
first = 0;
}
if (last)
10fd5c: 85 f6 test %esi,%esi <== NOT EXECUTED
10fd5e: 75 3c jne 10fd9c <rtems_mkdir+0x98> <== NOT EXECUTED
10fd60: b8 ff 01 00 00 mov $0x1ff,%eax <== NOT EXECUTED
(void)umask(oumask);
if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
10fd65: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10fd68: 50 push %eax <== NOT EXECUTED
10fd69: 57 push %edi <== NOT EXECUTED
10fd6a: e8 01 f2 ff ff call 10ef70 <mkdir> <== NOT EXECUTED
10fd6f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fd72: 85 c0 test %eax,%eax <== NOT EXECUTED
10fd74: 78 6a js 10fde0 <rtems_mkdir+0xdc> <== NOT EXECUTED
} else {
retval = 0;
break;
}
}
if (!last)
10fd76: 85 f6 test %esi,%esi <== NOT EXECUTED
10fd78: 75 0a jne 10fd84 <rtems_mkdir+0x80> <== NOT EXECUTED
*p = '/';
10fd7a: c6 03 2f movb $0x2f,(%ebx) <== NOT EXECUTED
10fd7d: 31 c0 xor %eax,%eax <== NOT EXECUTED
10fd7f: eb c8 jmp 10fd49 <rtems_mkdir+0x45> <== NOT EXECUTED
10fd81: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
int success = 0;
char *dup_path = strdup(path);
if (dup_path != NULL) {
success = build(dup_path, mode);
free(dup_path);
10fd84: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fd87: 57 push %edi <== NOT EXECUTED
10fd88: e8 db ea ff ff call 10e868 <free> <== NOT EXECUTED
10fd8d: 31 c0 xor %eax,%eax <== NOT EXECUTED
10fd8f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return success != 0 ? 0 : -1;
}
10fd92: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10fd95: 5b pop %ebx <== NOT EXECUTED
10fd96: 5e pop %esi <== NOT EXECUTED
10fd97: 5f pop %edi <== NOT EXECUTED
10fd98: c9 leave <== NOT EXECUTED
10fd99: c3 ret <== NOT EXECUTED
10fd9a: 66 90 xchg %ax,%ax <== NOT EXECUTED
numask = oumask & ~(S_IWUSR | S_IXUSR);
(void)umask(numask);
first = 0;
}
if (last)
(void)umask(oumask);
10fd9c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fd9f: ff 75 94 pushl -0x6c(%ebp) <== NOT EXECUTED
10fda2: e8 b5 1f 00 00 call 111d5c <umask> <== NOT EXECUTED
10fda7: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
10fdaa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fdad: eb b6 jmp 10fd65 <rtems_mkdir+0x61> <== NOT EXECUTED
10fdaf: 90 nop <== NOT EXECUTED
* mkdir [-m mode] dir
*
* We change the user's umask and then restore it,
* instead of doing chmod's.
*/
oumask = umask(0);
10fdb0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fdb3: 6a 00 push $0x0 <== NOT EXECUTED
10fdb5: e8 a2 1f 00 00 call 111d5c <umask> <== NOT EXECUTED
10fdba: 89 45 94 mov %eax,-0x6c(%ebp) <== NOT EXECUTED
numask = oumask & ~(S_IWUSR | S_IXUSR);
(void)umask(numask);
10fdbd: 24 3f and $0x3f,%al <== NOT EXECUTED
10fdbf: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
10fdc2: e8 95 1f 00 00 call 111d5c <umask> <== NOT EXECUTED
10fdc7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fdca: eb 90 jmp 10fd5c <rtems_mkdir+0x58> <== NOT EXECUTED
for (first = 1, last = 0; !last ; ++p) {
if (p[0] == '\0')
last = 1;
else if (p[0] != '/')
continue;
*p = '\0';
10fdcc: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
if (!last && p[1] == '\0')
10fdcf: 80 7b 01 00 cmpb $0x0,0x1(%ebx) <== NOT EXECUTED
10fdd3: 0f 94 c2 sete %dl <== NOT EXECUTED
10fdd6: 0f b6 f2 movzbl %dl,%esi <== NOT EXECUTED
10fdd9: e9 7a ff ff ff jmp 10fd58 <rtems_mkdir+0x54> <== NOT EXECUTED
10fdde: 66 90 xchg %ax,%ax <== NOT EXECUTED
first = 0;
}
if (last)
(void)umask(oumask);
if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
if (errno == EEXIST || errno == EISDIR) {
10fde0: e8 a7 69 03 00 call 14678c <__errno> <== NOT EXECUTED
10fde5: 83 38 11 cmpl $0x11,(%eax) <== NOT EXECUTED
10fde8: 74 0a je 10fdf4 <rtems_mkdir+0xf0> <== NOT EXECUTED
10fdea: e8 9d 69 03 00 call 14678c <__errno> <== NOT EXECUTED
10fdef: 83 38 15 cmpl $0x15,(%eax) <== NOT EXECUTED
10fdf2: 75 53 jne 10fe47 <rtems_mkdir+0x143> <== NOT EXECUTED
if (stat(path, &sb) < 0) {
10fdf4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10fdf7: 8d 45 a0 lea -0x60(%ebp),%eax <== NOT EXECUTED
10fdfa: 50 push %eax <== NOT EXECUTED
10fdfb: 57 push %edi <== NOT EXECUTED
10fdfc: e8 7f 00 00 00 call 10fe80 <stat> <== NOT EXECUTED
10fe01: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10fe04: 85 c0 test %eax,%eax <== NOT EXECUTED
10fe06: 78 3f js 10fe47 <rtems_mkdir+0x143> <== NOT EXECUTED
retval = 0;
break;
} else if (!S_ISDIR(sb.st_mode)) {
10fe08: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
10fe0b: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
10fe10: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
10fe15: 0f 84 5b ff ff ff je 10fd76 <rtems_mkdir+0x72> <== NOT EXECUTED
if (last)
10fe1b: 85 f6 test %esi,%esi <== NOT EXECUTED
10fe1d: 74 53 je 10fe72 <rtems_mkdir+0x16e> <== NOT EXECUTED
errno = EEXIST;
10fe1f: e8 68 69 03 00 call 14678c <__errno> <== NOT EXECUTED
10fe24: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED
10fe2a: eb 2d jmp 10fe59 <rtems_mkdir+0x155> <== NOT EXECUTED
}
if (!last)
*p = '/';
}
if (!first && !last)
(void)umask(oumask);
10fe2c: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
success = build(dup_path, mode);
free(dup_path);
}
return success != 0 ? 0 : -1;
}
10fe31: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10fe34: 5b pop %ebx <== NOT EXECUTED
10fe35: 5e pop %esi <== NOT EXECUTED
10fe36: 5f pop %edi <== NOT EXECUTED
10fe37: c9 leave <== NOT EXECUTED
10fe38: c3 ret <== NOT EXECUTED
10fe39: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
++p;
10fe3c: 8d 58 01 lea 0x1(%eax),%ebx <== NOT EXECUTED
10fe3f: 8a 50 01 mov 0x1(%eax),%dl <== NOT EXECUTED
10fe42: e9 e8 fe ff ff jmp 10fd2f <rtems_mkdir+0x2b> <== NOT EXECUTED
}
}
if (!last)
*p = '/';
}
if (!first && !last)
10fe47: 85 f6 test %esi,%esi <== NOT EXECUTED
10fe49: 75 0e jne 10fe59 <rtems_mkdir+0x155> <== NOT EXECUTED
(void)umask(oumask);
10fe4b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fe4e: ff 75 94 pushl -0x6c(%ebp) <== NOT EXECUTED
10fe51: e8 06 1f 00 00 call 111d5c <umask> <== NOT EXECUTED
10fe56: 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);
10fe59: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10fe5c: 57 push %edi <== NOT EXECUTED
10fe5d: e8 06 ea ff ff call 10e868 <free> <== NOT EXECUTED
10fe62: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
10fe67: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return success != 0 ? 0 : -1;
}
10fe6a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10fe6d: 5b pop %ebx <== NOT EXECUTED
10fe6e: 5e pop %esi <== NOT EXECUTED
10fe6f: 5f pop %edi <== NOT EXECUTED
10fe70: c9 leave <== NOT EXECUTED
10fe71: c3 ret <== NOT EXECUTED
break;
} else if (!S_ISDIR(sb.st_mode)) {
if (last)
errno = EEXIST;
else
errno = ENOTDIR;
10fe72: e8 15 69 03 00 call 14678c <__errno> <== NOT EXECUTED
10fe77: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
10fe7d: eb cc jmp 10fe4b <rtems_mkdir+0x147> <== NOT EXECUTED
00126388 <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)
{
126388: 55 push %ebp <== NOT EXECUTED
126389: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12638b: 56 push %esi <== NOT EXECUTED
12638c: 53 push %ebx <== NOT EXECUTED
12638d: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
uint32_t b;
rtems_nvdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);
126390: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126393: 68 00 02 00 00 push $0x200 <== NOT EXECUTED
126398: e8 6b 8a fe ff call 10ee08 <malloc> <== NOT EXECUTED
12639d: 89 c6 mov %eax,%esi <== NOT EXECUTED
12639f: a3 fc 27 17 00 mov %eax,0x1727fc <== NOT EXECUTED
if (!rtems_nvdisk_crc16_factor)
1263a4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1263a7: 85 c0 test %eax,%eax <== NOT EXECUTED
1263a9: 74 3d je 1263e8 <rtems_nvdisk_crc16_gen_factors+0x60><== NOT EXECUTED
1263ab: 31 c0 xor %eax,%eax <== NOT EXECUTED
1263ad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
1263b0: 89 c2 mov %eax,%edx <== NOT EXECUTED
1263b2: b9 07 00 00 00 mov $0x7,%ecx <== NOT EXECUTED
1263b7: eb 0d jmp 1263c6 <rtems_nvdisk_crc16_gen_factors+0x3e><== NOT EXECUTED
1263b9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
for (b = 0; b < 256; b++)
{
uint32_t i;
uint16_t v = b;
for (i = 8; i--;)
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
1263bc: 66 d1 ea shr %dx <== NOT EXECUTED
1263bf: 31 da xor %ebx,%edx <== NOT EXECUTED
for (b = 0; b < 256; b++)
{
uint32_t i;
uint16_t v = b;
for (i = 8; i--;)
1263c1: 85 c9 test %ecx,%ecx <== NOT EXECUTED
1263c3: 74 0d je 1263d2 <rtems_nvdisk_crc16_gen_factors+0x4a><== NOT EXECUTED
1263c5: 49 dec %ecx <== NOT EXECUTED
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
1263c6: f6 c2 01 test $0x1,%dl <== NOT EXECUTED
1263c9: 75 f1 jne 1263bc <rtems_nvdisk_crc16_gen_factors+0x34><== NOT EXECUTED
1263cb: 66 d1 ea shr %dx <== NOT EXECUTED
for (b = 0; b < 256; b++)
{
uint32_t i;
uint16_t v = b;
for (i = 8; i--;)
1263ce: 85 c9 test %ecx,%ecx <== NOT EXECUTED
1263d0: 75 f3 jne 1263c5 <rtems_nvdisk_crc16_gen_factors+0x3d><== NOT EXECUTED
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
rtems_nvdisk_crc16_factor[b] = v & 0xffff;
1263d2: 66 89 14 46 mov %dx,(%esi,%eax,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++)
1263d6: 40 inc %eax <== NOT EXECUTED
1263d7: 3d 00 01 00 00 cmp $0x100,%eax <== NOT EXECUTED
1263dc: 75 d2 jne 1263b0 <rtems_nvdisk_crc16_gen_factors+0x28><== NOT EXECUTED
1263de: 66 31 c0 xor %ax,%ax <== NOT EXECUTED
for (i = 8; i--;)
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
rtems_nvdisk_crc16_factor[b] = v & 0xffff;
}
return RTEMS_SUCCESSFUL;
}
1263e1: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
1263e4: 5b pop %ebx <== NOT EXECUTED
1263e5: 5e pop %esi <== NOT EXECUTED
1263e6: c9 leave <== NOT EXECUTED
1263e7: c3 ret <== NOT EXECUTED
rtems_nvdisk_crc16_gen_factors (uint16_t pattern)
{
uint32_t b;
rtems_nvdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);
if (!rtems_nvdisk_crc16_factor)
1263e8: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED
1263ed: eb f2 jmp 1263e1 <rtems_nvdisk_crc16_gen_factors+0x59><== NOT EXECUTED
00125d98 <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, ...)
{
125d98: 55 push %ebp <== NOT EXECUTED
125d99: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125d9b: 53 push %ebx <== NOT EXECUTED
125d9c: 83 ec 04 sub $0x4,%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, ...)
125d9f: 8d 5d 0c lea 0xc(%ebp),%ebx <== NOT EXECUTED
{
int ret;
va_list args;
va_start (args, format);
fprintf (stderr, "nvdisk:error:");
125da2: a1 00 db 16 00 mov 0x16db00,%eax <== NOT EXECUTED
125da7: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
125daa: 6a 0d push $0xd <== NOT EXECUTED
125dac: 6a 01 push $0x1 <== NOT EXECUTED
125dae: 68 c8 33 16 00 push $0x1633c8 <== NOT EXECUTED
125db3: e8 b4 25 02 00 call 14836c <fwrite> <== NOT EXECUTED
ret = vfprintf (stderr, format, args);
125db8: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
125dbb: 53 push %ebx <== NOT EXECUTED
125dbc: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
125dbf: a1 00 db 16 00 mov 0x16db00,%eax <== NOT EXECUTED
125dc4: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
125dc7: e8 a8 e1 02 00 call 153f74 <vfprintf> <== NOT EXECUTED
125dcc: 89 c3 mov %eax,%ebx <== NOT EXECUTED
fprintf (stderr, "\n");
125dce: 5a pop %edx <== NOT EXECUTED
125dcf: 59 pop %ecx <== NOT EXECUTED
125dd0: a1 00 db 16 00 mov 0x16db00,%eax <== NOT EXECUTED
125dd5: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
125dd8: 6a 0a push $0xa <== NOT EXECUTED
125dda: e8 69 13 02 00 call 147148 <fputc> <== NOT EXECUTED
fflush (stderr);
125ddf: 58 pop %eax <== NOT EXECUTED
125de0: a1 00 db 16 00 mov 0x16db00,%eax <== NOT EXECUTED
125de5: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
125de8: e8 1b 0d 02 00 call 146b08 <fflush> <== NOT EXECUTED
va_end (args);
return ret;
}
125ded: 89 d8 mov %ebx,%eax <== NOT EXECUTED
125def: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
125df2: c9 leave <== NOT EXECUTED
125df3: c3 ret <== NOT EXECUTED
00125df4 <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)
{
125df4: 55 push %ebp <== NOT EXECUTED
125df5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125df7: 57 push %edi <== NOT EXECUTED
125df8: 56 push %esi <== NOT EXECUTED
125df9: 53 push %ebx <== NOT EXECUTED
125dfa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
uint32_t device;
if (block >= nvd->block_count)
125dfd: 39 50 10 cmp %edx,0x10(%eax) <== NOT EXECUTED
125e00: 76 44 jbe 125e46 <rtems_nvdisk_get_device+0x52><== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
return NULL;
}
for (device = 0; device < nvd->device_count; device++)
125e02: 8b 78 18 mov 0x18(%eax),%edi <== NOT EXECUTED
125e05: 85 ff test %edi,%edi <== NOT EXECUTED
125e07: 74 22 je 125e2b <rtems_nvdisk_get_device+0x37><== NOT EXECUTED
uint32_t device;
if (block >= nvd->block_count)
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
return NULL;
125e09: 8b 48 14 mov 0x14(%eax),%ecx <== NOT EXECUTED
125e0c: 31 db xor %ebx,%ebx <== NOT EXECUTED
125e0e: 66 90 xchg %ax,%ax <== NOT EXECUTED
125e10: 89 c8 mov %ecx,%eax <== NOT EXECUTED
}
for (device = 0; device < nvd->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
if ((block >= dc->block_base) &&
125e12: 8b 71 0c mov 0xc(%ecx),%esi <== NOT EXECUTED
125e15: 39 f2 cmp %esi,%edx <== NOT EXECUTED
125e17: 72 0a jb 125e23 <rtems_nvdisk_get_device+0x2f><== NOT EXECUTED
125e19: 03 71 04 add 0x4(%ecx),%esi <== NOT EXECUTED
125e1c: 2b 71 08 sub 0x8(%ecx),%esi <== NOT EXECUTED
125e1f: 39 f2 cmp %esi,%edx <== NOT EXECUTED
125e21: 72 1b jb 125e3e <rtems_nvdisk_get_device+0x4a><== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
return NULL;
}
for (device = 0; device < nvd->device_count; device++)
125e23: 43 inc %ebx <== NOT EXECUTED
125e24: 83 c1 14 add $0x14,%ecx <== NOT EXECUTED
125e27: 39 fb cmp %edi,%ebx <== NOT EXECUTED
125e29: 72 e5 jb 125e10 <rtems_nvdisk_get_device+0x1c><== 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);
125e2b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
125e2e: 52 push %edx <== NOT EXECUTED
125e2f: 68 2c 34 16 00 push $0x16342c <== NOT EXECUTED
125e34: e8 5f ff ff ff call 125d98 <rtems_nvdisk_error> <== NOT EXECUTED
125e39: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL;
125e3b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
125e3e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125e41: 5b pop %ebx <== NOT EXECUTED
125e42: 5e pop %esi <== NOT EXECUTED
125e43: 5f pop %edi <== NOT EXECUTED
125e44: c9 leave <== NOT EXECUTED
125e45: c3 ret <== NOT EXECUTED
{
uint32_t device;
if (block >= nvd->block_count)
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
125e46: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
125e49: 52 push %edx <== NOT EXECUTED
125e4a: 68 d6 33 16 00 push $0x1633d6 <== NOT EXECUTED
125e4f: e8 44 ff ff ff call 125d98 <rtems_nvdisk_error> <== NOT EXECUTED
125e54: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL;
125e56: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125e59: eb e3 jmp 125e3e <rtems_nvdisk_get_device+0x4a><== NOT EXECUTED
001263f0 <rtems_nvdisk_initialize>:
*/
rtems_device_driver
rtems_nvdisk_initialize (rtems_device_major_number major,
rtems_device_minor_number minor,
void* arg __attribute__((unused)))
{
1263f0: 55 push %ebp <== NOT EXECUTED
1263f1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1263f3: 57 push %edi <== NOT EXECUTED
1263f4: 56 push %esi <== NOT EXECUTED
1263f5: 53 push %ebx <== NOT EXECUTED
1263f6: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
const rtems_nvdisk_config* c = rtems_nvdisk_configuration;
rtems_nvdisk* nvd;
rtems_status_code sc;
sc = rtems_disk_io_initialize ();
1263f9: e8 be 6e fe ff call 10d2bc <rtems_disk_io_initialize><== NOT EXECUTED
1263fe: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
126400: 85 c0 test %eax,%eax <== NOT EXECUTED
126402: 74 0c je 126410 <rtems_nvdisk_initialize+0x20><== NOT EXECUTED
}
rtems_nvdisk_count = rtems_nvdisk_configuration_size;
return RTEMS_SUCCESSFUL;
}
126404: 89 d8 mov %ebx,%eax <== NOT EXECUTED
126406: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
126409: 5b pop %ebx <== NOT EXECUTED
12640a: 5e pop %esi <== NOT EXECUTED
12640b: 5f pop %edi <== NOT EXECUTED
12640c: c9 leave <== NOT EXECUTED
12640d: c3 ret <== NOT EXECUTED
12640e: 66 90 xchg %ax,%ax <== NOT EXECUTED
sc = rtems_disk_io_initialize ();
if (sc != RTEMS_SUCCESSFUL)
return sc;
sc = rtems_nvdisk_crc16_gen_factors (0x8408);
126410: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126413: 68 08 84 00 00 push $0x8408 <== NOT EXECUTED
126418: e8 6b ff ff ff call 126388 <rtems_nvdisk_crc16_gen_factors><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12641d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126420: 85 c0 test %eax,%eax <== NOT EXECUTED
126422: 74 0c je 126430 <rtems_nvdisk_initialize+0x40><== NOT EXECUTED
126424: 89 c3 mov %eax,%ebx <== NOT EXECUTED
}
rtems_nvdisk_count = rtems_nvdisk_configuration_size;
return RTEMS_SUCCESSFUL;
}
126426: 89 d8 mov %ebx,%eax <== NOT EXECUTED
126428: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12642b: 5b pop %ebx <== NOT EXECUTED
12642c: 5e pop %esi <== NOT EXECUTED
12642d: 5f pop %edi <== NOT EXECUTED
12642e: c9 leave <== NOT EXECUTED
12642f: c3 ret <== NOT EXECUTED
sc = rtems_nvdisk_crc16_gen_factors (0x8408);
if (sc != RTEMS_SUCCESSFUL)
return sc;
rtems_nvdisks = calloc (rtems_nvdisk_configuration_size,
126430: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126433: 6a 28 push $0x28 <== NOT EXECUTED
126435: ff 35 fc b2 16 00 pushl 0x16b2fc <== NOT EXECUTED
12643b: e8 cc 7e fe ff call 10e30c <calloc> <== NOT EXECUTED
126440: a3 f4 27 17 00 mov %eax,0x1727f4 <== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
126445: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126448: 85 c0 test %eax,%eax <== NOT EXECUTED
12644a: 0f 84 9f 01 00 00 je 1265ef <rtems_nvdisk_initialize+0x1ff><== NOT EXECUTED
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
126450: 8b 15 fc b2 16 00 mov 0x16b2fc,%edx <== NOT EXECUTED
126456: 85 d2 test %edx,%edx <== NOT EXECUTED
126458: 0f 84 9b 01 00 00 je 1265f9 <rtems_nvdisk_initialize+0x209><== NOT EXECUTED
12645e: c7 45 ac 00 00 00 00 movl $0x0,-0x54(%ebp) <== NOT EXECUTED
126465: c7 45 c0 48 da 15 00 movl $0x15da48,-0x40(%ebp) <== NOT EXECUTED
12646c: c7 45 b0 00 00 00 00 movl $0x0,-0x50(%ebp) <== NOT EXECUTED
126473: 8d 55 d6 lea -0x2a(%ebp),%edx <== NOT EXECUTED
126476: 89 55 94 mov %edx,-0x6c(%ebp) <== NOT EXECUTED
126479: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
char name[] = RTEMS_NVDISK_DEVICE_BASE_NAME "a";
12647c: 8b 7d 94 mov -0x6c(%ebp),%edi <== NOT EXECUTED
12647f: be 1f 34 16 00 mov $0x16341f,%esi <== NOT EXECUTED
126484: b9 0a 00 00 00 mov $0xa,%ecx <== NOT EXECUTED
126489: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
12648b: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
12648e: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
temp.__overlay.minor = _minor;
126491: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED
126494: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
return temp.device;
126497: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
12649a: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
12649d: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
1264a0: 89 4d a4 mov %ecx,-0x5c(%ebp) <== NOT EXECUTED
dev_t dev = rtems_filesystem_make_dev_t (major, minor);
uint32_t device;
uint32_t blocks = 0;
nvd = &rtems_nvdisks[minor];
1264a3: 8b 4d ac mov -0x54(%ebp),%ecx <== NOT EXECUTED
1264a6: 8d 34 08 lea (%eax,%ecx,1),%esi <== NOT EXECUTED
name [sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME)] += minor;
1264a9: 8a 45 b0 mov -0x50(%ebp),%al <== NOT EXECUTED
1264ac: 00 45 df add %al,-0x21(%ebp) <== NOT EXECUTED
nvd->major = major;
1264af: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1264b2: 89 16 mov %edx,(%esi) <== NOT EXECUTED
nvd->minor = minor;
1264b4: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
1264b7: 89 4e 04 mov %ecx,0x4(%esi) <== NOT EXECUTED
nvd->flags = c->flags;
1264ba: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
1264bd: 8b 42 0c mov 0xc(%edx),%eax <== NOT EXECUTED
1264c0: 89 46 08 mov %eax,0x8(%esi) <== NOT EXECUTED
nvd->block_size = c->block_size;
1264c3: 8b 02 mov (%edx),%eax <== NOT EXECUTED
1264c5: 89 46 0c mov %eax,0xc(%esi) <== NOT EXECUTED
nvd->info_level = c->info_level;
1264c8: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
1264cb: 89 46 24 mov %eax,0x24(%esi) <== NOT EXECUTED
nvd->devices = calloc (c->device_count, sizeof (rtems_nvdisk_device_ctl));
1264ce: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1264d1: 6a 14 push $0x14 <== NOT EXECUTED
1264d3: ff 72 04 pushl 0x4(%edx) <== NOT EXECUTED
1264d6: e8 31 7e fe ff call 10e30c <calloc> <== NOT EXECUTED
1264db: 89 46 14 mov %eax,0x14(%esi) <== NOT EXECUTED
if (!nvd->devices)
1264de: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1264e1: 85 c0 test %eax,%eax <== NOT EXECUTED
1264e3: 0f 84 06 01 00 00 je 1265ef <rtems_nvdisk_initialize+0x1ff><== NOT EXECUTED
return RTEMS_NO_MEMORY;
for (device = 0; device < c->device_count; device++)
1264e9: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
1264ec: 8b 59 04 mov 0x4(%ecx),%ebx <== NOT EXECUTED
1264ef: 85 db test %ebx,%ebx <== NOT EXECUTED
1264f1: 0f 84 ef 00 00 00 je 1265e6 <rtems_nvdisk_initialize+0x1f6><== NOT EXECUTED
1264f7: c7 45 b8 00 00 00 00 movl $0x0,-0x48(%ebp) <== NOT EXECUTED
1264fe: c7 45 bc 00 00 00 00 movl $0x0,-0x44(%ebp) <== NOT EXECUTED
126505: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED
12650c: 89 c1 mov %eax,%ecx <== NOT EXECUTED
12650e: 89 f7 mov %esi,%edi <== NOT EXECUTED
126510: eb 05 jmp 126517 <rtems_nvdisk_initialize+0x127><== NOT EXECUTED
126512: 66 90 xchg %ax,%ax <== NOT EXECUTED
126514: 8b 4f 14 mov 0x14(%edi),%ecx <== NOT EXECUTED
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
126517: 03 4d b8 add -0x48(%ebp),%ecx <== NOT EXECUTED
dc->device = device;
12651a: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
12651d: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
12651f: 89 c3 mov %eax,%ebx <== NOT EXECUTED
126521: c1 e3 04 shl $0x4,%ebx <== 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;
126524: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
126527: 8b 72 08 mov 0x8(%edx),%esi <== NOT EXECUTED
12652a: 8b 44 1e 08 mov 0x8(%esi,%ebx,1),%eax <== NOT EXECUTED
12652e: 31 d2 xor %edx,%edx <== NOT EXECUTED
126530: f7 77 0c divl 0xc(%edi) <== NOT EXECUTED
126533: 89 45 b4 mov %eax,-0x4c(%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]);
126536: 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;
126539: 8b 44 1e 08 mov 0x8(%esi,%ebx,1),%eax <== NOT EXECUTED
12653d: 31 d2 xor %edx,%edx <== NOT EXECUTED
12653f: f7 77 0c divl 0xc(%edi) <== NOT EXECUTED
126542: 8d 44 00 ff lea -0x1(%eax,%eax,1),%eax <== NOT EXECUTED
126546: 31 d2 xor %edx,%edx <== NOT EXECUTED
126548: f7 77 0c divl 0xc(%edi) <== NOT EXECUTED
12654b: 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]);
12654c: 89 41 08 mov %eax,0x8(%ecx) <== NOT EXECUTED
dc->block_base = blocks;
12654f: 8b 55 bc mov -0x44(%ebp),%edx <== NOT EXECUTED
126552: 89 51 0c mov %edx,0xc(%ecx) <== NOT EXECUTED
blocks += dc->pages - dc->pages_desc;
126555: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
126558: 29 c2 sub %eax,%edx <== NOT EXECUTED
12655a: 01 55 bc add %edx,-0x44(%ebp) <== NOT EXECUTED
dc->descriptor = &c->devices[device];
12655d: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
126560: 01 f3 add %esi,%ebx <== NOT EXECUTED
126562: 89 59 10 mov %ebx,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++)
126565: ff 45 c4 incl -0x3c(%ebp) <== NOT EXECUTED
126568: 83 45 b8 14 addl $0x14,-0x48(%ebp) <== NOT EXECUTED
12656c: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
12656f: 39 50 04 cmp %edx,0x4(%eax) <== NOT EXECUTED
126572: 77 a0 ja 126514 <rtems_nvdisk_initialize+0x124><== NOT EXECUTED
126574: 89 fe mov %edi,%esi <== NOT EXECUTED
blocks += dc->pages - dc->pages_desc;
dc->descriptor = &c->devices[device];
}
nvd->block_count = blocks;
126576: 8b 4d bc mov -0x44(%ebp),%ecx <== NOT EXECUTED
126579: 89 4e 10 mov %ecx,0x10(%esi) <== NOT EXECUTED
nvd->device_count = c->device_count;
12657c: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
12657f: 8b 42 04 mov 0x4(%edx),%eax <== NOT EXECUTED
126582: 89 46 18 mov %eax,0x18(%esi) <== NOT EXECUTED
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
126585: 51 push %ecx <== NOT EXECUTED
126586: 8d 4d d6 lea -0x2a(%ebp),%ecx <== NOT EXECUTED
126589: 51 push %ecx <== NOT EXECUTED
12658a: 6a 00 push $0x0 <== NOT EXECUTED
12658c: 68 5c 5e 12 00 push $0x125e5c <== NOT EXECUTED
126591: ff 75 bc pushl -0x44(%ebp) <== NOT EXECUTED
126594: ff 32 pushl (%edx) <== NOT EXECUTED
126596: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED
126599: ff 75 a0 pushl -0x60(%ebp) <== NOT EXECUTED
12659c: e8 03 74 fe ff call 10d9a4 <rtems_disk_create_phys><== NOT EXECUTED
rtems_nvdisk_ioctl, NULL, name);
if (sc != RTEMS_SUCCESSFUL)
1265a1: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1265a4: 85 c0 test %eax,%eax <== NOT EXECUTED
1265a6: 75 75 jne 12661d <rtems_nvdisk_initialize+0x22d><== NOT EXECUTED
{
rtems_nvdisk_error ("disk create phy failed");
return sc;
}
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
1265a8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1265ab: 83 c6 20 add $0x20,%esi <== NOT EXECUTED
1265ae: 56 push %esi <== NOT EXECUTED
1265af: 6a 00 push $0x0 <== NOT EXECUTED
1265b1: 6a 54 push $0x54 <== NOT EXECUTED
1265b3: 6a 01 push $0x1 <== NOT EXECUTED
1265b5: 68 4b 44 56 4e push $0x4e56444b <== NOT EXECUTED
1265ba: e8 65 c6 fe ff call 112c24 <rtems_semaphore_create><== NOT EXECUTED
RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
RTEMS_INHERIT_PRIORITY, 0, &nvd->lock);
if (sc != RTEMS_SUCCESSFUL)
1265bf: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1265c2: 85 c0 test %eax,%eax <== NOT EXECUTED
1265c4: 75 40 jne 126606 <rtems_nvdisk_initialize+0x216><== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
1265c6: ff 45 b0 incl -0x50(%ebp) <== NOT EXECUTED
1265c9: 8b 15 fc b2 16 00 mov 0x16b2fc,%edx <== NOT EXECUTED
1265cf: 83 45 ac 28 addl $0x28,-0x54(%ebp) <== NOT EXECUTED
1265d3: 3b 55 b0 cmp -0x50(%ebp),%edx <== NOT EXECUTED
1265d6: 76 21 jbe 1265f9 <rtems_nvdisk_initialize+0x209><== NOT EXECUTED
1265d8: 83 45 c0 14 addl $0x14,-0x40(%ebp) <== NOT EXECUTED
1265dc: a1 f4 27 17 00 mov 0x1727f4,%eax <== NOT EXECUTED
1265e1: e9 96 fe ff ff jmp 12647c <rtems_nvdisk_initialize+0x8c><== 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++)
1265e6: c7 45 bc 00 00 00 00 movl $0x0,-0x44(%ebp) <== NOT EXECUTED
1265ed: eb 87 jmp 126576 <rtems_nvdisk_initialize+0x186><== NOT EXECUTED
}
}
rtems_nvdisk_count = rtems_nvdisk_configuration_size;
return RTEMS_SUCCESSFUL;
1265ef: bb 1a 00 00 00 mov $0x1a,%ebx <== NOT EXECUTED
1265f4: e9 0b fe ff ff jmp 126404 <rtems_nvdisk_initialize+0x14><== NOT EXECUTED
rtems_nvdisk_error ("disk lock create failed");
return sc;
}
}
rtems_nvdisk_count = rtems_nvdisk_configuration_size;
1265f9: 89 15 f8 27 17 00 mov %edx,0x1727f8 <== NOT EXECUTED
1265ff: 31 db xor %ebx,%ebx <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
126601: e9 fe fd ff ff jmp 126404 <rtems_nvdisk_initialize+0x14><== NOT EXECUTED
126606: 89 c3 mov %eax,%ebx <== NOT EXECUTED
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
RTEMS_INHERIT_PRIORITY, 0, &nvd->lock);
if (sc != RTEMS_SUCCESSFUL)
{
rtems_nvdisk_error ("disk lock create failed");
126608: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12660b: 68 07 34 16 00 push $0x163407 <== NOT EXECUTED
126610: e8 83 f7 ff ff call 125d98 <rtems_nvdisk_error> <== NOT EXECUTED
return sc;
126615: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126618: e9 e7 fd ff ff jmp 126404 <rtems_nvdisk_initialize+0x14><== NOT EXECUTED
12661d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
rtems_nvdisk_ioctl, NULL, name);
if (sc != RTEMS_SUCCESSFUL)
{
rtems_nvdisk_error ("disk create phy failed");
12661f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126622: 68 f0 33 16 00 push $0x1633f0 <== NOT EXECUTED
126627: e8 6c f7 ff ff call 125d98 <rtems_nvdisk_error> <== NOT EXECUTED
return sc;
12662c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12662f: e9 d0 fd ff ff jmp 126404 <rtems_nvdisk_initialize+0x14><== NOT EXECUTED
00125e5c <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)
{
125e5c: 55 push %ebp <== NOT EXECUTED
125e5d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
125e5f: 57 push %edi <== NOT EXECUTED
125e60: 56 push %esi <== NOT EXECUTED
125e61: 53 push %ebx <== NOT EXECUTED
125e62: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
125e65: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
125e68: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
125e6b: 8b 46 04 mov 0x4(%esi),%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)
125e6e: 39 05 f8 27 17 00 cmp %eax,0x1727f8 <== NOT EXECUTED
125e74: 0f 86 58 03 00 00 jbe 1261d2 <rtems_nvdisk_ioctl+0x376><== NOT EXECUTED
{
errno = ENODEV;
return -1;
}
if (rtems_nvdisks[minor].device_count == 0)
125e7a: 8d 04 80 lea (%eax,%eax,4),%eax <== NOT EXECUTED
125e7d: c1 e0 03 shl $0x3,%eax <== NOT EXECUTED
125e80: 89 45 b8 mov %eax,-0x48(%ebp) <== NOT EXECUTED
125e83: a1 f4 27 17 00 mov 0x1727f4,%eax <== NOT EXECUTED
125e88: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
125e8b: 8b 44 10 18 mov 0x18(%eax,%edx,1),%eax <== NOT EXECUTED
125e8f: 85 c0 test %eax,%eax <== NOT EXECUTED
125e91: 0f 84 3b 03 00 00 je 1261d2 <rtems_nvdisk_ioctl+0x376><== NOT EXECUTED
{
errno = ENODEV;
return -1;
}
errno = 0;
125e97: e8 f0 08 02 00 call 14678c <__errno> <== NOT EXECUTED
125e9c: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
sc = rtems_semaphore_obtain (rtems_nvdisks[minor].lock, RTEMS_WAIT, 0);
125ea2: 57 push %edi <== NOT EXECUTED
125ea3: 6a 00 push $0x0 <== NOT EXECUTED
125ea5: 6a 00 push $0x0 <== NOT EXECUTED
125ea7: a1 f4 27 17 00 mov 0x1727f4,%eax <== NOT EXECUTED
125eac: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
125eaf: ff 74 08 20 pushl 0x20(%eax,%ecx,1) <== NOT EXECUTED
125eb3: e8 40 d0 fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
125eb8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125ebb: 85 c0 test %eax,%eax <== NOT EXECUTED
125ebd: 74 21 je 125ee0 <rtems_nvdisk_ioctl+0x84><== NOT EXECUTED
break;
}
sc = rtems_semaphore_release (rtems_nvdisks[minor].lock);
if (sc != RTEMS_SUCCESSFUL)
errno = EIO;
125ebf: e8 c8 08 02 00 call 14678c <__errno> <== NOT EXECUTED
125ec4: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
}
return errno == 0 ? 0 : -1;
125eca: e8 bd 08 02 00 call 14678c <__errno> <== NOT EXECUTED
125ecf: 83 38 01 cmpl $0x1,(%eax) <== NOT EXECUTED
125ed2: 19 c0 sbb %eax,%eax <== NOT EXECUTED
125ed4: f7 d0 not %eax <== NOT EXECUTED
}
125ed6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
125ed9: 5b pop %ebx <== NOT EXECUTED
125eda: 5e pop %esi <== NOT EXECUTED
125edb: 5f pop %edi <== NOT EXECUTED
125edc: c9 leave <== NOT EXECUTED
125edd: c3 ret <== NOT EXECUTED
125ede: 66 90 xchg %ax,%ax <== NOT EXECUTED
sc = rtems_semaphore_obtain (rtems_nvdisks[minor].lock, RTEMS_WAIT, 0);
if (sc != RTEMS_SUCCESSFUL)
errno = EIO;
else
{
errno = 0;
125ee0: e8 a7 08 02 00 call 14678c <__errno> <== NOT EXECUTED
125ee5: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
switch (req)
125eeb: 81 fb 82 42 00 20 cmp $0x20004282,%ebx <== NOT EXECUTED
125ef1: 0f 84 81 02 00 00 je 126178 <rtems_nvdisk_ioctl+0x31c><== NOT EXECUTED
125ef7: 81 fb 01 42 18 c0 cmp $0xc0184201,%ebx <== NOT EXECUTED
125efd: 0f 84 d4 00 00 00 je 125fd7 <rtems_nvdisk_ioctl+0x17b><== NOT EXECUTED
125f03: 81 fb 80 42 00 20 cmp $0x20004280,%ebx <== NOT EXECUTED
125f09: 74 2b je 125f36 <rtems_nvdisk_ioctl+0xda><== NOT EXECUTED
case RTEMS_NVDISK_IOCTL_INFO_LEVEL:
rtems_nvdisks[minor].info_level = (uintptr_t) argp;
break;
default:
rtems_blkdev_ioctl (dd, req, argp);
125f0b: 57 push %edi <== NOT EXECUTED
125f0c: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
125f0f: 53 push %ebx <== NOT EXECUTED
125f10: 56 push %esi <== NOT EXECUTED
125f11: e8 a6 6a fe ff call 10c9bc <rtems_blkdev_ioctl> <== NOT EXECUTED
125f16: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
125f19: 03 05 f4 27 17 00 add 0x1727f4,%eax <== NOT EXECUTED
125f1f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
break;
}
sc = rtems_semaphore_release (rtems_nvdisks[minor].lock);
125f22: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
125f25: ff 70 20 pushl 0x20(%eax) <== NOT EXECUTED
125f28: e8 c7 d0 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
125f2d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
125f30: 85 c0 test %eax,%eax <== NOT EXECUTED
125f32: 74 96 je 125eca <rtems_nvdisk_ioctl+0x6e><== NOT EXECUTED
125f34: eb 89 jmp 125ebf <rtems_nvdisk_ioctl+0x63><== NOT EXECUTED
break;
}
break;
case RTEMS_NVDISK_IOCTL_ERASE_DISK:
errno = rtems_nvdisk_erase_disk (&rtems_nvdisks[minor]);
125f36: e8 51 08 02 00 call 14678c <__errno> <== NOT EXECUTED
125f3b: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
125f3e: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
125f41: 03 05 f4 27 17 00 add 0x1727f4,%eax <== NOT EXECUTED
125f47: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "erase-disk");
#endif
for (device = 0; device < nvd->device_count; device++)
125f4a: 8b 40 18 mov 0x18(%eax),%eax <== NOT EXECUTED
125f4d: 85 c0 test %eax,%eax <== NOT EXECUTED
125f4f: 0f 84 4d 02 00 00 je 1261a2 <rtems_nvdisk_ioctl+0x346><== NOT EXECUTED
125f55: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
125f5c: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
125f63: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
125f66: 8b 51 14 mov 0x14(%ecx),%edx <== NOT EXECUTED
125f69: 8b 5d d0 mov -0x30(%ebp),%ebx <== NOT EXECUTED
125f6c: 8d 34 1a lea (%edx,%ebx,1),%esi <== NOT EXECUTED
uint32_t page;
for (page = 0; page < (dc->pages - dc->pages_desc); page++)
125f6f: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
125f72: 3b 46 08 cmp 0x8(%esi),%eax <== NOT EXECUTED
125f75: 0f 84 11 02 00 00 je 12618c <rtems_nvdisk_ioctl+0x330><== NOT EXECUTED
125f7b: 31 db xor %ebx,%ebx <== NOT EXECUTED
125f7d: eb 16 jmp 125f95 <rtems_nvdisk_ioctl+0x139><== NOT EXECUTED
125f7f: 90 nop <== NOT EXECUTED
125f80: 43 inc %ebx <== NOT EXECUTED
125f81: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
125f84: 2b 46 08 sub 0x8(%esi),%eax <== NOT EXECUTED
125f87: 39 c3 cmp %eax,%ebx <== NOT EXECUTED
125f89: 0f 83 fd 01 00 00 jae 12618c <rtems_nvdisk_ioctl+0x330><== NOT EXECUTED
125f8f: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
125f92: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED
{
int ret = rtems_nvdisk_write_checksum (nvd, dc->device, page, 0xffff);
125f95: 8b 06 mov (%esi),%eax <== NOT EXECUTED
125f97: 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;
125f9d: 8d 0c 80 lea (%eax,%eax,4),%ecx <== NOT EXECUTED
125fa0: 8b 54 8a 10 mov 0x10(%edx,%ecx,4),%edx <== 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);
125fa4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
125fa7: 8b 4a 0c mov 0xc(%edx),%ecx <== NOT EXECUTED
125faa: 6a 02 push $0x2 <== NOT EXECUTED
125fac: 8d 7d e6 lea -0x1a(%ebp),%edi <== NOT EXECUTED
125faf: 57 push %edi <== NOT EXECUTED
125fb0: 8d 3c 1b lea (%ebx,%ebx,1),%edi <== NOT EXECUTED
125fb3: 57 push %edi <== NOT EXECUTED
125fb4: ff 72 04 pushl 0x4(%edx) <== NOT EXECUTED
125fb7: ff 32 pushl (%edx) <== NOT EXECUTED
125fb9: 50 push %eax <== NOT EXECUTED
125fba: 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)
125fbd: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
125fc0: 85 c0 test %eax,%eax <== NOT EXECUTED
125fc2: 74 bc je 125f80 <rtems_nvdisk_ioctl+0x124><== NOT EXECUTED
break;
}
break;
case RTEMS_NVDISK_IOCTL_ERASE_DISK:
errno = rtems_nvdisk_erase_disk (&rtems_nvdisks[minor]);
125fc4: 8b 5d c8 mov -0x38(%ebp),%ebx <== NOT EXECUTED
125fc7: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
125fc9: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
125fcc: 03 05 f4 27 17 00 add 0x1727f4,%eax <== NOT EXECUTED
break;
125fd2: e9 4b ff ff ff jmp 125f22 <rtems_nvdisk_ioctl+0xc6><== NOT EXECUTED
{
errno = 0;
switch (req)
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
125fd7: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
125fda: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
125fdc: 85 c0 test %eax,%eax <== NOT EXECUTED
125fde: 0f 85 d2 01 00 00 jne 1261b6 <rtems_nvdisk_ioctl+0x35a><== NOT EXECUTED
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
125fe4: e8 a3 07 02 00 call 14678c <__errno> <== NOT EXECUTED
125fe9: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
125fec: 8b 5d b8 mov -0x48(%ebp),%ebx <== NOT EXECUTED
125fef: 03 1d f4 27 17 00 add 0x1727f4,%ebx <== NOT EXECUTED
125ff5: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
125ff8: 8b 4e 10 mov 0x10(%esi),%ecx <== NOT EXECUTED
125ffb: 83 c6 28 add $0x28,%esi <== NOT EXECUTED
125ffe: 89 75 c4 mov %esi,-0x3c(%ebp) <== NOT EXECUTED
126001: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp) <== 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++)
126008: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
12600b: 48 dec %eax <== NOT EXECUTED
12600c: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
12600e: 0f 83 62 03 00 00 jae 126376 <rtems_nvdisk_ioctl+0x51a><== NOT EXECUTED
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
126014: 8b 7d c4 mov -0x3c(%ebp),%edi <== NOT EXECUTED
126017: 8b 47 f4 mov -0xc(%edi),%eax <== NOT EXECUTED
12601a: 31 d2 xor %edx,%edx <== NOT EXECUTED
12601c: f7 73 0c divl 0xc(%ebx) <== NOT EXECUTED
12601f: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
data = sg->buffer;
126022: 8b 77 f8 mov -0x8(%edi),%esi <== NOT EXECUTED
for (b = 0; b < nvb; b++, data += nvd->block_size)
126025: 85 c0 test %eax,%eax <== NOT EXECUTED
126027: 0f 84 c0 01 00 00 je 1261ed <rtems_nvdisk_ioctl+0x391><== NOT EXECUTED
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
12602d: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
for (b = 0; b < nvb; b++, data += nvd->block_size)
{
ret = rtems_nvdisk_read_block (nvd, sg->block + b, data);
126034: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
126037: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
12603a: 03 50 f0 add -0x10(%eax),%edx <== NOT EXECUTED
12603d: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
uint32_t page;
uint16_t crc;
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
126040: 89 d8 mov %ebx,%eax <== NOT EXECUTED
126042: e8 ad fd ff ff call 125df4 <rtems_nvdisk_get_device><== NOT EXECUTED
126047: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (!dc)
126049: 85 c0 test %eax,%eax <== NOT EXECUTED
12604b: 0f 84 03 01 00 00 je 126154 <rtems_nvdisk_ioctl+0x2f8><== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_get_page (rtems_nvdisk_device_ctl* dc,
uint32_t block)
{
return block - dc->block_base;
126051: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
126054: 2b 48 0c sub 0xc(%eax),%ecx <== NOT EXECUTED
126057: 89 4d d0 mov %ecx,-0x30(%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);
12605a: 8b 00 mov (%eax),%eax <== 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;
12605c: 8b 4b 14 mov 0x14(%ebx),%ecx <== NOT EXECUTED
12605f: 8d 14 80 lea (%eax,%eax,4),%edx <== NOT EXECUTED
126062: 8b 54 91 10 mov 0x10(%ecx,%edx,4),%edx <== 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);
126066: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126069: 8b 4a 0c mov 0xc(%edx),%ecx <== NOT EXECUTED
12606c: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED
12606f: 6a 02 push $0x2 <== NOT EXECUTED
126071: 8d 4d e6 lea -0x1a(%ebp),%ecx <== NOT EXECUTED
126074: 51 push %ecx <== NOT EXECUTED
126075: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
126078: d1 e1 shl %ecx <== NOT EXECUTED
12607a: 51 push %ecx <== NOT EXECUTED
12607b: ff 72 04 pushl 0x4(%edx) <== NOT EXECUTED
12607e: ff 32 pushl (%edx) <== NOT EXECUTED
126080: 50 push %eax <== NOT EXECUTED
126081: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
126084: ff 12 call *(%edx) <== NOT EXECUTED
block, dc->device, page, crc);
#endif
ret = rtems_nvdisk_read_checksum (nvd, dc->device, page, &crc);
if (ret)
126086: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
126089: 85 c0 test %eax,%eax <== NOT EXECUTED
12608b: 0f 85 93 00 00 00 jne 126124 <rtems_nvdisk_ioctl+0x2c8><== NOT EXECUTED
return ret;
if (crc == 0xffff)
126091: 66 83 7d e6 ff cmpw $0xffffffff,-0x1a(%ebp) <== NOT EXECUTED
126096: 0f 84 c0 00 00 00 je 12615c <rtems_nvdisk_ioctl+0x300><== NOT EXECUTED
#endif
memset (buffer, 0, nvd->block_size);
return 0;
}
ret = rtems_nvdisk_read_page (nvd, dc->device, page + dc->pages_desc, buffer);
12609c: 8b 07 mov (%edi),%eax <== NOT EXECUTED
rtems_nvdisk_read_page (const rtems_nvdisk* nvd,
uint32_t device,
uint32_t page,
void* buffer)
{
return rtems_nvdisk_device_read (nvd, device,
12609e: 8b 4b 0c mov 0xc(%ebx),%ecx <== NOT EXECUTED
1260a1: 89 4d 94 mov %ecx,-0x6c(%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;
1260a4: 8d 14 80 lea (%eax,%eax,4),%edx <== NOT EXECUTED
1260a7: 8b 4b 14 mov 0x14(%ebx),%ecx <== NOT EXECUTED
1260aa: 8b 4c 91 10 mov 0x10(%ecx,%edx,4),%ecx <== 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);
1260ae: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1260b1: 8b 51 0c mov 0xc(%ecx),%edx <== NOT EXECUTED
1260b4: ff 75 94 pushl -0x6c(%ebp) <== NOT EXECUTED
1260b7: 56 push %esi <== NOT EXECUTED
1260b8: 8b 7f 08 mov 0x8(%edi),%edi <== NOT EXECUTED
1260bb: 03 7d d0 add -0x30(%ebp),%edi <== NOT EXECUTED
1260be: 0f af 7d 94 imul -0x6c(%ebp),%edi <== NOT EXECUTED
1260c2: 57 push %edi <== NOT EXECUTED
1260c3: ff 71 04 pushl 0x4(%ecx) <== NOT EXECUTED
1260c6: ff 31 pushl (%ecx) <== NOT EXECUTED
1260c8: 50 push %eax <== NOT EXECUTED
1260c9: ff 12 call *(%edx) <== NOT EXECUTED
return 0;
}
ret = rtems_nvdisk_read_page (nvd, dc->device, page + dc->pages_desc, buffer);
if (ret)
1260cb: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1260ce: 85 c0 test %eax,%eax <== NOT EXECUTED
1260d0: 75 52 jne 126124 <rtems_nvdisk_ioctl+0x2c8><== NOT EXECUTED
return ret;
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
1260d2: 8b 4b 0c mov 0xc(%ebx),%ecx <== 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++)
1260d5: 85 c9 test %ecx,%ecx <== NOT EXECUTED
1260d7: 0f 84 cf 00 00 00 je 1261ac <rtems_nvdisk_ioctl+0x350><== NOT EXECUTED
1260dd: 8b 3d fc 27 17 00 mov 0x1727fc,%edi <== NOT EXECUTED
1260e3: 31 c0 xor %eax,%eax <== NOT EXECUTED
1260e5: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
1260ea: 66 90 xchg %ax,%ax <== NOT EXECUTED
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
1260ec: 32 14 06 xor (%esi,%eax,1),%dl <== NOT EXECUTED
1260ef: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
1260f2: 66 8b 14 57 mov (%edi,%edx,2),%dx <== 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++)
1260f6: 40 inc %eax <== NOT EXECUTED
1260f7: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
1260f9: 77 f1 ja 1260ec <rtems_nvdisk_ioctl+0x290><== NOT EXECUTED
if (ret)
return ret;
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
if (cs != crc)
1260fb: 66 8b 45 e6 mov -0x1a(%ebp),%ax <== NOT EXECUTED
1260ff: 66 39 c2 cmp %ax,%dx <== NOT EXECUTED
126102: 74 62 je 126166 <rtems_nvdisk_ioctl+0x30a><== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
126104: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
126107: 50 push %eax <== NOT EXECUTED
126108: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
12610b: 52 push %edx <== NOT EXECUTED
12610c: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
12610f: 68 54 34 16 00 push $0x163454 <== NOT EXECUTED
126114: e8 7f fc ff ff call 125d98 <rtems_nvdisk_error> <== NOT EXECUTED
126119: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
12611e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126121: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
126124: ba 1b 00 00 00 mov $0x1b,%edx <== NOT EXECUTED
if (ret)
break;
}
}
req->status = ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL;
126129: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
12612c: 89 51 0c mov %edx,0xc(%ecx) <== NOT EXECUTED
req->req_done (req->done_arg, req->status);
12612f: 53 push %ebx <== NOT EXECUTED
126130: 53 push %ebx <== NOT EXECUTED
126131: 52 push %edx <== NOT EXECUTED
126132: ff 71 08 pushl 0x8(%ecx) <== NOT EXECUTED
126135: 89 45 ac mov %eax,-0x54(%ebp) <== NOT EXECUTED
126138: ff 51 04 call *0x4(%ecx) <== NOT EXECUTED
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
12613b: 8b 45 ac mov -0x54(%ebp),%eax <== NOT EXECUTED
12613e: 8b 5d b4 mov -0x4c(%ebp),%ebx <== NOT EXECUTED
126141: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
126143: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
126146: 03 05 f4 27 17 00 add 0x1727f4,%eax <== NOT EXECUTED
break;
12614c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12614f: e9 ce fd ff ff jmp 125f22 <rtems_nvdisk_ioctl+0xc6><== NOT EXECUTED
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
if (!dc)
126154: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
126159: eb c9 jmp 126124 <rtems_nvdisk_ioctl+0x2c8><== NOT EXECUTED
12615b: 90 nop <== NOT EXECUTED
if (crc == 0xffff)
{
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_warning (nvd, "read-block: crc not set: %d", block);
#endif
memset (buffer, 0, nvd->block_size);
12615c: 8b 4b 0c mov 0xc(%ebx),%ecx <== NOT EXECUTED
12615f: 89 f7 mov %esi,%edi <== NOT EXECUTED
126161: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
126163: 8b 4b 0c mov 0xc(%ebx),%ecx <== 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)
126166: ff 45 cc incl -0x34(%ebp) <== NOT EXECUTED
126169: 8b 7d cc mov -0x34(%ebp),%edi <== NOT EXECUTED
12616c: 39 7d c0 cmp %edi,-0x40(%ebp) <== NOT EXECUTED
12616f: 76 76 jbe 1261e7 <rtems_nvdisk_ioctl+0x38b><== NOT EXECUTED
126171: 01 ce add %ecx,%esi <== NOT EXECUTED
126173: e9 bc fe ff ff jmp 126034 <rtems_nvdisk_ioctl+0x1d8><== NOT EXECUTED
case RTEMS_NVDISK_IOCTL_ERASE_DISK:
errno = rtems_nvdisk_erase_disk (&rtems_nvdisks[minor]);
break;
case RTEMS_NVDISK_IOCTL_INFO_LEVEL:
rtems_nvdisks[minor].info_level = (uintptr_t) argp;
126178: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
12617b: 03 05 f4 27 17 00 add 0x1727f4,%eax <== NOT EXECUTED
126181: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
126184: 89 70 24 mov %esi,0x24(%eax) <== NOT EXECUTED
break;
126187: e9 96 fd ff ff jmp 125f22 <rtems_nvdisk_ioctl+0xc6><== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "erase-disk");
#endif
for (device = 0; device < nvd->device_count; device++)
12618c: ff 45 cc incl -0x34(%ebp) <== NOT EXECUTED
12618f: 83 45 d0 14 addl $0x14,-0x30(%ebp) <== NOT EXECUTED
126193: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
126196: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
126199: 3b 4a 18 cmp 0x18(%edx),%ecx <== NOT EXECUTED
12619c: 0f 82 c1 fd ff ff jb 125f63 <rtems_nvdisk_ioctl+0x107><== NOT EXECUTED
1261a2: 31 c0 xor %eax,%eax <== NOT EXECUTED
1261a4: e9 1b fe ff ff jmp 125fc4 <rtems_nvdisk_ioctl+0x168><== NOT EXECUTED
1261a9: 8d 76 00 lea 0x0(%esi),%esi <== 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++)
1261ac: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
1261b1: e9 45 ff ff ff jmp 1260fb <rtems_nvdisk_ioctl+0x29f><== NOT EXECUTED
{
errno = 0;
switch (req)
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
1261b6: 48 dec %eax <== NOT EXECUTED
1261b7: 74 40 je 1261f9 <rtems_nvdisk_ioctl+0x39d><== NOT EXECUTED
case RTEMS_BLKDEV_REQ_WRITE:
errno = rtems_nvdisk_write (&rtems_nvdisks[minor], r);
break;
default:
errno = EINVAL;
1261b9: e8 ce 05 02 00 call 14678c <__errno> <== NOT EXECUTED
1261be: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
1261c4: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
1261c7: 03 05 f4 27 17 00 add 0x1727f4,%eax <== NOT EXECUTED
1261cd: e9 50 fd ff ff jmp 125f22 <rtems_nvdisk_ioctl+0xc6><== NOT EXECUTED
return -1;
}
if (rtems_nvdisks[minor].device_count == 0)
{
errno = ENODEV;
1261d2: e8 b5 05 02 00 call 14678c <__errno> <== NOT EXECUTED
1261d7: c7 00 13 00 00 00 movl $0x13,(%eax) <== NOT EXECUTED
1261dd: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
1261e2: e9 ef fc ff ff jmp 125ed6 <rtems_nvdisk_ioctl+0x7a><== 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)
1261e7: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1261ea: 8b 48 10 mov 0x10(%eax),%ecx <== NOT EXECUTED
1261ed: 83 45 c4 10 addl $0x10,-0x3c(%ebp) <== NOT EXECUTED
1261f1: ff 45 bc incl -0x44(%ebp) <== NOT EXECUTED
1261f4: e9 0f fe ff ff jmp 126008 <rtems_nvdisk_ioctl+0x1ac><== 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);
1261f9: e8 8e 05 02 00 call 14678c <__errno> <== NOT EXECUTED
1261fe: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
126201: 8b 75 b8 mov -0x48(%ebp),%esi <== NOT EXECUTED
126204: 03 35 f4 27 17 00 add 0x1727f4,%esi <== NOT EXECUTED
12620a: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
12620d: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
126210: 8b 4f 10 mov 0x10(%edi),%ecx <== NOT EXECUTED
126213: 83 c7 28 add $0x28,%edi <== NOT EXECUTED
126216: 89 7d c0 mov %edi,-0x40(%ebp) <== NOT EXECUTED
126219: c7 45 b4 01 00 00 00 movl $0x1,-0x4c(%ebp) <== 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++)
126220: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
126223: 48 dec %eax <== NOT EXECUTED
126224: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
126226: 0f 86 53 01 00 00 jbe 12637f <rtems_nvdisk_ioctl+0x523><== NOT EXECUTED
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
12622c: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
12622f: 8b 42 f4 mov -0xc(%edx),%eax <== NOT EXECUTED
126232: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
126235: 31 d2 xor %edx,%edx <== NOT EXECUTED
126237: f7 73 0c divl 0xc(%ebx) <== NOT EXECUTED
12623a: 89 45 bc mov %eax,-0x44(%ebp) <== NOT EXECUTED
data = sg->buffer;
12623d: 8b 75 c0 mov -0x40(%ebp),%esi <== NOT EXECUTED
126240: 8b 5e f8 mov -0x8(%esi),%ebx <== NOT EXECUTED
for (b = 0; b < nvb; b++, data += nvd->block_size)
126243: 85 c0 test %eax,%eax <== NOT EXECUTED
126245: 0f 84 1f 01 00 00 je 12636a <rtems_nvdisk_ioctl+0x50e><== NOT EXECUTED
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
12624b: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
126252: 66 90 xchg %ax,%ax <== NOT EXECUTED
for (b = 0; b < nvb; b++, data += nvd->block_size)
{
ret = rtems_nvdisk_write_block (nvd, sg->block + b, data);
126254: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
126257: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
12625a: 03 78 f0 add -0x10(%eax),%edi <== NOT EXECUTED
rtems_nvdisk_device_ctl* dc;
uint32_t page;
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
12625d: 89 fa mov %edi,%edx <== NOT EXECUTED
12625f: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
126262: e8 8d fb ff ff call 125df4 <rtems_nvdisk_get_device><== NOT EXECUTED
126267: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (!dc)
126269: 85 c0 test %eax,%eax <== NOT EXECUTED
12626b: 74 74 je 1262e1 <rtems_nvdisk_ioctl+0x485><== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_get_page (rtems_nvdisk_device_ctl* dc,
uint32_t block)
{
return block - dc->block_base;
12626d: 2b 78 0c sub 0xc(%eax),%edi <== NOT EXECUTED
126270: 89 7d c8 mov %edi,-0x38(%ebp) <== NOT EXECUTED
if (!dc)
return EIO;
page = rtems_nvdisk_get_page (dc, block);
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
126273: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
126276: 8b 42 0c mov 0xc(%edx),%eax <== 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++)
126279: 85 c0 test %eax,%eax <== NOT EXECUTED
12627b: 0f 84 d9 00 00 00 je 12635a <rtems_nvdisk_ioctl+0x4fe><== NOT EXECUTED
126281: 8b 3d fc 27 17 00 mov 0x1727fc,%edi <== NOT EXECUTED
126287: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
126289: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
12628e: 66 90 xchg %ax,%ax <== NOT EXECUTED
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
126290: 32 14 0b xor (%ebx,%ecx,1),%dl <== NOT EXECUTED
126293: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
126296: 66 8b 14 57 mov (%edi,%edx,2),%dx <== 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++)
12629a: 41 inc %ecx <== NOT EXECUTED
12629b: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
12629d: 77 f1 ja 126290 <rtems_nvdisk_ioctl+0x434><== 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);
12629f: 8b 0e mov (%esi),%ecx <== NOT EXECUTED
1262a1: 89 4d cc mov %ecx,-0x34(%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;
1262a4: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
1262a7: 8b 7f 14 mov 0x14(%edi),%edi <== NOT EXECUTED
1262aa: 8d 0c 89 lea (%ecx,%ecx,4),%ecx <== NOT EXECUTED
1262ad: 8b 4c 8f 10 mov 0x10(%edi,%ecx,4),%ecx <== 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);
1262b1: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1262b4: 8b 79 0c mov 0xc(%ecx),%edi <== NOT EXECUTED
1262b7: 89 7d c4 mov %edi,-0x3c(%ebp) <== NOT EXECUTED
1262ba: 50 push %eax <== NOT EXECUTED
1262bb: 53 push %ebx <== NOT EXECUTED
1262bc: 8b 7d c8 mov -0x38(%ebp),%edi <== NOT EXECUTED
1262bf: 03 7e 08 add 0x8(%esi),%edi <== NOT EXECUTED
1262c2: 0f af f8 imul %eax,%edi <== NOT EXECUTED
1262c5: 57 push %edi <== NOT EXECUTED
1262c6: ff 71 04 pushl 0x4(%ecx) <== NOT EXECUTED
1262c9: ff 31 pushl (%ecx) <== NOT EXECUTED
1262cb: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
1262ce: 89 55 ac mov %edx,-0x54(%ebp) <== NOT EXECUTED
1262d1: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
1262d4: 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)
1262d7: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1262da: 85 c0 test %eax,%eax <== NOT EXECUTED
1262dc: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
1262df: 74 2f je 126310 <rtems_nvdisk_ioctl+0x4b4><== 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++)
1262e1: b8 1b 00 00 00 mov $0x1b,%eax <== NOT EXECUTED
if (ret)
break;
}
}
req->status = ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL;
1262e6: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
1262e9: 89 46 0c mov %eax,0xc(%esi) <== NOT EXECUTED
req->req_done (req->done_arg, req->status);
1262ec: 52 push %edx <== NOT EXECUTED
1262ed: 52 push %edx <== NOT EXECUTED
1262ee: 50 push %eax <== NOT EXECUTED
1262ef: ff 76 08 pushl 0x8(%esi) <== NOT EXECUTED
1262f2: ff 56 04 call *0x4(%esi) <== 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);
1262f5: 8b 7d b0 mov -0x50(%ebp),%edi <== NOT EXECUTED
1262f8: c7 07 00 00 00 00 movl $0x0,(%edi) <== NOT EXECUTED
1262fe: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
126301: 03 05 f4 27 17 00 add 0x1727f4,%eax <== NOT EXECUTED
break;
126307: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12630a: e9 13 fc ff ff jmp 125f22 <rtems_nvdisk_ioctl+0xc6><== NOT EXECUTED
12630f: 90 nop <== NOT EXECUTED
ret = rtems_nvdisk_write_page (nvd, dc->device, page + dc->pages_desc, buffer);
if (ret)
return ret;
return rtems_nvdisk_write_checksum (nvd, dc->device, page, cs);
126310: 8b 06 mov (%esi),%eax <== NOT EXECUTED
126312: 66 89 55 e6 mov %dx,-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;
126316: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED
126319: 8b 4e 14 mov 0x14(%esi),%ecx <== NOT EXECUTED
12631c: 8d 14 80 lea (%eax,%eax,4),%edx <== NOT EXECUTED
12631f: 8b 54 91 10 mov 0x10(%ecx,%edx,4),%edx <== 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);
126323: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126326: 8b 4a 0c mov 0xc(%edx),%ecx <== NOT EXECUTED
126329: 6a 02 push $0x2 <== NOT EXECUTED
12632b: 8d 7d e6 lea -0x1a(%ebp),%edi <== NOT EXECUTED
12632e: 57 push %edi <== NOT EXECUTED
12632f: 8b 7d c8 mov -0x38(%ebp),%edi <== NOT EXECUTED
126332: d1 e7 shl %edi <== NOT EXECUTED
126334: 57 push %edi <== NOT EXECUTED
126335: ff 72 04 pushl 0x4(%edx) <== NOT EXECUTED
126338: ff 32 pushl (%edx) <== NOT EXECUTED
12633a: 50 push %eax <== NOT EXECUTED
12633b: ff 51 04 call *0x4(%ecx) <== 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)
12633e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
126341: 85 c0 test %eax,%eax <== NOT EXECUTED
126343: 75 9c jne 1262e1 <rtems_nvdisk_ioctl+0x485><== 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)
126345: ff 45 d0 incl -0x30(%ebp) <== NOT EXECUTED
126348: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
12634b: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
12634e: 39 55 bc cmp %edx,-0x44(%ebp) <== NOT EXECUTED
126351: 76 11 jbe 126364 <rtems_nvdisk_ioctl+0x508><== NOT EXECUTED
126353: 01 c3 add %eax,%ebx <== NOT EXECUTED
126355: e9 fa fe ff ff jmp 126254 <rtems_nvdisk_ioctl+0x3f8><== 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++)
12635a: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
12635f: e9 3b ff ff ff jmp 12629f <rtems_nvdisk_ioctl+0x443><== 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)
126364: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
126367: 8b 4b 10 mov 0x10(%ebx),%ecx <== 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)
12636a: 83 45 c0 10 addl $0x10,-0x40(%ebp) <== NOT EXECUTED
12636e: ff 45 b4 incl -0x4c(%ebp) <== NOT EXECUTED
126371: e9 aa fe ff ff jmp 126220 <rtems_nvdisk_ioctl+0x3c4><== 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++)
126376: 31 c0 xor %eax,%eax <== NOT EXECUTED
126378: 31 d2 xor %edx,%edx <== NOT EXECUTED
12637a: e9 aa fd ff ff jmp 126129 <rtems_nvdisk_ioctl+0x2cd><== 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++)
12637f: 31 c0 xor %eax,%eax <== NOT EXECUTED
126381: e9 60 ff ff ff jmp 1262e6 <rtems_nvdisk_ioctl+0x48a><== NOT EXECUTED
00126680 <rtems_nvdisk_sram_read>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
void* buffer,
size_t size)
{
126680: 55 push %ebp <== NOT EXECUTED
126681: 89 e5 mov %esp,%ebp <== NOT EXECUTED
126683: 57 push %edi <== NOT EXECUTED
126684: 56 push %esi <== NOT EXECUTED
126685: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
126688: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
12668b: 8b 4d 1c mov 0x1c(%ebp),%ecx <== NOT EXECUTED
memcpy (buffer, (base + offset), size);
12668e: 03 75 10 add 0x10(%ebp),%esi <== NOT EXECUTED
126691: 89 c7 mov %eax,%edi <== NOT EXECUTED
126693: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return 0;
}
126695: 31 c0 xor %eax,%eax <== NOT EXECUTED
126697: 5e pop %esi <== NOT EXECUTED
126698: 5f pop %edi <== NOT EXECUTED
126699: c9 leave <== NOT EXECUTED
12669a: c3 ret <== NOT EXECUTED
00126634 <rtems_nvdisk_sram_verify>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
126634: 55 push %ebp <== NOT EXECUTED
126635: 89 e5 mov %esp,%ebp <== NOT EXECUTED
126637: 57 push %edi <== NOT EXECUTED
126638: 56 push %esi <== NOT EXECUTED
126639: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
12663c: 8b 4d 1c mov 0x1c(%ebp),%ecx <== NOT EXECUTED
return memcmp ((base + offset), buffer, size) == 0 ? 0 : EIO;
12663f: 03 75 10 add 0x10(%ebp),%esi <== NOT EXECUTED
126642: 39 c9 cmp %ecx,%ecx <== NOT EXECUTED
126644: 8b 7d 18 mov 0x18(%ebp),%edi <== NOT EXECUTED
126647: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NOT EXECUTED
126649: 0f 97 c0 seta %al <== NOT EXECUTED
12664c: 0f 92 c2 setb %dl <== NOT EXECUTED
12664f: 28 d0 sub %dl,%al <== NOT EXECUTED
126651: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
126654: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
126657: 19 c0 sbb %eax,%eax <== NOT EXECUTED
126659: f7 d0 not %eax <== NOT EXECUTED
12665b: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
}
12665e: 5e pop %esi <== NOT EXECUTED
12665f: 5f pop %edi <== NOT EXECUTED
126660: c9 leave <== NOT EXECUTED
126661: c3 ret <== NOT EXECUTED
00126664 <rtems_nvdisk_sram_write>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
126664: 55 push %ebp <== NOT EXECUTED
126665: 89 e5 mov %esp,%ebp <== NOT EXECUTED
126667: 57 push %edi <== NOT EXECUTED
126668: 56 push %esi <== NOT EXECUTED
126669: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
12666c: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
12666f: 8b 4d 1c mov 0x1c(%ebp),%ecx <== NOT EXECUTED
memcpy ((base + offset), buffer, size);
126672: 03 45 10 add 0x10(%ebp),%eax <== NOT EXECUTED
126675: 89 c7 mov %eax,%edi <== NOT EXECUTED
126677: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return 0;
}
126679: 31 c0 xor %eax,%eax <== NOT EXECUTED
12667b: 5e pop %esi <== NOT EXECUTED
12667c: 5f pop %edi <== NOT EXECUTED
12667d: c9 leave <== NOT EXECUTED
12667e: c3 ret <== NOT EXECUTED
0010d420 <rtems_object_get_api_class_name>:
const char *rtems_object_get_api_class_name(
int the_api,
int the_class
)
{
10d420: 55 push %ebp
10d421: 89 e5 mov %esp,%ebp
10d423: 83 ec 08 sub $0x8,%esp
10d426: 8b 45 08 mov 0x8(%ebp),%eax
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
10d429: 83 f8 01 cmp $0x1,%eax
10d42c: 74 2a je 10d458 <rtems_object_get_api_class_name+0x38>
api_assoc = rtems_object_api_internal_assoc;
else if ( the_api == OBJECTS_CLASSIC_API )
10d42e: 83 f8 02 cmp $0x2,%eax
10d431: 74 09 je 10d43c <rtems_object_get_api_class_name+0x1c>
10d433: b8 87 4d 12 00 mov $0x124d87,%eax
return "BAD API";
class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );
if ( class_assoc )
return class_assoc->name;
return "BAD CLASS";
}
10d438: c9 leave
10d439: c3 ret
10d43a: 66 90 xchg %ax,%ax
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
api_assoc = rtems_object_api_internal_assoc;
else if ( the_api == OBJECTS_CLASSIC_API )
10d43c: b8 80 90 12 00 mov $0x129080,%eax
else if ( the_api == OBJECTS_ITRON_API )
api_assoc = rtems_object_api_itron_assoc;
#endif
else
return "BAD API";
class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );
10d441: 83 ec 08 sub $0x8,%esp
10d444: ff 75 0c pushl 0xc(%ebp)
10d447: 50 push %eax
10d448: e8 cb 54 00 00 call 112918 <rtems_assoc_ptr_by_local>
if ( class_assoc )
10d44d: 83 c4 10 add $0x10,%esp
10d450: 85 c0 test %eax,%eax
10d452: 74 0c je 10d460 <rtems_object_get_api_class_name+0x40>
return class_assoc->name;
10d454: 8b 00 mov (%eax),%eax
return "BAD CLASS";
}
10d456: c9 leave
10d457: c3 ret
)
{
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
10d458: b8 60 90 12 00 mov $0x129060,%eax
10d45d: eb e2 jmp 10d441 <rtems_object_get_api_class_name+0x21>
10d45f: 90 nop
api_assoc = rtems_object_api_itron_assoc;
#endif
else
return "BAD API";
class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );
if ( class_assoc )
10d460: b8 8f 4d 12 00 mov $0x124d8f,%eax
return class_assoc->name;
return "BAD CLASS";
}
10d465: c9 leave
10d466: c3 ret
0010d468 <rtems_object_get_api_name>:
};
const char *rtems_object_get_api_name(
int api
)
{
10d468: 55 push %ebp
10d469: 89 e5 mov %esp,%ebp
10d46b: 83 ec 10 sub $0x10,%esp
const rtems_assoc_t *api_assoc;
api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api );
10d46e: ff 75 08 pushl 0x8(%ebp)
10d471: 68 00 91 12 00 push $0x129100
10d476: e8 9d 54 00 00 call 112918 <rtems_assoc_ptr_by_local>
if ( api_assoc )
10d47b: 83 c4 10 add $0x10,%esp
10d47e: 85 c0 test %eax,%eax
10d480: 74 06 je 10d488 <rtems_object_get_api_name+0x20>
return api_assoc->name;
10d482: 8b 00 mov (%eax),%eax
return "BAD CLASS";
}
10d484: c9 leave
10d485: c3 ret
10d486: 66 90 xchg %ax,%ax
)
{
const rtems_assoc_t *api_assoc;
api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api );
if ( api_assoc )
10d488: b8 8f 4d 12 00 mov $0x124d8f,%eax
return api_assoc->name;
return "BAD CLASS";
}
10d48d: c9 leave
10d48e: c3 ret
0010d4d0 <rtems_object_get_class_information>:
rtems_status_code rtems_object_get_class_information(
int the_api,
int the_class,
rtems_object_api_class_information *info
)
{
10d4d0: 55 push %ebp
10d4d1: 89 e5 mov %esp,%ebp
10d4d3: 57 push %edi
10d4d4: 56 push %esi
10d4d5: 53 push %ebx
10d4d6: 83 ec 0c sub $0xc,%esp
10d4d9: 8b 5d 10 mov 0x10(%ebp),%ebx
int i;
/*
* Validate parameters and look up information structure.
*/
if ( !info )
10d4dc: 85 db test %ebx,%ebx
10d4de: 74 5c je 10d53c <rtems_object_get_class_information+0x6c>
return RTEMS_INVALID_ADDRESS;
obj_info = _Objects_Get_information( the_api, the_class );
10d4e0: 83 ec 08 sub $0x8,%esp
10d4e3: ff 75 0c pushl 0xc(%ebp)
10d4e6: ff 75 08 pushl 0x8(%ebp)
10d4e9: e8 4a 1a 00 00 call 10ef38 <_Objects_Get_information>
if ( !obj_info )
10d4ee: 83 c4 10 add $0x10,%esp
10d4f1: 85 c0 test %eax,%eax
10d4f3: 74 57 je 10d54c <rtems_object_get_class_information+0x7c>
return RTEMS_INVALID_NUMBER;
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
10d4f5: 8b 50 08 mov 0x8(%eax),%edx
10d4f8: 89 13 mov %edx,(%ebx)
info->maximum_id = obj_info->maximum_id;
10d4fa: 8b 50 0c mov 0xc(%eax),%edx
10d4fd: 89 53 04 mov %edx,0x4(%ebx)
info->auto_extend = obj_info->auto_extend;
10d500: 8a 50 12 mov 0x12(%eax),%dl
10d503: 88 53 0c mov %dl,0xc(%ebx)
info->maximum = obj_info->maximum;
10d506: 0f b7 70 10 movzwl 0x10(%eax),%esi
10d50a: 89 73 08 mov %esi,0x8(%ebx)
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
10d50d: 85 f6 test %esi,%esi
10d50f: 74 3f je 10d550 <rtems_object_get_class_information+0x80><== NEVER TAKEN
10d511: 8b 78 1c mov 0x1c(%eax),%edi
10d514: b9 01 00 00 00 mov $0x1,%ecx
10d519: b8 01 00 00 00 mov $0x1,%eax
10d51e: 31 d2 xor %edx,%edx
if ( !obj_info->local_table[i] )
unallocated++;
10d520: 83 3c 8f 01 cmpl $0x1,(%edi,%ecx,4)
10d524: 83 d2 00 adc $0x0,%edx
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
10d527: 40 inc %eax
10d528: 89 c1 mov %eax,%ecx
10d52a: 39 c6 cmp %eax,%esi
10d52c: 73 f2 jae 10d520 <rtems_object_get_class_information+0x50>
if ( !obj_info->local_table[i] )
unallocated++;
info->unallocated = unallocated;
10d52e: 89 53 10 mov %edx,0x10(%ebx)
10d531: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
10d533: 8d 65 f4 lea -0xc(%ebp),%esp
10d536: 5b pop %ebx
10d537: 5e pop %esi
10d538: 5f pop %edi
10d539: c9 leave
10d53a: c3 ret
10d53b: 90 nop
int i;
/*
* Validate parameters and look up information structure.
*/
if ( !info )
10d53c: b8 09 00 00 00 mov $0x9,%eax
unallocated++;
info->unallocated = unallocated;
return RTEMS_SUCCESSFUL;
}
10d541: 8d 65 f4 lea -0xc(%ebp),%esp
10d544: 5b pop %ebx
10d545: 5e pop %esi
10d546: 5f pop %edi
10d547: c9 leave
10d548: c3 ret
10d549: 8d 76 00 lea 0x0(%esi),%esi
*/
if ( !info )
return RTEMS_INVALID_ADDRESS;
obj_info = _Objects_Get_information( the_api, the_class );
if ( !obj_info )
10d54c: b0 0a mov $0xa,%al
10d54e: eb e3 jmp 10d533 <rtems_object_get_class_information+0x63>
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
10d550: 31 d2 xor %edx,%edx <== NOT EXECUTED
10d552: eb da jmp 10d52e <rtems_object_get_class_information+0x5e><== NOT EXECUTED
00110398 <rtems_object_get_classic_name>:
rtems_status_code rtems_object_get_classic_name(
rtems_id id,
rtems_name *name
)
{
110398: 55 push %ebp
110399: 89 e5 mov %esp,%ebp
11039b: 53 push %ebx
11039c: 83 ec 14 sub $0x14,%esp
11039f: 8b 5d 0c mov 0xc(%ebp),%ebx
Objects_Name_or_id_lookup_errors status;
Objects_Name name_u;
if ( !name )
1103a2: 85 db test %ebx,%ebx
1103a4: 74 26 je 1103cc <rtems_object_get_classic_name+0x34>
return RTEMS_INVALID_ADDRESS;
status = _Objects_Id_to_name( id, &name_u );
1103a6: 83 ec 08 sub $0x8,%esp
1103a9: 8d 45 f4 lea -0xc(%ebp),%eax
1103ac: 50 push %eax
1103ad: ff 75 08 pushl 0x8(%ebp)
1103b0: e8 93 1c 00 00 call 112048 <_Objects_Id_to_name>
*name = name_u.name_u32;
1103b5: 8b 55 f4 mov -0xc(%ebp),%edx
1103b8: 89 13 mov %edx,(%ebx)
return _Status_Object_name_errors_to_status[ status ];
1103ba: 8b 04 85 ac cb 12 00 mov 0x12cbac(,%eax,4),%eax
1103c1: 83 c4 10 add $0x10,%esp
}
1103c4: 8b 5d fc mov -0x4(%ebp),%ebx
1103c7: c9 leave
1103c8: c3 ret
1103c9: 8d 76 00 lea 0x0(%esi),%esi
)
{
Objects_Name_or_id_lookup_errors status;
Objects_Name name_u;
if ( !name )
1103cc: b8 09 00 00 00 mov $0x9,%eax
status = _Objects_Id_to_name( id, &name_u );
*name = name_u.name_u32;
return _Status_Object_name_errors_to_status[ status ];
}
1103d1: 8b 5d fc mov -0x4(%ebp),%ebx
1103d4: c9 leave
1103d5: c3 ret
0010d5ac <rtems_object_set_name>:
*/
rtems_status_code rtems_object_set_name(
rtems_id id,
const char *name
)
{
10d5ac: 55 push %ebp
10d5ad: 89 e5 mov %esp,%ebp
10d5af: 57 push %edi
10d5b0: 56 push %esi
10d5b1: 53 push %ebx
10d5b2: 83 ec 1c sub $0x1c,%esp
10d5b5: 8b 75 08 mov 0x8(%ebp),%esi
10d5b8: 8b 7d 0c mov 0xc(%ebp),%edi
Objects_Information *information;
Objects_Locations location;
Objects_Control *the_object;
Objects_Id tmpId;
if ( !name )
10d5bb: 85 ff test %edi,%edi
10d5bd: 74 61 je 10d620 <rtems_object_set_name+0x74>
return RTEMS_INVALID_ADDRESS;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
10d5bf: 85 f6 test %esi,%esi
10d5c1: 74 35 je 10d5f8 <rtems_object_set_name+0x4c>
information = _Objects_Get_information_id( tmpId );
10d5c3: 83 ec 0c sub $0xc,%esp
10d5c6: 56 push %esi
10d5c7: e8 4c 19 00 00 call 10ef18 <_Objects_Get_information_id>
10d5cc: 89 c3 mov %eax,%ebx
if ( !information )
10d5ce: 83 c4 10 add $0x10,%esp
10d5d1: 85 c0 test %eax,%eax
10d5d3: 74 16 je 10d5eb <rtems_object_set_name+0x3f>
return RTEMS_INVALID_ID;
the_object = _Objects_Get( information, tmpId, &location );
10d5d5: 50 push %eax
10d5d6: 8d 45 e4 lea -0x1c(%ebp),%eax
10d5d9: 50 push %eax
10d5da: 56 push %esi
10d5db: 53 push %ebx
10d5dc: e8 bb 1a 00 00 call 10f09c <_Objects_Get>
switch ( location ) {
10d5e1: 83 c4 10 add $0x10,%esp
10d5e4: 8b 4d e4 mov -0x1c(%ebp),%ecx
10d5e7: 85 c9 test %ecx,%ecx
10d5e9: 74 19 je 10d604 <rtems_object_set_name+0x58>
case OBJECTS_LOCAL:
_Objects_Set_name( information, the_object, name );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
10d5eb: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10d5f0: 8d 65 f4 lea -0xc(%ebp),%esp
10d5f3: 5b pop %ebx
10d5f4: 5e pop %esi
10d5f5: 5f pop %edi
10d5f6: c9 leave
10d5f7: c3 ret
Objects_Id tmpId;
if ( !name )
return RTEMS_INVALID_ADDRESS;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
10d5f8: a1 58 b5 12 00 mov 0x12b558,%eax
10d5fd: 8b 70 08 mov 0x8(%eax),%esi
10d600: eb c1 jmp 10d5c3 <rtems_object_set_name+0x17>
10d602: 66 90 xchg %ax,%ax
the_object = _Objects_Get( information, tmpId, &location );
switch ( location ) {
case OBJECTS_LOCAL:
_Objects_Set_name( information, the_object, name );
10d604: 52 push %edx
10d605: 57 push %edi
10d606: 50 push %eax
10d607: 53 push %ebx
10d608: e8 c7 1c 00 00 call 10f2d4 <_Objects_Set_name>
_Thread_Enable_dispatch();
10d60d: e8 ba 23 00 00 call 10f9cc <_Thread_Enable_dispatch>
10d612: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10d614: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10d617: 8d 65 f4 lea -0xc(%ebp),%esp
10d61a: 5b pop %ebx
10d61b: 5e pop %esi
10d61c: 5f pop %edi
10d61d: c9 leave
10d61e: c3 ret
10d61f: 90 nop
Objects_Information *information;
Objects_Locations location;
Objects_Control *the_object;
Objects_Id tmpId;
if ( !name )
10d620: b8 09 00 00 00 mov $0x9,%eax
10d625: eb c9 jmp 10d5f0 <rtems_object_set_name+0x44>
0010ce1c <rtems_panic>:
void rtems_panic(
const char *printf_format,
...
)
{
10ce1c: 55 push %ebp <== NOT EXECUTED
10ce1d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10ce1f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
/*
* rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...)
*/
void rtems_panic(
10ce22: 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);
10ce25: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
10ce28: b8 00 00 00 20 mov $0x20000000,%eax <== NOT EXECUTED
10ce2d: e8 4a fe ff ff call 10cc7c <rtems_verror> <== NOT EXECUTED
va_end(arglist);
}
10ce32: c9 leave <== NOT EXECUTED
10ce33: c3 ret <== NOT EXECUTED
001170d4 <rtems_partition_create>:
uint32_t length,
uint32_t buffer_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
1170d4: 55 push %ebp
1170d5: 89 e5 mov %esp,%ebp
1170d7: 57 push %edi
1170d8: 56 push %esi
1170d9: 53 push %ebx
1170da: 83 ec 1c sub $0x1c,%esp
1170dd: 8b 5d 08 mov 0x8(%ebp),%ebx
1170e0: 8b 75 0c mov 0xc(%ebp),%esi
1170e3: 8b 55 10 mov 0x10(%ebp),%edx
1170e6: 8b 7d 14 mov 0x14(%ebp),%edi
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
1170e9: 85 db test %ebx,%ebx
1170eb: 74 47 je 117134 <rtems_partition_create+0x60>
return RTEMS_INVALID_NAME;
if ( !starting_address )
1170ed: 85 f6 test %esi,%esi
1170ef: 74 23 je 117114 <rtems_partition_create+0x40>
return RTEMS_INVALID_ADDRESS;
if ( !id )
1170f1: 8b 45 1c mov 0x1c(%ebp),%eax
1170f4: 85 c0 test %eax,%eax
1170f6: 74 1c je 117114 <rtems_partition_create+0x40><== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
if ( length == 0 || buffer_size == 0 || length < buffer_size ||
1170f8: 85 d2 test %edx,%edx
1170fa: 74 28 je 117124 <rtems_partition_create+0x50>
1170fc: 85 ff test %edi,%edi
1170fe: 74 24 je 117124 <rtems_partition_create+0x50>
117100: 39 fa cmp %edi,%edx
117102: 72 20 jb 117124 <rtems_partition_create+0x50>
117104: f7 c7 03 00 00 00 test $0x3,%edi
11710a: 75 18 jne 117124 <rtems_partition_create+0x50>
!_Partition_Is_buffer_size_aligned( buffer_size ) )
return RTEMS_INVALID_SIZE;
if ( !_Addresses_Is_aligned( starting_address ) )
11710c: f7 c6 03 00 00 00 test $0x3,%esi
117112: 74 30 je 117144 <rtems_partition_create+0x70>
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
117114: b8 09 00 00 00 mov $0x9,%eax
}
117119: 8d 65 f4 lea -0xc(%ebp),%esp
11711c: 5b pop %ebx
11711d: 5e pop %esi
11711e: 5f pop %edi
11711f: c9 leave
117120: c3 ret
117121: 8d 76 00 lea 0x0(%esi),%esi
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
117124: b8 08 00 00 00 mov $0x8,%eax
}
117129: 8d 65 f4 lea -0xc(%ebp),%esp
11712c: 5b pop %ebx
11712d: 5e pop %esi
11712e: 5f pop %edi
11712f: c9 leave
117130: c3 ret
117131: 8d 76 00 lea 0x0(%esi),%esi
rtems_id *id
)
{
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
117134: b8 03 00 00 00 mov $0x3,%eax
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
117139: 8d 65 f4 lea -0xc(%ebp),%esp
11713c: 5b pop %ebx
11713d: 5e pop %esi
11713e: 5f pop %edi
11713f: c9 leave
117140: c3 ret
117141: 8d 76 00 lea 0x0(%esi),%esi
117144: a1 78 27 14 00 mov 0x142778,%eax
117149: 40 inc %eax
11714a: a3 78 27 14 00 mov %eax,0x142778
* 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 );
11714f: 83 ec 0c sub $0xc,%esp
117152: 68 00 26 14 00 push $0x142600
117157: 89 55 e0 mov %edx,-0x20(%ebp)
11715a: e8 35 42 00 00 call 11b394 <_Objects_Allocate>
11715f: 89 45 e4 mov %eax,-0x1c(%ebp)
_Thread_Disable_dispatch(); /* prevents deletion */
the_partition = _Partition_Allocate();
if ( !the_partition ) {
117162: 83 c4 10 add $0x10,%esp
117165: 85 c0 test %eax,%eax
117167: 8b 55 e0 mov -0x20(%ebp),%edx
11716a: 74 58 je 1171c4 <rtems_partition_create+0xf0>
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_partition->starting_address = starting_address;
11716c: 8b 45 e4 mov -0x1c(%ebp),%eax
11716f: 89 70 10 mov %esi,0x10(%eax)
the_partition->length = length;
117172: 89 50 14 mov %edx,0x14(%eax)
the_partition->buffer_size = buffer_size;
117175: 89 78 18 mov %edi,0x18(%eax)
the_partition->attribute_set = attribute_set;
117178: 8b 4d 18 mov 0x18(%ebp),%ecx
11717b: 89 48 1c mov %ecx,0x1c(%eax)
the_partition->number_of_used_blocks = 0;
11717e: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax)
_Chain_Initialize( &the_partition->Memory, starting_address,
117185: 57 push %edi
117186: 89 d0 mov %edx,%eax
117188: 31 d2 xor %edx,%edx
11718a: f7 f7 div %edi
11718c: 50 push %eax
11718d: 56 push %esi
11718e: 8b 45 e4 mov -0x1c(%ebp),%eax
117191: 83 c0 24 add $0x24,%eax
117194: 50 push %eax
117195: e8 6a 2f 00 00 call 11a104 <_Chain_Initialize>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
11719a: 8b 7d e4 mov -0x1c(%ebp),%edi
11719d: 8b 47 08 mov 0x8(%edi),%eax
1171a0: 0f b7 f0 movzwl %ax,%esi
1171a3: 8b 15 1c 26 14 00 mov 0x14261c,%edx
1171a9: 89 3c b2 mov %edi,(%edx,%esi,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
1171ac: 89 5f 0c mov %ebx,0xc(%edi)
&_Partition_Information,
&the_partition->Object,
(Objects_Name) name
);
*id = the_partition->Object.id;
1171af: 8b 55 1c mov 0x1c(%ebp),%edx
1171b2: 89 02 mov %eax,(%edx)
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
1171b4: e8 77 4f 00 00 call 11c130 <_Thread_Enable_dispatch>
1171b9: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
1171bb: 83 c4 10 add $0x10,%esp
1171be: e9 66 ff ff ff jmp 117129 <rtems_partition_create+0x55>
1171c3: 90 nop
_Thread_Disable_dispatch(); /* prevents deletion */
the_partition = _Partition_Allocate();
if ( !the_partition ) {
_Thread_Enable_dispatch();
1171c4: e8 67 4f 00 00 call 11c130 <_Thread_Enable_dispatch>
1171c9: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
1171ce: e9 56 ff ff ff jmp 117129 <rtems_partition_create+0x55>
00117240 <rtems_partition_get_buffer>:
rtems_status_code rtems_partition_get_buffer(
rtems_id id,
void **buffer
)
{
117240: 55 push %ebp
117241: 89 e5 mov %esp,%ebp
117243: 56 push %esi
117244: 53 push %ebx
117245: 83 ec 20 sub $0x20,%esp
117248: 8b 5d 0c mov 0xc(%ebp),%ebx
register Partition_Control *the_partition;
Objects_Locations location;
void *the_buffer;
if ( !buffer )
11724b: 85 db test %ebx,%ebx
11724d: 74 59 je 1172a8 <rtems_partition_get_buffer+0x68>
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Partition_Control *)
11724f: 52 push %edx
117250: 8d 45 f4 lea -0xc(%ebp),%eax
117253: 50 push %eax
117254: ff 75 08 pushl 0x8(%ebp)
117257: 68 00 26 14 00 push $0x142600
11725c: e8 1f 46 00 00 call 11b880 <_Objects_Get>
117261: 89 c6 mov %eax,%esi
return RTEMS_INVALID_ADDRESS;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
117263: 83 c4 10 add $0x10,%esp
117266: 8b 45 f4 mov -0xc(%ebp),%eax
117269: 85 c0 test %eax,%eax
11726b: 75 2f jne 11729c <rtems_partition_get_buffer+0x5c>
*/
RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer (
Partition_Control *the_partition
)
{
return _Chain_Get( &the_partition->Memory );
11726d: 83 ec 0c sub $0xc,%esp
117270: 8d 46 24 lea 0x24(%esi),%eax
117273: 50 push %eax
117274: e8 67 2e 00 00 call 11a0e0 <_Chain_Get>
case OBJECTS_LOCAL:
the_buffer = _Partition_Allocate_buffer( the_partition );
if ( the_buffer ) {
117279: 83 c4 10 add $0x10,%esp
11727c: 85 c0 test %eax,%eax
11727e: 74 34 je 1172b4 <rtems_partition_get_buffer+0x74>
the_partition->number_of_used_blocks += 1;
117280: ff 46 20 incl 0x20(%esi)
_Thread_Enable_dispatch();
117283: 89 45 e4 mov %eax,-0x1c(%ebp)
117286: e8 a5 4e 00 00 call 11c130 <_Thread_Enable_dispatch>
*buffer = the_buffer;
11728b: 8b 45 e4 mov -0x1c(%ebp),%eax
11728e: 89 03 mov %eax,(%ebx)
117290: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
117292: 8d 65 f8 lea -0x8(%ebp),%esp
117295: 5b pop %ebx
117296: 5e pop %esi
117297: c9 leave
117298: c3 ret
117299: 8d 76 00 lea 0x0(%esi),%esi
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
11729c: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1172a1: 8d 65 f8 lea -0x8(%ebp),%esp
1172a4: 5b pop %ebx
1172a5: 5e pop %esi
1172a6: c9 leave
1172a7: c3 ret
{
register Partition_Control *the_partition;
Objects_Locations location;
void *the_buffer;
if ( !buffer )
1172a8: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1172ad: 8d 65 f8 lea -0x8(%ebp),%esp
1172b0: 5b pop %ebx
1172b1: 5e pop %esi
1172b2: c9 leave
1172b3: c3 ret
the_partition->number_of_used_blocks += 1;
_Thread_Enable_dispatch();
*buffer = the_buffer;
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
1172b4: e8 77 4e 00 00 call 11c130 <_Thread_Enable_dispatch>
1172b9: b8 0d 00 00 00 mov $0xd,%eax
return RTEMS_UNSATISFIED;
1172be: eb e1 jmp 1172a1 <rtems_partition_get_buffer+0x61>
001172e4 <rtems_partition_return_buffer>:
rtems_status_code rtems_partition_return_buffer(
rtems_id id,
void *buffer
)
{
1172e4: 55 push %ebp
1172e5: 89 e5 mov %esp,%ebp
1172e7: 56 push %esi
1172e8: 53 push %ebx
1172e9: 83 ec 14 sub $0x14,%esp
1172ec: 8b 75 0c mov 0xc(%ebp),%esi
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Partition_Control *)
1172ef: 8d 45 f4 lea -0xc(%ebp),%eax
1172f2: 50 push %eax
1172f3: ff 75 08 pushl 0x8(%ebp)
1172f6: 68 00 26 14 00 push $0x142600
1172fb: e8 80 45 00 00 call 11b880 <_Objects_Get>
117300: 89 c3 mov %eax,%ebx
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
117302: 83 c4 10 add $0x10,%esp
117305: 8b 45 f4 mov -0xc(%ebp),%eax
117308: 85 c0 test %eax,%eax
11730a: 74 0c je 117318 <rtems_partition_return_buffer+0x34>
11730c: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
117311: 8d 65 f8 lea -0x8(%ebp),%esp
117314: 5b pop %ebx
117315: 5e pop %esi
117316: c9 leave
117317: c3 ret
)
{
void *starting;
void *ending;
starting = the_partition->starting_address;
117318: 8b 43 10 mov 0x10(%ebx),%eax
ending = _Addresses_Add_offset( starting, the_partition->length );
11731b: 8b 53 14 mov 0x14(%ebx),%edx
const void *address,
const void *base,
const void *limit
)
{
return (address >= base && address <= limit);
11731e: 39 c6 cmp %eax,%esi
117320: 72 3a jb 11735c <rtems_partition_return_buffer+0x78>
117322: 8d 14 10 lea (%eax,%edx,1),%edx
117325: 39 d6 cmp %edx,%esi
117327: 77 33 ja 11735c <rtems_partition_return_buffer+0x78><== NEVER TAKEN
return (
117329: 89 f2 mov %esi,%edx
11732b: 29 c2 sub %eax,%edx
11732d: 89 d0 mov %edx,%eax
11732f: 31 d2 xor %edx,%edx
117331: f7 73 18 divl 0x18(%ebx)
117334: 85 d2 test %edx,%edx
117336: 75 24 jne 11735c <rtems_partition_return_buffer+0x78>
RTEMS_INLINE_ROUTINE void _Partition_Free_buffer (
Partition_Control *the_partition,
Chain_Node *the_buffer
)
{
_Chain_Append( &the_partition->Memory, the_buffer );
117338: 83 ec 08 sub $0x8,%esp
11733b: 56 push %esi
11733c: 8d 43 24 lea 0x24(%ebx),%eax
11733f: 50 push %eax
117340: e8 5f 2d 00 00 call 11a0a4 <_Chain_Append>
switch ( location ) {
case OBJECTS_LOCAL:
if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) {
_Partition_Free_buffer( the_partition, buffer );
the_partition->number_of_used_blocks -= 1;
117345: ff 4b 20 decl 0x20(%ebx)
_Thread_Enable_dispatch();
117348: e8 e3 4d 00 00 call 11c130 <_Thread_Enable_dispatch>
11734d: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
11734f: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
117352: 8d 65 f8 lea -0x8(%ebp),%esp
117355: 5b pop %ebx
117356: 5e pop %esi
117357: c9 leave
117358: c3 ret
117359: 8d 76 00 lea 0x0(%esi),%esi
_Partition_Free_buffer( the_partition, buffer );
the_partition->number_of_used_blocks -= 1;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
11735c: e8 cf 4d 00 00 call 11c130 <_Thread_Enable_dispatch>
117361: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
117366: 8d 65 f8 lea -0x8(%ebp),%esp
117369: 5b pop %ebx
11736a: 5e pop %esi
11736b: c9 leave
11736c: c3 ret
0010f14c <rtems_pipe_initialize>:
/*
* Initialization of FIFO/pipe module.
*/
void rtems_pipe_initialize (void)
{
10f14c: 55 push %ebp
10f14d: 89 e5 mov %esp,%ebp
10f14f: 83 ec 08 sub $0x8,%esp
if (!rtems_pipe_configured)
10f152: 80 3d e4 55 12 00 00 cmpb $0x0,0x1255e4
10f159: 74 09 je 10f164 <rtems_pipe_initialize+0x18><== ALWAYS TAKEN
return;
if (rtems_pipe_semaphore)
10f15b: a1 a8 6f 12 00 mov 0x126fa8,%eax <== NOT EXECUTED
10f160: 85 c0 test %eax,%eax <== NOT EXECUTED
10f162: 74 04 je 10f168 <rtems_pipe_initialize+0x1c><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
rtems_interval now;
now = rtems_clock_get_ticks_since_boot();
rtems_pipe_no = now;
}
10f164: c9 leave
10f165: c3 ret
10f166: 66 90 xchg %ax,%ax
if (rtems_pipe_semaphore)
return;
rtems_status_code sc;
sc = rtems_semaphore_create(
10f168: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f16b: 68 a8 6f 12 00 push $0x126fa8 <== NOT EXECUTED
10f170: 6a 00 push $0x0 <== NOT EXECUTED
10f172: 6a 54 push $0x54 <== NOT EXECUTED
10f174: 6a 01 push $0x1 <== NOT EXECUTED
10f176: 68 45 50 49 50 push $0x50495045 <== NOT EXECUTED
10f17b: e8 ec c8 ff ff call 10ba6c <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)
10f180: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10f183: 85 c0 test %eax,%eax <== NOT EXECUTED
10f185: 75 0d jne 10f194 <rtems_pipe_initialize+0x48><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
rtems_interval now;
now = rtems_clock_get_ticks_since_boot();
10f187: e8 70 c4 ff ff call 10b5fc <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
rtems_pipe_no = now;
10f18c: 66 a3 b0 6f 12 00 mov %ax,0x126fb0 <== NOT EXECUTED
}
10f192: c9 leave <== NOT EXECUTED
10f193: c3 ret <== NOT EXECUTED
sc = rtems_semaphore_create(
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)
rtems_fatal_error_occurred (sc);
10f194: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10f197: 50 push %eax <== NOT EXECUTED
10f198: e8 57 d1 ff ff call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
00116720 <rtems_port_create>:
void *internal_start,
void *external_start,
uint32_t length,
rtems_id *id
)
{
116720: 55 push %ebp
116721: 89 e5 mov %esp,%ebp
116723: 57 push %edi
116724: 56 push %esi
116725: 53 push %ebx
116726: 83 ec 1c sub $0x1c,%esp
116729: 8b 5d 08 mov 0x8(%ebp),%ebx
11672c: 8b 55 0c mov 0xc(%ebp),%edx
11672f: 8b 7d 10 mov 0x10(%ebp),%edi
116732: 8b 75 18 mov 0x18(%ebp),%esi
register Dual_ported_memory_Control *the_port;
if ( !rtems_is_name_valid( name ) )
116735: 85 db test %ebx,%ebx
116737: 74 1b je 116754 <rtems_port_create+0x34>
return RTEMS_INVALID_NAME;
if ( !id )
116739: 85 f6 test %esi,%esi
11673b: 74 08 je 116745 <rtems_port_create+0x25>
return RTEMS_INVALID_ADDRESS;
if ( !_Addresses_Is_aligned( internal_start ) ||
11673d: 89 f8 mov %edi,%eax
11673f: 09 d0 or %edx,%eax
116741: a8 03 test $0x3,%al
116743: 74 1f je 116764 <rtems_port_create+0x44>
(Objects_Name) name
);
*id = the_port->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
116745: b8 09 00 00 00 mov $0x9,%eax
}
11674a: 8d 65 f4 lea -0xc(%ebp),%esp
11674d: 5b pop %ebx
11674e: 5e pop %esi
11674f: 5f pop %edi
116750: c9 leave
116751: c3 ret
116752: 66 90 xchg %ax,%ax
rtems_id *id
)
{
register Dual_ported_memory_Control *the_port;
if ( !rtems_is_name_valid( name ) )
116754: b8 03 00 00 00 mov $0x3,%eax
);
*id = the_port->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
116759: 8d 65 f4 lea -0xc(%ebp),%esp
11675c: 5b pop %ebx
11675d: 5e pop %esi
11675e: 5f pop %edi
11675f: c9 leave
116760: c3 ret
116761: 8d 76 00 lea 0x0(%esi),%esi
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
116764: a1 78 27 14 00 mov 0x142778,%eax
116769: 40 inc %eax
11676a: a3 78 27 14 00 mov %eax,0x142778
* of free port control blocks.
*/
RTEMS_INLINE_ROUTINE Dual_ported_memory_Control
*_Dual_ported_memory_Allocate ( void )
{
return (Dual_ported_memory_Control *)
11676f: 83 ec 0c sub $0xc,%esp
116772: 68 c0 25 14 00 push $0x1425c0
116777: 89 55 e4 mov %edx,-0x1c(%ebp)
11677a: e8 15 4c 00 00 call 11b394 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* to prevent deletion */
the_port = _Dual_ported_memory_Allocate();
if ( !the_port ) {
11677f: 83 c4 10 add $0x10,%esp
116782: 85 c0 test %eax,%eax
116784: 8b 55 e4 mov -0x1c(%ebp),%edx
116787: 74 33 je 1167bc <rtems_port_create+0x9c>
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_port->internal_base = internal_start;
116789: 89 50 10 mov %edx,0x10(%eax)
the_port->external_base = external_start;
11678c: 89 78 14 mov %edi,0x14(%eax)
the_port->length = length - 1;
11678f: 8b 55 14 mov 0x14(%ebp),%edx
116792: 4a dec %edx
116793: 89 50 18 mov %edx,0x18(%eax)
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
116796: 8b 50 08 mov 0x8(%eax),%edx
116799: 0f b7 fa movzwl %dx,%edi
11679c: 8b 0d dc 25 14 00 mov 0x1425dc,%ecx
1167a2: 89 04 b9 mov %eax,(%ecx,%edi,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
1167a5: 89 58 0c mov %ebx,0xc(%eax)
&_Dual_ported_memory_Information,
&the_port->Object,
(Objects_Name) name
);
*id = the_port->Object.id;
1167a8: 89 16 mov %edx,(%esi)
_Thread_Enable_dispatch();
1167aa: e8 81 59 00 00 call 11c130 <_Thread_Enable_dispatch>
1167af: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
1167b1: 8d 65 f4 lea -0xc(%ebp),%esp
1167b4: 5b pop %ebx
1167b5: 5e pop %esi
1167b6: 5f pop %edi
1167b7: c9 leave
1167b8: c3 ret
1167b9: 8d 76 00 lea 0x0(%esi),%esi
_Thread_Disable_dispatch(); /* to prevent deletion */
the_port = _Dual_ported_memory_Allocate();
if ( !the_port ) {
_Thread_Enable_dispatch();
1167bc: e8 6f 59 00 00 call 11c130 <_Thread_Enable_dispatch>
1167c1: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
1167c6: eb 82 jmp 11674a <rtems_port_create+0x2a>
001167c8 <rtems_port_delete>:
*/
rtems_status_code rtems_port_delete(
rtems_id id
)
{
1167c8: 55 push %ebp
1167c9: 89 e5 mov %esp,%ebp
1167cb: 83 ec 2c sub $0x2c,%esp
RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Dual_ported_memory_Control *)
1167ce: 8d 45 f4 lea -0xc(%ebp),%eax
1167d1: 50 push %eax
1167d2: ff 75 08 pushl 0x8(%ebp)
1167d5: 68 c0 25 14 00 push $0x1425c0
1167da: e8 a1 50 00 00 call 11b880 <_Objects_Get>
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
1167df: 83 c4 10 add $0x10,%esp
1167e2: 8b 4d f4 mov -0xc(%ebp),%ecx
1167e5: 85 c9 test %ecx,%ecx
1167e7: 75 2f jne 116818 <rtems_port_delete+0x50>
case OBJECTS_LOCAL:
_Objects_Close( &_Dual_ported_memory_Information, &the_port->Object );
1167e9: 83 ec 08 sub $0x8,%esp
1167ec: 50 push %eax
1167ed: 68 c0 25 14 00 push $0x1425c0
1167f2: 89 45 e4 mov %eax,-0x1c(%ebp)
1167f5: e8 16 4c 00 00 call 11b410 <_Objects_Close>
*/
RTEMS_INLINE_ROUTINE void _Dual_ported_memory_Free (
Dual_ported_memory_Control *the_port
)
{
_Objects_Free( &_Dual_ported_memory_Information, &the_port->Object );
1167fa: 58 pop %eax
1167fb: 5a pop %edx
1167fc: 8b 45 e4 mov -0x1c(%ebp),%eax
1167ff: 50 push %eax
116800: 68 c0 25 14 00 push $0x1425c0
116805: e8 0a 4f 00 00 call 11b714 <_Objects_Free>
_Dual_ported_memory_Free( the_port );
_Thread_Enable_dispatch();
11680a: e8 21 59 00 00 call 11c130 <_Thread_Enable_dispatch>
11680f: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
116811: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116814: c9 leave
116815: c3 ret
116816: 66 90 xchg %ax,%ax
{
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
116818: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
11681d: c9 leave
11681e: c3 ret
00116820 <rtems_port_external_to_internal>:
rtems_status_code rtems_port_external_to_internal(
rtems_id id,
void *external,
void **internal
)
{
116820: 55 push %ebp
116821: 89 e5 mov %esp,%ebp
116823: 56 push %esi
116824: 53 push %ebx
116825: 83 ec 10 sub $0x10,%esp
116828: 8b 75 0c mov 0xc(%ebp),%esi
11682b: 8b 5d 10 mov 0x10(%ebp),%ebx
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !internal )
11682e: 85 db test %ebx,%ebx
116830: 74 4e je 116880 <rtems_port_external_to_internal+0x60>
RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Dual_ported_memory_Control *)
116832: 51 push %ecx
116833: 8d 45 f4 lea -0xc(%ebp),%eax
116836: 50 push %eax
116837: ff 75 08 pushl 0x8(%ebp)
11683a: 68 c0 25 14 00 push $0x1425c0
11683f: e8 3c 50 00 00 call 11b880 <_Objects_Get>
return RTEMS_INVALID_ADDRESS;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
116844: 83 c4 10 add $0x10,%esp
116847: 8b 55 f4 mov -0xc(%ebp),%edx
11684a: 85 d2 test %edx,%edx
11684c: 74 0e je 11685c <rtems_port_external_to_internal+0x3c>
11684e: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116853: 8d 65 f8 lea -0x8(%ebp),%esp
116856: 5b pop %ebx
116857: 5e pop %esi
116858: c9 leave
116859: c3 ret
11685a: 66 90 xchg %ax,%ax
return RTEMS_INVALID_ADDRESS;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
ending = _Addresses_Subtract( external, the_port->external_base );
11685c: 89 f2 mov %esi,%edx
11685e: 2b 50 14 sub 0x14(%eax),%edx
if ( ending > the_port->length )
116861: 3b 50 18 cmp 0x18(%eax),%edx
116864: 77 16 ja 11687c <rtems_port_external_to_internal+0x5c>
*internal = external;
else
*internal = _Addresses_Add_offset( the_port->internal_base,
116866: 03 50 10 add 0x10(%eax),%edx
116869: 89 13 mov %edx,(%ebx)
ending );
_Thread_Enable_dispatch();
11686b: e8 c0 58 00 00 call 11c130 <_Thread_Enable_dispatch>
116870: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116872: 8d 65 f8 lea -0x8(%ebp),%esp
116875: 5b pop %ebx
116876: 5e pop %esi
116877: c9 leave
116878: c3 ret
116879: 8d 76 00 lea 0x0(%esi),%esi
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
ending = _Addresses_Subtract( external, the_port->external_base );
if ( ending > the_port->length )
*internal = external;
11687c: 89 33 mov %esi,(%ebx)
11687e: eb eb jmp 11686b <rtems_port_external_to_internal+0x4b>
{
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !internal )
116880: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116885: 8d 65 f8 lea -0x8(%ebp),%esp
116888: 5b pop %ebx
116889: 5e pop %esi
11688a: c9 leave
11688b: c3 ret
001168b0 <rtems_port_internal_to_external>:
rtems_status_code rtems_port_internal_to_external(
rtems_id id,
void *internal,
void **external
)
{
1168b0: 55 push %ebp
1168b1: 89 e5 mov %esp,%ebp
1168b3: 56 push %esi
1168b4: 53 push %ebx
1168b5: 83 ec 10 sub $0x10,%esp
1168b8: 8b 75 0c mov 0xc(%ebp),%esi
1168bb: 8b 5d 10 mov 0x10(%ebp),%ebx
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !external )
1168be: 85 db test %ebx,%ebx
1168c0: 74 4e je 116910 <rtems_port_internal_to_external+0x60>
1168c2: 51 push %ecx
1168c3: 8d 45 f4 lea -0xc(%ebp),%eax
1168c6: 50 push %eax
1168c7: ff 75 08 pushl 0x8(%ebp)
1168ca: 68 c0 25 14 00 push $0x1425c0
1168cf: e8 ac 4f 00 00 call 11b880 <_Objects_Get>
return RTEMS_INVALID_ADDRESS;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
1168d4: 83 c4 10 add $0x10,%esp
1168d7: 8b 55 f4 mov -0xc(%ebp),%edx
1168da: 85 d2 test %edx,%edx
1168dc: 74 0e je 1168ec <rtems_port_internal_to_external+0x3c>
1168de: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1168e3: 8d 65 f8 lea -0x8(%ebp),%esp
1168e6: 5b pop %ebx
1168e7: 5e pop %esi
1168e8: c9 leave
1168e9: c3 ret
1168ea: 66 90 xchg %ax,%ax
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
ending = _Addresses_Subtract( internal, the_port->internal_base );
1168ec: 89 f2 mov %esi,%edx
1168ee: 2b 50 10 sub 0x10(%eax),%edx
if ( ending > the_port->length )
1168f1: 3b 50 18 cmp 0x18(%eax),%edx
1168f4: 77 16 ja 11690c <rtems_port_internal_to_external+0x5c>
*external = internal;
else
*external = _Addresses_Add_offset( the_port->external_base,
1168f6: 03 50 14 add 0x14(%eax),%edx
1168f9: 89 13 mov %edx,(%ebx)
ending );
_Thread_Enable_dispatch();
1168fb: e8 30 58 00 00 call 11c130 <_Thread_Enable_dispatch>
116900: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116902: 8d 65 f8 lea -0x8(%ebp),%esp
116905: 5b pop %ebx
116906: 5e pop %esi
116907: c9 leave
116908: c3 ret
116909: 8d 76 00 lea 0x0(%esi),%esi
switch ( location ) {
case OBJECTS_LOCAL:
ending = _Addresses_Subtract( internal, the_port->internal_base );
if ( ending > the_port->length )
*external = internal;
11690c: 89 33 mov %esi,(%ebx)
11690e: eb eb jmp 1168fb <rtems_port_internal_to_external+0x4b>
{
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !external )
116910: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
116915: 8d 65 f8 lea -0x8(%ebp),%esp
116918: 5b pop %ebx
116919: 5e pop %esi
11691a: c9 leave
11691b: c3 ret
00117370 <rtems_rate_monotonic_cancel>:
*/
rtems_status_code rtems_rate_monotonic_cancel(
rtems_id id
)
{
117370: 55 push %ebp
117371: 89 e5 mov %esp,%ebp
117373: 53 push %ebx
117374: 83 ec 18 sub $0x18,%esp
RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Rate_monotonic_Control *)
117377: 8d 45 f4 lea -0xc(%ebp),%eax
11737a: 50 push %eax
11737b: ff 75 08 pushl 0x8(%ebp)
11737e: 68 40 26 14 00 push $0x142640
117383: e8 f8 44 00 00 call 11b880 <_Objects_Get>
117388: 89 c3 mov %eax,%ebx
Rate_monotonic_Control *the_period;
Objects_Locations location;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
11738a: 83 c4 10 add $0x10,%esp
11738d: 8b 45 f4 mov -0xc(%ebp),%eax
117390: 85 c0 test %eax,%eax
117392: 74 0c je 1173a0 <rtems_rate_monotonic_cancel+0x30>
117394: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
117399: 8b 5d fc mov -0x4(%ebp),%ebx
11739c: c9 leave
11739d: c3 ret
11739e: 66 90 xchg %ax,%ax
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
1173a0: 8b 43 40 mov 0x40(%ebx),%eax
1173a3: 3b 05 38 28 14 00 cmp 0x142838,%eax
1173a9: 74 11 je 1173bc <rtems_rate_monotonic_cancel+0x4c>
_Thread_Enable_dispatch();
1173ab: e8 80 4d 00 00 call 11c130 <_Thread_Enable_dispatch>
1173b0: b8 17 00 00 00 mov $0x17,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1173b5: 8b 5d fc mov -0x4(%ebp),%ebx
1173b8: c9 leave
1173b9: c3 ret
1173ba: 66 90 xchg %ax,%ax
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
_Thread_Enable_dispatch();
return RTEMS_NOT_OWNER_OF_RESOURCE;
}
(void) _Watchdog_Remove( &the_period->Timer );
1173bc: 83 ec 0c sub $0xc,%esp
1173bf: 8d 43 10 lea 0x10(%ebx),%eax
1173c2: 50 push %eax
1173c3: e8 50 61 00 00 call 11d518 <_Watchdog_Remove>
the_period->state = RATE_MONOTONIC_INACTIVE;
1173c8: c7 43 38 00 00 00 00 movl $0x0,0x38(%ebx)
_Thread_Enable_dispatch();
1173cf: e8 5c 4d 00 00 call 11c130 <_Thread_Enable_dispatch>
1173d4: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
1173d6: 83 c4 10 add $0x10,%esp
1173d9: eb be jmp 117399 <rtems_rate_monotonic_cancel+0x29>
0010c96c <rtems_rate_monotonic_create>:
rtems_status_code rtems_rate_monotonic_create(
rtems_name name,
rtems_id *id
)
{
10c96c: 55 push %ebp
10c96d: 89 e5 mov %esp,%ebp
10c96f: 57 push %edi
10c970: 56 push %esi
10c971: 53 push %ebx
10c972: 83 ec 1c sub $0x1c,%esp
10c975: 8b 5d 08 mov 0x8(%ebp),%ebx
10c978: 8b 75 0c mov 0xc(%ebp),%esi
Rate_monotonic_Control *the_period;
if ( !rtems_is_name_valid( name ) )
10c97b: 85 db test %ebx,%ebx
10c97d: 0f 84 a9 00 00 00 je 10ca2c <rtems_rate_monotonic_create+0xc0>
return RTEMS_INVALID_NAME;
if ( !id )
10c983: 85 f6 test %esi,%esi
10c985: 0f 84 c5 00 00 00 je 10ca50 <rtems_rate_monotonic_create+0xe4>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10c98b: a1 78 a4 12 00 mov 0x12a478,%eax
10c990: 40 inc %eax
10c991: a3 78 a4 12 00 mov %eax,0x12a478
* This function allocates a period control block from
* the inactive chain of free period control blocks.
*/
RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void )
{
return (Rate_monotonic_Control *)
10c996: 83 ec 0c sub $0xc,%esp
10c999: 68 80 a3 12 00 push $0x12a380
10c99e: e8 d1 1d 00 00 call 10e774 <_Objects_Allocate>
10c9a3: 89 c2 mov %eax,%edx
_Thread_Disable_dispatch(); /* to prevent deletion */
the_period = _Rate_monotonic_Allocate();
if ( !the_period ) {
10c9a5: 83 c4 10 add $0x10,%esp
10c9a8: 85 c0 test %eax,%eax
10c9aa: 0f 84 8c 00 00 00 je 10ca3c <rtems_rate_monotonic_create+0xd0>
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_period->owner = _Thread_Executing;
10c9b0: a1 38 a5 12 00 mov 0x12a538,%eax
10c9b5: 89 42 40 mov %eax,0x40(%edx)
the_period->state = RATE_MONOTONIC_INACTIVE;
10c9b8: c7 42 38 00 00 00 00 movl $0x0,0x38(%edx)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
10c9bf: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx)
the_watchdog->routine = routine;
10c9c6: c7 42 2c 00 00 00 00 movl $0x0,0x2c(%edx)
the_watchdog->id = id;
10c9cd: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx)
the_watchdog->user_data = user_data;
10c9d4: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx)
_Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL );
_Rate_monotonic_Reset_statistics( the_period );
10c9db: 8d 42 54 lea 0x54(%edx),%eax
10c9de: 89 45 e4 mov %eax,-0x1c(%ebp)
10c9e1: b9 38 00 00 00 mov $0x38,%ecx
10c9e6: 31 c0 xor %eax,%eax
10c9e8: 8b 7d e4 mov -0x1c(%ebp),%edi
10c9eb: f3 aa rep stos %al,%es:(%edi)
10c9ed: c7 42 5c ff ff ff 7f movl $0x7fffffff,0x5c(%edx)
10c9f4: c7 42 60 ff ff ff 7f movl $0x7fffffff,0x60(%edx)
10c9fb: c7 42 74 ff ff ff 7f movl $0x7fffffff,0x74(%edx)
10ca02: c7 42 78 ff ff ff 7f movl $0x7fffffff,0x78(%edx)
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
10ca09: 8b 42 08 mov 0x8(%edx),%eax
10ca0c: 0f b7 f8 movzwl %ax,%edi
10ca0f: 8b 0d 9c a3 12 00 mov 0x12a39c,%ecx
10ca15: 89 14 b9 mov %edx,(%ecx,%edi,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
10ca18: 89 5a 0c mov %ebx,0xc(%edx)
&_Rate_monotonic_Information,
&the_period->Object,
(Objects_Name) name
);
*id = the_period->Object.id;
10ca1b: 89 06 mov %eax,(%esi)
_Thread_Enable_dispatch();
10ca1d: e8 0e 2b 00 00 call 10f530 <_Thread_Enable_dispatch>
10ca22: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
10ca24: 8d 65 f4 lea -0xc(%ebp),%esp
10ca27: 5b pop %ebx
10ca28: 5e pop %esi
10ca29: 5f pop %edi
10ca2a: c9 leave
10ca2b: c3 ret
rtems_id *id
)
{
Rate_monotonic_Control *the_period;
if ( !rtems_is_name_valid( name ) )
10ca2c: b8 03 00 00 00 mov $0x3,%eax
);
*id = the_period->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
10ca31: 8d 65 f4 lea -0xc(%ebp),%esp
10ca34: 5b pop %ebx
10ca35: 5e pop %esi
10ca36: 5f pop %edi
10ca37: c9 leave
10ca38: c3 ret
10ca39: 8d 76 00 lea 0x0(%esi),%esi
_Thread_Disable_dispatch(); /* to prevent deletion */
the_period = _Rate_monotonic_Allocate();
if ( !the_period ) {
_Thread_Enable_dispatch();
10ca3c: e8 ef 2a 00 00 call 10f530 <_Thread_Enable_dispatch>
10ca41: b8 05 00 00 00 mov $0x5,%eax
);
*id = the_period->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
10ca46: 8d 65 f4 lea -0xc(%ebp),%esp
10ca49: 5b pop %ebx
10ca4a: 5e pop %esi
10ca4b: 5f pop %edi
10ca4c: c9 leave
10ca4d: c3 ret
10ca4e: 66 90 xchg %ax,%ax
Rate_monotonic_Control *the_period;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
10ca50: b8 09 00 00 00 mov $0x9,%eax
);
*id = the_period->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
10ca55: 8d 65 f4 lea -0xc(%ebp),%esp
10ca58: 5b pop %ebx
10ca59: 5e pop %esi
10ca5a: 5f pop %edi
10ca5b: c9 leave
10ca5c: c3 ret
001436dc <rtems_rate_monotonic_get_status>:
rtems_status_code rtems_rate_monotonic_get_status(
rtems_id id,
rtems_rate_monotonic_period_status *status
)
{
1436dc: 55 push %ebp
1436dd: 89 e5 mov %esp,%ebp
1436df: 53 push %ebx
1436e0: 83 ec 24 sub $0x24,%esp
1436e3: 8b 5d 0c mov 0xc(%ebp),%ebx
Objects_Locations location;
Rate_monotonic_Period_time_t since_last_period;
Rate_monotonic_Control *the_period;
bool valid_status;
if ( !status )
1436e6: 85 db test %ebx,%ebx
1436e8: 0f 84 92 00 00 00 je 143780 <rtems_rate_monotonic_get_status+0xa4>
1436ee: 50 push %eax
1436ef: 8d 45 f4 lea -0xc(%ebp),%eax
1436f2: 50 push %eax
1436f3: ff 75 08 pushl 0x8(%ebp)
1436f6: 68 c0 33 17 00 push $0x1733c0
1436fb: e8 24 14 fd ff call 114b24 <_Objects_Get>
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
143700: 83 c4 10 add $0x10,%esp
143703: 8b 4d f4 mov -0xc(%ebp),%ecx
143706: 85 c9 test %ecx,%ecx
143708: 74 0a je 143714 <rtems_rate_monotonic_get_status+0x38>
14370a: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
14370f: 8b 5d fc mov -0x4(%ebp),%ebx
143712: c9 leave
143713: c3 ret
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
status->owner = the_period->owner->Object.id;
143714: 8b 50 40 mov 0x40(%eax),%edx
143717: 8b 52 08 mov 0x8(%edx),%edx
14371a: 89 13 mov %edx,(%ebx)
status->state = the_period->state;
14371c: 8b 50 38 mov 0x38(%eax),%edx
14371f: 89 53 04 mov %edx,0x4(%ebx)
/*
* If the period is inactive, there is no information.
*/
if ( status->state == RATE_MONOTONIC_INACTIVE ) {
143722: 85 d2 test %edx,%edx
143724: 75 2a jne 143750 <rtems_rate_monotonic_get_status+0x74>
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timespec_Set_to_zero( &status->since_last_period );
143726: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
14372d: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
_Timespec_Set_to_zero( &status->executed_since_last_period );
143734: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx)
14373b: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx)
status->since_last_period = since_last_period;
status->executed_since_last_period = executed;
#endif
}
_Thread_Enable_dispatch();
143742: e8 d5 1c fd ff call 11541c <_Thread_Enable_dispatch>
143747: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
143749: 8b 5d fc mov -0x4(%ebp),%ebx
14374c: c9 leave
14374d: c3 ret
14374e: 66 90 xchg %ax,%ax
/*
* Grab the current status.
*/
valid_status =
_Rate_monotonic_Get_status(
143750: 52 push %edx
143751: 8d 55 ec lea -0x14(%ebp),%edx
143754: 52 push %edx
143755: 8d 55 e4 lea -0x1c(%ebp),%edx
143758: 52 push %edx
143759: 50 push %eax
14375a: e8 b1 00 00 00 call 143810 <_Rate_monotonic_Get_status>
the_period, &since_last_period, &executed
);
if (!valid_status) {
14375f: 83 c4 10 add $0x10,%esp
143762: 84 c0 test %al,%al
143764: 74 26 je 14378c <rtems_rate_monotonic_get_status+0xb0>
_Thread_Enable_dispatch();
return RTEMS_NOT_DEFINED;
}
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_To_timespec(
143766: 8b 45 e4 mov -0x1c(%ebp),%eax
143769: 8b 55 e8 mov -0x18(%ebp),%edx
14376c: 89 43 08 mov %eax,0x8(%ebx)
14376f: 89 53 0c mov %edx,0xc(%ebx)
&since_last_period, &status->since_last_period
);
_Timestamp_To_timespec(
143772: 8b 45 ec mov -0x14(%ebp),%eax
143775: 8b 55 f0 mov -0x10(%ebp),%edx
143778: 89 43 10 mov %eax,0x10(%ebx)
14377b: 89 53 14 mov %edx,0x14(%ebx)
14377e: eb c2 jmp 143742 <rtems_rate_monotonic_get_status+0x66>
Objects_Locations location;
Rate_monotonic_Period_time_t since_last_period;
Rate_monotonic_Control *the_period;
bool valid_status;
if ( !status )
143780: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
143785: 8b 5d fc mov -0x4(%ebp),%ebx
143788: c9 leave
143789: c3 ret
14378a: 66 90 xchg %ax,%ax
valid_status =
_Rate_monotonic_Get_status(
the_period, &since_last_period, &executed
);
if (!valid_status) {
_Thread_Enable_dispatch();
14378c: e8 8b 1c fd ff call 11541c <_Thread_Enable_dispatch>
143791: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_NOT_DEFINED;
143796: e9 74 ff ff ff jmp 14370f <rtems_rate_monotonic_get_status+0x33>
00143998 <rtems_rate_monotonic_period>:
rtems_status_code rtems_rate_monotonic_period(
rtems_id id,
rtems_interval length
)
{
143998: 55 push %ebp
143999: 89 e5 mov %esp,%ebp
14399b: 57 push %edi
14399c: 56 push %esi
14399d: 53 push %ebx
14399e: 83 ec 30 sub $0x30,%esp
1439a1: 8b 5d 08 mov 0x8(%ebp),%ebx
1439a4: 8b 75 0c mov 0xc(%ebp),%esi
1439a7: 8d 45 e4 lea -0x1c(%ebp),%eax
1439aa: 50 push %eax
1439ab: 53 push %ebx
1439ac: 68 c0 33 17 00 push $0x1733c0
1439b1: e8 6e 11 fd ff call 114b24 <_Objects_Get>
rtems_rate_monotonic_period_states local_state;
ISR_Level level;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
1439b6: 83 c4 10 add $0x10,%esp
1439b9: 8b 7d e4 mov -0x1c(%ebp),%edi
1439bc: 85 ff test %edi,%edi
1439be: 74 10 je 1439d0 <rtems_rate_monotonic_period+0x38>
the_period->state = RATE_MONOTONIC_ACTIVE;
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
return RTEMS_TIMEOUT;
1439c0: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1439c5: 8d 65 f4 lea -0xc(%ebp),%esp
1439c8: 5b pop %ebx
1439c9: 5e pop %esi
1439ca: 5f pop %edi
1439cb: c9 leave
1439cc: c3 ret
1439cd: 8d 76 00 lea 0x0(%esi),%esi
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
1439d0: 8b 50 40 mov 0x40(%eax),%edx
1439d3: 3b 15 78 2f 17 00 cmp 0x172f78,%edx
1439d9: 74 15 je 1439f0 <rtems_rate_monotonic_period+0x58>
_Thread_Enable_dispatch();
1439db: e8 3c 1a fd ff call 11541c <_Thread_Enable_dispatch>
1439e0: b8 17 00 00 00 mov $0x17,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1439e5: 8d 65 f4 lea -0xc(%ebp),%esp
1439e8: 5b pop %ebx
1439e9: 5e pop %esi
1439ea: 5f pop %edi
1439eb: c9 leave
1439ec: c3 ret
1439ed: 8d 76 00 lea 0x0(%esi),%esi
if ( !_Thread_Is_executing( the_period->owner ) ) {
_Thread_Enable_dispatch();
return RTEMS_NOT_OWNER_OF_RESOURCE;
}
if ( length == RTEMS_PERIOD_STATUS ) {
1439f0: 85 f6 test %esi,%esi
1439f2: 0f 84 b0 00 00 00 je 143aa8 <rtems_rate_monotonic_period+0x110>
}
_Thread_Enable_dispatch();
return( return_value );
}
_ISR_Disable( level );
1439f8: 9c pushf
1439f9: fa cli
1439fa: 5f pop %edi
switch ( the_period->state ) {
1439fb: 8b 50 38 mov 0x38(%eax),%edx
1439fe: 83 fa 02 cmp $0x2,%edx
143a01: 0f 84 bd 00 00 00 je 143ac4 <rtems_rate_monotonic_period+0x12c>
143a07: 83 fa 04 cmp $0x4,%edx
143a0a: 74 5c je 143a68 <rtems_rate_monotonic_period+0xd0>
143a0c: 85 d2 test %edx,%edx
143a0e: 75 b0 jne 1439c0 <rtems_rate_monotonic_period+0x28><== NEVER TAKEN
case RATE_MONOTONIC_INACTIVE: {
_ISR_Enable( level );
143a10: 57 push %edi
143a11: 9d popf
/*
* Baseline statistics information for the beginning of a period.
*/
_Rate_monotonic_Initiate_statistics( the_period );
143a12: 83 ec 0c sub $0xc,%esp
143a15: 50 push %eax
143a16: 89 45 d4 mov %eax,-0x2c(%ebp)
143a19: e8 7e fd ff ff call 14379c <_Rate_monotonic_Initiate_statistics>
the_period->state = RATE_MONOTONIC_ACTIVE;
143a1e: 8b 45 d4 mov -0x2c(%ebp),%eax
143a21: c7 40 38 02 00 00 00 movl $0x2,0x38(%eax)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
143a28: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax)
the_watchdog->routine = routine;
143a2f: c7 40 2c 48 3b 14 00 movl $0x143b48,0x2c(%eax)
the_watchdog->id = id;
143a36: 89 58 30 mov %ebx,0x30(%eax)
the_watchdog->user_data = user_data;
143a39: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax)
_Rate_monotonic_Timeout,
id,
NULL
);
the_period->next_length = length;
143a40: 89 70 3c mov %esi,0x3c(%eax)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
143a43: 89 70 1c mov %esi,0x1c(%eax)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
143a46: 5a pop %edx
143a47: 59 pop %ecx
143a48: 83 c0 10 add $0x10,%eax
143a4b: 50 push %eax
143a4c: 68 98 2f 17 00 push $0x172f98
143a51: e8 f2 28 fd ff call 116348 <_Watchdog_Insert>
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
143a56: e8 c1 19 fd ff call 11541c <_Thread_Enable_dispatch>
143a5b: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
143a5d: 83 c4 10 add $0x10,%esp
143a60: e9 60 ff ff ff jmp 1439c5 <rtems_rate_monotonic_period+0x2d>
143a65: 8d 76 00 lea 0x0(%esi),%esi
case RATE_MONOTONIC_EXPIRED:
/*
* Update statistics from the concluding period
*/
_Rate_monotonic_Update_statistics( the_period );
143a68: 83 ec 0c sub $0xc,%esp
143a6b: 50 push %eax
143a6c: 89 45 d4 mov %eax,-0x2c(%ebp)
143a6f: e8 34 fe ff ff call 1438a8 <_Rate_monotonic_Update_statistics>
_ISR_Enable( level );
143a74: 57 push %edi
143a75: 9d popf
the_period->state = RATE_MONOTONIC_ACTIVE;
143a76: 8b 45 d4 mov -0x2c(%ebp),%eax
143a79: c7 40 38 02 00 00 00 movl $0x2,0x38(%eax)
the_period->next_length = length;
143a80: 89 70 3c mov %esi,0x3c(%eax)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
143a83: 89 70 1c mov %esi,0x1c(%eax)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
143a86: 59 pop %ecx
143a87: 5b pop %ebx
143a88: 83 c0 10 add $0x10,%eax
143a8b: 50 push %eax
143a8c: 68 98 2f 17 00 push $0x172f98
143a91: e8 b2 28 fd ff call 116348 <_Watchdog_Insert>
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
143a96: e8 81 19 fd ff call 11541c <_Thread_Enable_dispatch>
143a9b: b8 06 00 00 00 mov $0x6,%eax
return RTEMS_TIMEOUT;
143aa0: 83 c4 10 add $0x10,%esp
143aa3: e9 1d ff ff ff jmp 1439c5 <rtems_rate_monotonic_period+0x2d>
_Thread_Enable_dispatch();
return RTEMS_NOT_OWNER_OF_RESOURCE;
}
if ( length == RTEMS_PERIOD_STATUS ) {
switch ( the_period->state ) {
143aa8: 8b 40 38 mov 0x38(%eax),%eax
143aab: 83 f8 04 cmp $0x4,%eax
143aae: 76 74 jbe 143b24 <rtems_rate_monotonic_period+0x18c><== ALWAYS TAKEN
143ab0: 31 c0 xor %eax,%eax
case RATE_MONOTONIC_ACTIVE:
default: /* unreached -- only to remove warnings */
return_value = RTEMS_SUCCESSFUL;
break;
}
_Thread_Enable_dispatch();
143ab2: 89 45 d4 mov %eax,-0x2c(%ebp)
143ab5: e8 62 19 fd ff call 11541c <_Thread_Enable_dispatch>
return( return_value );
143aba: 8b 45 d4 mov -0x2c(%ebp),%eax
143abd: e9 03 ff ff ff jmp 1439c5 <rtems_rate_monotonic_period+0x2d>
143ac2: 66 90 xchg %ax,%ax
case RATE_MONOTONIC_ACTIVE:
/*
* Update statistics from the concluding period.
*/
_Rate_monotonic_Update_statistics( the_period );
143ac4: 83 ec 0c sub $0xc,%esp
143ac7: 50 push %eax
143ac8: 89 45 d4 mov %eax,-0x2c(%ebp)
143acb: e8 d8 fd ff ff call 1438a8 <_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;
143ad0: 8b 45 d4 mov -0x2c(%ebp),%eax
143ad3: c7 40 38 01 00 00 00 movl $0x1,0x38(%eax)
the_period->next_length = length;
143ada: 89 70 3c mov %esi,0x3c(%eax)
_ISR_Enable( level );
143add: 57 push %edi
143ade: 9d popf
_Thread_Executing->Wait.id = the_period->Object.id;
143adf: 8b 15 78 2f 17 00 mov 0x172f78,%edx
143ae5: 8b 48 08 mov 0x8(%eax),%ecx
143ae8: 89 4a 20 mov %ecx,0x20(%edx)
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
143aeb: 5e pop %esi
143aec: 5f pop %edi
143aed: 68 00 40 00 00 push $0x4000
143af2: 52 push %edx
143af3: 89 45 d4 mov %eax,-0x2c(%ebp)
143af6: e8 fd 21 fd ff call 115cf8 <_Thread_Set_state>
/*
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
143afb: 9c pushf
143afc: fa cli
143afd: 59 pop %ecx
local_state = the_period->state;
143afe: 8b 45 d4 mov -0x2c(%ebp),%eax
143b01: 8b 50 38 mov 0x38(%eax),%edx
the_period->state = RATE_MONOTONIC_ACTIVE;
143b04: c7 40 38 02 00 00 00 movl $0x2,0x38(%eax)
_ISR_Enable( level );
143b0b: 51 push %ecx
143b0c: 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 )
143b0d: 83 c4 10 add $0x10,%esp
143b10: 83 fa 03 cmp $0x3,%edx
143b13: 74 18 je 143b2d <rtems_rate_monotonic_period+0x195>
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
_Thread_Enable_dispatch();
143b15: e8 02 19 fd ff call 11541c <_Thread_Enable_dispatch>
143b1a: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
143b1c: e9 a4 fe ff ff jmp 1439c5 <rtems_rate_monotonic_period+0x2d>
143b21: 8d 76 00 lea 0x0(%esi),%esi
_Thread_Enable_dispatch();
return RTEMS_NOT_OWNER_OF_RESOURCE;
}
if ( length == RTEMS_PERIOD_STATUS ) {
switch ( the_period->state ) {
143b24: 8b 04 85 4c 85 16 00 mov 0x16854c(,%eax,4),%eax
143b2b: eb 85 jmp 143ab2 <rtems_rate_monotonic_period+0x11a>
/*
* 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 )
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
143b2d: 83 ec 08 sub $0x8,%esp
143b30: 68 00 40 00 00 push $0x4000
143b35: ff 35 78 2f 17 00 pushl 0x172f78
143b3b: e8 34 15 fd ff call 115074 <_Thread_Clear_state>
143b40: 83 c4 10 add $0x10,%esp
143b43: eb d0 jmp 143b15 <rtems_rate_monotonic_period+0x17d>
00130434 <rtems_rate_monotonic_report_statistics_with_plugin>:
*/
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
130434: 55 push %ebp
130435: 89 e5 mov %esp,%ebp
130437: 57 push %edi
130438: 56 push %esi
130439: 53 push %ebx
13043a: 83 ec 7c sub $0x7c,%esp
13043d: 8b 7d 08 mov 0x8(%ebp),%edi
130440: 8b 75 0c mov 0xc(%ebp),%esi
rtems_id id;
rtems_rate_monotonic_period_statistics the_stats;
rtems_rate_monotonic_period_status the_status;
char name[5];
if ( !print )
130443: 85 f6 test %esi,%esi
130445: 0f 84 bd 00 00 00 je 130508 <rtems_rate_monotonic_report_statistics_with_plugin+0xd4><== NEVER TAKEN
return;
(*print)( context, "Period information by period\n" );
13044b: 83 ec 08 sub $0x8,%esp
13044e: 68 88 49 16 00 push $0x164988
130453: 57 push %edi
130454: ff d6 call *%esi
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)( context, "--- CPU times are in seconds ---\n" );
130456: 59 pop %ecx
130457: 5b pop %ebx
130458: 68 c0 49 16 00 push $0x1649c0
13045d: 57 push %edi
13045e: ff d6 call *%esi
(*print)( context, "--- Wall times are in seconds ---\n" );
130460: 58 pop %eax
130461: 5a pop %edx
130462: 68 e4 49 16 00 push $0x1649e4
130467: 57 push %edi
130468: ff d6 call *%esi
Be sure to test the various cases.
(*print)( context,"\
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");
*/
(*print)( context, " ID OWNER COUNT MISSED "
13046a: 59 pop %ecx
13046b: 5b pop %ebx
13046c: 68 08 4a 16 00 push $0x164a08
130471: 57 push %edi
130472: ff d6 call *%esi
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
" "
#endif
" WALL TIME\n"
);
(*print)( context, " "
130474: 58 pop %eax
130475: 5a pop %edx
130476: 68 54 4a 16 00 push $0x164a54
13047b: 57 push %edi
13047c: ff d6 call *%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 ;
13047e: 8b 1d c8 33 17 00 mov 0x1733c8,%ebx
130484: 83 c4 10 add $0x10,%esp
130487: 3b 1d cc 33 17 00 cmp 0x1733cc,%ebx
13048d: 77 79 ja 130508 <rtems_rate_monotonic_report_statistics_with_plugin+0xd4><== NEVER TAKEN
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);
13048f: 89 75 84 mov %esi,-0x7c(%ebp)
130492: eb 09 jmp 13049d <rtems_rate_monotonic_report_statistics_with_plugin+0x69>
* 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++ ) {
130494: 43 inc %ebx
/*
* 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 ;
130495: 39 1d cc 33 17 00 cmp %ebx,0x1733cc
13049b: 72 6b jb 130508 <rtems_rate_monotonic_report_statistics_with_plugin+0xd4>
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
13049d: 83 ec 08 sub $0x8,%esp
1304a0: 8d 45 88 lea -0x78(%ebp),%eax
1304a3: 50 push %eax
1304a4: 53 push %ebx
1304a5: e8 86 31 01 00 call 143630 <rtems_rate_monotonic_get_statistics>
if ( status != RTEMS_SUCCESSFUL )
1304aa: 83 c4 10 add $0x10,%esp
1304ad: 85 c0 test %eax,%eax
1304af: 75 e3 jne 130494 <rtems_rate_monotonic_report_statistics_with_plugin+0x60>
continue;
/* If the above passed, so should this but check it anyway */
status = rtems_rate_monotonic_get_status( id, &the_status );
1304b1: 83 ec 08 sub $0x8,%esp
1304b4: 8d 55 c0 lea -0x40(%ebp),%edx
1304b7: 52 push %edx
1304b8: 53 push %ebx
1304b9: e8 1e 32 01 00 call 1436dc <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 );
1304be: 83 c4 0c add $0xc,%esp
1304c1: 8d 45 e3 lea -0x1d(%ebp),%eax
1304c4: 50 push %eax
1304c5: 6a 05 push $0x5
1304c7: ff 75 c0 pushl -0x40(%ebp)
1304ca: e8 49 27 fe ff call 112c18 <rtems_object_get_name>
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
1304cf: 59 pop %ecx
1304d0: 5e pop %esi
1304d1: ff 75 8c pushl -0x74(%ebp)
1304d4: ff 75 88 pushl -0x78(%ebp)
1304d7: 8d 55 e3 lea -0x1d(%ebp),%edx
1304da: 52 push %edx
1304db: 53 push %ebx
1304dc: 68 a6 49 16 00 push $0x1649a6
1304e1: 57 push %edi
1304e2: ff 55 84 call *-0x7c(%ebp)
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
1304e5: 8b 45 88 mov -0x78(%ebp),%eax
1304e8: 83 c4 20 add $0x20,%esp
1304eb: 85 c0 test %eax,%eax
1304ed: 75 21 jne 130510 <rtems_rate_monotonic_report_statistics_with_plugin+0xdc>
(*print)( context, "\n" );
1304ef: 83 ec 08 sub $0x8,%esp
1304f2: 68 89 67 16 00 push $0x166789
1304f7: 57 push %edi
1304f8: ff 55 84 call *-0x7c(%ebp)
continue;
1304fb: 83 c4 10 add $0x10,%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++ ) {
1304fe: 43 inc %ebx
/*
* 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 ;
1304ff: 39 1d cc 33 17 00 cmp %ebx,0x1733cc
130505: 73 96 jae 13049d <rtems_rate_monotonic_report_statistics_with_plugin+0x69><== ALWAYS TAKEN
130507: 90 nop
the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
);
#endif
}
}
}
130508: 8d 65 f4 lea -0xc(%ebp),%esp
13050b: 5b pop %ebx
13050c: 5e pop %esi
13050d: 5f pop %edi
13050e: c9 leave
13050f: c3 ret
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 );
130510: 52 push %edx
130511: 8d 55 d8 lea -0x28(%ebp),%edx
130514: 52 push %edx
130515: 50 push %eax
130516: 8d 45 a0 lea -0x60(%ebp),%eax
130519: 50 push %eax
13051a: e8 fd 13 00 00 call 13191c <_Timespec_Divide_by_integer>
(*print)( context,
13051f: 8b 4d dc mov -0x24(%ebp),%ecx
130522: be d3 4d 62 10 mov $0x10624dd3,%esi
130527: 89 c8 mov %ecx,%eax
130529: f7 ee imul %esi
13052b: 89 95 7c ff ff ff mov %edx,-0x84(%ebp)
130531: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax
130537: c1 f8 06 sar $0x6,%eax
13053a: c1 f9 1f sar $0x1f,%ecx
13053d: 29 c8 sub %ecx,%eax
13053f: 50 push %eax
130540: ff 75 d8 pushl -0x28(%ebp)
130543: 8b 4d 9c mov -0x64(%ebp),%ecx
130546: 89 c8 mov %ecx,%eax
130548: f7 ee imul %esi
13054a: 89 95 7c ff ff ff mov %edx,-0x84(%ebp)
130550: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax
130556: c1 f8 06 sar $0x6,%eax
130559: c1 f9 1f sar $0x1f,%ecx
13055c: 29 c8 sub %ecx,%eax
13055e: 50 push %eax
13055f: ff 75 98 pushl -0x68(%ebp)
130562: 8b 4d 94 mov -0x6c(%ebp),%ecx
130565: 89 c8 mov %ecx,%eax
130567: f7 ee imul %esi
130569: 89 85 78 ff ff ff mov %eax,-0x88(%ebp)
13056f: 89 95 7c ff ff ff mov %edx,-0x84(%ebp)
130575: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax
13057b: c1 f8 06 sar $0x6,%eax
13057e: c1 f9 1f sar $0x1f,%ecx
130581: 29 c8 sub %ecx,%eax
130583: 50 push %eax
130584: ff 75 90 pushl -0x70(%ebp)
130587: 68 a0 4a 16 00 push $0x164aa0
13058c: 57 push %edi
13058d: ff 55 84 call *-0x7c(%ebp)
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);
130590: 83 c4 2c add $0x2c,%esp
130593: 8d 55 d8 lea -0x28(%ebp),%edx
130596: 52 push %edx
130597: ff 75 88 pushl -0x78(%ebp)
13059a: 8d 45 b8 lea -0x48(%ebp),%eax
13059d: 50 push %eax
13059e: e8 79 13 00 00 call 13191c <_Timespec_Divide_by_integer>
(*print)( context,
1305a3: 8b 4d dc mov -0x24(%ebp),%ecx
1305a6: 89 c8 mov %ecx,%eax
1305a8: f7 ee imul %esi
1305aa: 89 95 7c ff ff ff mov %edx,-0x84(%ebp)
1305b0: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax
1305b6: c1 f8 06 sar $0x6,%eax
1305b9: c1 f9 1f sar $0x1f,%ecx
1305bc: 29 c8 sub %ecx,%eax
1305be: 50 push %eax
1305bf: ff 75 d8 pushl -0x28(%ebp)
1305c2: 8b 4d b4 mov -0x4c(%ebp),%ecx
1305c5: 89 c8 mov %ecx,%eax
1305c7: f7 ee imul %esi
1305c9: 89 95 7c ff ff ff mov %edx,-0x84(%ebp)
1305cf: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax
1305d5: c1 f8 06 sar $0x6,%eax
1305d8: c1 f9 1f sar $0x1f,%ecx
1305db: 29 c8 sub %ecx,%eax
1305dd: 50 push %eax
1305de: ff 75 b0 pushl -0x50(%ebp)
1305e1: 8b 4d ac mov -0x54(%ebp),%ecx
1305e4: 89 c8 mov %ecx,%eax
1305e6: f7 ee imul %esi
1305e8: 89 85 78 ff ff ff mov %eax,-0x88(%ebp)
1305ee: 89 95 7c ff ff ff mov %edx,-0x84(%ebp)
1305f4: 8b b5 7c ff ff ff mov -0x84(%ebp),%esi
1305fa: c1 fe 06 sar $0x6,%esi
1305fd: 89 c8 mov %ecx,%eax
1305ff: 99 cltd
130600: 29 d6 sub %edx,%esi
130602: 56 push %esi
130603: ff 75 a8 pushl -0x58(%ebp)
130606: 68 c0 4a 16 00 push $0x164ac0
13060b: 57 push %edi
13060c: ff 55 84 call *-0x7c(%ebp)
13060f: 83 c4 30 add $0x30,%esp
130612: e9 7d fe ff ff jmp 130494 <rtems_rate_monotonic_report_statistics_with_plugin+0x60>
00130630 <rtems_rate_monotonic_reset_all_statistics>:
/*
* rtems_rate_monotonic_reset_all_statistics
*/
void rtems_rate_monotonic_reset_all_statistics( void )
{
130630: 55 push %ebp
130631: 89 e5 mov %esp,%ebp
130633: 53 push %ebx
130634: 83 ec 04 sub $0x4,%esp
130637: a1 b8 2e 17 00 mov 0x172eb8,%eax
13063c: 40 inc %eax
13063d: a3 b8 2e 17 00 mov %eax,0x172eb8
/*
* Cycle through all possible ids and try to reset 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 ;
130642: 8b 1d c8 33 17 00 mov 0x1733c8,%ebx
130648: 3b 1d cc 33 17 00 cmp 0x1733cc,%ebx
13064e: 77 15 ja 130665 <rtems_rate_monotonic_reset_all_statistics+0x35><== NEVER TAKEN
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_reset_statistics( id );
130650: 83 ec 0c sub $0xc,%esp
130653: 53 push %ebx
130654: e8 17 00 00 00 call 130670 <rtems_rate_monotonic_reset_statistics>
* Cycle through all possible ids and try to reset 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++ ) {
130659: 43 inc %ebx
/*
* Cycle through all possible ids and try to reset 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 ;
13065a: 83 c4 10 add $0x10,%esp
13065d: 39 1d cc 33 17 00 cmp %ebx,0x1733cc
130663: 73 eb jae 130650 <rtems_rate_monotonic_reset_all_statistics+0x20>
/*
* Done so exit thread dispatching disabled critical section.
*/
_Thread_Enable_dispatch();
}
130665: 8b 5d fc mov -0x4(%ebp),%ebx
130668: c9 leave
}
/*
* Done so exit thread dispatching disabled critical section.
*/
_Thread_Enable_dispatch();
130669: e9 ae 4d fe ff jmp 11541c <_Thread_Enable_dispatch>
00130670 <rtems_rate_monotonic_reset_statistics>:
*/
rtems_status_code rtems_rate_monotonic_reset_statistics(
rtems_id id
)
{
130670: 55 push %ebp
130671: 89 e5 mov %esp,%ebp
130673: 57 push %edi
130674: 53 push %ebx
130675: 83 ec 14 sub $0x14,%esp
RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Rate_monotonic_Control *)
130678: 8d 45 f4 lea -0xc(%ebp),%eax
13067b: 50 push %eax
13067c: ff 75 08 pushl 0x8(%ebp)
13067f: 68 c0 33 17 00 push $0x1733c0
130684: e8 9b 44 fe ff call 114b24 <_Objects_Get>
130689: 89 c2 mov %eax,%edx
Objects_Locations location;
Rate_monotonic_Control *the_period;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
13068b: 83 c4 10 add $0x10,%esp
13068e: 8b 45 f4 mov -0xc(%ebp),%eax
130691: 85 c0 test %eax,%eax
130693: 75 3b jne 1306d0 <rtems_rate_monotonic_reset_statistics+0x60>
case OBJECTS_LOCAL:
_Rate_monotonic_Reset_statistics( the_period );
130695: 8d 5a 54 lea 0x54(%edx),%ebx
130698: b9 38 00 00 00 mov $0x38,%ecx
13069d: 31 c0 xor %eax,%eax
13069f: 89 df mov %ebx,%edi
1306a1: f3 aa rep stos %al,%es:(%edi)
1306a3: c7 42 5c ff ff ff 7f movl $0x7fffffff,0x5c(%edx)
1306aa: c7 42 60 ff ff ff 7f movl $0x7fffffff,0x60(%edx)
1306b1: c7 42 74 ff ff ff 7f movl $0x7fffffff,0x74(%edx)
1306b8: c7 42 78 ff ff ff 7f movl $0x7fffffff,0x78(%edx)
_Thread_Enable_dispatch();
1306bf: e8 58 4d fe ff call 11541c <_Thread_Enable_dispatch>
1306c4: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1306c6: 8d 65 f8 lea -0x8(%ebp),%esp
1306c9: 5b pop %ebx
1306ca: 5f pop %edi
1306cb: c9 leave
1306cc: c3 ret
1306cd: 8d 76 00 lea 0x0(%esi),%esi
{
Objects_Locations location;
Rate_monotonic_Control *the_period;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
1306d0: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1306d5: 8d 65 f8 lea -0x8(%ebp),%esp
1306d8: 5b pop %ebx
1306d9: 5f pop %edi
1306da: c9 leave
1306db: c3 ret
00117b14 <rtems_region_create>:
uintptr_t length,
uintptr_t page_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
117b14: 55 push %ebp
117b15: 89 e5 mov %esp,%ebp
117b17: 57 push %edi
117b18: 56 push %esi
117b19: 53 push %ebx
117b1a: 83 ec 1c sub $0x1c,%esp
117b1d: 8b 75 08 mov 0x8(%ebp),%esi
117b20: 8b 5d 0c mov 0xc(%ebp),%ebx
117b23: 8b 7d 1c mov 0x1c(%ebp),%edi
rtems_status_code return_status;
Region_Control *the_region;
if ( !rtems_is_name_valid( name ) )
117b26: 85 f6 test %esi,%esi
117b28: 0f 84 92 00 00 00 je 117bc0 <rtems_region_create+0xac>
return RTEMS_INVALID_NAME;
if ( !starting_address )
117b2e: 85 db test %ebx,%ebx
117b30: 74 09 je 117b3b <rtems_region_create+0x27>
return RTEMS_INVALID_ADDRESS;
if ( !id )
117b32: 85 ff test %edi,%edi
117b34: 74 05 je 117b3b <rtems_region_create+0x27>
return RTEMS_INVALID_ADDRESS;
if ( !_Addresses_Is_aligned( starting_address ) )
117b36: f6 c3 03 test $0x3,%bl
117b39: 74 0d je 117b48 <rtems_region_create+0x34>
return_status = RTEMS_SUCCESSFUL;
}
}
_RTEMS_Unlock_allocator();
return return_status;
117b3b: b8 09 00 00 00 mov $0x9,%eax
}
117b40: 8d 65 f4 lea -0xc(%ebp),%esp
117b43: 5b pop %ebx
117b44: 5e pop %esi
117b45: 5f pop %edi
117b46: c9 leave
117b47: c3 ret
return RTEMS_INVALID_ADDRESS;
if ( !_Addresses_Is_aligned( starting_address ) )
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator(); /* to prevent deletion */
117b48: 83 ec 0c sub $0xc,%esp
117b4b: ff 35 30 28 14 00 pushl 0x142830
117b51: e8 d6 24 00 00 call 11a02c <_API_Mutex_Lock>
* This function allocates a region control block from
* the inactive chain of free region control blocks.
*/
RTEMS_INLINE_ROUTINE Region_Control *_Region_Allocate( void )
{
return (Region_Control *) _Objects_Allocate( &_Region_Information );
117b56: c7 04 24 80 26 14 00 movl $0x142680,(%esp)
117b5d: e8 32 38 00 00 call 11b394 <_Objects_Allocate>
117b62: 89 c2 mov %eax,%edx
the_region = _Region_Allocate();
if ( !the_region )
117b64: 83 c4 10 add $0x10,%esp
117b67: 85 c0 test %eax,%eax
117b69: 74 65 je 117bd0 <rtems_region_create+0xbc>
return_status = RTEMS_TOO_MANY;
else {
the_region->maximum_segment_size = _Heap_Initialize(
117b6b: ff 75 14 pushl 0x14(%ebp)
117b6e: ff 75 10 pushl 0x10(%ebp)
117b71: 53 push %ebx
117b72: 8d 40 68 lea 0x68(%eax),%eax
117b75: 50 push %eax
117b76: 89 55 e4 mov %edx,-0x1c(%ebp)
117b79: e8 fa 32 00 00 call 11ae78 <_Heap_Initialize>
117b7e: 8b 55 e4 mov -0x1c(%ebp),%edx
117b81: 89 42 5c mov %eax,0x5c(%edx)
&the_region->Memory, starting_address, length, page_size
);
if ( !the_region->maximum_segment_size ) {
117b84: 83 c4 10 add $0x10,%esp
117b87: 85 c0 test %eax,%eax
117b89: 75 4d jne 117bd8 <rtems_region_create+0xc4>
*/
RTEMS_INLINE_ROUTINE void _Region_Free (
Region_Control *the_region
)
{
_Objects_Free( &_Region_Information, &the_region->Object );
117b8b: 83 ec 08 sub $0x8,%esp
117b8e: 52 push %edx
117b8f: 68 80 26 14 00 push $0x142680
117b94: e8 7b 3b 00 00 call 11b714 <_Objects_Free>
117b99: b8 08 00 00 00 mov $0x8,%eax
117b9e: 83 c4 10 add $0x10,%esp
*id = the_region->Object.id;
return_status = RTEMS_SUCCESSFUL;
}
}
_RTEMS_Unlock_allocator();
117ba1: 83 ec 0c sub $0xc,%esp
117ba4: ff 35 30 28 14 00 pushl 0x142830
117baa: 89 45 e4 mov %eax,-0x1c(%ebp)
117bad: e8 c2 24 00 00 call 11a074 <_API_Mutex_Unlock>
return return_status;
117bb2: 83 c4 10 add $0x10,%esp
117bb5: 8b 45 e4 mov -0x1c(%ebp),%eax
}
117bb8: 8d 65 f4 lea -0xc(%ebp),%esp
117bbb: 5b pop %ebx
117bbc: 5e pop %esi
117bbd: 5f pop %edi
117bbe: c9 leave
117bbf: c3 ret
)
{
rtems_status_code return_status;
Region_Control *the_region;
if ( !rtems_is_name_valid( name ) )
117bc0: b8 03 00 00 00 mov $0x3,%eax
}
}
_RTEMS_Unlock_allocator();
return return_status;
}
117bc5: 8d 65 f4 lea -0xc(%ebp),%esp
117bc8: 5b pop %ebx
117bc9: 5e pop %esi
117bca: 5f pop %edi
117bcb: c9 leave
117bcc: c3 ret
117bcd: 8d 76 00 lea 0x0(%esi),%esi
_RTEMS_Lock_allocator(); /* to prevent deletion */
the_region = _Region_Allocate();
if ( !the_region )
117bd0: b8 05 00 00 00 mov $0x5,%eax
117bd5: eb ca jmp 117ba1 <rtems_region_create+0x8d>
117bd7: 90 nop
return_status = RTEMS_INVALID_SIZE;
}
else {
the_region->starting_address = starting_address;
117bd8: 89 5a 50 mov %ebx,0x50(%edx)
the_region->length = length;
117bdb: 8b 45 10 mov 0x10(%ebp),%eax
117bde: 89 42 54 mov %eax,0x54(%edx)
the_region->page_size = page_size;
117be1: 8b 45 14 mov 0x14(%ebp),%eax
117be4: 89 42 58 mov %eax,0x58(%edx)
the_region->attribute_set = attribute_set;
117be7: 8b 45 18 mov 0x18(%ebp),%eax
117bea: 89 42 60 mov %eax,0x60(%edx)
the_region->number_of_used_blocks = 0;
117bed: c7 42 64 00 00 00 00 movl $0x0,0x64(%edx)
_Thread_queue_Initialize(
117bf4: 6a 06 push $0x6
117bf6: 6a 40 push $0x40
117bf8: 8b 45 18 mov 0x18(%ebp),%eax
117bfb: c1 e8 02 shr $0x2,%eax
117bfe: 83 e0 01 and $0x1,%eax
117c01: 50 push %eax
117c02: 8d 42 10 lea 0x10(%edx),%eax
117c05: 50 push %eax
117c06: 89 55 e4 mov %edx,-0x1c(%ebp)
117c09: e8 aa 4c 00 00 call 11c8b8 <_Thread_queue_Initialize>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
117c0e: 8b 55 e4 mov -0x1c(%ebp),%edx
117c11: 8b 42 08 mov 0x8(%edx),%eax
117c14: 0f b7 d8 movzwl %ax,%ebx
117c17: 8b 0d 9c 26 14 00 mov 0x14269c,%ecx
117c1d: 89 14 99 mov %edx,(%ecx,%ebx,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
117c20: 89 72 0c mov %esi,0xc(%edx)
&_Region_Information,
&the_region->Object,
(Objects_Name) name
);
*id = the_region->Object.id;
117c23: 89 07 mov %eax,(%edi)
117c25: 31 c0 xor %eax,%eax
117c27: 83 c4 10 add $0x10,%esp
117c2a: e9 72 ff ff ff jmp 117ba1 <rtems_region_create+0x8d>
00117c30 <rtems_region_delete>:
*/
rtems_status_code rtems_region_delete(
rtems_id id
)
{
117c30: 55 push %ebp
117c31: 89 e5 mov %esp,%ebp
117c33: 53 push %ebx
117c34: 83 ec 30 sub $0x30,%esp
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
_RTEMS_Lock_allocator();
117c37: ff 35 30 28 14 00 pushl 0x142830
117c3d: e8 ea 23 00 00 call 11a02c <_API_Mutex_Lock>
RTEMS_INLINE_ROUTINE Region_Control *_Region_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Region_Control *)
117c42: 83 c4 0c add $0xc,%esp
117c45: 8d 45 f4 lea -0xc(%ebp),%eax
117c48: 50 push %eax
117c49: ff 75 08 pushl 0x8(%ebp)
117c4c: 68 80 26 14 00 push $0x142680
117c51: e8 ee 3b 00 00 call 11b844 <_Objects_Get_no_protection>
the_region = _Region_Get( id, &location );
switch ( location ) {
117c56: 83 c4 10 add $0x10,%esp
117c59: 8b 5d f4 mov -0xc(%ebp),%ebx
117c5c: 85 db test %ebx,%ebx
117c5e: 74 1c je 117c7c <rtems_region_delete+0x4c>
117c60: bb 04 00 00 00 mov $0x4,%ebx
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
117c65: 83 ec 0c sub $0xc,%esp
117c68: ff 35 30 28 14 00 pushl 0x142830
117c6e: e8 01 24 00 00 call 11a074 <_API_Mutex_Unlock>
return return_status;
}
117c73: 89 d8 mov %ebx,%eax
117c75: 8b 5d fc mov -0x4(%ebp),%ebx
117c78: c9 leave
117c79: c3 ret
117c7a: 66 90 xchg %ax,%ax
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
_Region_Debug_Walk( the_region, 5 );
if ( the_region->number_of_used_blocks != 0 )
117c7c: 8b 48 64 mov 0x64(%eax),%ecx
117c7f: 85 c9 test %ecx,%ecx
117c81: 74 09 je 117c8c <rtems_region_delete+0x5c>
117c83: bb 0c 00 00 00 mov $0xc,%ebx
117c88: eb db jmp 117c65 <rtems_region_delete+0x35>
117c8a: 66 90 xchg %ax,%ax
return_status = RTEMS_RESOURCE_IN_USE;
else {
_Objects_Close( &_Region_Information, &the_region->Object );
117c8c: 83 ec 08 sub $0x8,%esp
117c8f: 50 push %eax
117c90: 68 80 26 14 00 push $0x142680
117c95: 89 45 e4 mov %eax,-0x1c(%ebp)
117c98: e8 73 37 00 00 call 11b410 <_Objects_Close>
*/
RTEMS_INLINE_ROUTINE void _Region_Free (
Region_Control *the_region
)
{
_Objects_Free( &_Region_Information, &the_region->Object );
117c9d: 58 pop %eax
117c9e: 5a pop %edx
117c9f: 8b 45 e4 mov -0x1c(%ebp),%eax
117ca2: 50 push %eax
117ca3: 68 80 26 14 00 push $0x142680
117ca8: e8 67 3a 00 00 call 11b714 <_Objects_Free>
117cad: 31 db xor %ebx,%ebx
117caf: 83 c4 10 add $0x10,%esp
117cb2: eb b1 jmp 117c65 <rtems_region_delete+0x35>
00117cb4 <rtems_region_extend>:
rtems_status_code rtems_region_extend(
rtems_id id,
void *starting_address,
uintptr_t length
)
{
117cb4: 55 push %ebp
117cb5: 89 e5 mov %esp,%ebp
117cb7: 56 push %esi
117cb8: 53 push %ebx
117cb9: 83 ec 10 sub $0x10,%esp
117cbc: 8b 5d 0c mov 0xc(%ebp),%ebx
Heap_Extend_status heap_status;
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
if ( !starting_address )
117cbf: 85 db test %ebx,%ebx
117cc1: 74 71 je 117d34 <rtems_region_extend+0x80>
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator(); /* to prevent deletion */
117cc3: 83 ec 0c sub $0xc,%esp
117cc6: ff 35 30 28 14 00 pushl 0x142830
117ccc: e8 5b 23 00 00 call 11a02c <_API_Mutex_Lock>
RTEMS_INLINE_ROUTINE Region_Control *_Region_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Region_Control *)
117cd1: 83 c4 0c add $0xc,%esp
117cd4: 8d 45 f0 lea -0x10(%ebp),%eax
117cd7: 50 push %eax
117cd8: ff 75 08 pushl 0x8(%ebp)
117cdb: 68 80 26 14 00 push $0x142680
117ce0: e8 5f 3b 00 00 call 11b844 <_Objects_Get_no_protection>
117ce5: 89 c6 mov %eax,%esi
the_region = _Region_Get( id, &location );
switch ( location ) {
117ce7: 83 c4 10 add $0x10,%esp
117cea: 8b 45 f0 mov -0x10(%ebp),%eax
117ced: 85 c0 test %eax,%eax
117cef: 74 1f je 117d10 <rtems_region_extend+0x5c>
117cf1: bb 04 00 00 00 mov $0x4,%ebx
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
117cf6: 83 ec 0c sub $0xc,%esp
117cf9: ff 35 30 28 14 00 pushl 0x142830
117cff: e8 70 23 00 00 call 11a074 <_API_Mutex_Unlock>
return return_status;
117d04: 83 c4 10 add $0x10,%esp
}
117d07: 89 d8 mov %ebx,%eax
117d09: 8d 65 f8 lea -0x8(%ebp),%esp
117d0c: 5b pop %ebx
117d0d: 5e pop %esi
117d0e: c9 leave
117d0f: c3 ret
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
heap_status = _Heap_Extend(
117d10: 8d 45 f4 lea -0xc(%ebp),%eax
117d13: 50 push %eax
117d14: ff 75 10 pushl 0x10(%ebp)
117d17: 53 push %ebx
117d18: 8d 46 68 lea 0x68(%esi),%eax
117d1b: 50 push %eax
117d1c: e8 5f 2e 00 00 call 11ab80 <_Heap_Extend>
starting_address,
length,
&amount_extended
);
if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) {
117d21: 83 c4 10 add $0x10,%esp
117d24: 85 c0 test %eax,%eax
117d26: 74 18 je 117d40 <rtems_region_extend+0x8c>
the_region->length += amount_extended;
the_region->maximum_segment_size += amount_extended;
return_status = RTEMS_SUCCESSFUL;
} else if ( heap_status == HEAP_EXTEND_ERROR ) {
117d28: 48 dec %eax
117d29: 74 25 je 117d50 <rtems_region_extend+0x9c>
117d2b: bb 18 00 00 00 mov $0x18,%ebx
117d30: eb c4 jmp 117cf6 <rtems_region_extend+0x42>
117d32: 66 90 xchg %ax,%ax
Heap_Extend_status heap_status;
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
if ( !starting_address )
117d34: b3 09 mov $0x9,%bl
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
117d36: 89 d8 mov %ebx,%eax
117d38: 8d 65 f8 lea -0x8(%ebp),%esp
117d3b: 5b pop %ebx
117d3c: 5e pop %esi
117d3d: c9 leave
117d3e: c3 ret
117d3f: 90 nop
length,
&amount_extended
);
if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) {
the_region->length += amount_extended;
117d40: 8b 45 f4 mov -0xc(%ebp),%eax
117d43: 01 46 54 add %eax,0x54(%esi)
the_region->maximum_segment_size += amount_extended;
117d46: 01 46 5c add %eax,0x5c(%esi)
117d49: 31 db xor %ebx,%ebx
117d4b: eb a9 jmp 117cf6 <rtems_region_extend+0x42>
117d4d: 8d 76 00 lea 0x0(%esi),%esi
return_status = RTEMS_SUCCESSFUL;
} else if ( heap_status == HEAP_EXTEND_ERROR ) {
117d50: bb 09 00 00 00 mov $0x9,%ebx
117d55: eb 9f jmp 117cf6 <rtems_region_extend+0x42>
00117d58 <rtems_region_get_free_information>:
rtems_status_code rtems_region_get_free_information(
rtems_id id,
Heap_Information_block *the_info
)
{
117d58: 55 push %ebp
117d59: 89 e5 mov %esp,%ebp
117d5b: 53 push %ebx
117d5c: 83 ec 14 sub $0x14,%esp
117d5f: 8b 5d 0c mov 0xc(%ebp),%ebx
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
117d62: 85 db test %ebx,%ebx
117d64: 74 76 je 117ddc <rtems_region_get_free_information+0x84>
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
117d66: 83 ec 0c sub $0xc,%esp
117d69: ff 35 30 28 14 00 pushl 0x142830
117d6f: e8 b8 22 00 00 call 11a02c <_API_Mutex_Lock>
117d74: 83 c4 0c add $0xc,%esp
117d77: 8d 45 f4 lea -0xc(%ebp),%eax
117d7a: 50 push %eax
117d7b: ff 75 08 pushl 0x8(%ebp)
117d7e: 68 80 26 14 00 push $0x142680
117d83: e8 bc 3a 00 00 call 11b844 <_Objects_Get_no_protection>
the_region = _Region_Get( id, &location );
switch ( location ) {
117d88: 83 c4 10 add $0x10,%esp
117d8b: 8b 55 f4 mov -0xc(%ebp),%edx
117d8e: 85 d2 test %edx,%edx
117d90: 74 1e je 117db0 <rtems_region_get_free_information+0x58>
117d92: bb 04 00 00 00 mov $0x4,%ebx
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
117d97: 83 ec 0c sub $0xc,%esp
117d9a: ff 35 30 28 14 00 pushl 0x142830
117da0: e8 cf 22 00 00 call 11a074 <_API_Mutex_Unlock>
return return_status;
117da5: 83 c4 10 add $0x10,%esp
}
117da8: 89 d8 mov %ebx,%eax
117daa: 8b 5d fc mov -0x4(%ebp),%ebx
117dad: c9 leave
117dae: c3 ret
117daf: 90 nop
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
the_info->Used.number = 0;
117db0: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
the_info->Used.total = 0;
117db7: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx)
the_info->Used.largest = 0;
117dbe: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx)
_Heap_Get_free_information( &the_region->Memory, &the_info->Free );
117dc5: 83 ec 08 sub $0x8,%esp
117dc8: 53 push %ebx
117dc9: 83 c0 68 add $0x68,%eax
117dcc: 50 push %eax
117dcd: e8 be 2f 00 00 call 11ad90 <_Heap_Get_free_information>
117dd2: 31 db xor %ebx,%ebx
return_status = RTEMS_SUCCESSFUL;
break;
117dd4: 83 c4 10 add $0x10,%esp
117dd7: eb be jmp 117d97 <rtems_region_get_free_information+0x3f>
117dd9: 8d 76 00 lea 0x0(%esi),%esi
{
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
117ddc: b3 09 mov $0x9,%bl
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
117dde: 89 d8 mov %ebx,%eax
117de0: 8b 5d fc mov -0x4(%ebp),%ebx
117de3: c9 leave
117de4: c3 ret
00117e60 <rtems_region_get_segment>:
uintptr_t size,
rtems_option option_set,
rtems_interval timeout,
void **segment
)
{
117e60: 55 push %ebp
117e61: 89 e5 mov %esp,%ebp
117e63: 57 push %edi
117e64: 56 push %esi
117e65: 53 push %ebx
117e66: 83 ec 2c sub $0x2c,%esp
117e69: 8b 75 0c mov 0xc(%ebp),%esi
117e6c: 8b 5d 18 mov 0x18(%ebp),%ebx
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
void *the_segment;
if ( !segment )
117e6f: 85 db test %ebx,%ebx
117e71: 0f 84 a1 00 00 00 je 117f18 <rtems_region_get_segment+0xb8>
return RTEMS_INVALID_ADDRESS;
*segment = NULL;
117e77: c7 03 00 00 00 00 movl $0x0,(%ebx)
if ( size == 0 )
117e7d: 85 f6 test %esi,%esi
117e7f: 75 0f jne 117e90 <rtems_region_get_segment+0x30>
117e81: b8 08 00 00 00 mov $0x8,%eax
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
117e86: 8d 65 f4 lea -0xc(%ebp),%esp
117e89: 5b pop %ebx
117e8a: 5e pop %esi
117e8b: 5f pop %edi
117e8c: c9 leave
117e8d: c3 ret
117e8e: 66 90 xchg %ax,%ax
*segment = NULL;
if ( size == 0 )
return RTEMS_INVALID_SIZE;
_RTEMS_Lock_allocator();
117e90: 83 ec 0c sub $0xc,%esp
117e93: ff 35 30 28 14 00 pushl 0x142830
117e99: e8 8e 21 00 00 call 11a02c <_API_Mutex_Lock>
executing = _Thread_Executing;
117e9e: a1 38 28 14 00 mov 0x142838,%eax
117ea3: 89 45 d4 mov %eax,-0x2c(%ebp)
117ea6: 83 c4 0c add $0xc,%esp
117ea9: 8d 45 e4 lea -0x1c(%ebp),%eax
117eac: 50 push %eax
117ead: ff 75 08 pushl 0x8(%ebp)
117eb0: 68 80 26 14 00 push $0x142680
117eb5: e8 8a 39 00 00 call 11b844 <_Objects_Get_no_protection>
117eba: 89 c7 mov %eax,%edi
the_region = _Region_Get( id, &location );
switch ( location ) {
117ebc: 83 c4 10 add $0x10,%esp
117ebf: 8b 45 e4 mov -0x1c(%ebp),%eax
117ec2: 85 c0 test %eax,%eax
117ec4: 75 2a jne 117ef0 <rtems_region_get_segment+0x90>
case OBJECTS_LOCAL:
if ( size > the_region->maximum_segment_size )
117ec6: 3b 77 5c cmp 0x5c(%edi),%esi
117ec9: 76 2d jbe 117ef8 <rtems_region_get_segment+0x98>
117ecb: b8 08 00 00 00 mov $0x8,%eax
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
117ed0: 83 ec 0c sub $0xc,%esp
117ed3: ff 35 30 28 14 00 pushl 0x142830
117ed9: 89 45 d0 mov %eax,-0x30(%ebp)
117edc: e8 93 21 00 00 call 11a074 <_API_Mutex_Unlock>
return return_status;
117ee1: 83 c4 10 add $0x10,%esp
117ee4: 8b 45 d0 mov -0x30(%ebp),%eax
}
117ee7: 8d 65 f4 lea -0xc(%ebp),%esp
117eea: 5b pop %ebx
117eeb: 5e pop %esi
117eec: 5f pop %edi
117eed: c9 leave
117eee: c3 ret
117eef: 90 nop
_Thread_queue_Enqueue( &the_region->Wait_queue, timeout );
_Thread_Enable_dispatch();
return (rtems_status_code) executing->Wait.return_code;
117ef0: b8 04 00 00 00 mov $0x4,%eax
117ef5: eb d9 jmp 117ed0 <rtems_region_get_segment+0x70>
117ef7: 90 nop
* @brief See _Heap_Allocate_aligned_with_boundary() with alignment and
* boundary equals zero.
*/
RTEMS_INLINE_ROUTINE void *_Heap_Allocate( Heap_Control *heap, uintptr_t size )
{
return _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
117ef8: 6a 00 push $0x0
117efa: 6a 00 push $0x0
117efc: 56 push %esi
117efd: 8d 47 68 lea 0x68(%edi),%eax
117f00: 50 push %eax
117f01: e8 c6 2a 00 00 call 11a9cc <_Heap_Allocate_aligned_with_boundary>
the_segment = _Region_Allocate_segment( the_region, size );
_Region_Debug_Walk( the_region, 2 );
if ( the_segment ) {
117f06: 83 c4 10 add $0x10,%esp
117f09: 85 c0 test %eax,%eax
117f0b: 74 17 je 117f24 <rtems_region_get_segment+0xc4>
the_region->number_of_used_blocks += 1;
117f0d: ff 47 64 incl 0x64(%edi)
*segment = the_segment;
117f10: 89 03 mov %eax,(%ebx)
117f12: 31 c0 xor %eax,%eax
117f14: eb ba jmp 117ed0 <rtems_region_get_segment+0x70>
117f16: 66 90 xchg %ax,%ax
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
void *the_segment;
if ( !segment )
117f18: b8 09 00 00 00 mov $0x9,%eax
117f1d: e9 64 ff ff ff jmp 117e86 <rtems_region_get_segment+0x26>
117f22: 66 90 xchg %ax,%ax
if ( the_segment ) {
the_region->number_of_used_blocks += 1;
*segment = the_segment;
return_status = RTEMS_SUCCESSFUL;
} else if ( _Options_Is_no_wait( option_set ) ) {
117f24: f6 45 10 01 testb $0x1,0x10(%ebp)
117f28: 74 07 je 117f31 <rtems_region_get_segment+0xd1>
117f2a: b8 0d 00 00 00 mov $0xd,%eax
117f2f: eb 9f jmp 117ed0 <rtems_region_get_segment+0x70>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
117f31: a1 78 27 14 00 mov 0x142778,%eax
117f36: 40 inc %eax
117f37: a3 78 27 14 00 mov %eax,0x142778
* Switch from using the memory allocation mutex to using a
* dispatching disabled critical section. We have to do this
* because this thread is going to block.
*/
_Thread_Disable_dispatch();
_RTEMS_Unlock_allocator();
117f3c: 83 ec 0c sub $0xc,%esp
117f3f: ff 35 30 28 14 00 pushl 0x142830
117f45: e8 2a 21 00 00 call 11a074 <_API_Mutex_Unlock>
executing->Wait.queue = &the_region->Wait_queue;
117f4a: 8d 47 10 lea 0x10(%edi),%eax
117f4d: 8b 55 d4 mov -0x2c(%ebp),%edx
117f50: 89 42 44 mov %eax,0x44(%edx)
executing->Wait.id = id;
117f53: 8b 4d 08 mov 0x8(%ebp),%ecx
117f56: 89 4a 20 mov %ecx,0x20(%edx)
executing->Wait.count = size;
117f59: 89 72 24 mov %esi,0x24(%edx)
executing->Wait.return_argument = segment;
117f5c: 89 5a 28 mov %ebx,0x28(%edx)
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (
Thread_queue_Control *the_thread_queue
)
{
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
117f5f: c7 47 40 01 00 00 00 movl $0x1,0x40(%edi)
_Thread_queue_Enter_critical_section( &the_region->Wait_queue );
_Thread_queue_Enqueue( &the_region->Wait_queue, timeout );
117f66: 83 c4 0c add $0xc,%esp
117f69: 68 68 c9 11 00 push $0x11c968
117f6e: ff 75 14 pushl 0x14(%ebp)
117f71: 50 push %eax
117f72: e8 e1 46 00 00 call 11c658 <_Thread_queue_Enqueue_with_handler>
_Thread_Enable_dispatch();
117f77: e8 b4 41 00 00 call 11c130 <_Thread_Enable_dispatch>
return (rtems_status_code) executing->Wait.return_code;
117f7c: 8b 55 d4 mov -0x2c(%ebp),%edx
117f7f: 8b 42 34 mov 0x34(%edx),%eax
117f82: 83 c4 10 add $0x10,%esp
117f85: e9 fc fe ff ff jmp 117e86 <rtems_region_get_segment+0x26>
00117f8c <rtems_region_get_segment_size>:
rtems_status_code rtems_region_get_segment_size(
rtems_id id,
void *segment,
uintptr_t *size
)
{
117f8c: 55 push %ebp
117f8d: 89 e5 mov %esp,%ebp
117f8f: 56 push %esi
117f90: 53 push %ebx
117f91: 83 ec 20 sub $0x20,%esp
117f94: 8b 5d 0c mov 0xc(%ebp),%ebx
117f97: 8b 75 10 mov 0x10(%ebp),%esi
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
register Region_Control *the_region;
if ( !segment )
117f9a: 85 db test %ebx,%ebx
117f9c: 74 72 je 118010 <rtems_region_get_segment_size+0x84><== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
if ( !size )
117f9e: 85 f6 test %esi,%esi
117fa0: 74 6e je 118010 <rtems_region_get_segment_size+0x84><== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
117fa2: 83 ec 0c sub $0xc,%esp
117fa5: ff 35 30 28 14 00 pushl 0x142830
117fab: e8 7c 20 00 00 call 11a02c <_API_Mutex_Lock>
117fb0: 83 c4 0c add $0xc,%esp
117fb3: 8d 45 f4 lea -0xc(%ebp),%eax
117fb6: 50 push %eax
117fb7: ff 75 08 pushl 0x8(%ebp)
117fba: 68 80 26 14 00 push $0x142680
117fbf: e8 80 38 00 00 call 11b844 <_Objects_Get_no_protection>
the_region = _Region_Get( id, &location );
switch ( location ) {
117fc4: 83 c4 10 add $0x10,%esp
117fc7: 8b 55 f4 mov -0xc(%ebp),%edx
117fca: 85 d2 test %edx,%edx
117fcc: 75 36 jne 118004 <rtems_region_get_segment_size+0x78><== NEVER TAKEN
case OBJECTS_LOCAL:
if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) )
117fce: 52 push %edx
117fcf: 56 push %esi
117fd0: 53 push %ebx
117fd1: 83 c0 68 add $0x68,%eax
117fd4: 50 push %eax
117fd5: e8 ce 32 00 00 call 11b2a8 <_Heap_Size_of_alloc_area>
117fda: 83 c4 10 add $0x10,%esp
117fdd: 84 c0 test %al,%al
117fdf: 74 3b je 11801c <rtems_region_get_segment_size+0x90><== NEVER TAKEN
117fe1: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
117fe3: 83 ec 0c sub $0xc,%esp
117fe6: ff 35 30 28 14 00 pushl 0x142830
117fec: 89 45 e4 mov %eax,-0x1c(%ebp)
117fef: e8 80 20 00 00 call 11a074 <_API_Mutex_Unlock>
return return_status;
117ff4: 83 c4 10 add $0x10,%esp
117ff7: 8b 45 e4 mov -0x1c(%ebp),%eax
}
117ffa: 8d 65 f8 lea -0x8(%ebp),%esp
117ffd: 5b pop %ebx
117ffe: 5e pop %esi
117fff: c9 leave
118000: c3 ret
118001: 8d 76 00 lea 0x0(%esi),%esi
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
118004: 4a dec %edx
118005: 75 da jne 117fe1 <rtems_region_get_segment_size+0x55><== NEVER TAKEN
118007: b8 04 00 00 00 mov $0x4,%eax
11800c: eb d5 jmp 117fe3 <rtems_region_get_segment_size+0x57>
11800e: 66 90 xchg %ax,%ax
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
return return_status;
118010: b8 09 00 00 00 mov $0x9,%eax
}
118015: 8d 65 f8 lea -0x8(%ebp),%esp
118018: 5b pop %ebx
118019: 5e pop %esi
11801a: c9 leave
11801b: c3 ret
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) )
11801c: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED
118021: eb c0 jmp 117fe3 <rtems_region_get_segment_size+0x57><== NOT EXECUTED
00118048 <rtems_region_resize_segment>:
rtems_id id,
void *segment,
uintptr_t size,
uintptr_t *old_size
)
{
118048: 55 push %ebp
118049: 89 e5 mov %esp,%ebp
11804b: 56 push %esi
11804c: 53 push %ebx
11804d: 83 ec 20 sub $0x20,%esp
118050: 8b 5d 14 mov 0x14(%ebp),%ebx
uintptr_t osize;
rtems_status_code return_status;
Heap_Resize_status status;
register Region_Control *the_region;
if ( !old_size )
118053: 85 db test %ebx,%ebx
118055: 0f 84 a5 00 00 00 je 118100 <rtems_region_resize_segment+0xb8>
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
11805b: 83 ec 0c sub $0xc,%esp
11805e: ff 35 30 28 14 00 pushl 0x142830
118064: e8 c3 1f 00 00 call 11a02c <_API_Mutex_Lock>
118069: 83 c4 0c add $0xc,%esp
11806c: 8d 45 f0 lea -0x10(%ebp),%eax
11806f: 50 push %eax
118070: ff 75 08 pushl 0x8(%ebp)
118073: 68 80 26 14 00 push $0x142680
118078: e8 c7 37 00 00 call 11b844 <_Objects_Get_no_protection>
11807d: 89 c6 mov %eax,%esi
the_region = _Region_Get( id, &location );
switch ( location ) {
11807f: 83 c4 10 add $0x10,%esp
118082: 8b 45 f0 mov -0x10(%ebp),%eax
118085: 85 c0 test %eax,%eax
118087: 74 1f je 1180a8 <rtems_region_resize_segment+0x60>
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
118089: 83 ec 0c sub $0xc,%esp
11808c: ff 35 30 28 14 00 pushl 0x142830
118092: e8 dd 1f 00 00 call 11a074 <_API_Mutex_Unlock>
118097: b8 04 00 00 00 mov $0x4,%eax
return return_status;
11809c: 83 c4 10 add $0x10,%esp
}
11809f: 8d 65 f8 lea -0x8(%ebp),%esp
1180a2: 5b pop %ebx
1180a3: 5e pop %esi
1180a4: c9 leave
1180a5: c3 ret
1180a6: 66 90 xchg %ax,%ax
case OBJECTS_LOCAL:
_Region_Debug_Walk( the_region, 7 );
status = _Heap_Resize_block(
1180a8: 83 ec 0c sub $0xc,%esp
1180ab: 8d 45 f4 lea -0xc(%ebp),%eax
1180ae: 50 push %eax
1180af: 8d 45 ec lea -0x14(%ebp),%eax
1180b2: 50 push %eax
1180b3: ff 75 10 pushl 0x10(%ebp)
1180b6: ff 75 0c pushl 0xc(%ebp)
1180b9: 8d 46 68 lea 0x68(%esi),%eax
1180bc: 50 push %eax
1180bd: e8 da 30 00 00 call 11b19c <_Heap_Resize_block>
segment,
(uint32_t) size,
&osize,
&avail_size
);
*old_size = (uint32_t) osize;
1180c2: 8b 55 ec mov -0x14(%ebp),%edx
1180c5: 89 13 mov %edx,(%ebx)
_Region_Debug_Walk( the_region, 8 );
if ( status == HEAP_RESIZE_SUCCESSFUL )
1180c7: 83 c4 20 add $0x20,%esp
1180ca: 85 c0 test %eax,%eax
1180cc: 75 16 jne 1180e4 <rtems_region_resize_segment+0x9c>
_Region_Process_queue( the_region ); /* unlocks allocator */
1180ce: 83 ec 0c sub $0xc,%esp
1180d1: 56 push %esi
1180d2: e8 29 7d 00 00 call 11fe00 <_Region_Process_queue>
1180d7: 31 c0 xor %eax,%eax
1180d9: 83 c4 10 add $0x10,%esp
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
1180dc: 8d 65 f8 lea -0x8(%ebp),%esp
1180df: 5b pop %ebx
1180e0: 5e pop %esi
1180e1: c9 leave
1180e2: c3 ret
1180e3: 90 nop
_Region_Debug_Walk( the_region, 8 );
if ( status == HEAP_RESIZE_SUCCESSFUL )
_Region_Process_queue( the_region ); /* unlocks allocator */
else
_RTEMS_Unlock_allocator();
1180e4: 83 ec 0c sub $0xc,%esp
1180e7: ff 35 30 28 14 00 pushl 0x142830
1180ed: 89 45 e4 mov %eax,-0x1c(%ebp)
1180f0: e8 7f 1f 00 00 call 11a074 <_API_Mutex_Unlock>
if (status == HEAP_RESIZE_SUCCESSFUL)
return RTEMS_SUCCESSFUL;
if (status == HEAP_RESIZE_UNSATISFIED)
1180f5: 83 c4 10 add $0x10,%esp
1180f8: 8b 45 e4 mov -0x1c(%ebp),%eax
1180fb: 83 f8 01 cmp $0x1,%eax
1180fe: 74 0c je 11810c <rtems_region_resize_segment+0xc4>
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
return return_status;
118100: b8 09 00 00 00 mov $0x9,%eax
}
118105: 8d 65 f8 lea -0x8(%ebp),%esp
118108: 5b pop %ebx
118109: 5e pop %esi
11810a: c9 leave
11810b: c3 ret
_RTEMS_Unlock_allocator();
if (status == HEAP_RESIZE_SUCCESSFUL)
return RTEMS_SUCCESSFUL;
if (status == HEAP_RESIZE_UNSATISFIED)
11810c: b0 0d mov $0xd,%al
11810e: eb 8f jmp 11809f <rtems_region_resize_segment+0x57>
00118110 <rtems_region_return_segment>:
rtems_status_code rtems_region_return_segment(
rtems_id id,
void *segment
)
{
118110: 55 push %ebp
118111: 89 e5 mov %esp,%ebp
118113: 53 push %ebx
118114: 83 ec 20 sub $0x20,%esp
uint32_t size;
#endif
int status;
register Region_Control *the_region;
_RTEMS_Lock_allocator();
118117: ff 35 30 28 14 00 pushl 0x142830
11811d: e8 0a 1f 00 00 call 11a02c <_API_Mutex_Lock>
118122: 83 c4 0c add $0xc,%esp
118125: 8d 45 f4 lea -0xc(%ebp),%eax
118128: 50 push %eax
118129: ff 75 08 pushl 0x8(%ebp)
11812c: 68 80 26 14 00 push $0x142680
118131: e8 0e 37 00 00 call 11b844 <_Objects_Get_no_protection>
118136: 89 c3 mov %eax,%ebx
the_region = _Region_Get( id, &location );
switch ( location ) {
118138: 83 c4 10 add $0x10,%esp
11813b: 8b 45 f4 mov -0xc(%ebp),%eax
11813e: 85 c0 test %eax,%eax
118140: 74 1e je 118160 <rtems_region_return_segment+0x50>
118142: bb 04 00 00 00 mov $0x4,%ebx
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
118147: 83 ec 0c sub $0xc,%esp
11814a: ff 35 30 28 14 00 pushl 0x142830
118150: e8 1f 1f 00 00 call 11a074 <_API_Mutex_Unlock>
return return_status;
118155: 83 c4 10 add $0x10,%esp
}
118158: 89 d8 mov %ebx,%eax
11815a: 8b 5d fc mov -0x4(%ebp),%ebx
11815d: c9 leave
11815e: c3 ret
11815f: 90 nop
RTEMS_INLINE_ROUTINE bool _Region_Free_segment (
Region_Control *the_region,
void *the_segment
)
{
return _Heap_Free( &the_region->Memory, the_segment );
118160: 83 ec 08 sub $0x8,%esp
118163: ff 75 0c pushl 0xc(%ebp)
118166: 8d 43 68 lea 0x68(%ebx),%eax
118169: 50 push %eax
11816a: e8 b1 2a 00 00 call 11ac20 <_Heap_Free>
#endif
status = _Region_Free_segment( the_region, segment );
_Region_Debug_Walk( the_region, 4 );
if ( !status )
11816f: 83 c4 10 add $0x10,%esp
118172: 84 c0 test %al,%al
118174: 75 0a jne 118180 <rtems_region_return_segment+0x70>
else {
the_region->number_of_used_blocks -= 1;
_Region_Process_queue(the_region); /* unlocks allocator */
return RTEMS_SUCCESSFUL;
118176: bb 09 00 00 00 mov $0x9,%ebx
11817b: eb ca jmp 118147 <rtems_region_return_segment+0x37>
11817d: 8d 76 00 lea 0x0(%esi),%esi
_Region_Debug_Walk( the_region, 4 );
if ( !status )
return_status = RTEMS_INVALID_ADDRESS;
else {
the_region->number_of_used_blocks -= 1;
118180: ff 4b 64 decl 0x64(%ebx)
_Region_Process_queue(the_region); /* unlocks allocator */
118183: 83 ec 0c sub $0xc,%esp
118186: 53 push %ebx
118187: e8 74 7c 00 00 call 11fe00 <_Region_Process_queue>
11818c: 31 db xor %ebx,%ebx
return RTEMS_SUCCESSFUL;
11818e: 83 c4 10 add $0x10,%esp
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
118191: 89 d8 mov %ebx,%eax
118193: 8b 5d fc mov -0x4(%ebp),%ebx
118196: c9 leave
118197: c3 ret
00145904 <rtems_rfs_bitmap_close>:
return rtems_rfs_bitmap_create_search (control);
}
int
rtems_rfs_bitmap_close (rtems_rfs_bitmap_control* control)
{
145904: 55 push %ebp <== NOT EXECUTED
145905: 89 e5 mov %esp,%ebp <== NOT EXECUTED
145907: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
free (control->search_bits);
14590a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
14590d: ff 70 14 pushl 0x14(%eax) <== NOT EXECUTED
145910: e8 53 8f fc ff call 10e868 <free> <== NOT EXECUTED
return 0;
}
145915: 31 c0 xor %eax,%eax <== NOT EXECUTED
145917: c9 leave <== NOT EXECUTED
145918: c3 ret <== NOT EXECUTED
00145964 <rtems_rfs_bitmap_create_search>:
return 0;
}
int
rtems_rfs_bitmap_create_search (rtems_rfs_bitmap_control* control)
{
145964: 55 push %ebp <== NOT EXECUTED
145965: 89 e5 mov %esp,%ebp <== NOT EXECUTED
145967: 57 push %edi <== NOT EXECUTED
145968: 56 push %esi <== NOT EXECUTED
145969: 53 push %ebx <== NOT EXECUTED
14596a: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
14596d: 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);
145970: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
145973: 89 d8 mov %ebx,%eax <== NOT EXECUTED
145975: e8 a2 ff ff ff call 14591c <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
14597a: 85 c0 test %eax,%eax <== NOT EXECUTED
14597c: 7e 0a jle 145988 <rtems_rfs_bitmap_create_search+0x24><== NOT EXECUTED
bit++;
map++;
}
return 0;
}
14597e: 83 c4 2c add $0x2c,%esp <== NOT EXECUTED
145981: 5b pop %ebx <== NOT EXECUTED
145982: 5e pop %esi <== NOT EXECUTED
145983: 5f pop %edi <== NOT EXECUTED
145984: c9 leave <== NOT EXECUTED
145985: c3 ret <== NOT EXECUTED
145986: 66 90 xchg %ax,%ax <== NOT EXECUTED
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
control->free = 0;
145988: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
search_map = control->search_bits;
14598f: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
145992: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
size = control->size;
145995: 8b 73 0c mov 0xc(%ebx),%esi <== NOT EXECUTED
bit = 0;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
145998: c7 00 ff ff ff ff movl $0xffffffff,(%eax) <== NOT EXECUTED
while (size)
14599e: 85 f6 test %esi,%esi <== NOT EXECUTED
1459a0: 74 59 je 1459fb <rtems_rfs_bitmap_create_search+0x97><== NOT EXECUTED
1459a2: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1459a5: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
1459a8: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
1459af: 90 nop <== NOT EXECUTED
{
rtems_rfs_bitmap_element bits;
int available;
if (size < rtems_rfs_bitmap_element_bits ())
1459b0: 83 fe 1f cmp $0x1f,%esi <== NOT EXECUTED
1459b3: 77 53 ja 145a08 <rtems_rfs_bitmap_create_search+0xa4><== NOT EXECUTED
{
/*
* Use the normal bit operators because we do not change the bits just merge
* the 2 separate parts.
*/
bits1 &= mask;
1459b5: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
1459ba: 29 f1 sub %esi,%ecx <== NOT EXECUTED
1459bc: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1459c1: d3 e8 shr %cl,%eax <== NOT EXECUTED
1459c3: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
1459c6: 23 02 and (%edx),%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;
1459c8: 89 f2 mov %esi,%edx <== NOT EXECUTED
1459ca: 89 75 cc mov %esi,-0x34(%ebp) <== NOT EXECUTED
{
bits = *map;
available = rtems_rfs_bitmap_element_bits ();
}
if (rtems_rfs_bitmap_match (bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
1459cd: 85 c0 test %eax,%eax <== NOT EXECUTED
1459cf: 74 16 je 1459e7 <rtems_rfs_bitmap_create_search+0x83><== NOT EXECUTED
1459d1: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
1459d3: 90 nop <== 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))
1459d4: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
1459d9: d3 e7 shl %cl,%edi <== NOT EXECUTED
1459db: 85 c7 test %eax,%edi <== NOT EXECUTED
1459dd: 74 03 je 1459e2 <rtems_rfs_bitmap_create_search+0x7e><== NOT EXECUTED
control->free++;
1459df: 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++)
1459e2: 41 inc %ecx <== NOT EXECUTED
1459e3: 39 ca cmp %ecx,%edx <== NOT EXECUTED
1459e5: 7f ed jg 1459d4 <rtems_rfs_bitmap_create_search+0x70><== NOT EXECUTED
if (!rtems_rfs_bitmap_test (bits, b))
control->free++;
}
size -= available;
1459e7: 2b 75 cc sub -0x34(%ebp),%esi <== NOT EXECUTED
if (bit == rtems_rfs_bitmap_element_bits ())
1459ea: 83 7d d0 20 cmpl $0x20,-0x30(%ebp) <== NOT EXECUTED
1459ee: 74 2c je 145a1c <rtems_rfs_bitmap_create_search+0xb8><== NOT EXECUTED
bit = 0;
search_map++;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
}
else
bit++;
1459f0: ff 45 d0 incl -0x30(%ebp) <== NOT EXECUTED
1459f3: 83 45 d4 04 addl $0x4,-0x2c(%ebp) <== NOT EXECUTED
search_map = control->search_bits;
size = control->size;
bit = 0;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
while (size)
1459f7: 85 f6 test %esi,%esi <== NOT EXECUTED
1459f9: 75 b5 jne 1459b0 <rtems_rfs_bitmap_create_search+0x4c><== NOT EXECUTED
1459fb: 31 c0 xor %eax,%eax <== NOT EXECUTED
bit++;
map++;
}
return 0;
}
1459fd: 83 c4 2c add $0x2c,%esp <== NOT EXECUTED
145a00: 5b pop %ebx <== NOT EXECUTED
145a01: 5e pop %esi <== NOT EXECUTED
145a02: 5f pop %edi <== NOT EXECUTED
145a03: c9 leave <== NOT EXECUTED
145a04: c3 ret <== NOT EXECUTED
145a05: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_rfs_bitmap_mask_section (0, size));
available = size;
}
else
{
bits = *map;
145a08: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
145a0b: 8b 02 mov (%edx),%eax <== NOT EXECUTED
145a0d: c7 45 cc 20 00 00 00 movl $0x20,-0x34(%ebp) <== NOT EXECUTED
145a14: ba 20 00 00 00 mov $0x20,%edx <== NOT EXECUTED
145a19: eb b2 jmp 1459cd <rtems_rfs_bitmap_create_search+0x69><== NOT EXECUTED
145a1b: 90 nop <== NOT EXECUTED
size -= available;
if (bit == rtems_rfs_bitmap_element_bits ())
{
bit = 0;
search_map++;
145a1c: 83 45 c8 04 addl $0x4,-0x38(%ebp) <== NOT EXECUTED
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
145a20: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
145a23: c7 00 ff ff ff ff movl $0xffffffff,(%eax) <== NOT EXECUTED
145a29: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
145a30: eb c1 jmp 1459f3 <rtems_rfs_bitmap_create_search+0x8f><== NOT EXECUTED
0014591c <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)
{
14591c: 55 push %ebp <== NOT EXECUTED
14591d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
14591f: 56 push %esi <== NOT EXECUTED
145920: 53 push %ebx <== NOT EXECUTED
145921: 89 c3 mov %eax,%ebx <== NOT EXECUTED
145923: 89 d6 mov %edx,%esi <== NOT EXECUTED
int rc;
if (!control->buffer)
145925: 8b 00 mov (%eax),%eax <== NOT EXECUTED
145927: 85 c0 test %eax,%eax <== NOT EXECUTED
145929: 74 2d je 145958 <rtems_rfs_bitmap_load_map+0x3c><== NOT EXECUTED
return ENXIO;
*map = NULL;
14592b: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (control->fs,
145931: 6a 01 push $0x1 <== NOT EXECUTED
145933: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
145936: ff 33 pushl (%ebx) <== NOT EXECUTED
145938: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
14593b: e8 a4 7c ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
control->buffer,
control->block,
true);
if (rc)
145940: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
145943: 85 c0 test %eax,%eax <== NOT EXECUTED
145945: 75 0a jne 145951 <rtems_rfs_bitmap_load_map+0x35><== NOT EXECUTED
return rc;
*map = rtems_rfs_buffer_data (control->buffer);
145947: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
145949: 8b 52 08 mov 0x8(%edx),%edx <== NOT EXECUTED
14594c: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
14594f: 89 16 mov %edx,(%esi) <== NOT EXECUTED
return 0;
}
145951: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
145954: 5b pop %ebx <== NOT EXECUTED
145955: 5e pop %esi <== NOT EXECUTED
145956: c9 leave <== NOT EXECUTED
145957: c3 ret <== NOT EXECUTED
rtems_rfs_bitmap_load_map (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_map* map)
{
int rc;
if (!control->buffer)
145958: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED
if (rc)
return rc;
*map = rtems_rfs_buffer_data (control->buffer);
return 0;
}
14595d: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
145960: 5b pop %ebx <== NOT EXECUTED
145961: 5e pop %esi <== NOT EXECUTED
145962: c9 leave <== NOT EXECUTED
145963: c3 ret <== NOT EXECUTED
00145f34 <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)
{
145f34: 55 push %ebp <== NOT EXECUTED
145f35: 89 e5 mov %esp,%ebp <== NOT EXECUTED
145f37: 57 push %edi <== NOT EXECUTED
145f38: 56 push %esi <== NOT EXECUTED
145f39: 53 push %ebx <== NOT EXECUTED
145f3a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
145f3d: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
int rc = 0;
/*
* By default we assume the allocation failed.
*/
*allocated = false;
145f40: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
145f43: c6 00 00 movb $0x0,(%eax) <== NOT EXECUTED
145f46: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
145f49: 89 f3 mov %esi,%ebx <== NOT EXECUTED
145f4b: 90 nop <== 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))
145f4c: 85 db test %ebx,%ebx <== NOT EXECUTED
145f4e: 78 47 js 145f97 <rtems_rfs_bitmap_map_alloc+0x63><== NOT EXECUTED
145f50: 3b 5f 0c cmp 0xc(%edi),%ebx <== NOT EXECUTED
145f53: 73 42 jae 145f97 <rtems_rfs_bitmap_map_alloc+0x63><== NOT EXECUTED
/*
* Search up first so bits allocated in succession are grouped together.
*/
if (upper_seed < control->size)
{
*bit = upper_seed;
145f55: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
145f58: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
145f5a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
145f5d: 6a 01 push $0x1 <== NOT EXECUTED
145f5f: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
145f62: 89 c2 mov %eax,%edx <== NOT EXECUTED
145f64: 89 f8 mov %edi,%eax <== NOT EXECUTED
145f66: e8 91 fd ff ff call 145cfc <T.58> <== NOT EXECUTED
window, 1);
if ((rc > 0) || *allocated)
145f6b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
145f6e: 85 c0 test %eax,%eax <== NOT EXECUTED
145f70: 7f 5a jg 145fcc <rtems_rfs_bitmap_map_alloc+0x98><== NOT EXECUTED
145f72: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
145f75: 80 38 00 cmpb $0x0,(%eax) <== NOT EXECUTED
145f78: 75 52 jne 145fcc <rtems_rfs_bitmap_map_alloc+0x98><== NOT EXECUTED
break;
}
if (lower_seed >= 0)
145f7a: 85 f6 test %esi,%esi <== NOT EXECUTED
145f7c: 79 28 jns 145fa6 <rtems_rfs_bitmap_map_alloc+0x72><== 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)
145f7e: 39 5f 0c cmp %ebx,0xc(%edi) <== NOT EXECUTED
145f81: 76 06 jbe 145f89 <rtems_rfs_bitmap_map_alloc+0x55><== NOT EXECUTED
upper_seed += window;
145f83: 81 c3 00 08 00 00 add $0x800,%ebx <== NOT EXECUTED
if (lower_seed >= 0)
145f89: 85 f6 test %esi,%esi <== NOT EXECUTED
145f8b: 78 bf js 145f4c <rtems_rfs_bitmap_map_alloc+0x18><== NOT EXECUTED
lower_seed -= window;
145f8d: 81 ee 00 08 00 00 sub $0x800,%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))
145f93: 85 db test %ebx,%ebx <== NOT EXECUTED
145f95: 79 b9 jns 145f50 <rtems_rfs_bitmap_map_alloc+0x1c><== NOT EXECUTED
145f97: 85 f6 test %esi,%esi <== NOT EXECUTED
145f99: 78 31 js 145fcc <rtems_rfs_bitmap_map_alloc+0x98><== NOT EXECUTED
|| ((lower_seed >= 0) && (lower_seed < control->size)))
145f9b: 8b 47 0c mov 0xc(%edi),%eax <== 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))
145f9e: 39 c6 cmp %eax,%esi <== NOT EXECUTED
145fa0: 73 2a jae 145fcc <rtems_rfs_bitmap_map_alloc+0x98><== 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)
145fa2: 39 c3 cmp %eax,%ebx <== NOT EXECUTED
145fa4: 72 af jb 145f55 <rtems_rfs_bitmap_map_alloc+0x21><== NOT EXECUTED
break;
}
if (lower_seed >= 0)
{
*bit = lower_seed;
145fa6: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
145fa9: 89 30 mov %esi,(%eax) <== NOT EXECUTED
rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
145fab: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
145fae: 6a ff push $0xffffffff <== NOT EXECUTED
145fb0: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
145fb3: 89 c2 mov %eax,%edx <== NOT EXECUTED
145fb5: 89 f8 mov %edi,%eax <== NOT EXECUTED
145fb7: e8 40 fd ff ff call 145cfc <T.58> <== NOT EXECUTED
window, -1);
if ((rc > 0) || *allocated)
145fbc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
145fbf: 85 c0 test %eax,%eax <== NOT EXECUTED
145fc1: 7f 09 jg 145fcc <rtems_rfs_bitmap_map_alloc+0x98><== NOT EXECUTED
145fc3: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
145fc6: 80 38 00 cmpb $0x0,(%eax) <== NOT EXECUTED
145fc9: 74 b3 je 145f7e <rtems_rfs_bitmap_map_alloc+0x4a><== NOT EXECUTED
145fcb: 90 nop <== NOT EXECUTED
if (lower_seed >= 0)
lower_seed -= window;
}
return 0;
}
145fcc: 31 c0 xor %eax,%eax <== NOT EXECUTED
145fce: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
145fd1: 5b pop %ebx <== NOT EXECUTED
145fd2: 5e pop %esi <== NOT EXECUTED
145fd3: 5f pop %edi <== NOT EXECUTED
145fd4: c9 leave <== NOT EXECUTED
145fd5: c3 ret <== NOT EXECUTED
00145be8 <rtems_rfs_bitmap_map_clear>:
}
int
rtems_rfs_bitmap_map_clear (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit)
{
145be8: 55 push %ebp <== NOT EXECUTED
145be9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
145beb: 57 push %edi <== NOT EXECUTED
145bec: 56 push %esi <== NOT EXECUTED
145bed: 53 push %ebx <== NOT EXECUTED
145bee: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
145bf1: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
145bf4: 8b 75 0c mov 0xc(%ebp),%esi <== 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);
145bf7: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
145bfa: 89 d8 mov %ebx,%eax <== NOT EXECUTED
145bfc: e8 1b fd ff ff call 14591c <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
145c01: 85 c0 test %eax,%eax <== NOT EXECUTED
145c03: 7e 0b jle 145c10 <rtems_rfs_bitmap_map_clear+0x28><== NOT EXECUTED
offset = rtems_rfs_bitmap_map_offset(bit);
search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
rtems_rfs_buffer_mark_dirty (control->buffer);
control->free++;
return 0;
}
145c05: 83 c4 3c add $0x3c,%esp <== NOT EXECUTED
145c08: 5b pop %ebx <== NOT EXECUTED
145c09: 5e pop %esi <== NOT EXECUTED
145c0a: 5f pop %edi <== NOT EXECUTED
145c0b: c9 leave <== NOT EXECUTED
145c0c: c3 ret <== NOT EXECUTED
145c0d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
int offset;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
if (bit >= control->size)
145c10: 3b 73 0c cmp 0xc(%ebx),%esi <== NOT EXECUTED
145c13: 73 47 jae 145c5c <rtems_rfs_bitmap_map_clear+0x74><== NOT EXECUTED
return EINVAL;
search_map = control->search_bits;
index = rtems_rfs_bitmap_map_index (bit);
145c15: 89 f0 mov %esi,%eax <== NOT EXECUTED
145c17: c1 f8 05 sar $0x5,%eax <== NOT EXECUTED
145c1a: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_clear (map[index], 1 << offset);
145c1d: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
145c20: 03 45 e4 add -0x1c(%ebp),%eax <== NOT EXECUTED
145c23: 89 f2 mov %esi,%edx <== NOT EXECUTED
145c25: 83 e2 1f and $0x1f,%edx <== NOT EXECUTED
145c28: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
145c2b: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
145c30: 89 fa mov %edi,%edx <== NOT EXECUTED
145c32: 8a 4d d4 mov -0x2c(%ebp),%cl <== NOT EXECUTED
145c35: d3 e2 shl %cl,%edx <== NOT EXECUTED
145c37: 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);
145c39: c1 fe 0a sar $0xa,%esi <== NOT EXECUTED
145c3c: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
145c3f: 83 e1 1f and $0x1f,%ecx <== NOT EXECUTED
145c42: d3 e7 shl %cl,%edi <== NOT EXECUTED
145c44: 8b 4b 14 mov 0x14(%ebx),%ecx <== NOT EXECUTED
145c47: 09 3c b1 or %edi,(%ecx,%esi,4) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
145c4a: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
145c4c: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
control->free++;
145c4f: ff 43 10 incl 0x10(%ebx) <== NOT EXECUTED
145c52: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
145c54: 83 c4 3c add $0x3c,%esp <== NOT EXECUTED
145c57: 5b pop %ebx <== NOT EXECUTED
145c58: 5e pop %esi <== NOT EXECUTED
145c59: 5f pop %edi <== NOT EXECUTED
145c5a: c9 leave <== NOT EXECUTED
145c5b: c3 ret <== NOT EXECUTED
int offset;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
if (bit >= control->size)
145c5c: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
offset = rtems_rfs_bitmap_map_offset(bit);
search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
rtems_rfs_buffer_mark_dirty (control->buffer);
control->free++;
return 0;
}
145c61: 83 c4 3c add $0x3c,%esp <== NOT EXECUTED
145c64: 5b pop %ebx <== NOT EXECUTED
145c65: 5e pop %esi <== NOT EXECUTED
145c66: 5f pop %edi <== NOT EXECUTED
145c67: c9 leave <== NOT EXECUTED
145c68: c3 ret <== NOT EXECUTED
00145a84 <rtems_rfs_bitmap_map_clear_all>:
return 0;
}
int
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)
{
145a84: 55 push %ebp <== NOT EXECUTED
145a85: 89 e5 mov %esp,%ebp <== NOT EXECUTED
145a87: 57 push %edi <== NOT EXECUTED
145a88: 56 push %esi <== NOT EXECUTED
145a89: 53 push %ebx <== NOT EXECUTED
145a8a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
145a8d: 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);
145a90: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
145a93: 89 d8 mov %ebx,%eax <== NOT EXECUTED
145a95: e8 82 fe ff ff call 14591c <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
145a9a: 85 c0 test %eax,%eax <== NOT EXECUTED
145a9c: 7e 0a jle 145aa8 <rtems_rfs_bitmap_map_clear_all+0x24><== NOT EXECUTED
rtems_rfs_bitmap_mask (last_search_bit));
rtems_rfs_buffer_mark_dirty (control->buffer);
return 0;
}
145a9e: 83 c4 1c add $0x1c,%esp <== NOT EXECUTED
145aa1: 5b pop %ebx <== NOT EXECUTED
145aa2: 5e pop %esi <== NOT EXECUTED
145aa3: 5f pop %edi <== NOT EXECUTED
145aa4: c9 leave <== NOT EXECUTED
145aa5: c3 ret <== NOT EXECUTED
145aa6: 66 90 xchg %ax,%ax <== NOT EXECUTED
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
145aa8: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
145aab: 48 dec %eax <== NOT EXECUTED
145aac: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
145aaf: 8d 70 01 lea 0x1(%eax),%esi <== NOT EXECUTED
control->free = elements;
145ab2: 89 73 10 mov %esi,0x10(%ebx) <== NOT EXECUTED
145ab5: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
145ab8: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
145aba: 31 d2 xor %edx,%edx <== NOT EXECUTED
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
145abc: c7 04 8f ff ff ff ff movl $0xffffffff,(%edi,%ecx,4) <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (control->size);
control->free = elements;
for (e = 0; e < elements; e++)
145ac3: 42 inc %edx <== NOT EXECUTED
145ac4: 89 d1 mov %edx,%ecx <== NOT EXECUTED
145ac6: 39 d6 cmp %edx,%esi <== NOT EXECUTED
145ac8: 77 f2 ja 145abc <rtems_rfs_bitmap_map_clear_all+0x38><== 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)
145aca: 83 e6 1f and $0x1f,%esi <== NOT EXECUTED
145acd: 74 3d je 145b0c <rtems_rfs_bitmap_map_clear_all+0x88><== NOT EXECUTED
145acf: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
145ad4: 29 f1 sub %esi,%ecx <== NOT EXECUTED
145ad6: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
145adb: d3 ea shr %cl,%edx <== NOT EXECUTED
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < (elements - 1); e++)
145add: c1 e8 05 shr $0x5,%eax <== NOT EXECUTED
145ae0: 74 31 je 145b13 <rtems_rfs_bitmap_map_clear_all+0x8f><== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
145ae2: 8b 7b 14 mov 0x14(%ebx),%edi <== NOT EXECUTED
return 0;
}
int
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)
145ae5: 31 f6 xor %esi,%esi <== NOT EXECUTED
145ae7: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
145ae9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < (elements - 1); e++)
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
145aec: c7 04 b7 ff ff ff ff movl $0xffffffff,(%edi,%esi,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++)
145af3: 41 inc %ecx <== NOT EXECUTED
145af4: 89 ce mov %ecx,%esi <== NOT EXECUTED
145af6: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
145af8: 75 f2 jne 145aec <rtems_rfs_bitmap_map_clear_all+0x68><== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
control->search_bits[elements - 1] =
145afa: 89 14 87 mov %edx,(%edi,%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);
145afd: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
145aff: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
145b02: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
145b04: 83 c4 1c add $0x1c,%esp <== NOT EXECUTED
145b07: 5b pop %ebx <== NOT EXECUTED
145b08: 5e pop %esi <== NOT EXECUTED
145b09: 5f pop %edi <== NOT EXECUTED
145b0a: c9 leave <== NOT EXECUTED
145b0b: c3 ret <== 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)
145b0c: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
145b11: eb ca jmp 145add <rtems_rfs_bitmap_map_clear_all+0x59><== NOT EXECUTED
145b13: 8b 7b 14 mov 0x14(%ebx),%edi <== NOT EXECUTED
145b16: eb e2 jmp 145afa <rtems_rfs_bitmap_map_clear_all+0x76><== NOT EXECUTED
00145c6c <rtems_rfs_bitmap_map_set>:
}
int
rtems_rfs_bitmap_map_set (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit)
{
145c6c: 55 push %ebp <== NOT EXECUTED
145c6d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
145c6f: 57 push %edi <== NOT EXECUTED
145c70: 56 push %esi <== NOT EXECUTED
145c71: 53 push %ebx <== NOT EXECUTED
145c72: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
145c75: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
145c78: 8b 75 0c mov 0xc(%ebp),%esi <== 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);
145c7b: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
145c7e: 89 d8 mov %ebx,%eax <== NOT EXECUTED
145c80: e8 97 fc ff ff call 14591c <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
145c85: 85 c0 test %eax,%eax <== NOT EXECUTED
145c87: 7e 0b jle 145c94 <rtems_rfs_bitmap_map_set+0x28><== NOT EXECUTED
search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
control->free--;
rtems_rfs_buffer_mark_dirty (control->buffer);
}
return 0;
}
145c89: 83 c4 3c add $0x3c,%esp <== NOT EXECUTED
145c8c: 5b pop %ebx <== NOT EXECUTED
145c8d: 5e pop %esi <== NOT EXECUTED
145c8e: 5f pop %edi <== NOT EXECUTED
145c8f: c9 leave <== NOT EXECUTED
145c90: c3 ret <== NOT EXECUTED
145c91: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
int offset;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
if (bit >= control->size)
145c94: 3b 73 0c cmp 0xc(%ebx),%esi <== NOT EXECUTED
145c97: 73 53 jae 145cec <rtems_rfs_bitmap_map_set+0x80><== NOT EXECUTED
return EINVAL;
search_map = control->search_bits;
145c99: 8b 53 14 mov 0x14(%ebx),%edx <== NOT EXECUTED
index = rtems_rfs_bitmap_map_index (bit);
145c9c: 89 f0 mov %esi,%eax <== NOT EXECUTED
145c9e: c1 f8 05 sar $0x5,%eax <== NOT EXECUTED
145ca1: 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);
145ca4: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
145ca7: 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);
145caa: 89 f1 mov %esi,%ecx <== NOT EXECUTED
145cac: 83 e1 1f and $0x1f,%ecx <== NOT EXECUTED
145caf: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
145cb4: d3 e7 shl %cl,%edi <== NOT EXECUTED
145cb6: f7 d7 not %edi <== NOT EXECUTED
145cb8: 8b 08 mov (%eax),%ecx <== NOT EXECUTED
145cba: 21 cf and %ecx,%edi <== 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);
145cbc: 89 38 mov %edi,(%eax) <== NOT EXECUTED
if (rtems_rfs_bitmap_match(map[index], RTEMS_RFS_BITMAP_ELEMENT_SET))
145cbe: 85 ff test %edi,%edi <== NOT EXECUTED
145cc0: 75 1d jne 145cdf <rtems_rfs_bitmap_map_set+0x73><== 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);
145cc2: c1 fe 0a sar $0xa,%esi <== NOT EXECUTED
145cc5: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
145cc8: 83 e1 1f and $0x1f,%ecx <== NOT EXECUTED
145ccb: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
145cd0: d3 e7 shl %cl,%edi <== NOT EXECUTED
145cd2: f7 d7 not %edi <== NOT EXECUTED
145cd4: 21 3c b2 and %edi,(%edx,%esi,4) <== NOT EXECUTED
control->free--;
145cd7: ff 4b 10 decl 0x10(%ebx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
145cda: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
145cdc: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
145cdf: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return 0;
}
145ce1: 83 c4 3c add $0x3c,%esp <== NOT EXECUTED
145ce4: 5b pop %ebx <== NOT EXECUTED
145ce5: 5e pop %esi <== NOT EXECUTED
145ce6: 5f pop %edi <== NOT EXECUTED
145ce7: c9 leave <== NOT EXECUTED
145ce8: c3 ret <== NOT EXECUTED
145ce9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
int offset;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
if (bit >= control->size)
145cec: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
control->free--;
rtems_rfs_buffer_mark_dirty (control->buffer);
}
return 0;
}
145cf1: 83 c4 3c add $0x3c,%esp <== NOT EXECUTED
145cf4: 5b pop %ebx <== NOT EXECUTED
145cf5: 5e pop %esi <== NOT EXECUTED
145cf6: 5f pop %edi <== NOT EXECUTED
145cf7: c9 leave <== NOT EXECUTED
145cf8: c3 ret <== NOT EXECUTED
00145b18 <rtems_rfs_bitmap_map_set_all>:
return 0;
}
int
rtems_rfs_bitmap_map_set_all (rtems_rfs_bitmap_control* control)
{
145b18: 55 push %ebp <== NOT EXECUTED
145b19: 89 e5 mov %esp,%ebp <== NOT EXECUTED
145b1b: 57 push %edi <== NOT EXECUTED
145b1c: 56 push %esi <== NOT EXECUTED
145b1d: 53 push %ebx <== NOT EXECUTED
145b1e: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
145b21: 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);
145b24: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
145b27: 89 d8 mov %ebx,%eax <== NOT EXECUTED
145b29: e8 ee fd ff ff call 14591c <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
145b2e: 85 c0 test %eax,%eax <== NOT EXECUTED
145b30: 7e 0a jle 145b3c <rtems_rfs_bitmap_map_set_all+0x24><== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
rtems_rfs_buffer_mark_dirty (control->buffer);
return 0;
}
145b32: 83 c4 1c add $0x1c,%esp <== NOT EXECUTED
145b35: 5b pop %ebx <== NOT EXECUTED
145b36: 5e pop %esi <== NOT EXECUTED
145b37: 5f pop %edi <== NOT EXECUTED
145b38: c9 leave <== NOT EXECUTED
145b39: c3 ret <== NOT EXECUTED
145b3a: 66 90 xchg %ax,%ax <== NOT EXECUTED
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
145b3c: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED
145b3f: 4f dec %edi <== NOT EXECUTED
145b40: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
145b43: 8d 77 01 lea 0x1(%edi),%esi <== NOT EXECUTED
control->free = 0;
145b46: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
145b4d: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
145b50: 31 d2 xor %edx,%edx <== NOT EXECUTED
145b52: 31 c0 xor %eax,%eax <== NOT EXECUTED
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
145b54: 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++)
145b5b: 40 inc %eax <== NOT EXECUTED
145b5c: 89 c2 mov %eax,%edx <== NOT EXECUTED
145b5e: 39 c6 cmp %eax,%esi <== NOT EXECUTED
145b60: 77 f2 ja 145b54 <rtems_rfs_bitmap_map_set_all+0x3c><== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
elements = rtems_rfs_bitmap_elements (elements);
145b62: c1 ef 05 shr $0x5,%edi <== NOT EXECUTED
145b65: 8d 77 01 lea 0x1(%edi),%esi <== NOT EXECUTED
for (e = 0; e < elements; e++)
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
145b68: 8b 4b 14 mov 0x14(%ebx),%ecx <== NOT EXECUTED
145b6b: 31 d2 xor %edx,%edx <== NOT EXECUTED
145b6d: 31 c0 xor %eax,%eax <== NOT EXECUTED
145b6f: 90 nop <== NOT EXECUTED
145b70: c7 04 91 00 00 00 00 movl $0x0,(%ecx,%edx,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++)
145b77: 40 inc %eax <== NOT EXECUTED
145b78: 89 c2 mov %eax,%edx <== NOT EXECUTED
145b7a: 39 f0 cmp %esi,%eax <== NOT EXECUTED
145b7c: 72 f2 jb 145b70 <rtems_rfs_bitmap_map_set_all+0x58><== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
rtems_rfs_buffer_mark_dirty (control->buffer);
145b7e: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
145b80: c6 00 01 movb $0x1,(%eax) <== NOT EXECUTED
145b83: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
145b85: 83 c4 1c add $0x1c,%esp <== NOT EXECUTED
145b88: 5b pop %ebx <== NOT EXECUTED
145b89: 5e pop %esi <== NOT EXECUTED
145b8a: 5f pop %edi <== NOT EXECUTED
145b8b: c9 leave <== NOT EXECUTED
145b8c: c3 ret <== NOT EXECUTED
00145b90 <rtems_rfs_bitmap_map_test>:
int
rtems_rfs_bitmap_map_test (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit,
bool* state)
{
145b90: 55 push %ebp <== NOT EXECUTED
145b91: 89 e5 mov %esp,%ebp <== NOT EXECUTED
145b93: 56 push %esi <== NOT EXECUTED
145b94: 53 push %ebx <== NOT EXECUTED
145b95: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
145b98: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
145b9b: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
rtems_rfs_bitmap_map map;
int index;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
145b9e: 8d 55 f4 lea -0xc(%ebp),%edx <== NOT EXECUTED
145ba1: 89 d8 mov %ebx,%eax <== NOT EXECUTED
145ba3: e8 74 fd ff ff call 14591c <rtems_rfs_bitmap_load_map><== NOT EXECUTED
if (rc > 0)
145ba8: 85 c0 test %eax,%eax <== NOT EXECUTED
145baa: 7e 08 jle 145bb4 <rtems_rfs_bitmap_map_test+0x24><== NOT EXECUTED
if (bit >= control->size)
return EINVAL;
index = rtems_rfs_bitmap_map_index (bit);
*state = rtems_rfs_bitmap_test (map[index], bit);
return 0;
}
145bac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
145baf: 5b pop %ebx <== NOT EXECUTED
145bb0: 5e pop %esi <== NOT EXECUTED
145bb1: c9 leave <== NOT EXECUTED
145bb2: c3 ret <== NOT EXECUTED
145bb3: 90 nop <== NOT EXECUTED
int index;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
if (bit >= control->size)
145bb4: 3b 73 0c cmp 0xc(%ebx),%esi <== NOT EXECUTED
145bb7: 73 23 jae 145bdc <rtems_rfs_bitmap_map_test+0x4c><== NOT EXECUTED
return EINVAL;
index = rtems_rfs_bitmap_map_index (bit);
*state = rtems_rfs_bitmap_test (map[index], bit);
145bb9: 89 f2 mov %esi,%edx <== NOT EXECUTED
145bbb: c1 fa 05 sar $0x5,%edx <== NOT EXECUTED
145bbe: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
145bc3: 89 f1 mov %esi,%ecx <== NOT EXECUTED
145bc5: d3 e0 shl %cl,%eax <== NOT EXECUTED
145bc7: 8b 4d f4 mov -0xc(%ebp),%ecx <== NOT EXECUTED
145bca: 85 04 91 test %eax,(%ecx,%edx,4) <== NOT EXECUTED
145bcd: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
145bd0: 0f 94 00 sete (%eax) <== NOT EXECUTED
145bd3: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
145bd5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
145bd8: 5b pop %ebx <== NOT EXECUTED
145bd9: 5e pop %esi <== NOT EXECUTED
145bda: c9 leave <== NOT EXECUTED
145bdb: c3 ret <== NOT EXECUTED
int index;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
if (bit >= control->size)
145bdc: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
return EINVAL;
index = rtems_rfs_bitmap_map_index (bit);
*state = rtems_rfs_bitmap_test (map[index], bit);
return 0;
}
145be1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
145be4: 5b pop %ebx <== NOT EXECUTED
145be5: 5e pop %esi <== NOT EXECUTED
145be6: c9 leave <== NOT EXECUTED
145be7: c3 ret <== NOT EXECUTED
001458c8 <rtems_rfs_bitmap_mask>:
return 0;
}
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask (unsigned int size)
{
1458c8: 55 push %ebp <== NOT EXECUTED
1458c9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1458cb: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
1458d0: 2b 4d 08 sub 0x8(%ebp),%ecx <== NOT EXECUTED
1458d3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1458d8: 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;
}
1458da: c9 leave <== NOT EXECUTED
1458db: c3 ret <== NOT EXECUTED
001458dc <rtems_rfs_bitmap_mask_section>:
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask_section (unsigned int start, unsigned int end)
{
1458dc: 55 push %ebp <== NOT EXECUTED
1458dd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1458df: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
1458e2: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_bitmap_element mask = 0;
if (end > start)
1458e5: 39 d0 cmp %edx,%eax <== NOT EXECUTED
1458e7: 76 17 jbe 145900 <rtems_rfs_bitmap_mask_section+0x24><== NOT EXECUTED
mask = rtems_rfs_bitmap_mask (end - start) << start;
1458e9: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1458eb: 29 c1 sub %eax,%ecx <== NOT EXECUTED
1458ed: 8d 49 20 lea 0x20(%ecx),%ecx <== NOT EXECUTED
1458f0: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1458f5: d3 e8 shr %cl,%eax <== NOT EXECUTED
1458f7: 88 d1 mov %dl,%cl <== NOT EXECUTED
1458f9: d3 e0 shl %cl,%eax <== NOT EXECUTED
return mask;
}
1458fb: c9 leave <== NOT EXECUTED
1458fc: c3 ret <== NOT EXECUTED
1458fd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask_section (unsigned int start, unsigned int end)
{
rtems_rfs_bitmap_element mask = 0;
if (end > start)
145900: 31 c0 xor %eax,%eax <== NOT EXECUTED
mask = rtems_rfs_bitmap_mask (end - start) << start;
return mask;
}
145902: c9 leave <== NOT EXECUTED
145903: c3 ret <== NOT EXECUTED
00145a34 <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)
{
145a34: 55 push %ebp <== NOT EXECUTED
145a35: 89 e5 mov %esp,%ebp <== NOT EXECUTED
145a37: 53 push %ebx <== NOT EXECUTED
145a38: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
145a3b: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
145a3e: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
size_t elements = rtems_rfs_bitmap_elements (size);
control->buffer = buffer;
145a41: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
145a44: 89 13 mov %edx,(%ebx) <== NOT EXECUTED
control->fs = fs;
145a46: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
145a49: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
control->block = block;
145a4c: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
145a4f: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
control->size = size;
145a52: 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));
145a55: 48 dec %eax <== NOT EXECUTED
145a56: c1 e8 0a shr $0xa,%eax <== NOT EXECUTED
145a59: 8d 04 85 04 00 00 00 lea 0x4(,%eax,4),%eax <== NOT EXECUTED
145a60: 50 push %eax <== NOT EXECUTED
145a61: e8 a2 93 fc ff call 10ee08 <malloc> <== NOT EXECUTED
145a66: 89 43 14 mov %eax,0x14(%ebx) <== NOT EXECUTED
if (!control->search_bits)
145a69: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
145a6c: 85 c0 test %eax,%eax <== NOT EXECUTED
145a6e: 74 0c je 145a7c <rtems_rfs_bitmap_open+0x48><== NOT EXECUTED
return ENOMEM;
return rtems_rfs_bitmap_create_search (control);
145a70: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
}
145a73: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
145a76: 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);
145a77: e9 e8 fe ff ff jmp 145964 <rtems_rfs_bitmap_create_search><== NOT EXECUTED
}
145a7c: b0 0c mov $0xc,%al <== NOT EXECUTED
145a7e: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
145a81: c9 leave <== NOT EXECUTED
145a82: c3 ret <== NOT EXECUTED
0013c64c <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)
{
13c64c: 55 push %ebp <== NOT EXECUTED
13c64d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c64f: 57 push %edi <== NOT EXECUTED
13c650: 56 push %esi <== NOT EXECUTED
13c651: 53 push %ebx <== NOT EXECUTED
13c652: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13c655: 89 c3 mov %eax,%ebx <== NOT EXECUTED
13c657: 89 d6 mov %edx,%esi <== NOT EXECUTED
13c659: 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);
13c65c: 6a 01 push $0x1 <== NOT EXECUTED
13c65e: 51 push %ecx <== NOT EXECUTED
13c65f: 52 push %edx <== NOT EXECUTED
13c660: 50 push %eax <== NOT EXECUTED
13c661: e8 7e 0f 00 00 call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
if (rc > 0)
13c666: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c669: 85 c0 test %eax,%eax <== NOT EXECUTED
13c66b: 7e 0b jle 13c678 <rtems_rfs_block_find_indirect+0x2c><== NOT EXECUTED
*result = 0;
rc = EIO;
}
return 0;
}
13c66d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c670: 5b pop %ebx <== NOT EXECUTED
13c671: 5e pop %esi <== NOT EXECUTED
13c672: 5f pop %edi <== NOT EXECUTED
13c673: c9 leave <== NOT EXECUTED
13c674: c3 ret <== NOT EXECUTED
13c675: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/
rc = rtems_rfs_buffer_handle_request (fs, buffer, block, true);
if (rc > 0)
return rc;
*result = rtems_rfs_block_get_number (buffer, offset);
13c678: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
13c67b: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
13c67e: 8d 0c bd 00 00 00 00 lea 0x0(,%edi,4),%ecx <== NOT EXECUTED
13c685: 0f b6 44 0a 03 movzbl 0x3(%edx,%ecx,1),%eax <== NOT EXECUTED
13c68a: 0f b6 34 0a movzbl (%edx,%ecx,1),%esi <== NOT EXECUTED
13c68e: c1 e6 18 shl $0x18,%esi <== NOT EXECUTED
13c691: 09 f0 or %esi,%eax <== NOT EXECUTED
13c693: 0f b6 4c 0a 01 movzbl 0x1(%edx,%ecx,1),%ecx <== NOT EXECUTED
13c698: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13c69b: 09 c8 or %ecx,%eax <== NOT EXECUTED
13c69d: 0f b6 54 ba 02 movzbl 0x2(%edx,%edi,4),%edx <== NOT EXECUTED
13c6a2: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
13c6a5: 09 d0 or %edx,%eax <== NOT EXECUTED
if ((*result + 1) == 0)
13c6a7: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
13c6aa: 74 20 je 13c6cc <rtems_rfs_block_find_indirect+0x80><== NOT EXECUTED
13c6ac: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13c6af: 89 02 mov %eax,(%edx) <== NOT EXECUTED
*result = 0;
if (*result >= rtems_rfs_fs_blocks (fs))
13c6b1: 3b 43 04 cmp 0x4(%ebx),%eax <== NOT EXECUTED
13c6b4: 72 09 jb 13c6bf <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;
13c6b6: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13c6b9: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
13c6bf: 31 c0 xor %eax,%eax <== NOT EXECUTED
rc = EIO;
}
return 0;
}
13c6c1: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c6c4: 5b pop %ebx <== NOT EXECUTED
13c6c5: 5e pop %esi <== NOT EXECUTED
13c6c6: 5f pop %edi <== NOT EXECUTED
13c6c7: c9 leave <== NOT EXECUTED
13c6c8: c3 ret <== NOT EXECUTED
13c6c9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, buffer, block, true);
if (rc > 0)
return rc;
*result = rtems_rfs_block_get_number (buffer, offset);
if ((*result + 1) == 0)
13c6cc: 31 c0 xor %eax,%eax <== NOT EXECUTED
13c6ce: eb dc jmp 13c6ac <rtems_rfs_block_find_indirect+0x60><== NOT EXECUTED
0013c5ac <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)
{
13c5ac: 55 push %ebp <== NOT EXECUTED
13c5ad: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c5af: 57 push %edi <== NOT EXECUTED
13c5b0: 56 push %esi <== NOT EXECUTED
13c5b1: 53 push %ebx <== NOT EXECUTED
13c5b2: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
13c5b5: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
13c5b8: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
13c5bb: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
if (pos == 0)
13c5be: 89 f0 mov %esi,%eax <== NOT EXECUTED
13c5c0: 09 d8 or %ebx,%eax <== NOT EXECUTED
13c5c2: 74 38 je 13c5fc <rtems_rfs_block_get_block_size+0x50><== NOT EXECUTED
rtems_rfs_block_set_size_zero (size);
else
{
size->count = pos / rtems_rfs_fs_block_size (fs) + 1;
13c5c4: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13c5c7: 8b 50 08 mov 0x8(%eax),%edx <== NOT EXECUTED
13c5ca: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
13c5cc: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
13c5cf: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
13c5d2: 51 push %ecx <== NOT EXECUTED
13c5d3: 52 push %edx <== NOT EXECUTED
13c5d4: 56 push %esi <== NOT EXECUTED
13c5d5: 53 push %ebx <== NOT EXECUTED
13c5d6: e8 5d fe 01 00 call 15c438 <__udivdi3> <== NOT EXECUTED
13c5db: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c5de: 40 inc %eax <== NOT EXECUTED
13c5df: 89 07 mov %eax,(%edi) <== NOT EXECUTED
size->offset = pos % rtems_rfs_fs_block_size (fs);
13c5e1: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13c5e4: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13c5e7: 56 push %esi <== NOT EXECUTED
13c5e8: 53 push %ebx <== NOT EXECUTED
13c5e9: e8 5a ff 01 00 call 15c548 <__umoddi3> <== NOT EXECUTED
13c5ee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c5f1: 89 47 04 mov %eax,0x4(%edi) <== NOT EXECUTED
}
}
13c5f4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c5f7: 5b pop %ebx <== NOT EXECUTED
13c5f8: 5e pop %esi <== NOT EXECUTED
13c5f9: 5f pop %edi <== NOT EXECUTED
13c5fa: c9 leave <== NOT EXECUTED
13c5fb: c3 ret <== 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;
13c5fc: c7 07 00 00 00 00 movl $0x0,(%edi) <== NOT EXECUTED
size->offset = 0;
13c602: c7 47 04 00 00 00 00 movl $0x0,0x4(%edi) <== NOT EXECUTED
13c609: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c60c: 5b pop %ebx <== NOT EXECUTED
13c60d: 5e pop %esi <== NOT EXECUTED
13c60e: 5f pop %edi <== NOT EXECUTED
13c60f: c9 leave <== NOT EXECUTED
13c610: c3 ret <== NOT EXECUTED
0013c550 <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)
{
13c550: 55 push %ebp <== NOT EXECUTED
13c551: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c553: 57 push %edi <== NOT EXECUTED
13c554: 56 push %esi <== NOT EXECUTED
13c555: 53 push %ebx <== NOT EXECUTED
13c556: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13c559: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
bpos->bno = pos / rtems_rfs_fs_block_size (fs);
13c55c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13c55f: 8b 58 08 mov 0x8(%eax),%ebx <== NOT EXECUTED
13c562: 31 f6 xor %esi,%esi <== NOT EXECUTED
13c564: 56 push %esi <== NOT EXECUTED
13c565: 53 push %ebx <== NOT EXECUTED
13c566: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13c569: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13c56c: e8 c7 fe 01 00 call 15c438 <__udivdi3> <== NOT EXECUTED
13c571: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c574: 89 07 mov %eax,(%edi) <== NOT EXECUTED
bpos->boff = pos % rtems_rfs_fs_block_size (fs);
13c576: 56 push %esi <== NOT EXECUTED
13c577: 53 push %ebx <== NOT EXECUTED
13c578: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13c57b: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13c57e: e8 c5 ff 01 00 call 15c548 <__umoddi3> <== NOT EXECUTED
13c583: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c586: 89 47 04 mov %eax,0x4(%edi) <== NOT EXECUTED
}
13c589: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c58c: 5b pop %ebx <== NOT EXECUTED
13c58d: 5e pop %esi <== NOT EXECUTED
13c58e: 5f pop %edi <== NOT EXECUTED
13c58f: c9 leave <== NOT EXECUTED
13c590: c3 ret <== NOT EXECUTED
0013c594 <rtems_rfs_block_get_pos>:
rtems_rfs_pos
rtems_rfs_block_get_pos (rtems_rfs_file_system* fs,
rtems_rfs_block_pos* bpos)
{
13c594: 55 push %ebp <== NOT EXECUTED
13c595: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c597: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13c59a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13c59d: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
13c5a0: 0f af 02 imul (%edx),%eax <== NOT EXECUTED
13c5a3: 03 42 04 add 0x4(%edx),%eax <== NOT EXECUTED
return (bpos->bno * rtems_rfs_fs_block_size (fs)) + bpos->boff;
}
13c5a6: 31 d2 xor %edx,%edx <== NOT EXECUTED
13c5a8: c9 leave <== NOT EXECUTED
13c5a9: c3 ret <== NOT EXECUTED
0013c614 <rtems_rfs_block_get_size>:
rtems_rfs_pos
rtems_rfs_block_get_size (rtems_rfs_file_system* fs,
rtems_rfs_block_size* size)
{
13c614: 55 push %ebp <== NOT EXECUTED
13c615: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c617: 53 push %ebx <== NOT EXECUTED
13c618: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13c61b: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
uint32_t offset;
uint64_t block_size;
if (size->count == 0)
13c61e: 8b 10 mov (%eax),%edx <== NOT EXECUTED
13c620: 85 d2 test %edx,%edx <== NOT EXECUTED
13c622: 74 20 je 13c644 <rtems_rfs_block_get_size+0x30><== NOT EXECUTED
return 0;
if (size->offset == 0)
13c624: 8b 48 04 mov 0x4(%eax),%ecx <== NOT EXECUTED
13c627: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13c629: 74 11 je 13c63c <rtems_rfs_block_get_size+0x28><== NOT EXECUTED
13c62b: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
offset = rtems_rfs_fs_block_size (fs);
else
offset = size->offset;
block_size = rtems_rfs_fs_block_size (fs);
return (((uint64_t) (size->count - 1)) * block_size) + offset;
13c62e: 4a dec %edx <== NOT EXECUTED
13c62f: f7 e2 mul %edx <== NOT EXECUTED
13c631: 31 db xor %ebx,%ebx <== NOT EXECUTED
13c633: 01 c8 add %ecx,%eax <== NOT EXECUTED
13c635: 11 da adc %ebx,%edx <== NOT EXECUTED
}
13c637: 5b pop %ebx <== NOT EXECUTED
13c638: c9 leave <== NOT EXECUTED
13c639: c3 ret <== NOT EXECUTED
13c63a: 66 90 xchg %ax,%ax <== NOT EXECUTED
uint32_t offset;
uint64_t block_size;
if (size->count == 0)
return 0;
if (size->offset == 0)
offset = rtems_rfs_fs_block_size (fs);
13c63c: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
13c63f: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13c641: eb eb jmp 13c62e <rtems_rfs_block_get_size+0x1a><== NOT EXECUTED
13c643: 90 nop <== NOT EXECUTED
rtems_rfs_block_get_size (rtems_rfs_file_system* fs,
rtems_rfs_block_size* size)
{
uint32_t offset;
uint64_t block_size;
if (size->count == 0)
13c644: 31 c0 xor %eax,%eax <== NOT EXECUTED
13c646: 31 d2 xor %edx,%edx <== NOT EXECUTED
offset = rtems_rfs_fs_block_size (fs);
else
offset = size->offset;
block_size = rtems_rfs_fs_block_size (fs);
return (((uint64_t) (size->count - 1)) * block_size) + offset;
}
13c648: 5b pop %ebx <== NOT EXECUTED
13c649: c9 leave <== NOT EXECUTED
13c64a: c3 ret <== NOT EXECUTED
0013cfe8 <rtems_rfs_block_map_close>:
}
int
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map)
{
13cfe8: 55 push %ebp <== NOT EXECUTED
13cfe9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13cfeb: 57 push %edi <== NOT EXECUTED
13cfec: 56 push %esi <== NOT EXECUTED
13cfed: 53 push %ebx <== NOT EXECUTED
13cfee: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13cff1: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13cff4: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc = 0;
int brc;
if (map->dirty && map->inode)
13cff7: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
13cffa: 74 68 je 13d064 <rtems_rfs_block_map_close+0x7c><== NOT EXECUTED
13cffc: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED
13cfff: 85 c0 test %eax,%eax <== NOT EXECUTED
13d001: 74 61 je 13d064 <rtems_rfs_block_map_close+0x7c><== NOT EXECUTED
{
brc = rtems_rfs_inode_load (fs, map->inode);
13d003: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d006: 50 push %eax <== NOT EXECUTED
13d007: 56 push %esi <== NOT EXECUTED
13d008: e8 4f 3f 00 00 call 140f5c <rtems_rfs_inode_load> <== NOT EXECUTED
if (brc > 0)
13d00d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d010: 85 c0 test %eax,%eax <== NOT EXECUTED
13d012: 7e 54 jle 13d068 <rtems_rfs_block_map_close+0x80><== NOT EXECUTED
13d014: 89 c7 mov %eax,%edi <== NOT EXECUTED
map->dirty = false;
}
}
map->inode = NULL;
13d016: 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);
13d01d: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d020: 8d 43 38 lea 0x38(%ebx),%eax <== NOT EXECUTED
13d023: 50 push %eax <== NOT EXECUTED
13d024: 56 push %esi <== NOT EXECUTED
13d025: e8 b6 04 00 00 call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13d02a: c6 43 38 00 movb $0x0,0x38(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13d02e: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13d035: 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);
13d03c: 58 pop %eax <== NOT EXECUTED
13d03d: 5a pop %edx <== NOT EXECUTED
13d03e: 8d 43 44 lea 0x44(%ebx),%eax <== NOT EXECUTED
13d041: 50 push %eax <== NOT EXECUTED
13d042: 56 push %esi <== NOT EXECUTED
13d043: e8 98 04 00 00 call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13d048: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13d04c: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13d053: 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;
}
13d05a: 89 f8 mov %edi,%eax <== NOT EXECUTED
13d05c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d05f: 5b pop %ebx <== NOT EXECUTED
13d060: 5e pop %esi <== NOT EXECUTED
13d061: 5f pop %edi <== NOT EXECUTED
13d062: c9 leave <== NOT EXECUTED
13d063: c3 ret <== NOT EXECUTED
brc = rtems_rfs_inode_unload (fs, map->inode, true);
if (brc > 0)
rc = brc;
map->dirty = false;
13d064: 31 ff xor %edi,%edi <== NOT EXECUTED
13d066: eb ae jmp 13d016 <rtems_rfs_block_map_close+0x2e><== NOT EXECUTED
int brc;
if (map->dirty && map->inode)
{
brc = rtems_rfs_inode_load (fs, map->inode);
if (brc > 0)
13d068: 31 c0 xor %eax,%eax <== NOT EXECUTED
13d06a: 89 75 e4 mov %esi,-0x1c(%ebp) <== NOT EXECUTED
13d06d: 89 5d d4 mov %ebx,-0x2c(%ebp) <== 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]);
13d070: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
13d073: 8b 4c 02 24 mov 0x24(%edx,%eax,1),%ecx <== NOT EXECUTED
13d077: 8b 52 04 mov 0x4(%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);
13d07a: 8b 72 0c mov 0xc(%edx),%esi <== NOT EXECUTED
13d07d: 89 cf mov %ecx,%edi <== NOT EXECUTED
13d07f: c1 ef 18 shr $0x18,%edi <== NOT EXECUTED
13d082: 89 fb mov %edi,%ebx <== NOT EXECUTED
13d084: 88 5c 06 1c mov %bl,0x1c(%esi,%eax,1) <== NOT EXECUTED
13d088: 8b 72 0c mov 0xc(%edx),%esi <== NOT EXECUTED
13d08b: 89 cf mov %ecx,%edi <== NOT EXECUTED
13d08d: c1 ef 10 shr $0x10,%edi <== NOT EXECUTED
13d090: 89 fb mov %edi,%ebx <== NOT EXECUTED
13d092: 88 5c 06 1d mov %bl,0x1d(%esi,%eax,1) <== NOT EXECUTED
13d096: 8b 72 0c mov 0xc(%edx),%esi <== NOT EXECUTED
13d099: 89 cf mov %ecx,%edi <== NOT EXECUTED
13d09b: c1 ef 08 shr $0x8,%edi <== NOT EXECUTED
13d09e: 89 fb mov %edi,%ebx <== NOT EXECUTED
13d0a0: 88 5c 06 1e mov %bl,0x1e(%esi,%eax,1) <== NOT EXECUTED
13d0a4: 8b 72 0c mov 0xc(%edx),%esi <== NOT EXECUTED
13d0a7: 88 4c 06 1f mov %cl,0x1f(%esi,%eax,1) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
13d0ab: c6 42 10 01 movb $0x1,0x10(%edx) <== NOT EXECUTED
13d0af: 83 c0 04 add $0x4,%eax <== NOT EXECUTED
if (rc == 0)
{
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
13d0b2: 83 f8 14 cmp $0x14,%eax <== NOT EXECUTED
13d0b5: 75 b9 jne 13d070 <rtems_rfs_block_map_close+0x88><== NOT EXECUTED
13d0b7: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
13d0ba: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);
rtems_rfs_inode_set_block_count (map->inode, map->size.count);
13d0bd: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
13d0c0: 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);
13d0c3: 89 d7 mov %edx,%edi <== NOT EXECUTED
13d0c5: c1 ef 18 shr $0x18,%edi <== NOT EXECUTED
13d0c8: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
13d0cb: 8a 4d e4 mov -0x1c(%ebp),%cl <== NOT EXECUTED
13d0ce: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13d0d1: 88 4f 0c mov %cl,0xc(%edi) <== NOT EXECUTED
13d0d4: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13d0d6: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
13d0d9: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13d0dc: 88 4f 0d mov %cl,0xd(%edi) <== NOT EXECUTED
13d0df: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13d0e1: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
13d0e4: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13d0e7: 88 4f 0e mov %cl,0xe(%edi) <== NOT EXECUTED
13d0ea: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
13d0ed: 88 51 0f mov %dl,0xf(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
13d0f0: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
rtems_rfs_inode_set_block_offset (map->inode, map->size.offset);
13d0f4: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
13d0f7: 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);
13d0fa: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13d0fc: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
13d100: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13d103: 88 4f 0a mov %cl,0xa(%edi) <== NOT EXECUTED
13d106: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
13d109: 88 51 0b mov %dl,0xb(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
13d10c: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
13d110: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
13d113: 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);
13d116: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13d118: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
13d11b: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13d11e: 88 4f 30 mov %cl,0x30(%edi) <== NOT EXECUTED
13d121: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13d123: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
13d126: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13d129: 88 4f 31 mov %cl,0x31(%edi) <== NOT EXECUTED
13d12c: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13d12e: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
13d131: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13d134: 88 4f 32 mov %cl,0x32(%edi) <== NOT EXECUTED
13d137: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
13d13a: 88 51 33 mov %dl,0x33(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
13d13d: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
13d141: 8b 53 20 mov 0x20(%ebx),%edx <== NOT EXECUTED
13d144: 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);
13d147: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13d149: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
13d14c: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13d14f: 88 4f 34 mov %cl,0x34(%edi) <== NOT EXECUTED
13d152: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13d154: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
13d157: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13d15a: 88 4f 35 mov %cl,0x35(%edi) <== NOT EXECUTED
13d15d: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13d15f: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
13d162: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13d165: 88 4f 36 mov %cl,0x36(%edi) <== NOT EXECUTED
13d168: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
13d16b: 88 51 37 mov %dl,0x37(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
13d16e: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
brc = rtems_rfs_inode_unload (fs, map->inode, true);
13d172: 51 push %ecx <== NOT EXECUTED
13d173: 6a 01 push $0x1 <== NOT EXECUTED
13d175: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
13d178: 56 push %esi <== NOT EXECUTED
13d179: e8 12 3d 00 00 call 140e90 <rtems_rfs_inode_unload><== NOT EXECUTED
13d17e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d181: 89 c7 mov %eax,%edi <== NOT EXECUTED
13d183: 85 c0 test %eax,%eax <== NOT EXECUTED
13d185: 78 09 js 13d190 <rtems_rfs_block_map_close+0x1a8><== NOT EXECUTED
if (brc > 0)
rc = brc;
map->dirty = false;
13d187: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
13d18a: e9 87 fe ff ff jmp 13d016 <rtems_rfs_block_map_close+0x2e><== NOT EXECUTED
13d18f: 90 nop <== NOT EXECUTED
rtems_rfs_inode_set_block_count (map->inode, map->size.count);
rtems_rfs_inode_set_block_offset (map->inode, map->size.offset);
rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
brc = rtems_rfs_inode_unload (fs, map->inode, true);
13d190: 31 ff xor %edi,%edi <== NOT EXECUTED
13d192: eb f3 jmp 13d187 <rtems_rfs_block_map_close+0x19f><== NOT EXECUTED
0013c6d0 <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)
{
13c6d0: 55 push %ebp <== NOT EXECUTED
13c6d1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c6d3: 57 push %edi <== NOT EXECUTED
13c6d4: 56 push %esi <== NOT EXECUTED
13c6d5: 53 push %ebx <== NOT EXECUTED
13c6d6: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13c6d9: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
13c6dc: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
13c6df: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
int rc = 0;
*block = 0;
13c6e2: 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))
13c6e8: 8b 06 mov (%esi),%eax <== NOT EXECUTED
13c6ea: 85 c0 test %eax,%eax <== NOT EXECUTED
13c6ec: 75 6e jne 13c75c <rtems_rfs_block_map_find+0x8c><== NOT EXECUTED
13c6ee: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
13c6f1: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13c6f3: 73 57 jae 13c74c <rtems_rfs_block_map_find+0x7c><== 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))
13c6f5: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
13c6f8: 74 6e je 13c768 <rtems_rfs_block_map_find+0x98><== 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)
13c6fa: 83 f9 05 cmp $0x5,%ecx <== NOT EXECUTED
13c6fd: 77 29 ja 13c728 <rtems_rfs_block_map_find+0x58><== NOT EXECUTED
{
*block = map->blocks[bpos->bno];
13c6ff: 8b 44 83 24 mov 0x24(%ebx,%eax,4),%eax <== NOT EXECUTED
13c703: 89 07 mov %eax,(%edi) <== NOT EXECUTED
}
}
if (rc == 0)
{
rtems_rfs_block_copy_bpos (&map->bpos, bpos);
13c705: 8b 06 mov (%esi),%eax <== NOT EXECUTED
13c707: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
13c70a: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
13c70d: 89 43 14 mov %eax,0x14(%ebx) <== NOT EXECUTED
13c710: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
13c713: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
map->bpos.block = *block;
13c716: 8b 07 mov (%edi),%eax <== NOT EXECUTED
13c718: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
13c71b: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return rc;
}
13c71d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c720: 5b pop %ebx <== NOT EXECUTED
13c721: 5e pop %esi <== NOT EXECUTED
13c722: 5f pop %edi <== NOT EXECUTED
13c723: c9 leave <== NOT EXECUTED
13c724: c3 ret <== NOT EXECUTED
13c725: 8d 76 00 lea 0x0(%esi),%esi <== 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;
13c728: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13c72b: 8b 52 30 mov 0x30(%edx),%edx <== NOT EXECUTED
13c72e: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
13c731: 31 d2 xor %edx,%edx <== NOT EXECUTED
13c733: f7 75 d4 divl -0x2c(%ebp) <== NOT EXECUTED
13c736: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
singly = bpos->bno / fs->blocks_per_block;
13c739: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
if (map->size.count <= fs->block_map_singly_blocks)
13c73c: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13c73f: 3b 4a 34 cmp 0x34(%edx),%ecx <== NOT EXECUTED
13c742: 76 30 jbe 13c774 <rtems_rfs_block_map_find+0xa4><== 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)
13c744: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13c747: 3b 4a 38 cmp 0x38(%edx),%ecx <== NOT EXECUTED
13c74a: 72 4c jb 13c798 <rtems_rfs_block_map_find+0xc8><== NOT EXECUTED
}
if (rc == 0)
{
rtems_rfs_block_copy_bpos (&map->bpos, bpos);
map->bpos.block = *block;
13c74c: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED
}
return rc;
}
13c751: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c754: 5b pop %ebx <== NOT EXECUTED
13c755: 5e pop %esi <== NOT EXECUTED
13c756: 5f pop %edi <== NOT EXECUTED
13c757: c9 leave <== NOT EXECUTED
13c758: c3 ret <== NOT EXECUTED
13c759: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*block = 0;
/*
* Range checking here makes the remaining logic simpler.
*/
if (rtems_rfs_block_pos_block_past_end (bpos, &map->size))
13c75c: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
13c75f: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13c761: 75 8e jne 13c6f1 <rtems_rfs_block_map_find+0x21><== NOT EXECUTED
13c763: eb e7 jmp 13c74c <rtems_rfs_block_map_find+0x7c><== NOT EXECUTED
13c765: 8d 76 00 lea 0x0(%esi),%esi <== 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))
13c768: 8b 53 18 mov 0x18(%ebx),%edx <== NOT EXECUTED
13c76b: 85 d2 test %edx,%edx <== NOT EXECUTED
13c76d: 74 8b je 13c6fa <rtems_rfs_block_map_find+0x2a><== NOT EXECUTED
{
*block = map->bpos.block;
13c76f: 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))
13c771: eb 92 jmp 13c705 <rtems_rfs_block_map_find+0x35><== NOT EXECUTED
13c773: 90 nop <== NOT EXECUTED
{
/*
* This is a single indirect table of blocks anchored off a slot in the
* inode.
*/
rc = rtems_rfs_block_find_indirect (fs,
13c774: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c777: 8b 4c 83 24 mov 0x24(%ebx,%eax,4),%ecx <== NOT EXECUTED
13c77b: 8d 53 38 lea 0x38(%ebx),%edx <== NOT EXECUTED
13c77e: 57 push %edi <== NOT EXECUTED
13c77f: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
13c782: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13c785: e8 c2 fe ff ff call 13c64c <rtems_rfs_block_find_indirect><== NOT EXECUTED
13c78a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
}
}
if (rc == 0)
13c78d: 85 c0 test %eax,%eax <== NOT EXECUTED
13c78f: 75 c0 jne 13c751 <rtems_rfs_block_map_find+0x81><== NOT EXECUTED
13c791: e9 6f ff ff ff jmp 13c705 <rtems_rfs_block_map_find+0x35><== NOT EXECUTED
13c796: 66 90 xchg %ax,%ax <== NOT EXECUTED
* The map is doubly indirect.
*/
rtems_rfs_block_no doubly;
doubly = singly / fs->blocks_per_block;
singly %= fs->blocks_per_block;
13c798: 31 d2 xor %edx,%edx <== NOT EXECUTED
13c79a: f7 75 d4 divl -0x2c(%ebp) <== NOT EXECUTED
13c79d: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
if (map->size.count < fs->block_map_doubly_blocks)
{
rc = rtems_rfs_block_find_indirect (fs,
13c7a0: 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;
13c7a4: 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,
13c7a7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c7aa: 8d 53 44 lea 0x44(%ebx),%edx <== NOT EXECUTED
13c7ad: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13c7b0: 50 push %eax <== NOT EXECUTED
13c7b1: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
13c7b4: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13c7b7: e8 90 fe ff ff call 13c64c <rtems_rfs_block_find_indirect><== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
singly, &singly);
if (rc == 0)
13c7bc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c7bf: 85 c0 test %eax,%eax <== NOT EXECUTED
13c7c1: 75 8e jne 13c751 <rtems_rfs_block_map_find+0x81><== NOT EXECUTED
{
rc = rtems_rfs_block_find_indirect (fs,
13c7c3: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13c7c6: 8d 53 38 lea 0x38(%ebx),%edx <== NOT EXECUTED
13c7c9: 57 push %edi <== NOT EXECUTED
13c7ca: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
13c7cd: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13c7d0: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13c7d3: e8 74 fe ff ff call 13c64c <rtems_rfs_block_find_indirect><== NOT EXECUTED
13c7d8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c7db: eb b0 jmp 13c78d <rtems_rfs_block_map_find+0xbd><== NOT EXECUTED
0013cbbc <rtems_rfs_block_map_free_all>:
}
int
rtems_rfs_block_map_free_all (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map)
{
13cbbc: 55 push %ebp <== NOT EXECUTED
13cbbd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13cbbf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13cbc2: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return rtems_rfs_block_map_shrink (fs, map, map->size.count);
13cbc5: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
13cbc8: 50 push %eax <== NOT EXECUTED
13cbc9: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13cbcc: e8 47 fd ff ff call 13c918 <rtems_rfs_block_map_shrink><== NOT EXECUTED
}
13cbd1: c9 leave <== NOT EXECUTED
13cbd2: c3 ret <== NOT EXECUTED
0013ccc4 <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)
{
13ccc4: 55 push %ebp <== NOT EXECUTED
13ccc5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ccc7: 57 push %edi <== NOT EXECUTED
13ccc8: 56 push %esi <== NOT EXECUTED
13ccc9: 53 push %ebx <== NOT EXECUTED
13ccca: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
13cccd: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13ccd0: 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))
13ccd3: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13ccd6: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED
13ccd9: 3b 46 38 cmp 0x38(%esi),%eax <== NOT EXECUTED
13ccdc: 0f 83 be 02 00 00 jae 13cfa0 <rtems_rfs_block_map_grow+0x2dc><== 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++)
13cce2: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
13cce5: 85 ff test %edi,%edi <== NOT EXECUTED
13cce7: 0f 84 c3 02 00 00 je 13cfb0 <rtems_rfs_block_map_grow+0x2ec><== NOT EXECUTED
13cced: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
&map->blocks[singly],
upping);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
13ccf0: 8d 53 38 lea 0x38(%ebx),%edx <== NOT EXECUTED
13ccf3: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED
return rc;
}
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
13ccf6: 8d 4b 44 lea 0x44(%ebx),%ecx <== NOT EXECUTED
13ccf9: 89 4d c4 mov %ecx,-0x3c(%ebp) <== NOT EXECUTED
13ccfc: 31 ff xor %edi,%edi <== NOT EXECUTED
13ccfe: eb 2d jmp 13cd2d <rtems_rfs_block_map_grow+0x69><== NOT EXECUTED
false, &block);
if (rc > 0)
return rc;
if (map->size.count < RTEMS_RFS_INODE_BLOCKS)
map->blocks[map->size.count] = block;
13cd00: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13cd03: 89 44 8b 24 mov %eax,0x24(%ebx,%ecx,4) <== NOT EXECUTED
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
}
map->size.count++;
13cd07: ff 43 08 incl 0x8(%ebx) <== NOT EXECUTED
map->size.offset = 0;
13cd0a: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
if (b == 0)
13cd11: 85 ff test %edi,%edi <== NOT EXECUTED
13cd13: 75 08 jne 13cd1d <rtems_rfs_block_map_grow+0x59><== NOT EXECUTED
*new_block = block;
13cd15: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
13cd18: 89 02 mov %eax,(%edx) <== NOT EXECUTED
13cd1a: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
map->last_data_block = block;
13cd1d: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
map->dirty = true;
13cd20: 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++)
13cd23: 47 inc %edi <== NOT EXECUTED
13cd24: 39 7d 10 cmp %edi,0x10(%ebp) <== NOT EXECUTED
13cd27: 0f 86 83 02 00 00 jbe 13cfb0 <rtems_rfs_block_map_grow+0x2ec><== 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,
13cd2d: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13cd30: 52 push %edx <== NOT EXECUTED
13cd31: 6a 00 push $0x0 <== NOT EXECUTED
13cd33: 50 push %eax <== NOT EXECUTED
13cd34: 56 push %esi <== NOT EXECUTED
13cd35: e8 ce 3b 00 00 call 140908 <rtems_rfs_group_bitmap_alloc><== NOT EXECUTED
false, &block);
if (rc > 0)
13cd3a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cd3d: 85 c0 test %eax,%eax <== NOT EXECUTED
13cd3f: 0f 8f 77 02 00 00 jg 13cfbc <rtems_rfs_block_map_grow+0x2f8><== NOT EXECUTED
return rc;
if (map->size.count < RTEMS_RFS_INODE_BLOCKS)
13cd45: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
13cd48: 83 f9 04 cmp $0x4,%ecx <== NOT EXECUTED
13cd4b: 76 b3 jbe 13cd00 <rtems_rfs_block_map_grow+0x3c><== 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;
13cd4d: 8b 46 30 mov 0x30(%esi),%eax <== NOT EXECUTED
13cd50: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
13cd53: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13cd55: 31 d2 xor %edx,%edx <== NOT EXECUTED
13cd57: f7 75 d4 divl -0x2c(%ebp) <== NOT EXECUTED
13cd5a: 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)
13cd5d: 3b 4e 34 cmp 0x34(%esi),%ecx <== NOT EXECUTED
13cd60: 0f 83 8a 00 00 00 jae 13cdf0 <rtems_rfs_block_map_grow+0x12c><== 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) ||
13cd66: 85 d2 test %edx,%edx <== NOT EXECUTED
13cd68: 0f 84 0a 02 00 00 je 13cf78 <rtems_rfs_block_map_grow+0x2b4><== NOT EXECUTED
13cd6e: 85 c0 test %eax,%eax <== NOT EXECUTED
13cd70: 75 09 jne 13cd7b <rtems_rfs_block_map_grow+0xb7><== NOT EXECUTED
13cd72: 83 fa 05 cmp $0x5,%edx <== NOT EXECUTED
13cd75: 0f 84 fd 01 00 00 je 13cf78 <rtems_rfs_block_map_grow+0x2b4><== NOT EXECUTED
&map->blocks[singly],
upping);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
13cd7b: 6a 01 push $0x1 <== NOT EXECUTED
13cd7d: ff 74 83 24 pushl 0x24(%ebx,%eax,4) <== NOT EXECUTED
13cd81: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
13cd84: 56 push %esi <== NOT EXECUTED
13cd85: e8 5a 08 00 00 call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
13cd8a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
singly);
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
singly_block, true);
if (rc > 0)
13cd8d: 85 c0 test %eax,%eax <== NOT EXECUTED
13cd8f: 0f 8f 33 02 00 00 jg 13cfc8 <rtems_rfs_block_map_grow+0x304><== NOT EXECUTED
return rc;
}
}
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
13cd95: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
13cd98: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
13cd9b: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
13cd9e: 8b 53 40 mov 0x40(%ebx),%edx <== NOT EXECUTED
13cda1: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13cda4: 0f b6 4d e7 movzbl -0x19(%ebp),%ecx <== NOT EXECUTED
13cda8: 88 0c 02 mov %cl,(%edx,%eax,1) <== NOT EXECUTED
13cdab: 8b 53 40 mov 0x40(%ebx),%edx <== NOT EXECUTED
13cdae: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13cdb1: 0f b7 4d e6 movzwl -0x1a(%ebp),%ecx <== NOT EXECUTED
13cdb5: 88 4c 02 01 mov %cl,0x1(%edx,%eax,1) <== NOT EXECUTED
13cdb9: 8b 53 40 mov 0x40(%ebx),%edx <== NOT EXECUTED
13cdbc: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13cdbf: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
13cdc2: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13cdc5: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
13cdc8: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
13cdcb: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13cdce: 88 54 88 02 mov %dl,0x2(%eax,%ecx,4) <== NOT EXECUTED
13cdd2: 8b 53 40 mov 0x40(%ebx),%edx <== NOT EXECUTED
13cdd5: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13cdd8: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13cddb: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
13cdde: 88 4c 02 03 mov %cl,0x3(%edx,%eax,1) <== NOT EXECUTED
13cde2: c6 43 38 01 movb $0x1,0x38(%ebx) <== NOT EXECUTED
13cde6: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13cde9: e9 19 ff ff ff jmp 13cd07 <rtems_rfs_block_map_grow+0x43><== NOT EXECUTED
13cdee: 66 90 xchg %ax,%ax <== 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;
13cdf0: 31 d2 xor %edx,%edx <== NOT EXECUTED
13cdf2: f7 75 d4 divl -0x2c(%ebp) <== NOT EXECUTED
13cdf5: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
13cdf8: 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)
13cdfb: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
13cdfe: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13ce00: 0f 85 06 01 00 00 jne 13cf0c <rtems_rfs_block_map_grow+0x248><== NOT EXECUTED
{
rc = rtems_rfs_block_map_indirect_alloc (fs, map,
13ce06: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ce09: 6a 00 push $0x0 <== NOT EXECUTED
13ce0b: 8d 4d e0 lea -0x20(%ebp),%ecx <== NOT EXECUTED
13ce0e: 51 push %ecx <== NOT EXECUTED
13ce0f: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
13ce12: 89 da mov %ebx,%edx <== NOT EXECUTED
13ce14: 89 f0 mov %esi,%eax <== NOT EXECUTED
13ce16: e8 b9 fd ff ff call 13cbd4 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
&map->singly_buffer,
&singly_block,
false);
if (rc > 0)
13ce1b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ce1e: 85 c0 test %eax,%eax <== NOT EXECUTED
13ce20: 0f 8f a2 01 00 00 jg 13cfc8 <rtems_rfs_block_map_grow+0x304><== 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) ||
13ce26: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
13ce29: 85 d2 test %edx,%edx <== NOT EXECUTED
13ce2b: 0f 84 83 00 00 00 je 13ceb4 <rtems_rfs_block_map_grow+0x1f0><== NOT EXECUTED
13ce31: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13ce34: 85 c0 test %eax,%eax <== NOT EXECUTED
13ce36: 75 06 jne 13ce3e <rtems_rfs_block_map_grow+0x17a><== NOT EXECUTED
13ce38: 83 7d cc 05 cmpl $0x5,-0x34(%ebp) <== NOT EXECUTED
13ce3c: 74 76 je 13ceb4 <rtems_rfs_block_map_grow+0x1f0><== NOT EXECUTED
return rc;
}
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
13ce3e: 6a 01 push $0x1 <== NOT EXECUTED
13ce40: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
13ce43: ff 74 8b 24 pushl 0x24(%ebx,%ecx,4) <== NOT EXECUTED
13ce47: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
13ce4a: 56 push %esi <== NOT EXECUTED
13ce4b: e8 94 07 00 00 call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
map->blocks[doubly], true);
if (rc > 0)
13ce50: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ce53: 85 c0 test %eax,%eax <== NOT EXECUTED
13ce55: 0f 8f 88 00 00 00 jg 13cee3 <rtems_rfs_block_map_grow+0x21f><== NOT EXECUTED
rtems_rfs_group_bitmap_free (fs, false, block);
return rc;
}
}
rtems_rfs_block_set_number (&map->doubly_buffer,
13ce5b: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
13ce5e: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
13ce61: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED
13ce64: 8b 53 4c mov 0x4c(%ebx),%edx <== NOT EXECUTED
13ce67: 8b 4a 20 mov 0x20(%edx),%ecx <== NOT EXECUTED
13ce6a: 0f b6 55 e3 movzbl -0x1d(%ebp),%edx <== NOT EXECUTED
13ce6e: 88 14 01 mov %dl,(%ecx,%eax,1) <== NOT EXECUTED
13ce71: 8b 53 4c mov 0x4c(%ebx),%edx <== NOT EXECUTED
13ce74: 8b 4a 20 mov 0x20(%edx),%ecx <== NOT EXECUTED
13ce77: 0f b7 55 e2 movzwl -0x1e(%ebp),%edx <== NOT EXECUTED
13ce7b: 88 54 01 01 mov %dl,0x1(%ecx,%eax,1) <== NOT EXECUTED
13ce7f: 8b 53 4c mov 0x4c(%ebx),%edx <== NOT EXECUTED
13ce82: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13ce85: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
13ce88: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
13ce8b: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
13ce8e: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
13ce91: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13ce94: 88 54 88 02 mov %dl,0x2(%eax,%ecx,4) <== NOT EXECUTED
13ce98: 8b 53 4c mov 0x4c(%ebx),%edx <== NOT EXECUTED
13ce9b: 8b 52 20 mov 0x20(%edx),%edx <== NOT EXECUTED
13ce9e: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
13cea1: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
13cea4: 88 4c 02 03 mov %cl,0x3(%edx,%eax,1) <== NOT EXECUTED
13cea8: c6 43 44 01 movb $0x1,0x44(%ebx) <== NOT EXECUTED
13ceac: e9 e4 fe ff ff jmp 13cd95 <rtems_rfs_block_map_grow+0xd1><== NOT EXECUTED
13ceb1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if ((singly == 0) ||
((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,
13ceb4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ceb7: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
13ceba: 3b 46 34 cmp 0x34(%esi),%eax <== NOT EXECUTED
13cebd: 0f 94 c0 sete %al <== NOT EXECUTED
13cec0: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
13cec3: 50 push %eax <== NOT EXECUTED
13cec4: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
13cec7: 8d 44 93 24 lea 0x24(%ebx,%edx,4),%eax <== NOT EXECUTED
13cecb: 50 push %eax <== NOT EXECUTED
13cecc: 8b 4d c4 mov -0x3c(%ebp),%ecx <== NOT EXECUTED
13cecf: 89 da mov %ebx,%edx <== NOT EXECUTED
13ced1: 89 f0 mov %esi,%eax <== NOT EXECUTED
13ced3: e8 fc fc ff ff call 13cbd4 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
&map->doubly_buffer,
&map->blocks[doubly],
upping);
if (rc > 0)
13ced8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cedb: 85 c0 test %eax,%eax <== NOT EXECUTED
13cedd: 0f 8e 78 ff ff ff jle 13ce5b <rtems_rfs_block_map_grow+0x197><== NOT EXECUTED
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
map->blocks[doubly], true);
if (rc > 0)
{
rtems_rfs_group_bitmap_free (fs, false, singly_block);
13cee3: 57 push %edi <== NOT EXECUTED
13cee4: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13cee7: 6a 00 push $0x0 <== NOT EXECUTED
13cee9: 56 push %esi <== NOT EXECUTED
13ceea: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
13ceed: e8 ba 39 00 00 call 1408ac <rtems_rfs_group_bitmap_free><== NOT EXECUTED
rtems_rfs_group_bitmap_free (fs, false, block);
13cef2: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13cef5: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13cef8: 6a 00 push $0x0 <== NOT EXECUTED
13cefa: 56 push %esi <== NOT EXECUTED
13cefb: e8 ac 39 00 00 call 1408ac <rtems_rfs_group_bitmap_free><== NOT EXECUTED
return rc;
13cf00: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cf03: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
13cf06: e9 9a 00 00 00 jmp 13cfa5 <rtems_rfs_block_map_grow+0x2e1><== NOT EXECUTED
13cf0b: 90 nop <== NOT EXECUTED
singly,
singly_block);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs,
13cf0c: 6a 01 push $0x1 <== NOT EXECUTED
13cf0e: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
13cf11: ff 74 93 24 pushl 0x24(%ebx,%edx,4) <== NOT EXECUTED
13cf15: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
13cf18: 56 push %esi <== NOT EXECUTED
13cf19: e8 c6 06 00 00 call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
true);
if (rc > 0)
13cf1e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cf21: 85 c0 test %eax,%eax <== NOT EXECUTED
13cf23: 0f 8f 9f 00 00 00 jg 13cfc8 <rtems_rfs_block_map_grow+0x304><== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, block);
return rc;
}
singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
13cf29: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
13cf2c: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
13cf2f: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
13cf32: c1 e1 02 shl $0x2,%ecx <== NOT EXECUTED
13cf35: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED
13cf38: 0f b6 44 0a 03 movzbl 0x3(%edx,%ecx,1),%eax <== NOT EXECUTED
13cf3d: 0f b6 0c 0a movzbl (%edx,%ecx,1),%ecx <== NOT EXECUTED
13cf41: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13cf44: 09 c8 or %ecx,%eax <== NOT EXECUTED
13cf46: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
13cf49: 0f b6 4c 0a 01 movzbl 0x1(%edx,%ecx,1),%ecx <== NOT EXECUTED
13cf4e: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13cf51: 09 c8 or %ecx,%eax <== NOT EXECUTED
13cf53: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
13cf56: 0f b6 54 8a 02 movzbl 0x2(%edx,%ecx,4),%edx <== NOT EXECUTED
13cf5b: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
13cf5e: 09 d0 or %edx,%eax <== NOT EXECUTED
13cf60: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
singly);
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
13cf63: 6a 01 push $0x1 <== NOT EXECUTED
13cf65: 50 push %eax <== NOT EXECUTED
13cf66: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
13cf69: 56 push %esi <== NOT EXECUTED
13cf6a: e8 75 06 00 00 call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
singly_block, true);
if (rc > 0)
13cf6f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cf72: e9 16 fe ff ff jmp 13cd8d <rtems_rfs_block_map_grow+0xc9><== NOT EXECUTED
13cf77: 90 nop <== 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,
13cf78: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13cf7b: 31 d2 xor %edx,%edx <== NOT EXECUTED
13cf7d: 83 f9 05 cmp $0x5,%ecx <== NOT EXECUTED
13cf80: 0f 94 c2 sete %dl <== NOT EXECUTED
13cf83: 52 push %edx <== NOT EXECUTED
13cf84: 8d 44 83 24 lea 0x24(%ebx,%eax,4),%eax <== NOT EXECUTED
13cf88: 50 push %eax <== NOT EXECUTED
13cf89: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
13cf8c: 89 da mov %ebx,%edx <== NOT EXECUTED
13cf8e: 89 f0 mov %esi,%eax <== NOT EXECUTED
13cf90: e8 3f fc ff ff call 13cbd4 <rtems_rfs_block_map_indirect_alloc><== 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) ||
13cf95: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cf98: e9 f0 fd ff ff jmp 13cd8d <rtems_rfs_block_map_grow+0xc9><== NOT EXECUTED
13cf9d: 8d 76 00 lea 0x0(%esi),%esi <== 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))
13cfa0: ba 1b 00 00 00 mov $0x1b,%edx <== NOT EXECUTED
map->last_data_block = block;
map->dirty = true;
}
return 0;
}
13cfa5: 89 d0 mov %edx,%eax <== NOT EXECUTED
13cfa7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13cfaa: 5b pop %ebx <== NOT EXECUTED
13cfab: 5e pop %esi <== NOT EXECUTED
13cfac: 5f pop %edi <== NOT EXECUTED
13cfad: c9 leave <== NOT EXECUTED
13cfae: c3 ret <== NOT EXECUTED
13cfaf: 90 nop <== 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++)
13cfb0: 31 d2 xor %edx,%edx <== NOT EXECUTED
map->last_data_block = block;
map->dirty = true;
}
return 0;
}
13cfb2: 89 d0 mov %edx,%eax <== NOT EXECUTED
13cfb4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13cfb7: 5b pop %ebx <== NOT EXECUTED
13cfb8: 5e pop %esi <== NOT EXECUTED
13cfb9: 5f pop %edi <== NOT EXECUTED
13cfba: c9 leave <== NOT EXECUTED
13cfbb: c3 ret <== NOT EXECUTED
13cfbc: 89 c2 mov %eax,%edx <== NOT EXECUTED
13cfbe: 89 d0 mov %edx,%eax <== NOT EXECUTED
13cfc0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13cfc3: 5b pop %ebx <== NOT EXECUTED
13cfc4: 5e pop %esi <== NOT EXECUTED
13cfc5: 5f pop %edi <== NOT EXECUTED
13cfc6: c9 leave <== NOT EXECUTED
13cfc7: c3 ret <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
singly_block, true);
if (rc > 0)
{
rtems_rfs_group_bitmap_free (fs, false, block);
13cfc8: 53 push %ebx <== NOT EXECUTED
13cfc9: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13cfcc: 6a 00 push $0x0 <== NOT EXECUTED
13cfce: 56 push %esi <== NOT EXECUTED
13cfcf: 89 45 c0 mov %eax,-0x40(%ebp) <== NOT EXECUTED
13cfd2: e8 d5 38 00 00 call 1408ac <rtems_rfs_group_bitmap_free><== NOT EXECUTED
return rc;
13cfd7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cfda: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
map->last_data_block = block;
map->dirty = true;
}
return 0;
}
13cfdd: 89 d0 mov %edx,%eax <== NOT EXECUTED
13cfdf: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13cfe2: 5b pop %ebx <== NOT EXECUTED
13cfe3: 5e pop %esi <== NOT EXECUTED
13cfe4: 5f pop %edi <== NOT EXECUTED
13cfe5: c9 leave <== NOT EXECUTED
13cfe6: c3 ret <== NOT EXECUTED
0013cbd4 <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)
{
13cbd4: 55 push %ebp <== NOT EXECUTED
13cbd5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13cbd7: 57 push %edi <== NOT EXECUTED
13cbd8: 56 push %esi <== NOT EXECUTED
13cbd9: 53 push %ebx <== NOT EXECUTED
13cbda: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13cbdd: 89 c6 mov %eax,%esi <== NOT EXECUTED
13cbdf: 89 d3 mov %edx,%ebx <== NOT EXECUTED
13cbe1: 8a 45 0c mov 0xc(%ebp),%al <== NOT EXECUTED
13cbe4: 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);
13cbe7: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13cbea: 50 push %eax <== NOT EXECUTED
13cbeb: 6a 00 push $0x0 <== NOT EXECUTED
13cbed: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
13cbf0: 56 push %esi <== NOT EXECUTED
13cbf1: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
13cbf4: e8 0f 3d 00 00 call 140908 <rtems_rfs_group_bitmap_alloc><== NOT EXECUTED
13cbf9: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
13cbfb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cbfe: 85 c0 test %eax,%eax <== NOT EXECUTED
13cc00: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
13cc03: 7e 0b jle 13cc10 <rtems_rfs_block_map_indirect_alloc+0x3c><== NOT EXECUTED
}
rtems_rfs_buffer_mark_dirty (buffer);
*block = new_block;
map->last_map_block = new_block;
return 0;
}
13cc05: 89 f8 mov %edi,%eax <== NOT EXECUTED
13cc07: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13cc0a: 5b pop %ebx <== NOT EXECUTED
13cc0b: 5e pop %esi <== NOT EXECUTED
13cc0c: 5f pop %edi <== NOT EXECUTED
13cc0d: c9 leave <== NOT EXECUTED
13cc0e: c3 ret <== NOT EXECUTED
13cc0f: 90 nop <== NOT EXECUTED
* slots which are cleared when upping.
*/
rc = rtems_rfs_group_bitmap_alloc (fs, map->last_map_block, false, &new_block);
if (rc > 0)
return rc;
rc = rtems_rfs_buffer_handle_request (fs, buffer, new_block, false);
13cc10: 6a 00 push $0x0 <== NOT EXECUTED
13cc12: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13cc15: 52 push %edx <== NOT EXECUTED
13cc16: 56 push %esi <== NOT EXECUTED
13cc17: e8 c8 09 00 00 call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
13cc1c: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
13cc1e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cc21: 85 c0 test %eax,%eax <== NOT EXECUTED
13cc23: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED
13cc26: 7e 1c jle 13cc44 <rtems_rfs_block_map_indirect_alloc+0x70><== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, new_block);
13cc28: 51 push %ecx <== NOT EXECUTED
13cc29: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13cc2c: 6a 00 push $0x0 <== NOT EXECUTED
13cc2e: 56 push %esi <== NOT EXECUTED
13cc2f: e8 78 3c 00 00 call 1408ac <rtems_rfs_group_bitmap_free><== NOT EXECUTED
return rc;
13cc34: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_buffer_mark_dirty (buffer);
*block = new_block;
map->last_map_block = new_block;
return 0;
}
13cc37: 89 f8 mov %edi,%eax <== NOT EXECUTED
13cc39: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13cc3c: 5b pop %ebx <== NOT EXECUTED
13cc3d: 5e pop %esi <== NOT EXECUTED
13cc3e: 5f pop %edi <== NOT EXECUTED
13cc3f: c9 leave <== NOT EXECUTED
13cc40: c3 ret <== NOT EXECUTED
13cc41: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (rc > 0)
{
rtems_rfs_group_bitmap_free (fs, false, new_block);
return rc;
}
memset (rtems_rfs_buffer_data (buffer), 0xff, rtems_rfs_fs_block_size (fs));
13cc44: 8b 4e 08 mov 0x8(%esi),%ecx <== NOT EXECUTED
13cc47: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
13cc4a: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
13cc4d: b0 ff mov $0xff,%al <== NOT EXECUTED
13cc4f: 89 f7 mov %esi,%edi <== NOT EXECUTED
13cc51: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
if (upping)
13cc53: 80 7d d7 00 cmpb $0x0,-0x29(%ebp) <== NOT EXECUTED
13cc57: 74 56 je 13ccaf <rtems_rfs_block_map_indirect_alloc+0xdb><== 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]);
13cc59: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
13cc5c: 8b 78 20 mov 0x20(%eax),%edi <== NOT EXECUTED
13cc5f: 0f b6 74 0b 27 movzbl 0x27(%ebx,%ecx,1),%esi <== NOT EXECUTED
13cc64: 89 f0 mov %esi,%eax <== NOT EXECUTED
13cc66: 88 04 0f mov %al,(%edi,%ecx,1) <== NOT EXECUTED
13cc69: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
13cc6c: 8b 78 20 mov 0x20(%eax),%edi <== NOT EXECUTED
13cc6f: 0f b7 74 0b 26 movzwl 0x26(%ebx,%ecx,1),%esi <== NOT EXECUTED
13cc74: 89 f0 mov %esi,%eax <== NOT EXECUTED
13cc76: 88 44 0f 01 mov %al,0x1(%edi,%ecx,1) <== NOT EXECUTED
13cc7a: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
13cc7d: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
13cc80: 8b 44 0b 24 mov 0x24(%ebx,%ecx,1),%eax <== NOT EXECUTED
13cc84: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
13cc87: 88 44 0e 02 mov %al,0x2(%esi,%ecx,1) <== NOT EXECUTED
13cc8b: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
13cc8e: 8b 78 20 mov 0x20(%eax),%edi <== NOT EXECUTED
13cc91: 8b 74 0b 24 mov 0x24(%ebx,%ecx,1),%esi <== NOT EXECUTED
13cc95: 89 f0 mov %esi,%eax <== NOT EXECUTED
13cc97: 88 44 0f 03 mov %al,0x3(%edi,%ecx,1) <== NOT EXECUTED
13cc9b: c6 02 01 movb $0x1,(%edx) <== NOT EXECUTED
13cc9e: 83 c1 04 add $0x4,%ecx <== 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++)
13cca1: 83 f9 14 cmp $0x14,%ecx <== NOT EXECUTED
13cca4: 75 b3 jne 13cc59 <rtems_rfs_block_map_indirect_alloc+0x85><== NOT EXECUTED
rtems_rfs_block_set_number (buffer, b, map->blocks[b]);
memset (map->blocks, 0, sizeof (map->blocks));
13cca6: 8d 73 24 lea 0x24(%ebx),%esi <== NOT EXECUTED
13cca9: 31 c0 xor %eax,%eax <== NOT EXECUTED
13ccab: 89 f7 mov %esi,%edi <== NOT EXECUTED
13ccad: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
}
rtems_rfs_buffer_mark_dirty (buffer);
13ccaf: c6 02 01 movb $0x1,(%edx) <== NOT EXECUTED
*block = new_block;
13ccb2: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13ccb5: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13ccb8: 89 02 mov %eax,(%edx) <== NOT EXECUTED
map->last_map_block = new_block;
13ccba: 89 43 1c mov %eax,0x1c(%ebx) <== NOT EXECUTED
13ccbd: 31 ff xor %edi,%edi <== NOT EXECUTED
return 0;
13ccbf: e9 41 ff ff ff jmp 13cc05 <rtems_rfs_block_map_indirect_alloc+0x31><== NOT EXECUTED
0013c874 <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)
{
13c874: 55 push %ebp <== NOT EXECUTED
13c875: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c877: 57 push %edi <== NOT EXECUTED
13c878: 56 push %esi <== NOT EXECUTED
13c879: 53 push %ebx <== NOT EXECUTED
13c87a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
13c87d: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13c880: 8b 5d 0c mov 0xc(%ebp),%ebx <== 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) ||
13c883: 85 db test %ebx,%ebx <== NOT EXECUTED
13c885: 74 15 je 13c89c <rtems_rfs_block_map_indirect_shrink+0x28><== NOT EXECUTED
13c887: 85 f6 test %esi,%esi <== NOT EXECUTED
13c889: 75 05 jne 13c890 <rtems_rfs_block_map_indirect_shrink+0x1c><== NOT EXECUTED
13c88b: 83 fb 05 cmp $0x5,%ebx <== NOT EXECUTED
13c88e: 74 48 je 13c8d8 <rtems_rfs_block_map_indirect_shrink+0x64><== NOT EXECUTED
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
if (rc > 0)
return rc;
map->last_map_block = block_to_free;
13c890: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return rc;
}
13c892: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c895: 5b pop %ebx <== NOT EXECUTED
13c896: 5e pop %esi <== NOT EXECUTED
13c897: 5f pop %edi <== NOT EXECUTED
13c898: c9 leave <== NOT EXECUTED
13c899: c3 ret <== NOT EXECUTED
13c89a: 66 90 xchg %ax,%ax <== NOT EXECUTED
* into the inode and free the indirect table's block.
*/
if ((index == 0) ||
((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))
{
rtems_rfs_block_no block_to_free = map->blocks[indirect];
13c89c: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
13c89f: 8b 4c b2 04 mov 0x4(%edx,%esi,4),%ecx <== NOT EXECUTED
13c8a3: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
else
{
/*
* One less singly indirect block in the inode.
*/
map->blocks[indirect] = 0;
13c8a6: c7 44 b2 04 00 00 00 movl $0x0,0x4(%edx,%esi,4) <== NOT EXECUTED
13c8ad: 00
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
13c8ae: 51 push %ecx <== NOT EXECUTED
13c8af: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13c8b2: 6a 00 push $0x0 <== NOT EXECUTED
13c8b4: 50 push %eax <== NOT EXECUTED
13c8b5: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
13c8b8: e8 ef 3f 00 00 call 1408ac <rtems_rfs_group_bitmap_free><== NOT EXECUTED
if (rc > 0)
13c8bd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c8c0: 85 c0 test %eax,%eax <== NOT EXECUTED
13c8c2: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
13c8c5: 7f cb jg 13c892 <rtems_rfs_block_map_indirect_shrink+0x1e><== NOT EXECUTED
return rc;
map->last_map_block = block_to_free;
13c8c7: 8b 5d e4 mov -0x1c(%ebp),%ebx <== NOT EXECUTED
13c8ca: 89 5a 1c mov %ebx,0x1c(%edx) <== NOT EXECUTED
}
return rc;
}
13c8cd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c8d0: 5b pop %ebx <== NOT EXECUTED
13c8d1: 5e pop %esi <== NOT EXECUTED
13c8d2: 5f pop %edi <== NOT EXECUTED
13c8d3: c9 leave <== NOT EXECUTED
13c8d4: c3 ret <== NOT EXECUTED
13c8d5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* into the inode and free the indirect table's block.
*/
if ((index == 0) ||
((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))
{
rtems_rfs_block_no block_to_free = map->blocks[indirect];
13c8d8: 8b 5a 24 mov 0x24(%edx),%ebx <== NOT EXECUTED
13c8db: 89 5d e4 mov %ebx,-0x1c(%ebp) <== 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);
13c8de: 8b 49 08 mov 0x8(%ecx),%ecx <== NOT EXECUTED
13c8e1: 8b 71 20 mov 0x20(%ecx),%esi <== NOT EXECUTED
13c8e4: 31 db xor %ebx,%ebx <== NOT EXECUTED
13c8e6: 66 90 xchg %ax,%ax <== NOT EXECUTED
13c8e8: 0f b6 0c 9e movzbl (%esi,%ebx,4),%ecx <== NOT EXECUTED
13c8ec: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13c8ef: 0f b6 7c 9e 01 movzbl 0x1(%esi,%ebx,4),%edi <== NOT EXECUTED
13c8f4: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
13c8f7: 09 f9 or %edi,%ecx <== NOT EXECUTED
13c8f9: 0f b6 7c 9e 03 movzbl 0x3(%esi,%ebx,4),%edi <== NOT EXECUTED
13c8fe: 09 f9 or %edi,%ecx <== NOT EXECUTED
13c900: 0f b6 7c 9e 02 movzbl 0x2(%esi,%ebx,4),%edi <== NOT EXECUTED
13c905: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
13c908: 09 f9 or %edi,%ecx <== NOT EXECUTED
13c90a: 89 4c 9a 24 mov %ecx,0x24(%edx,%ebx,4) <== NOT EXECUTED
{
/*
* Move to direct inode access.
*/
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
13c90e: 43 inc %ebx <== NOT EXECUTED
13c90f: 83 fb 05 cmp $0x5,%ebx <== NOT EXECUTED
13c912: 75 d4 jne 13c8e8 <rtems_rfs_block_map_indirect_shrink+0x74><== NOT EXECUTED
13c914: eb 98 jmp 13c8ae <rtems_rfs_block_map_indirect_shrink+0x3a><== NOT EXECUTED
0013c7e0 <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)
{
13c7e0: 55 push %ebp <== NOT EXECUTED
13c7e1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c7e3: 83 ec 18 sub $0x18,%esp <== NOT EXECUTED
13c7e6: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_block_pos bpos;
bpos.bno = map->bpos.bno + 1;
13c7e9: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
13c7ec: 42 inc %edx <== NOT EXECUTED
13c7ed: 89 55 ec mov %edx,-0x14(%ebp) <== NOT EXECUTED
bpos.boff = 0;
13c7f0: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) <== NOT EXECUTED
bpos.block = 0;
13c7f7: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
return rtems_rfs_block_map_find (fs, map, &bpos, block);
13c7fe: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13c801: 8d 55 ec lea -0x14(%ebp),%edx <== NOT EXECUTED
13c804: 52 push %edx <== NOT EXECUTED
13c805: 50 push %eax <== NOT EXECUTED
13c806: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13c809: e8 c2 fe ff ff call 13c6d0 <rtems_rfs_block_map_find><== NOT EXECUTED
}
13c80e: c9 leave <== NOT EXECUTED
13c80f: c3 ret <== NOT EXECUTED
0013d194 <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)
{
13d194: 55 push %ebp <== NOT EXECUTED
13d195: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d197: 57 push %edi <== NOT EXECUTED
13d198: 56 push %esi <== NOT EXECUTED
13d199: 53 push %ebx <== NOT EXECUTED
13d19a: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
13d19d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13d1a0: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
13d1a3: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13d1a6: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
13d1a9: 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;
13d1ac: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
map->inode = NULL;
13d1af: 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;
13d1b6: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
size->offset = 0;
13d1bd: 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;
13d1c4: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED
bpos->boff = 0;
13d1cb: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) <== NOT EXECUTED
bpos->block = 0;
13d1d2: 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;
13d1d9: c6 43 38 00 movb $0x0,0x38(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13d1dd: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13d1e4: 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;
13d1eb: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13d1ef: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13d1f6: 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);
13d1fd: 50 push %eax <== NOT EXECUTED
13d1fe: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13d201: e8 56 3d 00 00 call 140f5c <rtems_rfs_inode_load> <== NOT EXECUTED
13d206: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13d208: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d20b: 85 c0 test %eax,%eax <== NOT EXECUTED
13d20d: 0f 8f dd 00 00 00 jg 13d2f0 <rtems_rfs_block_map_open+0x15c><== NOT EXECUTED
/*
* Extract the block and block count data from the inode into the targets
* byte order.
*/
map->inode = inode;
13d213: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13d216: 89 43 04 mov %eax,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]);
13d219: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
13d21c: 8d 4f 1c lea 0x1c(%edi),%ecx <== NOT EXECUTED
13d21f: 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);
13d221: 0f b6 04 91 movzbl (%ecx,%edx,4),%eax <== NOT EXECUTED
13d225: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
13d228: 0f b6 74 91 01 movzbl 0x1(%ecx,%edx,4),%esi <== NOT EXECUTED
13d22d: c1 e6 10 shl $0x10,%esi <== NOT EXECUTED
13d230: 09 f0 or %esi,%eax <== NOT EXECUTED
13d232: 0f b6 74 91 03 movzbl 0x3(%ecx,%edx,4),%esi <== NOT EXECUTED
13d237: 09 f0 or %esi,%eax <== NOT EXECUTED
13d239: 0f b6 74 91 02 movzbl 0x2(%ecx,%edx,4),%esi <== NOT EXECUTED
13d23e: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
13d241: 09 f0 or %esi,%eax <== NOT EXECUTED
13d243: 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++)
13d247: 42 inc %edx <== NOT EXECUTED
13d248: 83 fa 05 cmp $0x5,%edx <== NOT EXECUTED
13d24b: 75 d4 jne 13d221 <rtems_rfs_block_map_open+0x8d><== 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);
13d24d: 8d 57 0c lea 0xc(%edi),%edx <== NOT EXECUTED
map->blocks[b] = rtems_rfs_inode_get_block (inode, b);
map->size.count = rtems_rfs_inode_get_block_count (inode);
13d250: 0f b6 42 03 movzbl 0x3(%edx),%eax <== NOT EXECUTED
13d254: 0f b6 4f 0c movzbl 0xc(%edi),%ecx <== NOT EXECUTED
13d258: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13d25b: 09 c8 or %ecx,%eax <== NOT EXECUTED
13d25d: 0f b6 4a 01 movzbl 0x1(%edx),%ecx <== NOT EXECUTED
13d261: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13d264: 09 c8 or %ecx,%eax <== NOT EXECUTED
13d266: 0f b6 52 02 movzbl 0x2(%edx),%edx <== NOT EXECUTED
13d26a: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
13d26d: 09 d0 or %edx,%eax <== NOT EXECUTED
13d26f: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
map->size.offset = rtems_rfs_inode_get_block_offset (inode);
13d272: 0f b6 57 0a movzbl 0xa(%edi),%edx <== NOT EXECUTED
13d276: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
13d279: 0f b6 47 0b movzbl 0xb(%edi),%eax <== NOT EXECUTED
13d27d: 09 d0 or %edx,%eax <== NOT EXECUTED
13d27f: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
13d282: 89 43 0c mov %eax,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);
13d285: 8d 57 30 lea 0x30(%edi),%edx <== NOT EXECUTED
map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);
13d288: 0f b6 42 03 movzbl 0x3(%edx),%eax <== NOT EXECUTED
13d28c: 0f b6 4f 30 movzbl 0x30(%edi),%ecx <== NOT EXECUTED
13d290: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13d293: 09 c8 or %ecx,%eax <== NOT EXECUTED
13d295: 0f b6 4a 01 movzbl 0x1(%edx),%ecx <== NOT EXECUTED
13d299: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13d29c: 09 c8 or %ecx,%eax <== NOT EXECUTED
13d29e: 0f b6 52 02 movzbl 0x2(%edx),%edx <== NOT EXECUTED
13d2a2: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
13d2a5: 09 d0 or %edx,%eax <== NOT EXECUTED
13d2a7: 89 43 1c mov %eax,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);
13d2aa: 8d 57 34 lea 0x34(%edi),%edx <== NOT EXECUTED
map->last_data_block = rtems_rfs_inode_get_last_data_block (inode);
13d2ad: 0f b6 42 03 movzbl 0x3(%edx),%eax <== NOT EXECUTED
13d2b1: 0f b6 4f 34 movzbl 0x34(%edi),%ecx <== NOT EXECUTED
13d2b5: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13d2b8: 09 c8 or %ecx,%eax <== NOT EXECUTED
13d2ba: 0f b6 4a 01 movzbl 0x1(%edx),%ecx <== NOT EXECUTED
13d2be: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13d2c1: 09 c8 or %ecx,%eax <== NOT EXECUTED
13d2c3: 0f b6 52 02 movzbl 0x2(%edx),%edx <== NOT EXECUTED
13d2c7: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
13d2ca: 09 d0 or %edx,%eax <== NOT EXECUTED
13d2cc: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
rc = rtems_rfs_inode_unload (fs, inode, false);
13d2cf: c7 45 10 00 00 00 00 movl $0x0,0x10(%ebp) <== NOT EXECUTED
13d2d6: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13d2d9: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED
13d2dc: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13d2df: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
return rc;
}
13d2e2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d2e5: 5b pop %ebx <== NOT EXECUTED
13d2e6: 5e pop %esi <== NOT EXECUTED
13d2e7: 5f pop %edi <== NOT EXECUTED
13d2e8: 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);
13d2e9: e9 a2 3b 00 00 jmp 140e90 <rtems_rfs_inode_unload><== NOT EXECUTED
13d2ee: 66 90 xchg %ax,%ax <== 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);
13d2f0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d2f3: 8d 43 38 lea 0x38(%ebx),%eax <== NOT EXECUTED
13d2f6: 50 push %eax <== NOT EXECUTED
13d2f7: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13d2fa: e8 e1 01 00 00 call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13d2ff: c6 43 38 00 movb $0x0,0x38(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13d303: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13d30a: 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);
13d311: 5f pop %edi <== NOT EXECUTED
13d312: 58 pop %eax <== NOT EXECUTED
13d313: 8d 43 44 lea 0x44(%ebx),%eax <== NOT EXECUTED
13d316: 50 push %eax <== NOT EXECUTED
13d317: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13d31a: e8 c1 01 00 00 call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13d31f: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13d323: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13d32a: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) <== NOT EXECUTED
rc = rtems_rfs_inode_load (fs, inode);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &map->singly_buffer);
rtems_rfs_buffer_handle_close (fs, &map->doubly_buffer);
return rc;
13d331: 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;
}
13d334: 89 f0 mov %esi,%eax <== NOT EXECUTED
13d336: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d339: 5b pop %ebx <== NOT EXECUTED
13d33a: 5e pop %esi <== NOT EXECUTED
13d33b: 5f pop %edi <== NOT EXECUTED
13d33c: c9 leave <== NOT EXECUTED
13d33d: c3 ret <== NOT EXECUTED
0013c810 <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)
{
13c810: 55 push %ebp <== NOT EXECUTED
13c811: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c813: 57 push %edi <== NOT EXECUTED
13c814: 56 push %esi <== NOT EXECUTED
13c815: 53 push %ebx <== NOT EXECUTED
13c816: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13c819: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13c81c: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
13c81f: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13c822: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
rtems_rfs_block_pos bpos;
rtems_rfs_block_copy_bpos (&bpos, &map->bpos);
13c825: 8b 4b 10 mov 0x10(%ebx),%ecx <== NOT EXECUTED
13c828: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
13c82b: 8b 7b 14 mov 0x14(%ebx),%edi <== NOT EXECUTED
13c82e: 89 7d e0 mov %edi,-0x20(%ebp) <== NOT EXECUTED
13c831: 8b 7b 18 mov 0x18(%ebx),%edi <== NOT EXECUTED
13c834: 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,
13c837: 8d 7d dc lea -0x24(%ebp),%edi <== NOT EXECUTED
13c83a: 57 push %edi <== NOT EXECUTED
13c83b: 0f af 4e 08 imul 0x8(%esi),%ecx <== NOT EXECUTED
13c83f: 03 4b 14 add 0x14(%ebx),%ecx <== NOT EXECUTED
13c842: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
13c845: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
13c84c: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED
13c84f: 13 55 d4 adc -0x2c(%ebp),%edx <== NOT EXECUTED
13c852: 52 push %edx <== NOT EXECUTED
13c853: 50 push %eax <== NOT EXECUTED
13c854: 56 push %esi <== NOT EXECUTED
13c855: e8 f6 fc ff ff call 13c550 <rtems_rfs_block_get_bpos><== NOT EXECUTED
rtems_rfs_block_get_pos (fs, bpos) + offset,
bpos);
bpos->block = 0;
13c85a: 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);
13c861: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
13c864: 57 push %edi <== NOT EXECUTED
13c865: 53 push %ebx <== NOT EXECUTED
13c866: 56 push %esi <== NOT EXECUTED
13c867: e8 64 fe ff ff call 13c6d0 <rtems_rfs_block_map_find><== NOT EXECUTED
}
13c86c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13c86f: 5b pop %ebx <== NOT EXECUTED
13c870: 5e pop %esi <== NOT EXECUTED
13c871: 5f pop %edi <== NOT EXECUTED
13c872: c9 leave <== NOT EXECUTED
13c873: c3 ret <== NOT EXECUTED
0013c918 <rtems_rfs_block_map_shrink>:
int
rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
size_t blocks)
{
13c918: 55 push %ebp <== NOT EXECUTED
13c919: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13c91b: 57 push %edi <== NOT EXECUTED
13c91c: 56 push %esi <== NOT EXECUTED
13c91d: 53 push %ebx <== NOT EXECUTED
13c91e: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13c921: 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)
13c924: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
13c927: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
13c92a: 89 c7 mov %eax,%edi <== NOT EXECUTED
13c92c: 85 c0 test %eax,%eax <== NOT EXECUTED
13c92e: 0f 84 b8 01 00 00 je 13caec <rtems_rfs_block_map_shrink+0x1d4><== NOT EXECUTED
return 0;
if (blocks > map->size.count)
13c934: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
13c937: 39 d0 cmp %edx,%eax <== NOT EXECUTED
13c939: 0f 82 b9 01 00 00 jb 13caf8 <rtems_rfs_block_map_shrink+0x1e0><== NOT EXECUTED
blocks = map->size.count;
while (blocks)
13c93f: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
13c942: 85 d2 test %edx,%edx <== NOT EXECUTED
13c944: 0f 84 83 01 00 00 je 13cacd <rtems_rfs_block_map_shrink+0x1b5><== 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,
13c94a: 8d 4b 38 lea 0x38(%ebx),%ecx <== NOT EXECUTED
13c94d: 89 4d d8 mov %ecx,-0x28(%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,
13c950: 8d 43 44 lea 0x44(%ebx),%eax <== NOT EXECUTED
13c953: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
13c956: eb 48 jmp 13c9a0 <rtems_rfs_block_map_shrink+0x88><== NOT EXECUTED
{
/*
* We have less than RTEMS_RFS_INODE_BLOCKS so they are held in the
* inode.
*/
block_to_free = map->blocks[block];
13c958: 83 c7 07 add $0x7,%edi <== NOT EXECUTED
13c95b: 8b 74 bb 04 mov 0x4(%ebx,%edi,4),%esi <== NOT EXECUTED
map->blocks[block] = 0;
13c95f: c7 44 bb 04 00 00 00 movl $0x0,0x4(%ebx,%edi,4) <== NOT EXECUTED
13c966: 00
{
rc = EIO;
break;
}
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
13c967: 57 push %edi <== NOT EXECUTED
13c968: 56 push %esi <== NOT EXECUTED
13c969: 6a 00 push $0x0 <== NOT EXECUTED
13c96b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13c96e: e8 39 3f 00 00 call 1408ac <rtems_rfs_group_bitmap_free><== NOT EXECUTED
if (rc > 0)
13c973: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c976: 85 c0 test %eax,%eax <== NOT EXECUTED
13c978: 0f 8f 70 01 00 00 jg 13caee <rtems_rfs_block_map_shrink+0x1d6><== NOT EXECUTED
return rc;
map->size.count--;
13c97e: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
13c981: 89 cf mov %ecx,%edi <== NOT EXECUTED
13c983: 4f dec %edi <== NOT EXECUTED
13c984: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
13c987: 89 7b 08 mov %edi,0x8(%ebx) <== NOT EXECUTED
map->size.offset = 0;
13c98a: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
map->last_data_block = block_to_free;
13c991: 89 73 20 mov %esi,0x20(%ebx) <== NOT EXECUTED
map->dirty = true;
13c994: c6 03 01 movb $0x1,(%ebx) <== NOT EXECUTED
return 0;
if (blocks > map->size.count)
blocks = map->size.count;
while (blocks)
13c997: ff 4d 10 decl 0x10(%ebp) <== NOT EXECUTED
13c99a: 0f 84 18 01 00 00 je 13cab8 <rtems_rfs_block_map_shrink+0x1a0><== NOT EXECUTED
{
rtems_rfs_block_no block;
rtems_rfs_block_no block_to_free;
int rc;
block = map->size.count - 1;
13c9a0: 8d 4f ff lea -0x1(%edi),%ecx <== NOT EXECUTED
if (block < RTEMS_RFS_INODE_BLOCKS)
13c9a3: 83 f9 04 cmp $0x4,%ecx <== NOT EXECUTED
13c9a6: 76 b0 jbe 13c958 <rtems_rfs_block_map_shrink+0x40><== NOT EXECUTED
* table of block numbers.
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = block % fs->blocks_per_block;
13c9a8: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13c9ab: 8b 72 30 mov 0x30(%edx),%esi <== NOT EXECUTED
13c9ae: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13c9b0: 31 d2 xor %edx,%edx <== NOT EXECUTED
13c9b2: f7 f6 div %esi <== NOT EXECUTED
13c9b4: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
13c9b7: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
singly = block / fs->blocks_per_block;
if (block < fs->block_map_singly_blocks)
13c9ba: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13c9bd: 3b 48 34 cmp 0x34(%eax),%ecx <== NOT EXECUTED
13c9c0: 0f 82 3a 01 00 00 jb 13cb00 <rtems_rfs_block_map_shrink+0x1e8><== 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)
13c9c6: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13c9c9: 3b 48 38 cmp 0x38(%eax),%ecx <== NOT EXECUTED
13c9cc: 0f 83 e6 00 00 00 jae 13cab8 <rtems_rfs_block_map_shrink+0x1a0><== 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;
13c9d2: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13c9d5: 31 d2 xor %edx,%edx <== NOT EXECUTED
13c9d7: f7 f6 div %esi <== NOT EXECUTED
13c9d9: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
13c9dc: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
doubly_singly = singly % fs->blocks_per_block;
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
13c9df: 6a 01 push $0x1 <== NOT EXECUTED
13c9e1: ff 74 83 24 pushl 0x24(%ebx,%eax,4) <== NOT EXECUTED
13c9e5: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
13c9e8: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13c9eb: e8 f4 0b 00 00 call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
map->blocks[doubly], true);
if (rc > 0)
13c9f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13c9f3: 85 c0 test %eax,%eax <== NOT EXECUTED
13c9f5: 0f 8f f3 00 00 00 jg 13caee <rtems_rfs_block_map_shrink+0x1d6><== NOT EXECUTED
return rc;
singly = rtems_rfs_block_get_number (&map->doubly_buffer,
13c9fb: 8b 43 4c mov 0x4c(%ebx),%eax <== NOT EXECUTED
13c9fe: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
13ca01: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
13ca04: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED
13ca07: 0f b6 7c 10 03 movzbl 0x3(%eax,%edx,1),%edi <== NOT EXECUTED
13ca0c: 0f b6 0c 10 movzbl (%eax,%edx,1),%ecx <== NOT EXECUTED
13ca10: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13ca13: 09 cf or %ecx,%edi <== NOT EXECUTED
13ca15: 0f b6 54 10 01 movzbl 0x1(%eax,%edx,1),%edx <== NOT EXECUTED
13ca1a: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13ca1d: 09 d7 or %edx,%edi <== NOT EXECUTED
13ca1f: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13ca22: 0f b6 44 88 02 movzbl 0x2(%eax,%ecx,4),%eax <== NOT EXECUTED
13ca27: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13ca2a: 09 c7 or %eax,%edi <== NOT EXECUTED
doubly_singly);
/*
* Read the singly indirect table and get the block number.
*/
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
13ca2c: 6a 01 push $0x1 <== NOT EXECUTED
13ca2e: 57 push %edi <== NOT EXECUTED
13ca2f: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
13ca32: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13ca35: e8 aa 0b 00 00 call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
singly, true);
if (rc > 0)
13ca3a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ca3d: 85 c0 test %eax,%eax <== NOT EXECUTED
13ca3f: 0f 8f a9 00 00 00 jg 13caee <rtems_rfs_block_map_shrink+0x1d6><== NOT EXECUTED
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
13ca45: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
13ca48: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
13ca4b: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
13ca4e: c1 e1 02 shl $0x2,%ecx <== NOT EXECUTED
13ca51: 0f b6 74 08 03 movzbl 0x3(%eax,%ecx,1),%esi <== NOT EXECUTED
13ca56: 0f b6 14 08 movzbl (%eax,%ecx,1),%edx <== NOT EXECUTED
13ca5a: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
13ca5d: 09 d6 or %edx,%esi <== NOT EXECUTED
13ca5f: 0f b6 54 08 01 movzbl 0x1(%eax,%ecx,1),%edx <== NOT EXECUTED
13ca64: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13ca67: 09 d6 or %edx,%esi <== NOT EXECUTED
13ca69: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
13ca6c: 0f b6 44 90 02 movzbl 0x2(%eax,%edx,4),%eax <== NOT EXECUTED
13ca71: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13ca74: 09 c6 or %eax,%esi <== NOT EXECUTED
direct);
if (direct == 0)
13ca76: 85 d2 test %edx,%edx <== NOT EXECUTED
13ca78: 0f 85 e9 fe ff ff jne 13c967 <rtems_rfs_block_map_shrink+0x4f><== NOT EXECUTED
{
rc = rtems_rfs_group_bitmap_free (fs, false, singly);
13ca7e: 50 push %eax <== NOT EXECUTED
13ca7f: 57 push %edi <== NOT EXECUTED
13ca80: 6a 00 push $0x0 <== NOT EXECUTED
13ca82: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13ca85: e8 22 3e 00 00 call 1408ac <rtems_rfs_group_bitmap_free><== NOT EXECUTED
if (rc > 0)
13ca8a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ca8d: 85 c0 test %eax,%eax <== NOT EXECUTED
13ca8f: 7f 5d jg 13caee <rtems_rfs_block_map_shrink+0x1d6><== NOT EXECUTED
return rc;
map->last_map_block = singly;
13ca91: 89 7b 1c mov %edi,0x1c(%ebx) <== NOT EXECUTED
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->doubly_buffer,
13ca94: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ca97: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13ca9a: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13ca9d: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
13caa0: 89 da mov %ebx,%edx <== NOT EXECUTED
13caa2: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13caa5: e8 ca fd ff ff call 13c874 <rtems_rfs_block_map_indirect_shrink><== NOT EXECUTED
doubly, doubly_singly);
if (rc)
13caaa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13caad: 85 c0 test %eax,%eax <== NOT EXECUTED
13caaf: 0f 84 b2 fe ff ff je 13c967 <rtems_rfs_block_map_shrink+0x4f><== NOT EXECUTED
13cab5: eb 37 jmp 13caee <rtems_rfs_block_map_shrink+0x1d6><== NOT EXECUTED
13cab7: 90 nop <== NOT EXECUTED
map->last_data_block = block_to_free;
map->dirty = true;
blocks--;
}
if (map->size.count == 0)
13cab8: 85 ff test %edi,%edi <== NOT EXECUTED
13caba: 75 11 jne 13cacd <rtems_rfs_block_map_shrink+0x1b5><== NOT EXECUTED
{
map->last_map_block = 0;
13cabc: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) <== NOT EXECUTED
map->last_data_block = 0;
13cac3: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) <== NOT EXECUTED
13caca: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
}
/*
* Keep the position inside the map.
*/
if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))
13cacd: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
13cad0: 85 c0 test %eax,%eax <== NOT EXECUTED
13cad2: 0f 85 a8 00 00 00 jne 13cb80 <rtems_rfs_block_map_shrink+0x268><== NOT EXECUTED
13cad8: 39 c7 cmp %eax,%edi <== NOT EXECUTED
13cada: 0f 86 a8 00 00 00 jbe 13cb88 <rtems_rfs_block_map_shrink+0x270><== NOT EXECUTED
13cae0: 8d 57 ff lea -0x1(%edi),%edx <== NOT EXECUTED
13cae3: 39 d0 cmp %edx,%eax <== NOT EXECUTED
13cae5: 0f 84 c3 00 00 00 je 13cbae <rtems_rfs_block_map_shrink+0x296><== NOT EXECUTED
13caeb: 90 nop <== NOT EXECUTED
rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);
13caec: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13caee: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13caf1: 5b pop %ebx <== NOT EXECUTED
13caf2: 5e pop %esi <== NOT EXECUTED
13caf3: 5f pop %edi <== NOT EXECUTED
13caf4: c9 leave <== NOT EXECUTED
13caf5: c3 ret <== NOT EXECUTED
13caf6: 66 90 xchg %ax,%ax <== NOT EXECUTED
blocks, map->size.count);
if (map->size.count == 0)
return 0;
if (blocks > map->size.count)
13caf8: 89 45 10 mov %eax,0x10(%ebp) <== NOT EXECUTED
13cafb: e9 4a fe ff ff jmp 13c94a <rtems_rfs_block_map_shrink+0x32><== 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,
13cb00: 6a 01 push $0x1 <== NOT EXECUTED
13cb02: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
13cb05: ff 74 93 24 pushl 0x24(%ebx,%edx,4) <== NOT EXECUTED
13cb09: ff 75 d8 pushl -0x28(%ebp) <== NOT EXECUTED
13cb0c: 50 push %eax <== NOT EXECUTED
13cb0d: e8 d2 0a 00 00 call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
map->blocks[singly], true);
if (rc > 0)
13cb12: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cb15: 85 c0 test %eax,%eax <== NOT EXECUTED
13cb17: 7f d5 jg 13caee <rtems_rfs_block_map_shrink+0x1d6><== NOT EXECUTED
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
13cb19: 8b 43 40 mov 0x40(%ebx),%eax <== NOT EXECUTED
13cb1c: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
13cb1f: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
13cb22: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED
13cb25: 0f b6 3c 10 movzbl (%eax,%edx,1),%edi <== NOT EXECUTED
13cb29: 8a 4c 10 01 mov 0x1(%eax,%edx,1),%cl <== NOT EXECUTED
13cb2d: 88 4d d3 mov %cl,-0x2d(%ebp) <== NOT EXECUTED
13cb30: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
13cb33: 8a 4c 88 02 mov 0x2(%eax,%ecx,4),%cl <== NOT EXECUTED
13cb37: 88 4d e4 mov %cl,-0x1c(%ebp) <== NOT EXECUTED
13cb3a: 0f b6 74 10 03 movzbl 0x3(%eax,%edx,1),%esi <== NOT EXECUTED
direct);
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
13cb3f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13cb42: ff 75 dc pushl -0x24(%ebp) <== NOT EXECUTED
13cb45: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
13cb48: 8b 4d d8 mov -0x28(%ebp),%ecx <== NOT EXECUTED
13cb4b: 89 da mov %ebx,%edx <== NOT EXECUTED
13cb4d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13cb50: e8 1f fd ff ff call 13c874 <rtems_rfs_block_map_indirect_shrink><== NOT EXECUTED
singly, direct);
if (rc)
13cb55: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13cb58: 85 c0 test %eax,%eax <== NOT EXECUTED
13cb5a: 75 92 jne 13caee <rtems_rfs_block_map_shrink+0x1d6><== 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,
13cb5c: 81 e6 ff 00 00 00 and $0xff,%esi <== NOT EXECUTED
13cb62: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
13cb65: 09 fe or %edi,%esi <== NOT EXECUTED
13cb67: 0f b6 45 d3 movzbl -0x2d(%ebp),%eax <== NOT EXECUTED
13cb6b: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
13cb6e: 09 c6 or %eax,%esi <== NOT EXECUTED
13cb70: 0f b6 45 e4 movzbl -0x1c(%ebp),%eax <== NOT EXECUTED
13cb74: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13cb77: 09 c6 or %eax,%esi <== NOT EXECUTED
13cb79: e9 e9 fd ff ff jmp 13c967 <rtems_rfs_block_map_shrink+0x4f><== NOT EXECUTED
13cb7e: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
/*
* Keep the position inside the map.
*/
if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))
13cb80: 85 ff test %edi,%edi <== NOT EXECUTED
13cb82: 0f 85 50 ff ff ff jne 13cad8 <rtems_rfs_block_map_shrink+0x1c0><== NOT EXECUTED
rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);
13cb88: 89 7b 10 mov %edi,0x10(%ebx) <== NOT EXECUTED
13cb8b: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13cb8e: 89 43 14 mov %eax,0x14(%ebx) <== NOT EXECUTED
13cb91: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
13cb98: 85 c0 test %eax,%eax <== NOT EXECUTED
13cb9a: 0f 84 4c ff ff ff je 13caec <rtems_rfs_block_map_shrink+0x1d4><== NOT EXECUTED
13cba0: 4f dec %edi <== NOT EXECUTED
13cba1: 89 7b 10 mov %edi,0x10(%ebx) <== NOT EXECUTED
13cba4: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13cba6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13cba9: 5b pop %ebx <== NOT EXECUTED
13cbaa: 5e pop %esi <== NOT EXECUTED
13cbab: 5f pop %edi <== NOT EXECUTED
13cbac: c9 leave <== NOT EXECUTED
13cbad: c3 ret <== NOT EXECUTED
}
/*
* Keep the position inside the map.
*/
if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))
13cbae: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
13cbb1: 3b 43 0c cmp 0xc(%ebx),%eax <== NOT EXECUTED
13cbb4: 77 d2 ja 13cb88 <rtems_rfs_block_map_shrink+0x270><== NOT EXECUTED
13cbb6: e9 31 ff ff ff jmp 13caec <rtems_rfs_block_map_shrink+0x1d4><== NOT EXECUTED
00145fd8 <rtems_rfs_buffer_bdbuf_release>:
}
int
rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer,
bool modified)
{
145fd8: 55 push %ebp <== NOT EXECUTED
145fd9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
145fdb: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
145fde: 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)
145fe1: 80 7d 0c 00 cmpb $0x0,0xc(%ebp) <== NOT EXECUTED
145fe5: 74 19 je 146000 <rtems_rfs_buffer_bdbuf_release+0x28><== NOT EXECUTED
sc = rtems_bdbuf_release_modified (buffer);
145fe7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
145fea: 50 push %eax <== NOT EXECUTED
145feb: e8 0c 54 fc ff call 10b3fc <rtems_bdbuf_release_modified><== NOT EXECUTED
145ff0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
else
sc = rtems_bdbuf_release (buffer);
if (sc != RTEMS_SUCCESSFUL)
145ff3: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
145ff6: 19 c0 sbb %eax,%eax <== NOT EXECUTED
145ff8: f7 d0 not %eax <== NOT EXECUTED
145ffa: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
145ffd: c9 leave <== NOT EXECUTED
145ffe: c3 ret <== NOT EXECUTED
145fff: 90 nop <== NOT EXECUTED
buffer->block, modified ? "(modified)" : "");
if (modified)
sc = rtems_bdbuf_release_modified (buffer);
else
sc = rtems_bdbuf_release (buffer);
146000: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
146003: 50 push %eax <== NOT EXECUTED
146004: e8 6f 54 fc ff call 10b478 <rtems_bdbuf_release> <== NOT EXECUTED
146009: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
14600c: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
14600f: 19 c0 sbb %eax,%eax <== NOT EXECUTED
146011: f7 d0 not %eax <== NOT EXECUTED
146013: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
146016: c9 leave <== NOT EXECUTED
146017: c3 ret <== NOT EXECUTED
00146018 <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)
{
146018: 55 push %ebp <== NOT EXECUTED
146019: 89 e5 mov %esp,%ebp <== NOT EXECUTED
14601b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
14601e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
146021: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
146024: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
rtems_status_code sc;
int rc = 0;
if (read)
146027: 80 7d 10 00 cmpb $0x0,0x10(%ebp) <== NOT EXECUTED
14602b: 74 1f je 14604c <rtems_rfs_buffer_bdbuf_request+0x34><== NOT EXECUTED
sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);
14602d: 51 push %ecx <== NOT EXECUTED
14602e: 52 push %edx <== NOT EXECUTED
14602f: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
146032: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
146035: ff 30 pushl (%eax) <== NOT EXECUTED
146037: e8 b8 64 fc ff call 10c4f4 <rtems_bdbuf_read> <== NOT EXECUTED
14603c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
else
sc = rtems_bdbuf_get (rtems_rfs_fs_device (fs), block, buffer);
if (sc != RTEMS_SUCCESSFUL)
14603f: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
146042: 19 c0 sbb %eax,%eax <== NOT EXECUTED
146044: f7 d0 not %eax <== NOT EXECUTED
146046: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
146049: c9 leave <== NOT EXECUTED
14604a: c3 ret <== NOT EXECUTED
14604b: 90 nop <== NOT EXECUTED
int rc = 0;
if (read)
sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);
else
sc = rtems_bdbuf_get (rtems_rfs_fs_device (fs), block, buffer);
14604c: 51 push %ecx <== NOT EXECUTED
14604d: 52 push %edx <== NOT EXECUTED
14604e: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
146051: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
146054: ff 30 pushl (%eax) <== NOT EXECUTED
146056: e8 cd 63 fc ff call 10c428 <rtems_bdbuf_get> <== NOT EXECUTED
14605b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
14605e: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
146061: 19 c0 sbb %eax,%eax <== NOT EXECUTED
146063: f7 d0 not %eax <== NOT EXECUTED
146065: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
146068: c9 leave <== NOT EXECUTED
146069: c3 ret <== NOT EXECUTED
0013d45c <rtems_rfs_buffer_close>:
return 0;
}
int
rtems_rfs_buffer_close (rtems_rfs_file_system* fs)
{
13d45c: 55 push %ebp <== NOT EXECUTED
13d45d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d45f: 56 push %esi <== NOT EXECUTED
13d460: 53 push %ebx <== NOT EXECUTED
13d461: 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));
13d464: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d467: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13d46a: ff 70 24 pushl 0x24(%eax) <== NOT EXECUTED
13d46d: 53 push %ebx <== NOT EXECUTED
13d46e: e8 a5 ff ff ff call 13d418 <rtems_rfs_buffer_setblksize><== NOT EXECUTED
13d473: 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);
13d475: 58 pop %eax <== NOT EXECUTED
13d476: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED
13d479: e8 e2 01 fd ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
rc, strerror (rc));
}
#endif
return rc;
}
13d47e: 89 f0 mov %esi,%eax <== NOT EXECUTED
13d480: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
13d483: 5b pop %ebx <== NOT EXECUTED
13d484: 5e pop %esi <== NOT EXECUTED
13d485: c9 leave <== NOT EXECUTED
13d486: c3 ret <== NOT EXECUTED
0013d7e4 <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)
{
13d7e4: 55 push %ebp <== NOT EXECUTED
13d7e5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d7e7: 53 push %ebx <== NOT EXECUTED
13d7e8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d7eb: 89 d3 mov %edx,%ebx <== NOT EXECUTED
rtems_rfs_buffer_handle_release (fs, handle);
13d7ed: 52 push %edx <== NOT EXECUTED
13d7ee: 50 push %eax <== NOT EXECUTED
13d7ef: e8 ec fc ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13d7f4: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13d7f7: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13d7fe: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
return 0;
}
13d805: 31 c0 xor %eax,%eax <== NOT EXECUTED
13d807: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
13d80a: c9 leave <== NOT EXECUTED
13d80b: c3 ret <== NOT EXECUTED
0013d4e0 <rtems_rfs_buffer_handle_release>:
}
int
rtems_rfs_buffer_handle_release (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
13d4e0: 55 push %ebp <== NOT EXECUTED
13d4e1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d4e3: 57 push %edi <== NOT EXECUTED
13d4e4: 56 push %esi <== NOT EXECUTED
13d4e5: 53 push %ebx <== NOT EXECUTED
13d4e6: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
13d4e9: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
13d4ec: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (handle))
13d4ef: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
13d4f2: 85 c0 test %eax,%eax <== NOT EXECUTED
13d4f4: 74 18 je 13d50e <rtems_rfs_buffer_handle_release+0x2e><== 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)
13d4f6: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
13d4f9: 85 db test %ebx,%ebx <== NOT EXECUTED
13d4fb: 7e 04 jle 13d501 <rtems_rfs_buffer_handle_release+0x21><== NOT EXECUTED
rtems_rfs_buffer_refs_down (handle);
13d4fd: 4b dec %ebx <== NOT EXECUTED
13d4fe: 89 58 34 mov %ebx,0x34(%eax) <== NOT EXECUTED
if (rtems_rfs_buffer_refs (handle) == 0)
13d501: 85 db test %ebx,%ebx <== NOT EXECUTED
13d503: 74 13 je 13d518 <rtems_rfs_buffer_handle_release+0x38><== NOT EXECUTED
13d505: 31 c0 xor %eax,%eax <== NOT EXECUTED
rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
fs->release_count++;
}
}
}
handle->buffer = NULL;
13d507: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi) <== NOT EXECUTED
}
return rc;
}
13d50e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d511: 5b pop %ebx <== NOT EXECUTED
13d512: 5e pop %esi <== NOT EXECUTED
13d513: 5f pop %edi <== NOT EXECUTED
13d514: c9 leave <== NOT EXECUTED
13d515: c3 ret <== NOT EXECUTED
13d516: 66 90 xchg %ax,%ax <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
13d518: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d51b: 50 push %eax <== NOT EXECUTED
13d51c: e8 13 65 fd ff call 113a34 <_Chain_Extract> <== NOT EXECUTED
rtems_rfs_buffer_refs_down (handle);
if (rtems_rfs_buffer_refs (handle) == 0)
{
rtems_chain_extract (rtems_rfs_buffer_link (handle));
fs->buffers_count--;
13d521: ff 4f 4c decl 0x4c(%edi) <== NOT EXECUTED
if (rtems_rfs_fs_no_local_cache (fs))
13d524: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d527: f6 07 02 testb $0x2,(%edi) <== NOT EXECUTED
13d52a: 75 34 jne 13d560 <rtems_rfs_buffer_handle_release+0x80><== 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 +
13d52c: 8b 57 5c mov 0x5c(%edi),%edx <== NOT EXECUTED
13d52f: 8b 47 6c mov 0x6c(%edi),%eax <== NOT EXECUTED
13d532: 8d 0c 10 lea (%eax,%edx,1),%ecx <== NOT EXECUTED
fs->release_modified_count) >= fs->max_held_buffers)
13d535: 3b 4f 3c cmp 0x3c(%edi),%ecx <== NOT EXECUTED
13d538: 73 62 jae 13d59c <rtems_rfs_buffer_handle_release+0xbc><== NOT EXECUTED
13d53a: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
buffer->user = (void*) 0;
rc = rtems_rfs_buffer_io_release (buffer, modified);
}
if (rtems_rfs_buffer_dirty (handle))
13d53c: 80 3e 00 cmpb $0x0,(%esi) <== NOT EXECUTED
13d53f: 74 3b je 13d57c <rtems_rfs_buffer_handle_release+0x9c><== 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 );
13d541: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d544: ff 76 08 pushl 0x8(%esi) <== NOT EXECUTED
13d547: 8d 57 60 lea 0x60(%edi),%edx <== NOT EXECUTED
13d54a: 52 push %edx <== NOT EXECUTED
13d54b: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
13d54e: e8 bd 64 fd ff call 113a10 <_Chain_Append> <== NOT EXECUTED
{
rtems_chain_append (&fs->release_modified,
rtems_rfs_buffer_link (handle));
fs->release_modified_count++;
13d553: ff 47 6c incl 0x6c(%edi) <== NOT EXECUTED
13d556: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d559: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13d55c: eb a9 jmp 13d507 <rtems_rfs_buffer_handle_release+0x27><== NOT EXECUTED
13d55e: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_chain_extract (rtems_rfs_buffer_link (handle));
fs->buffers_count--;
if (rtems_rfs_fs_no_local_cache (fs))
{
handle->buffer->user = (void*) 0;
13d560: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
13d563: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (handle->buffer,
13d56a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d56d: 0f b6 16 movzbl (%esi),%edx <== NOT EXECUTED
13d570: 52 push %edx <== NOT EXECUTED
13d571: 50 push %eax <== NOT EXECUTED
13d572: e8 61 8a 00 00 call 145fd8 <rtems_rfs_buffer_bdbuf_release><== NOT EXECUTED
13d577: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d57a: eb 8b jmp 13d507 <rtems_rfs_buffer_handle_release+0x27><== NOT EXECUTED
13d57c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d57f: ff 76 08 pushl 0x8(%esi) <== NOT EXECUTED
13d582: 8d 57 50 lea 0x50(%edi),%edx <== NOT EXECUTED
13d585: 52 push %edx <== NOT EXECUTED
13d586: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
13d589: e8 82 64 fd ff call 113a10 <_Chain_Append> <== NOT EXECUTED
fs->release_modified_count++;
}
else
{
rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
fs->release_count++;
13d58e: ff 47 5c incl 0x5c(%edi) <== NOT EXECUTED
13d591: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d594: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13d597: e9 6b ff ff ff jmp 13d507 <rtems_rfs_buffer_handle_release+0x27><== 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)
13d59c: 39 c2 cmp %eax,%edx <== NOT EXECUTED
13d59e: 77 30 ja 13d5d0 <rtems_rfs_buffer_handle_release+0xf0><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
13d5a0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d5a3: 8d 47 60 lea 0x60(%edi),%eax <== NOT EXECUTED
13d5a6: 50 push %eax <== NOT EXECUTED
13d5a7: e8 a0 64 fd ff call 113a4c <_Chain_Get> <== NOT EXECUTED
}
else
{
buffer =
(rtems_rfs_buffer*) rtems_chain_get (&fs->release_modified);
fs->release_modified_count--;
13d5ac: ff 4f 6c decl 0x6c(%edi) <== NOT EXECUTED
13d5af: bb 01 00 00 00 mov $0x1,%ebx <== NOT EXECUTED
13d5b4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
modified = true;
}
buffer->user = (void*) 0;
13d5b7: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
13d5be: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d5c1: 53 push %ebx <== NOT EXECUTED
13d5c2: 50 push %eax <== NOT EXECUTED
13d5c3: e8 10 8a 00 00 call 145fd8 <rtems_rfs_buffer_bdbuf_release><== NOT EXECUTED
13d5c8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d5cb: e9 6c ff ff ff jmp 13d53c <rtems_rfs_buffer_handle_release+0x5c><== NOT EXECUTED
13d5d0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d5d3: 8d 47 50 lea 0x50(%edi),%eax <== NOT EXECUTED
13d5d6: 50 push %eax <== NOT EXECUTED
13d5d7: e8 70 64 fd ff call 113a4c <_Chain_Get> <== NOT EXECUTED
" %" PRIu32 "\n", fs->release_count + fs->release_modified_count);
if (fs->release_count > fs->release_modified_count)
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (&fs->release);
fs->release_count--;
13d5dc: ff 4f 5c decl 0x5c(%edi) <== NOT EXECUTED
13d5df: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d5e2: eb d3 jmp 13d5b7 <rtems_rfs_buffer_handle_release+0xd7><== NOT EXECUTED
0013d5e4 <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)
{
13d5e4: 55 push %ebp <== NOT EXECUTED
13d5e5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d5e7: 57 push %edi <== NOT EXECUTED
13d5e8: 56 push %esi <== NOT EXECUTED
13d5e9: 53 push %ebx <== NOT EXECUTED
13d5ea: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
13d5ed: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
13d5f0: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
13d5f3: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
13d5f6: 8a 45 14 mov 0x14(%ebp),%al <== NOT EXECUTED
13d5f9: 88 45 e7 mov %al,-0x19(%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))
13d5fc: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
13d5ff: 85 d2 test %edx,%edx <== NOT EXECUTED
13d601: 74 33 je 13d636 <rtems_rfs_buffer_handle_request+0x52><== NOT EXECUTED
{
/*
* Treat block 0 as special to handle the loading of the super block.
*/
if (block && (rtems_rfs_buffer_bnum (handle) == block))
13d603: 85 f6 test %esi,%esi <== NOT EXECUTED
13d605: 74 09 je 13d610 <rtems_rfs_buffer_handle_request+0x2c><== NOT EXECUTED
13d607: 39 73 04 cmp %esi,0x4(%ebx) <== NOT EXECUTED
13d60a: 0f 84 64 01 00 00 je 13d774 <rtems_rfs_buffer_handle_request+0x190><== 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);
13d610: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d613: 53 push %ebx <== NOT EXECUTED
13d614: 57 push %edi <== NOT EXECUTED
13d615: e8 c6 fe ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
if (rc > 0)
13d61a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d61d: 85 c0 test %eax,%eax <== NOT EXECUTED
13d61f: 7e 0b jle 13d62c <rtems_rfs_buffer_handle_request+0x48><== NOT EXECUTED
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;
}
13d621: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d624: 5b pop %ebx <== NOT EXECUTED
13d625: 5e pop %esi <== NOT EXECUTED
13d626: 5f pop %edi <== NOT EXECUTED
13d627: c9 leave <== NOT EXECUTED
13d628: c3 ret <== NOT EXECUTED
13d629: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_rfs_buffer_bnum (handle));
rc = rtems_rfs_buffer_handle_release (fs, handle);
if (rc > 0)
return rc;
handle->dirty = false;
13d62c: c6 03 00 movb $0x0,(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13d62f: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) <== 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)
13d636: 8b 47 4c mov 0x4c(%edi),%eax <== NOT EXECUTED
13d639: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
13d63c: 85 c0 test %eax,%eax <== NOT EXECUTED
13d63e: 0f 85 e0 00 00 00 jne 13d724 <rtems_rfs_buffer_handle_request+0x140><== NOT EXECUTED
13d644: 8b 53 08 mov 0x8(%ebx),%edx <== 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) &&
13d647: f6 07 02 testb $0x2,(%edi) <== NOT EXECUTED
13d64a: 0f 85 9c 00 00 00 jne 13d6ec <rtems_rfs_buffer_handle_request+0x108><== NOT EXECUTED
13d650: 85 d2 test %edx,%edx <== NOT EXECUTED
13d652: 74 30 je 13d684 <rtems_rfs_buffer_handle_request+0xa0><== NOT EXECUTED
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
fs->release_modified_count)
{
handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,
13d654: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
}
/*
* Increase the reference count of the buffer.
*/
rtems_rfs_buffer_refs_up (handle);
13d657: ff 42 34 incl 0x34(%edx) <== 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 );
13d65a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d65d: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
13d660: 8d 47 40 lea 0x40(%edi),%eax <== NOT EXECUTED
13d663: 50 push %eax <== NOT EXECUTED
13d664: e8 a7 63 fd ff call 113a10 <_Chain_Append> <== NOT EXECUTED
rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));
fs->buffers_count++;
13d669: ff 47 4c incl 0x4c(%edi) <== NOT EXECUTED
handle->buffer->user = (void*) ((intptr_t) block);
13d66c: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
13d66f: 89 70 38 mov %esi,0x38(%eax) <== NOT EXECUTED
handle->bnum = block;
13d672: 89 73 04 mov %esi,0x4(%ebx) <== NOT EXECUTED
13d675: 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;
13d677: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13d67a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d67d: 5b pop %ebx <== NOT EXECUTED
13d67e: 5e pop %esi <== NOT EXECUTED
13d67f: 5f pop %edi <== NOT EXECUTED
13d680: c9 leave <== NOT EXECUTED
13d681: c3 ret <== NOT EXECUTED
13d682: 66 90 xchg %ax,%ax <== NOT EXECUTED
!rtems_rfs_buffer_handle_has_block (handle))
{
/*
* Check the local cache of released buffers.
*/
if (fs->release_count)
13d684: 8b 4f 5c mov 0x5c(%edi),%ecx <== NOT EXECUTED
13d687: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13d689: 0f 85 ef 00 00 00 jne 13d77e <rtems_rfs_buffer_handle_request+0x19a><== NOT EXECUTED
handle->buffer = rtems_rfs_scan_chain (&fs->release,
&fs->release_count,
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
fs->release_modified_count)
13d68f: 8b 47 6c mov 0x6c(%edi),%eax <== NOT EXECUTED
13d692: 89 45 e0 mov %eax,-0x20(%ebp) <== 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) &&
13d695: 85 c0 test %eax,%eax <== NOT EXECUTED
13d697: 74 5b je 13d6f4 <rtems_rfs_buffer_handle_request+0x110><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
13d699: 8b 47 68 mov 0x68(%edi),%eax <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(
Chain_Control *the_chain
)
{
return (Chain_Node *) the_chain;
13d69c: 8d 4f 60 lea 0x60(%edi),%ecx <== 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))
13d69f: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13d6a1: 75 10 jne 13d6b3 <rtems_rfs_buffer_handle_request+0xcf><== NOT EXECUTED
13d6a3: e9 30 01 00 00 jmp 13d7d8 <rtems_rfs_buffer_handle_request+0x1f4><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
13d6a8: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED
13d6ab: 39 c1 cmp %eax,%ecx <== NOT EXECUTED
13d6ad: 0f 84 25 01 00 00 je 13d7d8 <rtems_rfs_buffer_handle_request+0x1f4><== 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)
13d6b3: 39 70 38 cmp %esi,0x38(%eax) <== NOT EXECUTED
13d6b6: 75 f0 jne 13d6a8 <rtems_rfs_buffer_handle_request+0xc4><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf (": found block=%" PRIuPTR "\n",
((intptr_t)(buffer->user)));
(*count)--;
13d6b8: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
13d6bb: 49 dec %ecx <== NOT EXECUTED
13d6bc: 89 4f 6c mov %ecx,0x6c(%edi) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
13d6bf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d6c2: 50 push %eax <== NOT EXECUTED
13d6c3: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
13d6c6: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
13d6c9: e8 66 63 fd ff call 113a34 <_Chain_Extract> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
13d6ce: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
13d6d1: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
13d6d8: c7 00 00 00 00 00 movl $0x0,(%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,
13d6de: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
block);
/*
* If we found a buffer retain the dirty buffer state.
*/
if (rtems_rfs_buffer_handle_has_block (handle))
rtems_rfs_buffer_mark_dirty (handle);
13d6e1: c6 03 01 movb $0x1,(%ebx) <== NOT EXECUTED
13d6e4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d6e7: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
13d6ea: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
/*
* If not located we request the buffer from the I/O layer.
*/
if (!rtems_rfs_buffer_handle_has_block (handle))
13d6ec: 85 d2 test %edx,%edx <== NOT EXECUTED
13d6ee: 0f 85 63 ff ff ff jne 13d657 <rtems_rfs_buffer_handle_request+0x73><== NOT EXECUTED
{
rc = rtems_rfs_buffer_io_request (fs, block, read, &handle->buffer);
13d6f4: 8d 43 08 lea 0x8(%ebx),%eax <== NOT EXECUTED
13d6f7: 50 push %eax <== NOT EXECUTED
13d6f8: 0f b6 45 e7 movzbl -0x19(%ebp),%eax <== NOT EXECUTED
13d6fc: 50 push %eax <== NOT EXECUTED
13d6fd: 56 push %esi <== NOT EXECUTED
13d6fe: 57 push %edi <== NOT EXECUTED
13d6ff: e8 14 89 00 00 call 146018 <rtems_rfs_buffer_bdbuf_request><== NOT EXECUTED
rtems_chain_set_off_chain (rtems_rfs_buffer_link(handle));
13d704: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
13d707: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) <== NOT EXECUTED
13d70e: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
if (rc > 0)
13d714: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d717: 85 c0 test %eax,%eax <== NOT EXECUTED
13d719: 0f 8f 02 ff ff ff jg 13d621 <rtems_rfs_buffer_handle_request+0x3d><== NOT EXECUTED
13d71f: e9 33 ff ff ff jmp 13d657 <rtems_rfs_buffer_handle_request+0x73><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
13d724: 8b 47 48 mov 0x48(%edi),%eax <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(
Chain_Control *the_chain
)
{
return (Chain_Node *) the_chain;
13d727: 8d 4f 40 lea 0x40(%edi),%ecx <== 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))
13d72a: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13d72c: 75 0d jne 13d73b <rtems_rfs_buffer_handle_request+0x157><== NOT EXECUTED
13d72e: 66 90 xchg %ax,%ax <== NOT EXECUTED
13d730: 31 d2 xor %edx,%edx <== NOT EXECUTED
13d732: eb 38 jmp 13d76c <rtems_rfs_buffer_handle_request+0x188><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
13d734: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED
13d737: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13d739: 74 f5 je 13d730 <rtems_rfs_buffer_handle_request+0x14c><== 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)
13d73b: 39 70 38 cmp %esi,0x38(%eax) <== NOT EXECUTED
13d73e: 75 f4 jne 13d734 <rtems_rfs_buffer_handle_request+0x150><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf (": found block=%" PRIuPTR "\n",
((intptr_t)(buffer->user)));
(*count)--;
13d740: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
13d743: 49 dec %ecx <== NOT EXECUTED
13d744: 89 4f 4c mov %ecx,0x4c(%edi) <== NOT EXECUTED
13d747: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d74a: 50 push %eax <== NOT EXECUTED
13d74b: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
13d74e: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
13d751: e8 de 62 fd ff call 113a34 <_Chain_Extract> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
13d756: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
13d759: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
13d760: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
13d766: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d769: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
if (fs->buffers_count)
{
/*
* Check the active buffer list for shared buffers.
*/
handle->buffer = rtems_rfs_scan_chain (&fs->buffers,
13d76c: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
&fs->buffers_count,
block);
if (rtems_rfs_buffer_handle_has_block (handle) &&
13d76f: e9 d3 fe ff ff jmp 13d647 <rtems_rfs_buffer_handle_request+0x63><== NOT EXECUTED
if (rtems_rfs_buffer_handle_has_block (handle))
{
/*
* Treat block 0 as special to handle the loading of the super block.
*/
if (block && (rtems_rfs_buffer_bnum (handle) == block))
13d774: 31 c0 xor %eax,%eax <== NOT EXECUTED
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;
}
13d776: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d779: 5b pop %ebx <== NOT EXECUTED
13d77a: 5e pop %esi <== NOT EXECUTED
13d77b: 5f pop %edi <== NOT EXECUTED
13d77c: c9 leave <== NOT EXECUTED
13d77d: c3 ret <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
13d77e: 8b 47 58 mov 0x58(%edi),%eax <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(
Chain_Control *the_chain
)
{
return (Chain_Node *) the_chain;
13d781: 8d 57 50 lea 0x50(%edi),%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))
13d784: 39 d0 cmp %edx,%eax <== NOT EXECUTED
13d786: 75 0b jne 13d793 <rtems_rfs_buffer_handle_request+0x1af><== NOT EXECUTED
13d788: eb 42 jmp 13d7cc <rtems_rfs_buffer_handle_request+0x1e8><== NOT EXECUTED
13d78a: 66 90 xchg %ax,%ax <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
13d78c: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED
13d78f: 39 d0 cmp %edx,%eax <== NOT EXECUTED
13d791: 74 39 je 13d7cc <rtems_rfs_buffer_handle_request+0x1e8><== 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)
13d793: 39 70 38 cmp %esi,0x38(%eax) <== NOT EXECUTED
13d796: 75 f4 jne 13d78c <rtems_rfs_buffer_handle_request+0x1a8><== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf (": found block=%" PRIuPTR "\n",
((intptr_t)(buffer->user)));
(*count)--;
13d798: 49 dec %ecx <== NOT EXECUTED
13d799: 89 4f 5c mov %ecx,0x5c(%edi) <== NOT EXECUTED
13d79c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d79f: 50 push %eax <== NOT EXECUTED
13d7a0: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
13d7a3: e8 8c 62 fd ff call 113a34 <_Chain_Extract> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
13d7a8: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
13d7ab: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED
13d7b2: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
{
/*
* Check the local cache of released buffers.
*/
if (fs->release_count)
handle->buffer = rtems_rfs_scan_chain (&fs->release,
13d7b8: 89 43 08 mov %eax,0x8(%ebx) <== NOT EXECUTED
&fs->release_count,
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
13d7bb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d7be: 85 c0 test %eax,%eax <== NOT EXECUTED
13d7c0: 0f 85 8e fe ff ff jne 13d654 <rtems_rfs_buffer_handle_request+0x70><== NOT EXECUTED
13d7c6: e9 c4 fe ff ff jmp 13d68f <rtems_rfs_buffer_handle_request+0xab><== NOT EXECUTED
13d7cb: 90 nop <== NOT EXECUTED
{
/*
* Check the local cache of released buffers.
*/
if (fs->release_count)
handle->buffer = rtems_rfs_scan_chain (&fs->release,
13d7cc: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
13d7d3: e9 b7 fe ff ff jmp 13d68f <rtems_rfs_buffer_handle_request+0xab><== NOT EXECUTED
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
fs->release_modified_count)
{
handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,
13d7d8: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
13d7df: e9 10 ff ff ff jmp 13d6f4 <rtems_rfs_buffer_handle_request+0x110><== NOT EXECUTED
0013d488 <rtems_rfs_buffer_open>:
return rc;
}
int
rtems_rfs_buffer_open (const char* name, rtems_rfs_file_system* fs)
{
13d488: 55 push %ebp <== NOT EXECUTED
13d489: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d48b: 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)
13d48e: 8d 45 b0 lea -0x50(%ebp),%eax <== NOT EXECUTED
13d491: 50 push %eax <== NOT EXECUTED
13d492: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13d495: e8 e6 29 fd ff call 10fe80 <stat> <== NOT EXECUTED
13d49a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d49d: 85 c0 test %eax,%eax <== NOT EXECUTED
13d49f: 78 37 js 13d4d8 <rtems_rfs_buffer_open+0x50><== NOT EXECUTED
#if RTEMS_RFS_USE_LIBBLOCK
/*
* Is the device a block device ?
*/
if (!S_ISBLK (st.st_mode))
13d4a1: 8b 45 bc mov -0x44(%ebp),%eax <== NOT EXECUTED
13d4a4: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
13d4a9: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
13d4ae: 74 08 je 13d4b8 <rtems_rfs_buffer_open+0x30><== NOT EXECUTED
/*
* Check that device is registred as a block device and lock it.
*/
fs->disk = rtems_disk_obtain (st.st_rdev);
if (!fs->disk)
13d4b0: b8 05 00 00 00 mov $0x5,%eax <== 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;
}
13d4b5: c9 leave <== NOT EXECUTED
13d4b6: c3 ret <== NOT EXECUTED
13d4b7: 90 nop <== NOT EXECUTED
}
/*
* Check that device is registred as a block device and lock it.
*/
fs->disk = rtems_disk_obtain (st.st_rdev);
13d4b8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d4bb: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
13d4be: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
13d4c1: e8 be ff fc ff call 10d484 <rtems_disk_obtain> <== NOT EXECUTED
13d4c6: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13d4c9: 89 42 0c mov %eax,0xc(%edx) <== NOT EXECUTED
if (!fs->disk)
13d4cc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d4cf: 85 c0 test %eax,%eax <== NOT EXECUTED
13d4d1: 74 dd je 13d4b0 <rtems_rfs_buffer_open+0x28><== NOT EXECUTED
13d4d3: 31 c0 xor %eax,%eax <== 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;
}
13d4d5: c9 leave <== NOT EXECUTED
13d4d6: c3 ret <== NOT EXECUTED
13d4d7: 90 nop <== 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)
13d4d8: b8 02 00 00 00 mov $0x2,%eax <== 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;
}
13d4dd: c9 leave <== NOT EXECUTED
13d4de: c3 ret <== NOT EXECUTED
0013d418 <rtems_rfs_buffer_setblksize>:
int
rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)
{
13d418: 55 push %ebp <== NOT EXECUTED
13d419: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d41b: 53 push %ebx <== NOT EXECUTED
13d41c: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
13d41f: 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);
13d422: 53 push %ebx <== NOT EXECUTED
13d423: e8 7c ff ff ff call 13d3a4 <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);
13d428: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
13d42b: e8 b4 ff ff ff call 13d3e4 <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);
13d430: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13d433: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13d436: 8d 55 0c lea 0xc(%ebp),%edx <== NOT EXECUTED
13d439: 52 push %edx <== NOT EXECUTED
13d43a: 68 04 42 04 80 push $0x80044204 <== NOT EXECUTED
13d43f: 50 push %eax <== NOT EXECUTED
13d440: ff 50 28 call *0x28(%eax) <== NOT EXECUTED
if (rc < 0)
13d443: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d446: 85 c0 test %eax,%eax <== NOT EXECUTED
13d448: 78 06 js 13d450 <rtems_rfs_buffer_setblksize+0x38><== NOT EXECUTED
rc = errno;
#endif
return rc;
}
13d44a: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
13d44d: c9 leave <== NOT EXECUTED
13d44e: c3 ret <== NOT EXECUTED
13d44f: 90 nop <== NOT EXECUTED
rc, strerror (rc));
#if RTEMS_RFS_USE_LIBBLOCK
rc = fs->disk->ioctl (fs->disk, RTEMS_BLKIO_SETBLKSIZE, &size);
if (rc < 0)
rc = errno;
13d450: e8 37 93 00 00 call 14678c <__errno> <== NOT EXECUTED
13d455: 8b 00 mov (%eax),%eax <== NOT EXECUTED
#endif
return rc;
}
13d457: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
13d45a: c9 leave <== NOT EXECUTED
13d45b: c3 ret <== NOT EXECUTED
0013d3e4 <rtems_rfs_buffer_sync>:
return rc;
}
int
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)
{
13d3e4: 55 push %ebp <== NOT EXECUTED
13d3e5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d3e7: 56 push %esi <== NOT EXECUTED
13d3e8: 53 push %ebx <== NOT EXECUTED
13d3e9: 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));
13d3ec: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d3ef: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
13d3f2: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
13d3f5: ff 30 pushl (%eax) <== NOT EXECUTED
13d3f7: e8 5c d6 fc ff call 10aa58 <rtems_bdbuf_syncdev> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
13d3fc: 59 pop %ecx <== NOT EXECUTED
13d3fd: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
13d400: 19 db sbb %ebx,%ebx <== NOT EXECUTED
13d402: f7 d3 not %ebx <== NOT EXECUTED
13d404: 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);
13d407: ff 76 0c pushl 0xc(%esi) <== NOT EXECUTED
13d40a: e8 51 02 fd ff call 10d660 <rtems_disk_release> <== NOT EXECUTED
printf ("rtems-rfs: buffer-sync: file sync failed: %d: %s\n",
result, strerror (result));
}
#endif
return result;
}
13d40f: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13d411: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
13d414: 5b pop %ebx <== NOT EXECUTED
13d415: 5e pop %esi <== NOT EXECUTED
13d416: c9 leave <== NOT EXECUTED
13d417: c3 ret <== NOT EXECUTED
0013d3a4 <rtems_rfs_buffers_release>:
int
rtems_rfs_buffers_release (rtems_rfs_file_system* fs)
{
13d3a4: 55 push %ebp <== NOT EXECUTED
13d3a5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d3a7: 56 push %esi <== NOT EXECUTED
13d3a8: 53 push %ebx <== NOT EXECUTED
13d3a9: 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,
13d3ac: 8d 56 5c lea 0x5c(%esi),%edx <== NOT EXECUTED
13d3af: 8d 46 50 lea 0x50(%esi),%eax <== NOT EXECUTED
13d3b2: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
13d3b4: e8 87 ff ff ff call 13d340 <rtems_rfs_release_chain><== NOT EXECUTED
13d3b9: 89 c3 mov %eax,%ebx <== NOT EXECUTED
13d3bb: 85 c0 test %eax,%eax <== NOT EXECUTED
13d3bd: 78 21 js 13d3e0 <rtems_rfs_buffers_release+0x3c><== NOT EXECUTED
&fs->release_count,
false);
if ((rc > 0) && (rrc == 0))
rrc = rc;
rc = rtems_rfs_release_chain (&fs->release_modified,
13d3bf: 8d 56 6c lea 0x6c(%esi),%edx <== NOT EXECUTED
13d3c2: 8d 46 60 lea 0x60(%esi),%eax <== NOT EXECUTED
13d3c5: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
13d3ca: e8 71 ff ff ff call 13d340 <rtems_rfs_release_chain><== NOT EXECUTED
&fs->release_modified_count,
true);
if ((rc > 0) && (rrc == 0))
13d3cf: 85 c0 test %eax,%eax <== NOT EXECUTED
13d3d1: 7e 06 jle 13d3d9 <rtems_rfs_buffers_release+0x35><== NOT EXECUTED
13d3d3: 85 db test %ebx,%ebx <== NOT EXECUTED
13d3d5: 75 02 jne 13d3d9 <rtems_rfs_buffers_release+0x35><== NOT EXECUTED
13d3d7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rrc = rc;
return rrc;
}
13d3d9: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13d3db: 5b pop %ebx <== NOT EXECUTED
13d3dc: 5e pop %esi <== NOT EXECUTED
13d3dd: c9 leave <== NOT EXECUTED
13d3de: c3 ret <== NOT EXECUTED
13d3df: 90 nop <== 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,
13d3e0: 31 db xor %ebx,%ebx <== NOT EXECUTED
13d3e2: eb db jmp 13d3bf <rtems_rfs_buffers_release+0x1b><== NOT EXECUTED
0013de90 <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)
{
13de90: 55 push %ebp <== NOT EXECUTED
13de91: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13de93: 57 push %edi <== NOT EXECUTED
13de94: 56 push %esi <== NOT EXECUTED
13de95: 53 push %ebx <== NOT EXECUTED
13de96: 81 ec c0 00 00 00 sub $0xc0,%esp <== 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);
13de9c: 8d 85 7c ff ff ff lea -0x84(%ebp),%eax <== NOT EXECUTED
13dea2: 50 push %eax <== NOT EXECUTED
13dea3: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13dea6: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13dea9: e8 e6 f2 ff ff call 13d194 <rtems_rfs_block_map_open><== NOT EXECUTED
13deae: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13deb0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13deb3: 85 c0 test %eax,%eax <== NOT EXECUTED
13deb5: 7e 0d jle 13dec4 <rtems_rfs_dir_add_entry+0x34><== NOT EXECUTED
}
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
13deb7: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13deb9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13debc: 5b pop %ebx <== NOT EXECUTED
13debd: 5e pop %esi <== NOT EXECUTED
13debe: 5f pop %edi <== NOT EXECUTED
13debf: c9 leave <== NOT EXECUTED
13dec0: c3 ret <== NOT EXECUTED
13dec1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
13dec4: c6 45 cc 00 movb $0x0,-0x34(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13dec8: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13decf: 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;
13ded6: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
bpos->boff = 0;
13dedd: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
bpos->block = 0;
13dee4: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
13deeb: 8d 75 e4 lea -0x1c(%ebp),%esi <== 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) <
13deee: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
13def1: 83 c2 0a add $0xa,%edx <== NOT EXECUTED
13def4: 89 95 54 ff ff ff mov %edx,-0xac(%ebp) <== NOT EXECUTED
13defa: eb 17 jmp 13df13 <rtems_rfs_dir_add_entry+0x83><== 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))
13defc: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13deff: 8b 41 08 mov 0x8(%ecx),%eax <== NOT EXECUTED
13df02: 89 c2 mov %eax,%edx <== NOT EXECUTED
13df04: 83 ea 0a sub $0xa,%edx <== NOT EXECUTED
13df07: 89 95 74 ff ff ff mov %edx,-0x8c(%ebp) <== NOT EXECUTED
13df0d: 0f 85 89 00 00 00 jne 13df9c <rtems_rfs_dir_add_entry+0x10c><== 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);
13df13: 56 push %esi <== NOT EXECUTED
13df14: 8d 4d d8 lea -0x28(%ebp),%ecx <== NOT EXECUTED
13df17: 51 push %ecx <== NOT EXECUTED
13df18: 8d 85 7c ff ff ff lea -0x84(%ebp),%eax <== NOT EXECUTED
13df1e: 50 push %eax <== NOT EXECUTED
13df1f: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13df22: e8 a9 e7 ff ff call 13c6d0 <rtems_rfs_block_map_find><== NOT EXECUTED
if (rc > 0)
13df27: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13df2a: 85 c0 test %eax,%eax <== NOT EXECUTED
13df2c: 0f 8e da 01 00 00 jle 13e10c <rtems_rfs_dir_add_entry+0x27c><== NOT EXECUTED
{
if (rc != ENXIO)
13df32: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13df35: 0f 85 e1 01 00 00 jne 13e11c <rtems_rfs_dir_add_entry+0x28c><== NOT EXECUTED
}
/*
* We have reached the end of the directory so add a block.
*/
rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);
13df3b: 56 push %esi <== NOT EXECUTED
13df3c: 6a 01 push $0x1 <== NOT EXECUTED
13df3e: 8d 95 7c ff ff ff lea -0x84(%ebp),%edx <== NOT EXECUTED
13df44: 52 push %edx <== NOT EXECUTED
13df45: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13df48: e8 77 ed ff ff call 13ccc4 <rtems_rfs_block_map_grow><== NOT EXECUTED
if (rc > 0)
13df4d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13df50: 85 c0 test %eax,%eax <== NOT EXECUTED
13df52: 0f 8f c4 01 00 00 jg 13e11c <rtems_rfs_dir_add_entry+0x28c><== NOT EXECUTED
13df58: 31 c0 xor %eax,%eax <== NOT EXECUTED
13df5a: 31 ff xor %edi,%edi <== NOT EXECUTED
}
read = false;
}
bpos.bno++;
13df5c: ff 45 d8 incl -0x28(%ebp) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
13df5f: 50 push %eax <== NOT EXECUTED
13df60: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13df63: 8d 4d cc lea -0x34(%ebp),%ecx <== NOT EXECUTED
13df66: 51 push %ecx <== NOT EXECUTED
13df67: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13df6a: e8 75 f6 ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
if (rc > 0)
13df6f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13df72: 85 c0 test %eax,%eax <== NOT EXECUTED
13df74: 0f 8f a2 01 00 00 jg 13e11c <rtems_rfs_dir_add_entry+0x28c><== 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);
13df7a: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13df7d: 8b 58 20 mov 0x20(%eax),%ebx <== NOT EXECUTED
if (!read)
13df80: 89 f8 mov %edi,%eax <== NOT EXECUTED
13df82: 84 c0 test %al,%al <== NOT EXECUTED
13df84: 0f 85 72 ff ff ff jne 13defc <rtems_rfs_dir_add_entry+0x6c><== NOT EXECUTED
memset (entry, 0xff, rtems_rfs_fs_block_size (fs));
13df8a: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13df8d: 8b 4a 08 mov 0x8(%edx),%ecx <== NOT EXECUTED
13df90: b0 ff mov $0xff,%al <== NOT EXECUTED
13df92: 89 df mov %ebx,%edi <== NOT EXECUTED
13df94: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
13df96: e9 61 ff ff ff jmp 13defc <rtems_rfs_dir_add_entry+0x6c><== NOT EXECUTED
13df9b: 90 nop <== NOT EXECUTED
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
13df9c: 8d 4b 08 lea 0x8(%ebx),%ecx <== NOT EXECUTED
13df9f: 89 8d 58 ff ff ff mov %ecx,-0xa8(%ebp) <== NOT EXECUTED
13dfa5: 8d 53 09 lea 0x9(%ebx),%edx <== NOT EXECUTED
13dfa8: 89 95 5c ff ff ff mov %edx,-0xa4(%ebp) <== NOT EXECUTED
13dfae: 0f b6 7b 08 movzbl 0x8(%ebx),%edi <== NOT EXECUTED
13dfb2: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
13dfb5: 0f b6 53 09 movzbl 0x9(%ebx),%edx <== NOT EXECUTED
13dfb9: 09 d7 or %edx,%edi <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
13dfbb: 8a 0b mov (%ebx),%cl <== NOT EXECUTED
13dfbd: 8d 53 01 lea 0x1(%ebx),%edx <== NOT EXECUTED
13dfc0: 89 95 60 ff ff ff mov %edx,-0xa0(%ebp) <== NOT EXECUTED
13dfc6: 8a 53 01 mov 0x1(%ebx),%dl <== NOT EXECUTED
13dfc9: 88 95 70 ff ff ff mov %dl,-0x90(%ebp) <== NOT EXECUTED
13dfcf: 8d 53 02 lea 0x2(%ebx),%edx <== NOT EXECUTED
13dfd2: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
13dfd8: 8a 53 02 mov 0x2(%ebx),%dl <== NOT EXECUTED
13dfdb: 88 95 6c ff ff ff mov %dl,-0x94(%ebp) <== NOT EXECUTED
13dfe1: 8d 53 03 lea 0x3(%ebx),%edx <== NOT EXECUTED
13dfe4: 89 95 68 ff ff ff mov %edx,-0x98(%ebp) <== NOT EXECUTED
13dfea: 8a 53 03 mov 0x3(%ebx),%dl <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
13dfed: 81 ff ff ff 00 00 cmp $0xffff,%edi <== NOT EXECUTED
13dff3: 0f 84 91 01 00 00 je 13e18a <rtems_rfs_dir_add_entry+0x2fa><== NOT EXECUTED
}
break;
}
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13dff9: 83 ff 0a cmp $0xa,%edi <== NOT EXECUTED
13dffc: 0f 8e 5e 01 00 00 jle 13e160 <rtems_rfs_dir_add_entry+0x2d0><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
13e002: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
13e005: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13e008: 09 ca or %ecx,%edx <== NOT EXECUTED
13e00a: 0f b6 8d 6c ff ff ff movzbl -0x94(%ebp),%ecx <== NOT EXECUTED
13e011: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13e014: 09 ca or %ecx,%edx <== NOT EXECUTED
13e016: 0f b6 8d 70 ff ff ff movzbl -0x90(%ebp),%ecx <== NOT EXECUTED
13e01d: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13e020: 09 ca or %ecx,%edx <== NOT EXECUTED
13e022: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13e025: 8b 49 18 mov 0x18(%ecx),%ecx <== NOT EXECUTED
13e028: 89 8d 6c ff ff ff mov %ecx,-0x94(%ebp) <== NOT EXECUTED
13e02e: c7 85 70 ff ff ff 00 movl $0x0,-0x90(%ebp) <== NOT EXECUTED
13e035: 00 00 00
}
break;
}
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13e038: 3b bd 6c ff ff ff cmp -0x94(%ebp),%edi <== NOT EXECUTED
13e03e: 0f 83 1c 01 00 00 jae 13e160 <rtems_rfs_dir_add_entry+0x2d0><== NOT EXECUTED
13e044: 85 d2 test %edx,%edx <== NOT EXECUTED
13e046: 0f 84 14 01 00 00 je 13e160 <rtems_rfs_dir_add_entry+0x2d0><== NOT EXECUTED
13e04c: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13e04f: 39 51 10 cmp %edx,0x10(%ecx) <== NOT EXECUTED
13e052: 0f 82 08 01 00 00 jb 13e160 <rtems_rfs_dir_add_entry+0x2d0><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
return EIO;
}
entry += elength;
offset += elength;
13e058: 01 bd 70 ff ff ff add %edi,-0x90(%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))
13e05e: 8b 8d 70 ff ff ff mov -0x90(%ebp),%ecx <== NOT EXECUTED
13e064: 8b 95 74 ff ff ff mov -0x8c(%ebp),%edx <== NOT EXECUTED
13e06a: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
13e06c: 0f 83 a1 fe ff ff jae 13df13 <rtems_rfs_dir_add_entry+0x83><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return EIO;
}
entry += elength;
13e072: 01 fb add %edi,%ebx <== NOT EXECUTED
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
13e074: 8d 53 08 lea 0x8(%ebx),%edx <== NOT EXECUTED
13e077: 89 95 58 ff ff ff mov %edx,-0xa8(%ebp) <== NOT EXECUTED
13e07d: 8d 53 09 lea 0x9(%ebx),%edx <== NOT EXECUTED
13e080: 89 95 5c ff ff ff mov %edx,-0xa4(%ebp) <== NOT EXECUTED
13e086: 0f b6 7b 08 movzbl 0x8(%ebx),%edi <== NOT EXECUTED
13e08a: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
13e08d: 0f b6 53 09 movzbl 0x9(%ebx),%edx <== NOT EXECUTED
13e091: 09 d7 or %edx,%edi <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
13e093: 8a 13 mov (%ebx),%dl <== NOT EXECUTED
13e095: 88 95 38 ff ff ff mov %dl,-0xc8(%ebp) <== NOT EXECUTED
13e09b: 8d 53 01 lea 0x1(%ebx),%edx <== NOT EXECUTED
13e09e: 89 95 60 ff ff ff mov %edx,-0xa0(%ebp) <== NOT EXECUTED
13e0a4: 8a 53 01 mov 0x1(%ebx),%dl <== NOT EXECUTED
13e0a7: 88 95 52 ff ff ff mov %dl,-0xae(%ebp) <== NOT EXECUTED
13e0ad: 8d 53 02 lea 0x2(%ebx),%edx <== NOT EXECUTED
13e0b0: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
13e0b6: 8a 53 02 mov 0x2(%ebx),%dl <== NOT EXECUTED
13e0b9: 88 95 53 ff ff ff mov %dl,-0xad(%ebp) <== NOT EXECUTED
13e0bf: 8d 53 03 lea 0x3(%ebx),%edx <== NOT EXECUTED
13e0c2: 89 95 68 ff ff ff mov %edx,-0x98(%ebp) <== NOT EXECUTED
13e0c8: 8a 53 03 mov 0x3(%ebx),%dl <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
13e0cb: 81 ff ff ff 00 00 cmp $0xffff,%edi <== NOT EXECUTED
13e0d1: 0f 84 b5 00 00 00 je 13e18c <rtems_rfs_dir_add_entry+0x2fc><== NOT EXECUTED
}
break;
}
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13e0d7: 83 ff 0a cmp $0xa,%edi <== NOT EXECUTED
13e0da: 0f 8e 80 00 00 00 jle 13e160 <rtems_rfs_dir_add_entry+0x2d0><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
13e0e0: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
13e0e3: 8a 8d 38 ff ff ff mov -0xc8(%ebp),%cl <== NOT EXECUTED
13e0e9: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13e0ec: 09 ca or %ecx,%edx <== NOT EXECUTED
13e0ee: 0f b6 8d 52 ff ff ff movzbl -0xae(%ebp),%ecx <== NOT EXECUTED
13e0f5: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13e0f8: 09 ca or %ecx,%edx <== NOT EXECUTED
13e0fa: 0f b6 8d 53 ff ff ff movzbl -0xad(%ebp),%ecx <== NOT EXECUTED
13e101: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13e104: 09 ca or %ecx,%edx <== NOT EXECUTED
13e106: e9 2d ff ff ff jmp 13e038 <rtems_rfs_dir_add_entry+0x1a8><== NOT EXECUTED
13e10b: 90 nop <== 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);
if (rc > 0)
13e10c: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
13e111: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
13e116: e9 41 fe ff ff jmp 13df5c <rtems_rfs_dir_add_entry+0xcc><== NOT EXECUTED
13e11b: 90 nop <== NOT EXECUTED
13e11c: 89 c3 mov %eax,%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);
13e11e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13e121: 8d 4d cc lea -0x34(%ebp),%ecx <== NOT EXECUTED
13e124: 51 push %ecx <== NOT EXECUTED
13e125: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13e128: e8 b3 f3 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13e12d: c6 45 cc 00 movb $0x0,-0x34(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13e131: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13e138: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
offset += elength;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
13e13f: 59 pop %ecx <== NOT EXECUTED
13e140: 5e pop %esi <== NOT EXECUTED
13e141: 8d b5 7c ff ff ff lea -0x84(%ebp),%esi <== NOT EXECUTED
13e147: 56 push %esi <== NOT EXECUTED
13e148: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13e14b: e8 98 ee ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
13e150: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13e153: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13e155: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13e158: 5b pop %ebx <== NOT EXECUTED
13e159: 5e pop %esi <== NOT EXECUTED
13e15a: 5f pop %edi <== NOT EXECUTED
13e15b: c9 leave <== NOT EXECUTED
13e15c: c3 ret <== NOT EXECUTED
13e15d: 8d 76 00 lea 0x0(%esi),%esi <== 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);
13e160: 8d 55 cc lea -0x34(%ebp),%edx <== NOT EXECUTED
13e163: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13e166: e8 79 f6 ff ff call 13d7e4 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13e16b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13e16e: 8d b5 7c ff ff ff lea -0x84(%ebp),%esi <== NOT EXECUTED
13e174: 56 push %esi <== NOT EXECUTED
13e175: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13e178: e8 6b ee ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
13e17d: bb 05 00 00 00 mov $0x5,%ebx <== NOT EXECUTED
return EIO;
13e182: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e185: e9 2d fd ff ff jmp 13deb7 <rtems_rfs_dir_add_entry+0x27><== NOT EXECUTED
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
13e18a: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
{
if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <
13e18c: 29 c8 sub %ecx,%eax <== NOT EXECUTED
13e18e: 39 85 54 ff ff ff cmp %eax,-0xac(%ebp) <== NOT EXECUTED
13e194: 0f 83 79 fd ff ff jae 13df13 <rtems_rfs_dir_add_entry+0x83><== NOT EXECUTED
(rtems_rfs_fs_block_size (fs) - offset))
{
uint32_t hash;
hash = rtems_rfs_dir_hash (name, length);
13e19a: 52 push %edx <== NOT EXECUTED
13e19b: 52 push %edx <== NOT EXECUTED
13e19c: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
13e19f: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13e1a2: e8 c5 7e 00 00 call 14606c <rtems_rfs_dir_hash> <== NOT EXECUTED
rtems_rfs_dir_set_entry_hash (entry, hash);
13e1a7: 89 c2 mov %eax,%edx <== NOT EXECUTED
13e1a9: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
13e1ac: 88 53 04 mov %dl,0x4(%ebx) <== NOT EXECUTED
13e1af: 89 c2 mov %eax,%edx <== NOT EXECUTED
13e1b1: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
13e1b4: 88 53 05 mov %dl,0x5(%ebx) <== NOT EXECUTED
13e1b7: 89 c2 mov %eax,%edx <== NOT EXECUTED
13e1b9: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
13e1bc: 88 53 06 mov %dl,0x6(%ebx) <== NOT EXECUTED
13e1bf: 88 43 07 mov %al,0x7(%ebx) <== NOT EXECUTED
rtems_rfs_dir_set_entry_ino (entry, ino);
13e1c2: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13e1c5: c1 e8 18 shr $0x18,%eax <== NOT EXECUTED
13e1c8: 88 03 mov %al,(%ebx) <== NOT EXECUTED
13e1ca: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13e1cd: c1 e8 10 shr $0x10,%eax <== NOT EXECUTED
13e1d0: 8b 8d 60 ff ff ff mov -0xa0(%ebp),%ecx <== NOT EXECUTED
13e1d6: 88 01 mov %al,(%ecx) <== NOT EXECUTED
13e1d8: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13e1db: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
13e1de: 8b b5 64 ff ff ff mov -0x9c(%ebp),%esi <== NOT EXECUTED
13e1e4: 88 06 mov %al,(%esi) <== NOT EXECUTED
13e1e6: 8a 45 18 mov 0x18(%ebp),%al <== NOT EXECUTED
13e1e9: 8b 95 68 ff ff ff mov -0x98(%ebp),%edx <== NOT EXECUTED
13e1ef: 88 02 mov %al,(%edx) <== NOT EXECUTED
rtems_rfs_dir_set_entry_length (entry,
13e1f1: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13e1f4: 83 c0 0a add $0xa,%eax <== NOT EXECUTED
13e1f7: 66 c1 e8 08 shr $0x8,%ax <== NOT EXECUTED
13e1fb: 8b 8d 58 ff ff ff mov -0xa8(%ebp),%ecx <== NOT EXECUTED
13e201: 88 01 mov %al,(%ecx) <== NOT EXECUTED
13e203: 8a 45 14 mov 0x14(%ebp),%al <== NOT EXECUTED
13e206: 83 c0 0a add $0xa,%eax <== NOT EXECUTED
13e209: 8b b5 5c ff ff ff mov -0xa4(%ebp),%esi <== NOT EXECUTED
13e20f: 88 06 mov %al,(%esi) <== NOT EXECUTED
RTEMS_RFS_DIR_ENTRY_SIZE + length);
memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);
13e211: 8d 43 0a lea 0xa(%ebx),%eax <== NOT EXECUTED
13e214: 89 c7 mov %eax,%edi <== NOT EXECUTED
13e216: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED
13e219: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
13e21c: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&buffer);
13e21e: c6 45 cc 01 movb $0x1,-0x34(%ebp) <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
13e222: 8d 55 cc lea -0x34(%ebp),%edx <== NOT EXECUTED
13e225: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13e228: e8 b7 f5 ff ff call 13d7e4 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13e22d: 5f pop %edi <== NOT EXECUTED
13e22e: 58 pop %eax <== NOT EXECUTED
13e22f: 8d 85 7c ff ff ff lea -0x84(%ebp),%eax <== NOT EXECUTED
13e235: 50 push %eax <== NOT EXECUTED
13e236: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13e239: e8 aa ed ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
13e23e: 31 db xor %ebx,%ebx <== NOT EXECUTED
return 0;
13e240: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e243: e9 6f fc ff ff jmp 13deb7 <rtems_rfs_dir_add_entry+0x27><== NOT EXECUTED
0013db4c <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)
{
13db4c: 55 push %ebp <== NOT EXECUTED
13db4d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13db4f: 57 push %edi <== NOT EXECUTED
13db50: 56 push %esi <== NOT EXECUTED
13db51: 53 push %ebx <== NOT EXECUTED
13db52: 81 ec a0 00 00 00 sub $0xa0,%esp <== 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);
13db58: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
13db5b: 50 push %eax <== NOT EXECUTED
13db5c: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13db5f: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13db62: e8 2d f6 ff ff call 13d194 <rtems_rfs_block_map_open><== NOT EXECUTED
13db67: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13db69: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13db6c: 85 c0 test %eax,%eax <== NOT EXECUTED
13db6e: 7e 0c jle 13db7c <rtems_rfs_dir_del_entry+0x30><== NOT EXECUTED
}
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
13db70: 89 f0 mov %esi,%eax <== NOT EXECUTED
13db72: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13db75: 5b pop %ebx <== NOT EXECUTED
13db76: 5e pop %esi <== NOT EXECUTED
13db77: 5f pop %edi <== NOT EXECUTED
13db78: c9 leave <== NOT EXECUTED
13db79: c3 ret <== NOT EXECUTED
13db7a: 66 90 xchg %ax,%ax <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
if (rc > 0)
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);
13db7c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13db7f: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13db82: 52 push %edx <== NOT EXECUTED
13db83: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13db86: 31 d2 xor %edx,%edx <== NOT EXECUTED
13db88: 52 push %edx <== NOT EXECUTED
13db89: 50 push %eax <== NOT EXECUTED
13db8a: 8d 4d 88 lea -0x78(%ebp),%ecx <== NOT EXECUTED
13db8d: 51 push %ecx <== NOT EXECUTED
13db8e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13db91: e8 7a ec ff ff call 13c810 <rtems_rfs_block_map_seek><== NOT EXECUTED
13db96: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13db98: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13db9b: 85 c0 test %eax,%eax <== NOT EXECUTED
13db9d: 7e 25 jle 13dbc4 <rtems_rfs_dir_del_entry+0x78><== NOT EXECUTED
{
if (rc == ENXIO)
13db9f: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13dba2: 75 04 jne 13dba8 <rtems_rfs_dir_del_entry+0x5c><== NOT EXECUTED
13dba4: 66 be 02 00 mov $0x2,%si <== NOT EXECUTED
rc = ENOENT;
rtems_rfs_block_map_close (fs, &map);
13dba8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13dbab: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
13dbae: 50 push %eax <== NOT EXECUTED
13dbaf: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13dbb2: e8 31 f4 ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
13dbb7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
13dbba: 89 f0 mov %esi,%eax <== NOT EXECUTED
13dbbc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13dbbf: 5b pop %ebx <== NOT EXECUTED
13dbc0: 5e pop %esi <== NOT EXECUTED
13dbc1: 5f pop %edi <== NOT EXECUTED
13dbc2: c9 leave <== NOT EXECUTED
13dbc3: c3 ret <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
13dbc4: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13dbc8: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13dbcf: 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;
13dbd6: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
13dbd9: 85 d2 test %edx,%edx <== NOT EXECUTED
13dbdb: 0f 94 85 7b ff ff ff sete -0x85(%ebp) <== NOT EXECUTED
while (rc == 0)
{
uint8_t* entry;
int eoffset;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
13dbe2: 6a 01 push $0x1 <== NOT EXECUTED
13dbe4: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13dbe7: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
13dbea: 52 push %edx <== NOT EXECUTED
13dbeb: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13dbee: e8 f1 f9 ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
13dbf3: 89 85 68 ff ff ff mov %eax,-0x98(%ebp) <== NOT EXECUTED
if (rc > 0)
13dbf9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13dbfc: 85 c0 test %eax,%eax <== NOT EXECUTED
13dbfe: 0f 8f 7e 01 00 00 jg 13dd82 <rtems_rfs_dir_del_entry+0x236><== 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)
13dc04: 80 bd 7b ff ff ff 00 cmpb $0x0,-0x85(%ebp) <== NOT EXECUTED
13dc0b: 0f 84 43 01 00 00 je 13dd54 <rtems_rfs_dir_del_entry+0x208><== NOT EXECUTED
13dc11: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13dc14: 8b 49 08 mov 0x8(%ecx),%ecx <== NOT EXECUTED
13dc17: 89 8d 6c ff ff ff mov %ecx,-0x94(%ebp) <== NOT EXECUTED
13dc1d: 31 c0 xor %eax,%eax <== NOT EXECUTED
13dc1f: c7 85 64 ff ff ff 00 movl $0x0,-0x9c(%ebp) <== NOT EXECUTED
13dc26: 00 00 00
eoffset = 0;
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
entry = rtems_rfs_buffer_data (&buffer) + eoffset;
13dc29: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
13dc2c: 8b 79 20 mov 0x20(%ecx),%edi <== NOT EXECUTED
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
13dc2f: 8b 8d 6c ff ff ff mov -0x94(%ebp),%ecx <== NOT EXECUTED
13dc35: 83 e9 0a sub $0xa,%ecx <== NOT EXECUTED
13dc38: 89 4d 80 mov %ecx,-0x80(%ebp) <== NOT EXECUTED
13dc3b: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13dc3d: 0f 83 35 01 00 00 jae 13dd78 <rtems_rfs_dir_del_entry+0x22c><== NOT EXECUTED
if (search)
eoffset = 0;
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
entry = rtems_rfs_buffer_data (&buffer) + eoffset;
13dc43: 01 c7 add %eax,%edi <== NOT EXECUTED
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
13dc45: 8d 47 08 lea 0x8(%edi),%eax <== NOT EXECUTED
13dc48: 89 85 70 ff ff ff mov %eax,-0x90(%ebp) <== NOT EXECUTED
13dc4e: 8d 57 09 lea 0x9(%edi),%edx <== NOT EXECUTED
13dc51: 89 95 74 ff ff ff mov %edx,-0x8c(%ebp) <== NOT EXECUTED
13dc57: 0f b6 5f 08 movzbl 0x8(%edi),%ebx <== NOT EXECUTED
13dc5b: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
13dc5e: 0f b6 47 09 movzbl 0x9(%edi),%eax <== NOT EXECUTED
13dc62: 09 c3 or %eax,%ebx <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
13dc64: 8a 0f mov (%edi),%cl <== NOT EXECUTED
13dc66: 0f b6 77 01 movzbl 0x1(%edi),%esi <== NOT EXECUTED
13dc6a: 8a 47 02 mov 0x2(%edi),%al <== NOT EXECUTED
13dc6d: 88 45 84 mov %al,-0x7c(%ebp) <== NOT EXECUTED
13dc70: 8a 47 03 mov 0x3(%edi),%al <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
13dc73: 81 fb ff ff 00 00 cmp $0xffff,%ebx <== NOT EXECUTED
13dc79: 0f 84 f9 00 00 00 je 13dd78 <rtems_rfs_dir_del_entry+0x22c><== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13dc7f: 83 fb 0a cmp $0xa,%ebx <== NOT EXECUTED
13dc82: 0f 8e c3 00 00 00 jle 13dd4b <rtems_rfs_dir_del_entry+0x1ff><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
13dc88: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
13dc8b: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13dc8e: 09 c8 or %ecx,%eax <== NOT EXECUTED
13dc90: 89 f2 mov %esi,%edx <== NOT EXECUTED
13dc92: 0f b6 ca movzbl %dl,%ecx <== NOT EXECUTED
13dc95: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13dc98: 09 c8 or %ecx,%eax <== NOT EXECUTED
13dc9a: 0f b6 4d 84 movzbl -0x7c(%ebp),%ecx <== NOT EXECUTED
13dc9e: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13dca1: 09 c8 or %ecx,%eax <== NOT EXECUTED
13dca3: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13dca6: 8b 49 18 mov 0x18(%ecx),%ecx <== NOT EXECUTED
13dca9: 89 8d 7c ff ff ff mov %ecx,-0x84(%ebp) <== NOT EXECUTED
13dcaf: 8b 95 64 ff ff ff mov -0x9c(%ebp),%edx <== NOT EXECUTED
13dcb5: e9 85 00 00 00 jmp 13dd3f <rtems_rfs_dir_del_entry+0x1f3><== NOT EXECUTED
13dcba: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13dcbc: 85 c0 test %eax,%eax <== NOT EXECUTED
13dcbe: 0f 84 87 00 00 00 je 13dd4b <rtems_rfs_dir_del_entry+0x1ff><== NOT EXECUTED
13dcc4: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13dcc7: 39 41 10 cmp %eax,0x10(%ecx) <== NOT EXECUTED
13dcca: 72 7f jb 13dd4b <rtems_rfs_dir_del_entry+0x1ff><== NOT EXECUTED
rtems_rfs_inode_ino (dir), elength, eino, block, eoffset);
rc = EIO;
break;
}
if (ino == rtems_rfs_dir_entry_ino (entry))
13dccc: 3b 45 10 cmp 0x10(%ebp),%eax <== NOT EXECUTED
13dccf: 0f 84 0b 01 00 00 je 13dde0 <rtems_rfs_dir_del_entry+0x294><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return 0;
}
if (!search)
13dcd5: 80 bd 7b ff ff ff 00 cmpb $0x0,-0x85(%ebp) <== NOT EXECUTED
13dcdc: 74 6d je 13dd4b <rtems_rfs_dir_del_entry+0x1ff><== NOT EXECUTED
rc = EIO;
break;
}
entry += elength;
eoffset += elength;
13dcde: 01 da add %ebx,%edx <== 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))
13dce0: 3b 55 80 cmp -0x80(%ebp),%edx <== NOT EXECUTED
13dce3: 0f 83 8f 00 00 00 jae 13dd78 <rtems_rfs_dir_del_entry+0x22c><== NOT EXECUTED
{
rc = EIO;
break;
}
entry += elength;
13dce9: 01 df add %ebx,%edi <== NOT EXECUTED
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
13dceb: 8d 47 08 lea 0x8(%edi),%eax <== NOT EXECUTED
13dcee: 89 85 70 ff ff ff mov %eax,-0x90(%ebp) <== NOT EXECUTED
13dcf4: 8d 4f 09 lea 0x9(%edi),%ecx <== NOT EXECUTED
13dcf7: 89 8d 74 ff ff ff mov %ecx,-0x8c(%ebp) <== NOT EXECUTED
13dcfd: 0f b6 5f 08 movzbl 0x8(%edi),%ebx <== NOT EXECUTED
13dd01: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
13dd04: 0f b6 47 09 movzbl 0x9(%edi),%eax <== NOT EXECUTED
13dd08: 09 c3 or %eax,%ebx <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
13dd0a: 0f b6 37 movzbl (%edi),%esi <== NOT EXECUTED
13dd0d: 8a 4f 01 mov 0x1(%edi),%cl <== NOT EXECUTED
13dd10: 8a 47 02 mov 0x2(%edi),%al <== NOT EXECUTED
13dd13: 88 45 84 mov %al,-0x7c(%ebp) <== NOT EXECUTED
13dd16: 8a 47 03 mov 0x3(%edi),%al <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
13dd19: 81 fb ff ff 00 00 cmp $0xffff,%ebx <== NOT EXECUTED
13dd1f: 74 57 je 13dd78 <rtems_rfs_dir_del_entry+0x22c><== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13dd21: 83 fb 0a cmp $0xa,%ebx <== NOT EXECUTED
13dd24: 7e 25 jle 13dd4b <rtems_rfs_dir_del_entry+0x1ff><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
13dd26: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
13dd29: c1 e6 18 shl $0x18,%esi <== NOT EXECUTED
13dd2c: 09 f0 or %esi,%eax <== NOT EXECUTED
13dd2e: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
13dd31: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13dd34: 09 c8 or %ecx,%eax <== NOT EXECUTED
13dd36: 0f b6 4d 84 movzbl -0x7c(%ebp),%ecx <== NOT EXECUTED
13dd3a: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13dd3d: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13dd3f: 3b 9d 7c ff ff ff cmp -0x84(%ebp),%ebx <== NOT EXECUTED
13dd45: 0f 82 71 ff ff ff jb 13dcbc <rtems_rfs_dir_del_entry+0x170><== NOT EXECUTED
/*
* Only search if the offset is 0 else we are at that position.
*/
search = offset ? false : true;
while (rc == 0)
13dd4b: be 05 00 00 00 mov $0x5,%esi <== NOT EXECUTED
13dd50: eb 36 jmp 13dd88 <rtems_rfs_dir_del_entry+0x23c><== NOT EXECUTED
13dd52: 66 90 xchg %ax,%ax <== NOT EXECUTED
* skip to the offset in the block.
*/
if (search)
eoffset = 0;
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
13dd54: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13dd57: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
13dd5a: 89 85 6c ff ff ff mov %eax,-0x94(%ebp) <== NOT EXECUTED
13dd60: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13dd63: 31 d2 xor %edx,%edx <== NOT EXECUTED
13dd65: f7 b5 6c ff ff ff divl -0x94(%ebp) <== NOT EXECUTED
13dd6b: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
13dd71: 89 d0 mov %edx,%eax <== NOT EXECUTED
13dd73: e9 b1 fe ff ff jmp 13dc29 <rtems_rfs_dir_del_entry+0xdd><== NOT EXECUTED
entry += elength;
eoffset += elength;
}
if (rc == 0)
13dd78: 8b 9d 68 ff ff ff mov -0x98(%ebp),%ebx <== NOT EXECUTED
13dd7e: 85 db test %ebx,%ebx <== NOT EXECUTED
13dd80: 74 2a je 13ddac <rtems_rfs_dir_del_entry+0x260><== NOT EXECUTED
13dd82: 8b b5 68 ff ff ff mov -0x98(%ebp),%esi <== NOT EXECUTED
if (rc == ENXIO)
rc = ENOENT;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
13dd88: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
13dd8b: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13dd8e: e8 51 fa ff ff call 13d7e4 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13dd93: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13dd96: 8d 55 88 lea -0x78(%ebp),%edx <== NOT EXECUTED
13dd99: 52 push %edx <== NOT EXECUTED
13dd9a: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13dd9d: e8 46 f2 ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
13dda2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13dda5: e9 c6 fd ff ff jmp 13db70 <rtems_rfs_dir_del_entry+0x24><== NOT EXECUTED
13ddaa: 66 90 xchg %ax,%ax <== NOT EXECUTED
eoffset += elength;
}
if (rc == 0)
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
13ddac: 51 push %ecx <== NOT EXECUTED
13ddad: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13ddb0: 51 push %ecx <== NOT EXECUTED
13ddb1: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
13ddb4: 50 push %eax <== NOT EXECUTED
13ddb5: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13ddb8: e8 23 ea ff ff call 13c7e0 <rtems_rfs_block_map_next_block><== NOT EXECUTED
13ddbd: 89 85 68 ff ff ff mov %eax,-0x98(%ebp) <== NOT EXECUTED
if (rc == ENXIO)
13ddc3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ddc6: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13ddc9: 0f 84 ac 00 00 00 je 13de7b <rtems_rfs_dir_del_entry+0x32f><== NOT EXECUTED
/*
* Only search if the offset is 0 else we are at that position.
*/
search = offset ? false : true;
while (rc == 0)
13ddcf: 8b 95 68 ff ff ff mov -0x98(%ebp),%edx <== NOT EXECUTED
13ddd5: 85 d2 test %edx,%edx <== NOT EXECUTED
13ddd7: 0f 84 05 fe ff ff je 13dbe2 <rtems_rfs_dir_del_entry+0x96><== NOT EXECUTED
13dddd: eb a3 jmp 13dd82 <rtems_rfs_dir_del_entry+0x236><== NOT EXECUTED
13dddf: 90 nop <== NOT EXECUTED
13dde0: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
}
if (ino == rtems_rfs_dir_entry_ino (entry))
{
uint32_t remaining;
remaining = rtems_rfs_fs_block_size (fs) - (eoffset + elength);
13dde3: 89 d6 mov %edx,%esi <== NOT EXECUTED
13dde5: 01 de add %ebx,%esi <== NOT EXECUTED
13dde7: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax <== NOT EXECUTED
13dded: 29 f0 sub %esi,%eax <== NOT EXECUTED
13ddef: 89 c6 mov %eax,%esi <== NOT EXECUTED
memmove (entry, entry + elength, remaining);
13ddf1: 50 push %eax <== NOT EXECUTED
13ddf2: 56 push %esi <== NOT EXECUTED
13ddf3: 8d 04 1f lea (%edi,%ebx,1),%eax <== NOT EXECUTED
13ddf6: 50 push %eax <== NOT EXECUTED
13ddf7: 57 push %edi <== NOT EXECUTED
13ddf8: e8 33 ba 00 00 call 149830 <memmove> <== NOT EXECUTED
memset (entry + remaining, 0xff, elength);
13ddfd: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
13de00: b0 ff mov $0xff,%al <== NOT EXECUTED
13de02: 89 f7 mov %esi,%edi <== NOT EXECUTED
13de04: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
13de06: 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);
13de08: 8b 95 70 ff ff ff mov -0x90(%ebp),%edx <== NOT EXECUTED
13de0e: 0f b6 02 movzbl (%edx),%eax <== NOT EXECUTED
13de11: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13de14: 8b 8d 74 ff ff ff mov -0x8c(%ebp),%ecx <== NOT EXECUTED
13de1a: 0f b6 11 movzbl (%ecx),%edx <== NOT EXECUTED
13de1d: 09 d0 or %edx,%eax <== NOT EXECUTED
13de1f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13de22: 3d ff ff 00 00 cmp $0xffff,%eax <== NOT EXECUTED
13de27: 74 28 je 13de51 <rtems_rfs_dir_del_entry+0x305><== 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);
13de29: c6 45 d8 01 movb $0x1,-0x28(%ebp) <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
13de2d: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
13de30: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13de33: e8 ac f9 ff ff call 13d7e4 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13de38: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13de3b: 8d 55 88 lea -0x78(%ebp),%edx <== NOT EXECUTED
13de3e: 52 push %edx <== NOT EXECUTED
13de3f: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13de42: e8 a1 f1 ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
13de47: 31 f6 xor %esi,%esi <== NOT EXECUTED
return 0;
13de49: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13de4c: e9 1f fd ff ff jmp 13db70 <rtems_rfs_dir_del_entry+0x24><== 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) &&
13de51: 8b 7d 84 mov -0x7c(%ebp),%edi <== NOT EXECUTED
13de54: 85 ff test %edi,%edi <== NOT EXECUTED
13de56: 75 d1 jne 13de29 <rtems_rfs_dir_del_entry+0x2dd><== NOT EXECUTED
(eoffset == 0) && rtems_rfs_block_map_last (&map))
13de58: 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) &&
13de5b: 85 c0 test %eax,%eax <== NOT EXECUTED
13de5d: 74 26 je 13de85 <rtems_rfs_dir_del_entry+0x339><== NOT EXECUTED
13de5f: 8b 55 90 mov -0x70(%ebp),%edx <== NOT EXECUTED
13de62: 4a dec %edx <== NOT EXECUTED
13de63: 39 d0 cmp %edx,%eax <== NOT EXECUTED
13de65: 75 c2 jne 13de29 <rtems_rfs_dir_del_entry+0x2dd><== NOT EXECUTED
(eoffset == 0) && rtems_rfs_block_map_last (&map))
{
rc = rtems_rfs_block_map_shrink (fs, &map, 1);
13de67: 56 push %esi <== NOT EXECUTED
13de68: 6a 01 push $0x1 <== NOT EXECUTED
13de6a: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
13de6d: 50 push %eax <== NOT EXECUTED
13de6e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13de71: e8 a2 ea ff ff call 13c918 <rtems_rfs_block_map_shrink><== NOT EXECUTED
13de76: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13de79: eb ae jmp 13de29 <rtems_rfs_dir_del_entry+0x2dd><== NOT EXECUTED
}
if (rc == 0)
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
if (rc == ENXIO)
13de7b: be 02 00 00 00 mov $0x2,%esi <== NOT EXECUTED
13de80: e9 03 ff ff ff jmp 13dd88 <rtems_rfs_dir_del_entry+0x23c><== 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))
13de85: 8b 55 90 mov -0x70(%ebp),%edx <== 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) &&
13de88: 85 d2 test %edx,%edx <== NOT EXECUTED
13de8a: 74 db je 13de67 <rtems_rfs_dir_del_entry+0x31b><== NOT EXECUTED
13de8c: eb d4 jmp 13de62 <rtems_rfs_dir_del_entry+0x316><== NOT EXECUTED
0013e4e0 <rtems_rfs_dir_empty>:
}
int
rtems_rfs_dir_empty (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir)
{
13e4e0: 55 push %ebp <== NOT EXECUTED
13e4e1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13e4e3: 57 push %edi <== NOT EXECUTED
13e4e4: 56 push %esi <== NOT EXECUTED
13e4e5: 53 push %ebx <== NOT EXECUTED
13e4e6: 83 c4 80 add $0xffffff80,%esp <== NOT EXECUTED
13e4e9: 8b 5d 08 mov 0x8(%ebp),%ebx <== 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);
13e4ec: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
13e4ef: 50 push %eax <== NOT EXECUTED
13e4f0: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13e4f3: 53 push %ebx <== NOT EXECUTED
13e4f4: e8 9b ec ff ff call 13d194 <rtems_rfs_block_map_open><== NOT EXECUTED
13e4f9: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) <== NOT EXECUTED
if (rc > 0)
13e4ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e502: 85 c0 test %eax,%eax <== NOT EXECUTED
13e504: 7e 0e jle 13e514 <rtems_rfs_dir_empty+0x34><== NOT EXECUTED
rc = ENOTEMPTY;
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
13e506: 8b 85 78 ff ff ff mov -0x88(%ebp),%eax <== NOT EXECUTED
13e50c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13e50f: 5b pop %ebx <== NOT EXECUTED
13e510: 5e pop %esi <== NOT EXECUTED
13e511: 5f pop %edi <== NOT EXECUTED
13e512: c9 leave <== NOT EXECUTED
13e513: c3 ret <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
if (rc > 0)
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
13e514: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13e517: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13e51a: 51 push %ecx <== NOT EXECUTED
13e51b: 6a 00 push $0x0 <== NOT EXECUTED
13e51d: 6a 00 push $0x0 <== NOT EXECUTED
13e51f: 8d 75 88 lea -0x78(%ebp),%esi <== NOT EXECUTED
13e522: 56 push %esi <== NOT EXECUTED
13e523: 53 push %ebx <== NOT EXECUTED
13e524: e8 e7 e2 ff ff call 13c810 <rtems_rfs_block_map_seek><== NOT EXECUTED
13e529: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) <== NOT EXECUTED
if (rc > 0)
13e52f: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13e532: 85 c0 test %eax,%eax <== NOT EXECUTED
13e534: 0f 8f be 01 00 00 jg 13e6f8 <rtems_rfs_dir_empty+0x218><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
13e53a: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13e53e: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13e545: 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);
13e54c: 6a 01 push $0x1 <== NOT EXECUTED
13e54e: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13e551: 8d 4d d8 lea -0x28(%ebp),%ecx <== NOT EXECUTED
13e554: 51 push %ecx <== NOT EXECUTED
13e555: 53 push %ebx <== NOT EXECUTED
13e556: e8 89 f0 ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
13e55b: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) <== NOT EXECUTED
if (rc > 0)
13e561: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e564: 85 c0 test %eax,%eax <== NOT EXECUTED
13e566: 0f 8f 18 01 00 00 jg 13e684 <rtems_rfs_dir_empty+0x1a4><== NOT EXECUTED
break;
entry = rtems_rfs_buffer_data (&buffer);
13e56c: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13e56f: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
13e572: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
13e575: 83 e8 0a sub $0xa,%eax <== NOT EXECUTED
13e578: 89 85 7c ff ff ff mov %eax,-0x84(%ebp) <== NOT EXECUTED
13e57e: 0f 84 3e 01 00 00 je 13e6c2 <rtems_rfs_dir_empty+0x1e2><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
13e584: 0f b6 42 08 movzbl 0x8(%edx),%eax <== NOT EXECUTED
13e588: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13e58b: 0f b6 4a 09 movzbl 0x9(%edx),%ecx <== NOT EXECUTED
13e58f: 09 c8 or %ecx,%eax <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
13e591: 0f b6 3a movzbl (%edx),%edi <== NOT EXECUTED
13e594: 0f b6 72 01 movzbl 0x1(%edx),%esi <== NOT EXECUTED
13e598: 8a 4a 02 mov 0x2(%edx),%cl <== NOT EXECUTED
13e59b: 88 4d 87 mov %cl,-0x79(%ebp) <== NOT EXECUTED
13e59e: 8a 4a 03 mov 0x3(%edx),%cl <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
13e5a1: 3d ff ff 00 00 cmp $0xffff,%eax <== NOT EXECUTED
13e5a6: 0f 84 16 01 00 00 je 13e6c2 <rtems_rfs_dir_empty+0x1e2><== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13e5ac: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
13e5af: 0f 8e 0d 01 00 00 jle 13e6c2 <rtems_rfs_dir_empty+0x1e2><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
13e5b5: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
13e5b8: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
13e5bb: 09 f9 or %edi,%ecx <== NOT EXECUTED
13e5bd: 81 e6 ff 00 00 00 and $0xff,%esi <== NOT EXECUTED
13e5c3: c1 e6 10 shl $0x10,%esi <== NOT EXECUTED
13e5c6: 09 f1 or %esi,%ecx <== NOT EXECUTED
13e5c8: 0f b6 75 87 movzbl -0x79(%ebp),%esi <== NOT EXECUTED
13e5cc: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
13e5cf: 09 f1 or %esi,%ecx <== NOT EXECUTED
13e5d1: 8b 73 18 mov 0x18(%ebx),%esi <== NOT EXECUTED
13e5d4: 89 75 80 mov %esi,-0x80(%ebp) <== NOT EXECUTED
13e5d7: 31 f6 xor %esi,%esi <== NOT EXECUTED
13e5d9: 89 df mov %ebx,%edi <== NOT EXECUTED
13e5db: eb 74 jmp 13e651 <rtems_rfs_dir_empty+0x171><== NOT EXECUTED
13e5dd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/*
* Ignore the current (.) and parent (..) entries. Anything else means
* the directory is not empty.
*/
if (((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 1)) ||
13e5e0: 83 f8 0c cmp $0xc,%eax <== NOT EXECUTED
13e5e3: 0f 85 85 00 00 00 jne 13e66e <rtems_rfs_dir_empty+0x18e><== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&
((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 2)) ||
(entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.') ||
13e5e9: 80 7a 0a 2e cmpb $0x2e,0xa(%edx) <== NOT EXECUTED
13e5ed: 75 7f jne 13e66e <rtems_rfs_dir_empty+0x18e><== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE + 1] != '.')))
13e5ef: 80 7a 0b 2e cmpb $0x2e,0xb(%edx) <== NOT EXECUTED
13e5f3: 75 79 jne 13e66e <rtems_rfs_dir_empty+0x18e><== NOT EXECUTED
empty = false;
break;
}
entry += elength;
offset += elength;
13e5f5: 01 c6 add %eax,%esi <== NOT EXECUTED
break;
entry = rtems_rfs_buffer_data (&buffer);
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
13e5f7: 3b b5 7c ff ff ff cmp -0x84(%ebp),%esi <== NOT EXECUTED
13e5fd: 0f 83 bd 00 00 00 jae 13e6c0 <rtems_rfs_dir_empty+0x1e0><== NOT EXECUTED
{
empty = false;
break;
}
entry += elength;
13e603: 01 c2 add %eax,%edx <== NOT EXECUTED
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
13e605: 0f b6 42 08 movzbl 0x8(%edx),%eax <== NOT EXECUTED
13e609: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13e60c: 0f b6 4a 09 movzbl 0x9(%edx),%ecx <== NOT EXECUTED
13e610: 09 c8 or %ecx,%eax <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
13e612: 8a 1a mov (%edx),%bl <== NOT EXECUTED
13e614: 8a 4a 01 mov 0x1(%edx),%cl <== NOT EXECUTED
13e617: 88 4d 86 mov %cl,-0x7a(%ebp) <== NOT EXECUTED
13e61a: 8a 4a 02 mov 0x2(%edx),%cl <== NOT EXECUTED
13e61d: 88 4d 87 mov %cl,-0x79(%ebp) <== NOT EXECUTED
13e620: 8a 4a 03 mov 0x3(%edx),%cl <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
13e623: 3d ff ff 00 00 cmp $0xffff,%eax <== NOT EXECUTED
13e628: 0f 84 92 00 00 00 je 13e6c0 <rtems_rfs_dir_empty+0x1e0><== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13e62e: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
13e631: 0f 8e 89 00 00 00 jle 13e6c0 <rtems_rfs_dir_empty+0x1e0><== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
13e637: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
13e63a: c1 e3 18 shl $0x18,%ebx <== NOT EXECUTED
13e63d: 09 d9 or %ebx,%ecx <== NOT EXECUTED
13e63f: 0f b6 5d 86 movzbl -0x7a(%ebp),%ebx <== NOT EXECUTED
13e643: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13e646: 09 d9 or %ebx,%ecx <== NOT EXECUTED
13e648: 0f b6 5d 87 movzbl -0x79(%ebp),%ebx <== NOT EXECUTED
13e64c: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
13e64f: 09 d9 or %ebx,%ecx <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13e651: 39 45 80 cmp %eax,-0x80(%ebp) <== NOT EXECUTED
13e654: 76 6a jbe 13e6c0 <rtems_rfs_dir_empty+0x1e0><== NOT EXECUTED
13e656: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13e658: 74 66 je 13e6c0 <rtems_rfs_dir_empty+0x1e0><== NOT EXECUTED
13e65a: 39 4f 10 cmp %ecx,0x10(%edi) <== NOT EXECUTED
13e65d: 72 61 jb 13e6c0 <rtems_rfs_dir_empty+0x1e0><== NOT EXECUTED
/*
* Ignore the current (.) and parent (..) entries. Anything else means
* the directory is not empty.
*/
if (((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 1)) ||
13e65f: 83 f8 0b cmp $0xb,%eax <== NOT EXECUTED
13e662: 0f 85 78 ff ff ff jne 13e5e0 <rtems_rfs_dir_empty+0x100><== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&
13e668: 80 7a 0a 2e cmpb $0x2e,0xa(%edx) <== NOT EXECUTED
13e66c: 74 87 je 13e5f5 <rtems_rfs_dir_empty+0x115><== NOT EXECUTED
13e66e: 89 fb mov %edi,%ebx <== NOT EXECUTED
break;
}
}
}
if ((rc == 0) && !empty)
13e670: 8b 95 78 ff ff ff mov -0x88(%ebp),%edx <== NOT EXECUTED
13e676: 85 d2 test %edx,%edx <== NOT EXECUTED
13e678: 75 0a jne 13e684 <rtems_rfs_dir_empty+0x1a4><== NOT EXECUTED
13e67a: c7 85 78 ff ff ff 5a movl $0x5a,-0x88(%ebp) <== NOT EXECUTED
13e681: 00 00 00
*/
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);
13e684: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13e687: 8d 4d d8 lea -0x28(%ebp),%ecx <== NOT EXECUTED
13e68a: 51 push %ecx <== NOT EXECUTED
13e68b: 53 push %ebx <== NOT EXECUTED
13e68c: e8 4f ee ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13e691: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13e695: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13e69c: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
rc = ENOTEMPTY;
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
13e6a3: 5f pop %edi <== NOT EXECUTED
13e6a4: 58 pop %eax <== NOT EXECUTED
13e6a5: 8d 75 88 lea -0x78(%ebp),%esi <== NOT EXECUTED
13e6a8: 56 push %esi <== NOT EXECUTED
13e6a9: 53 push %ebx <== NOT EXECUTED
13e6aa: e8 39 e9 ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
13e6af: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
13e6b2: 8b 85 78 ff ff ff mov -0x88(%ebp),%eax <== NOT EXECUTED
13e6b8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13e6bb: 5b pop %ebx <== NOT EXECUTED
13e6bc: 5e pop %esi <== NOT EXECUTED
13e6bd: 5f pop %edi <== NOT EXECUTED
13e6be: c9 leave <== NOT EXECUTED
13e6bf: c3 ret <== NOT EXECUTED
13e6c0: 89 fb mov %edi,%ebx <== NOT EXECUTED
offset += elength;
}
if (empty)
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
13e6c2: 51 push %ecx <== NOT EXECUTED
13e6c3: 8d 75 e4 lea -0x1c(%ebp),%esi <== NOT EXECUTED
13e6c6: 56 push %esi <== NOT EXECUTED
13e6c7: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
13e6ca: 50 push %eax <== NOT EXECUTED
13e6cb: 53 push %ebx <== NOT EXECUTED
13e6cc: e8 0f e1 ff ff call 13c7e0 <rtems_rfs_block_map_next_block><== NOT EXECUTED
13e6d1: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) <== NOT EXECUTED
if (rc > 0)
13e6d7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e6da: 85 c0 test %eax,%eax <== NOT EXECUTED
13e6dc: 0f 8e 6a fe ff ff jle 13e54c <rtems_rfs_dir_empty+0x6c><== NOT EXECUTED
{
if (rc == ENXIO)
13e6e2: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13e6e5: 0f 95 c0 setne %al <== NOT EXECUTED
13e6e8: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
13e6eb: f7 d8 neg %eax <== NOT EXECUTED
13e6ed: 21 85 78 ff ff ff and %eax,-0x88(%ebp) <== NOT EXECUTED
13e6f3: eb 8f jmp 13e684 <rtems_rfs_dir_empty+0x1a4><== NOT EXECUTED
13e6f5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
if (rc > 0)
{
rtems_rfs_block_map_close (fs, &map);
13e6f8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13e6fb: 56 push %esi <== NOT EXECUTED
13e6fc: 53 push %ebx <== NOT EXECUTED
13e6fd: e8 e6 e8 ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
13e702: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e705: e9 fc fd ff ff jmp 13e506 <rtems_rfs_dir_empty+0x26><== NOT EXECUTED
0014606c <rtems_rfs_dir_hash>:
*/
#define initval (20010928)
uint32_t
rtems_rfs_dir_hash (const void *key, size_t length)
{
14606c: 55 push %ebp <== NOT EXECUTED
14606d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
14606f: 57 push %edi <== NOT EXECUTED
146070: 56 push %esi <== NOT EXECUTED
146071: 53 push %ebx <== NOT EXECUTED
146072: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
146075: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
146078: 8b 55 0c mov 0xc(%ebp),%edx <== 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;
14607b: 8d 82 9f 16 df df lea -0x2020e961(%edx),%eax <== NOT EXECUTED
u.ptr = key;
if (HASH_LITTLE_ENDIAN && ((u.i & 0x3) == 0)) {
146081: f6 c3 03 test $0x3,%bl <== NOT EXECUTED
146084: 75 72 jne 1460f8 <rtems_rfs_dir_hash+0x8c><== NOT EXECUTED
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)
146086: 83 fa 0c cmp $0xc,%edx <== NOT EXECUTED
146089: 0f 86 d9 02 00 00 jbe 146368 <rtems_rfs_dir_hash+0x2fc><== NOT EXECUTED
14608f: 89 c1 mov %eax,%ecx <== NOT EXECUTED
146091: 89 c7 mov %eax,%edi <== NOT EXECUTED
146093: 90 nop <== NOT EXECUTED
{
a += k[0];
146094: 8b 33 mov (%ebx),%esi <== NOT EXECUTED
146096: 01 fe add %edi,%esi <== NOT EXECUTED
b += k[1];
146098: 03 4b 04 add 0x4(%ebx),%ecx <== NOT EXECUTED
c += k[2];
14609b: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED
mix(a,b,c);
14609e: 29 c6 sub %eax,%esi <== NOT EXECUTED
1460a0: 89 c7 mov %eax,%edi <== NOT EXECUTED
1460a2: c1 cf 1c ror $0x1c,%edi <== NOT EXECUTED
1460a5: 31 fe xor %edi,%esi <== NOT EXECUTED
1460a7: 8d 3c 08 lea (%eax,%ecx,1),%edi <== NOT EXECUTED
1460aa: 29 f1 sub %esi,%ecx <== NOT EXECUTED
1460ac: 89 f0 mov %esi,%eax <== NOT EXECUTED
1460ae: c1 c8 1a ror $0x1a,%eax <== NOT EXECUTED
1460b1: 31 c8 xor %ecx,%eax <== NOT EXECUTED
1460b3: 01 fe add %edi,%esi <== NOT EXECUTED
1460b5: 29 c7 sub %eax,%edi <== NOT EXECUTED
1460b7: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1460b9: c1 c9 18 ror $0x18,%ecx <== NOT EXECUTED
1460bc: 31 f9 xor %edi,%ecx <== NOT EXECUTED
1460be: 8d 3c 30 lea (%eax,%esi,1),%edi <== NOT EXECUTED
1460c1: 29 ce sub %ecx,%esi <== NOT EXECUTED
1460c3: 89 c8 mov %ecx,%eax <== NOT EXECUTED
1460c5: c1 c8 10 ror $0x10,%eax <== NOT EXECUTED
1460c8: 31 f0 xor %esi,%eax <== NOT EXECUTED
1460ca: 8d 34 39 lea (%ecx,%edi,1),%esi <== NOT EXECUTED
1460cd: 29 c7 sub %eax,%edi <== NOT EXECUTED
1460cf: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1460d1: c1 c9 0d ror $0xd,%ecx <== NOT EXECUTED
1460d4: 31 f9 xor %edi,%ecx <== NOT EXECUTED
1460d6: 8d 3c 30 lea (%eax,%esi,1),%edi <== NOT EXECUTED
1460d9: 29 ce sub %ecx,%esi <== NOT EXECUTED
1460db: 89 c8 mov %ecx,%eax <== NOT EXECUTED
1460dd: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
1460e0: 31 f0 xor %esi,%eax <== NOT EXECUTED
1460e2: 01 f9 add %edi,%ecx <== NOT EXECUTED
length -= 12;
1460e4: 83 ea 0c sub $0xc,%edx <== NOT EXECUTED
k += 3;
1460e7: 83 c3 0c add $0xc,%ebx <== 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)
1460ea: 83 fa 0c cmp $0xc,%edx <== NOT EXECUTED
1460ed: 77 a5 ja 146094 <rtems_rfs_dir_hash+0x28><== NOT EXECUTED
1460ef: 89 fe mov %edi,%esi <== 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)
1460f1: ff 24 95 a0 8a 16 00 jmp *0x168aa0(,%edx,4) <== NOT EXECUTED
case 0 : return c;
}
#endif /* !valgrind */
} else if (HASH_LITTLE_ENDIAN && ((u.i & 0x1) == 0)) {
1460f8: f6 c3 01 test $0x1,%bl <== NOT EXECUTED
1460fb: 0f 85 af 00 00 00 jne 1461b0 <rtems_rfs_dir_hash+0x144><== NOT EXECUTED
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)
146101: 83 fa 0c cmp $0xc,%edx <== NOT EXECUTED
146104: 0f 86 8e 03 00 00 jbe 146498 <rtems_rfs_dir_hash+0x42c><== NOT EXECUTED
14610a: 89 c1 mov %eax,%ecx <== NOT EXECUTED
14610c: 89 c6 mov %eax,%esi <== NOT EXECUTED
14610e: 89 55 f0 mov %edx,-0x10(%ebp) <== NOT EXECUTED
146111: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
a += k[0] + (((uint32_t)k[1])<<16);
146114: 0f b7 7b 02 movzwl 0x2(%ebx),%edi <== NOT EXECUTED
146118: c1 e7 10 shl $0x10,%edi <== NOT EXECUTED
14611b: 0f b7 13 movzwl (%ebx),%edx <== NOT EXECUTED
14611e: 8d 14 17 lea (%edi,%edx,1),%edx <== NOT EXECUTED
146121: 01 f2 add %esi,%edx <== NOT EXECUTED
b += k[2] + (((uint32_t)k[3])<<16);
146123: 0f b7 73 06 movzwl 0x6(%ebx),%esi <== NOT EXECUTED
146127: c1 e6 10 shl $0x10,%esi <== NOT EXECUTED
14612a: 0f b7 7b 04 movzwl 0x4(%ebx),%edi <== NOT EXECUTED
14612e: 01 fe add %edi,%esi <== NOT EXECUTED
146130: 8d 0c 0e lea (%esi,%ecx,1),%ecx <== NOT EXECUTED
c += k[4] + (((uint32_t)k[5])<<16);
146133: 0f b7 73 0a movzwl 0xa(%ebx),%esi <== NOT EXECUTED
146137: c1 e6 10 shl $0x10,%esi <== NOT EXECUTED
14613a: 0f b7 7b 08 movzwl 0x8(%ebx),%edi <== NOT EXECUTED
14613e: 8d 3c 3e lea (%esi,%edi,1),%edi <== NOT EXECUTED
146141: 01 c7 add %eax,%edi <== NOT EXECUTED
mix(a,b,c);
146143: 29 fa sub %edi,%edx <== NOT EXECUTED
146145: 89 f8 mov %edi,%eax <== NOT EXECUTED
146147: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
14614a: 31 c2 xor %eax,%edx <== NOT EXECUTED
14614c: 01 cf add %ecx,%edi <== NOT EXECUTED
14614e: 29 d1 sub %edx,%ecx <== NOT EXECUTED
146150: 89 d0 mov %edx,%eax <== NOT EXECUTED
146152: c1 c8 1a ror $0x1a,%eax <== NOT EXECUTED
146155: 31 c8 xor %ecx,%eax <== NOT EXECUTED
146157: 01 fa add %edi,%edx <== NOT EXECUTED
146159: 29 c7 sub %eax,%edi <== NOT EXECUTED
14615b: 89 c1 mov %eax,%ecx <== NOT EXECUTED
14615d: c1 c9 18 ror $0x18,%ecx <== NOT EXECUTED
146160: 31 f9 xor %edi,%ecx <== NOT EXECUTED
146162: 8d 34 10 lea (%eax,%edx,1),%esi <== NOT EXECUTED
146165: 29 ca sub %ecx,%edx <== NOT EXECUTED
146167: 89 c8 mov %ecx,%eax <== NOT EXECUTED
146169: c1 c8 10 ror $0x10,%eax <== NOT EXECUTED
14616c: 31 d0 xor %edx,%eax <== NOT EXECUTED
14616e: 8d 14 31 lea (%ecx,%esi,1),%edx <== NOT EXECUTED
146171: 29 c6 sub %eax,%esi <== NOT EXECUTED
146173: 89 c1 mov %eax,%ecx <== NOT EXECUTED
146175: c1 c9 0d ror $0xd,%ecx <== NOT EXECUTED
146178: 31 f1 xor %esi,%ecx <== NOT EXECUTED
14617a: 8d 34 10 lea (%eax,%edx,1),%esi <== NOT EXECUTED
14617d: 29 ca sub %ecx,%edx <== NOT EXECUTED
14617f: 89 c8 mov %ecx,%eax <== NOT EXECUTED
146181: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
146184: 31 d0 xor %edx,%eax <== NOT EXECUTED
146186: 01 f1 add %esi,%ecx <== NOT EXECUTED
length -= 12;
146188: 83 6d f0 0c subl $0xc,-0x10(%ebp) <== NOT EXECUTED
k += 6;
14618c: 83 c3 0c add $0xc,%ebx <== 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)
14618f: 83 7d f0 0c cmpl $0xc,-0x10(%ebp) <== NOT EXECUTED
146193: 0f 87 7b ff ff ff ja 146114 <rtems_rfs_dir_hash+0xa8><== NOT EXECUTED
146199: 89 f7 mov %esi,%edi <== NOT EXECUTED
14619b: 8b 55 f0 mov -0x10(%ebp),%edx <== NOT EXECUTED
k += 6;
}
/*----------------------------- handle the last (probably partial) block */
k8 = (const uint8_t *)k;
switch(length)
14619e: 83 fa 0c cmp $0xc,%edx <== NOT EXECUTED
1461a1: 0f 86 89 01 00 00 jbe 146330 <rtems_rfs_dir_hash+0x2c4><== NOT EXECUTED
}
}
final(a,b,c);
return c;
}
1461a7: 5a pop %edx <== NOT EXECUTED
1461a8: 5b pop %ebx <== NOT EXECUTED
1461a9: 5e pop %esi <== NOT EXECUTED
1461aa: 5f pop %edi <== NOT EXECUTED
1461ab: c9 leave <== NOT EXECUTED
1461ac: c3 ret <== NOT EXECUTED
1461ad: 8d 76 00 lea 0x0(%esi),%esi <== 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)
1461b0: 83 fa 0c cmp $0xc,%edx <== NOT EXECUTED
1461b3: 0f 86 d6 02 00 00 jbe 14648f <rtems_rfs_dir_hash+0x423><== NOT EXECUTED
1461b9: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1461bb: 89 c7 mov %eax,%edi <== NOT EXECUTED
1461bd: 89 55 f0 mov %edx,-0x10(%ebp) <== NOT EXECUTED
{
a += k[0];
1461c0: 0f b6 73 01 movzbl 0x1(%ebx),%esi <== NOT EXECUTED
1461c4: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
1461c7: 0f b6 53 02 movzbl 0x2(%ebx),%edx <== NOT EXECUTED
1461cb: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
1461ce: 8d 14 16 lea (%esi,%edx,1),%edx <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
1461d1: 0f b6 33 movzbl (%ebx),%esi <== NOT EXECUTED
1461d4: 01 f2 add %esi,%edx <== NOT EXECUTED
a += ((uint32_t)k[2])<<16;
1461d6: 0f b6 73 03 movzbl 0x3(%ebx),%esi <== NOT EXECUTED
1461da: c1 e6 18 shl $0x18,%esi <== NOT EXECUTED
1461dd: 01 f2 add %esi,%edx <== NOT EXECUTED
a += ((uint32_t)k[3])<<24;
1461df: 01 fa add %edi,%edx <== NOT EXECUTED
b += k[4];
1461e1: 0f b6 7b 05 movzbl 0x5(%ebx),%edi <== NOT EXECUTED
1461e5: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
1461e8: 0f b6 73 06 movzbl 0x6(%ebx),%esi <== NOT EXECUTED
1461ec: c1 e6 10 shl $0x10,%esi <== NOT EXECUTED
1461ef: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
b += ((uint32_t)k[5])<<8;
1461f2: 0f b6 7b 04 movzbl 0x4(%ebx),%edi <== NOT EXECUTED
1461f6: 8d 3c 3e lea (%esi,%edi,1),%edi <== NOT EXECUTED
b += ((uint32_t)k[6])<<16;
1461f9: 0f b6 73 07 movzbl 0x7(%ebx),%esi <== NOT EXECUTED
1461fd: c1 e6 18 shl $0x18,%esi <== NOT EXECUTED
146200: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
b += ((uint32_t)k[7])<<24;
146203: 8d 0c 0e lea (%esi,%ecx,1),%ecx <== NOT EXECUTED
c += k[8];
146206: 0f b6 7b 09 movzbl 0x9(%ebx),%edi <== NOT EXECUTED
14620a: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
14620d: 0f b6 73 0a movzbl 0xa(%ebx),%esi <== NOT EXECUTED
146211: c1 e6 10 shl $0x10,%esi <== NOT EXECUTED
146214: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
c += ((uint32_t)k[9])<<8;
146217: 0f b6 7b 08 movzbl 0x8(%ebx),%edi <== NOT EXECUTED
14621b: 8d 3c 3e lea (%esi,%edi,1),%edi <== NOT EXECUTED
c += ((uint32_t)k[10])<<16;
14621e: 0f b6 73 0b movzbl 0xb(%ebx),%esi <== NOT EXECUTED
146222: c1 e6 18 shl $0x18,%esi <== NOT EXECUTED
146225: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
c += ((uint32_t)k[11])<<24;
146228: 01 c6 add %eax,%esi <== NOT EXECUTED
mix(a,b,c);
14622a: 29 f2 sub %esi,%edx <== NOT EXECUTED
14622c: 89 f0 mov %esi,%eax <== NOT EXECUTED
14622e: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
146231: 31 c2 xor %eax,%edx <== NOT EXECUTED
146233: 01 ce add %ecx,%esi <== NOT EXECUTED
146235: 29 d1 sub %edx,%ecx <== NOT EXECUTED
146237: 89 d0 mov %edx,%eax <== NOT EXECUTED
146239: c1 c8 1a ror $0x1a,%eax <== NOT EXECUTED
14623c: 31 c8 xor %ecx,%eax <== NOT EXECUTED
14623e: 01 f2 add %esi,%edx <== NOT EXECUTED
146240: 29 c6 sub %eax,%esi <== NOT EXECUTED
146242: 89 c1 mov %eax,%ecx <== NOT EXECUTED
146244: c1 c9 18 ror $0x18,%ecx <== NOT EXECUTED
146247: 31 f1 xor %esi,%ecx <== NOT EXECUTED
146249: 8d 34 10 lea (%eax,%edx,1),%esi <== NOT EXECUTED
14624c: 29 ca sub %ecx,%edx <== NOT EXECUTED
14624e: 89 c8 mov %ecx,%eax <== NOT EXECUTED
146250: c1 c8 10 ror $0x10,%eax <== NOT EXECUTED
146253: 31 d0 xor %edx,%eax <== NOT EXECUTED
146255: 8d 14 31 lea (%ecx,%esi,1),%edx <== NOT EXECUTED
146258: 29 c6 sub %eax,%esi <== NOT EXECUTED
14625a: 89 c1 mov %eax,%ecx <== NOT EXECUTED
14625c: c1 c9 0d ror $0xd,%ecx <== NOT EXECUTED
14625f: 31 f1 xor %esi,%ecx <== NOT EXECUTED
146261: 8d 3c 10 lea (%eax,%edx,1),%edi <== NOT EXECUTED
146264: 29 ca sub %ecx,%edx <== NOT EXECUTED
146266: 89 c8 mov %ecx,%eax <== NOT EXECUTED
146268: c1 c8 1c ror $0x1c,%eax <== NOT EXECUTED
14626b: 31 d0 xor %edx,%eax <== NOT EXECUTED
14626d: 01 f9 add %edi,%ecx <== NOT EXECUTED
length -= 12;
14626f: 83 6d f0 0c subl $0xc,-0x10(%ebp) <== NOT EXECUTED
k += 12;
146273: 83 c3 0c add $0xc,%ebx <== 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)
146276: 83 7d f0 0c cmpl $0xc,-0x10(%ebp) <== NOT EXECUTED
14627a: 0f 87 40 ff ff ff ja 1461c0 <rtems_rfs_dir_hash+0x154><== NOT EXECUTED
146280: 8b 55 f0 mov -0x10(%ebp),%edx <== NOT EXECUTED
length -= 12;
k += 12;
}
/*-------------------------------- last block: affect all 32 bits of (c) */
switch(length) /* all the case statements fall through */
146283: ff 24 95 d4 8a 16 00 jmp *0x168ad4(,%edx,4) <== NOT EXECUTED
{
case 12: c+=((uint32_t)k[11])<<24;
14628a: 0f b6 53 0b movzbl 0xb(%ebx),%edx <== NOT EXECUTED
14628e: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
146291: 01 d0 add %edx,%eax <== NOT EXECUTED
case 11: c+=((uint32_t)k[10])<<16;
146293: 0f b6 53 0a movzbl 0xa(%ebx),%edx <== NOT EXECUTED
146297: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
14629a: 01 d0 add %edx,%eax <== NOT EXECUTED
case 10: c+=((uint32_t)k[9])<<8;
14629c: 0f b6 53 09 movzbl 0x9(%ebx),%edx <== NOT EXECUTED
1462a0: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1462a3: 01 d0 add %edx,%eax <== NOT EXECUTED
case 9 : c+=k[8];
1462a5: 0f b6 53 08 movzbl 0x8(%ebx),%edx <== NOT EXECUTED
1462a9: 01 d0 add %edx,%eax <== NOT EXECUTED
case 8 : b+=((uint32_t)k[7])<<24;
1462ab: 0f b6 53 07 movzbl 0x7(%ebx),%edx <== NOT EXECUTED
1462af: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
1462b2: 01 d1 add %edx,%ecx <== NOT EXECUTED
case 7 : b+=((uint32_t)k[6])<<16;
1462b4: 0f b6 53 06 movzbl 0x6(%ebx),%edx <== NOT EXECUTED
1462b8: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
1462bb: 01 d1 add %edx,%ecx <== NOT EXECUTED
case 6 : b+=((uint32_t)k[5])<<8;
1462bd: 0f b6 53 05 movzbl 0x5(%ebx),%edx <== NOT EXECUTED
1462c1: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1462c4: 01 d1 add %edx,%ecx <== NOT EXECUTED
case 5 : b+=k[4];
1462c6: 0f b6 53 04 movzbl 0x4(%ebx),%edx <== NOT EXECUTED
1462ca: 01 d1 add %edx,%ecx <== NOT EXECUTED
case 4 : a+=((uint32_t)k[3])<<24;
1462cc: 0f b6 53 03 movzbl 0x3(%ebx),%edx <== NOT EXECUTED
1462d0: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
1462d3: 01 d7 add %edx,%edi <== NOT EXECUTED
case 3 : a+=((uint32_t)k[2])<<16;
1462d5: 0f b6 53 02 movzbl 0x2(%ebx),%edx <== NOT EXECUTED
1462d9: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
1462dc: 01 d7 add %edx,%edi <== NOT EXECUTED
case 2 : a+=((uint32_t)k[1])<<8;
1462de: 0f b6 53 01 movzbl 0x1(%ebx),%edx <== NOT EXECUTED
1462e2: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1462e5: 01 d7 add %edx,%edi <== NOT EXECUTED
case 1 : a+=k[0];
1462e7: 0f b6 33 movzbl (%ebx),%esi <== NOT EXECUTED
1462ea: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
break;
case 0 : return c;
}
}
final(a,b,c);
1462ed: 31 c8 xor %ecx,%eax <== NOT EXECUTED
1462ef: 89 ca mov %ecx,%edx <== NOT EXECUTED
1462f1: c1 ca 12 ror $0x12,%edx <== NOT EXECUTED
1462f4: 29 d0 sub %edx,%eax <== NOT EXECUTED
1462f6: 31 c6 xor %eax,%esi <== NOT EXECUTED
1462f8: 89 c2 mov %eax,%edx <== NOT EXECUTED
1462fa: c1 ca 15 ror $0x15,%edx <== NOT EXECUTED
1462fd: 29 d6 sub %edx,%esi <== NOT EXECUTED
1462ff: 31 f1 xor %esi,%ecx <== NOT EXECUTED
146301: 89 f2 mov %esi,%edx <== NOT EXECUTED
146303: c1 ca 07 ror $0x7,%edx <== NOT EXECUTED
146306: 29 d1 sub %edx,%ecx <== NOT EXECUTED
146308: 31 c8 xor %ecx,%eax <== NOT EXECUTED
14630a: 89 ca mov %ecx,%edx <== NOT EXECUTED
14630c: c1 ca 10 ror $0x10,%edx <== NOT EXECUTED
14630f: 29 d0 sub %edx,%eax <== NOT EXECUTED
146311: 31 c6 xor %eax,%esi <== NOT EXECUTED
146313: 89 c2 mov %eax,%edx <== NOT EXECUTED
146315: c1 ca 1c ror $0x1c,%edx <== NOT EXECUTED
146318: 29 d6 sub %edx,%esi <== NOT EXECUTED
14631a: 31 f1 xor %esi,%ecx <== NOT EXECUTED
14631c: c1 ce 12 ror $0x12,%esi <== NOT EXECUTED
14631f: 29 f1 sub %esi,%ecx <== NOT EXECUTED
146321: 31 c8 xor %ecx,%eax <== NOT EXECUTED
146323: c1 c9 08 ror $0x8,%ecx <== NOT EXECUTED
146326: 29 c8 sub %ecx,%eax <== NOT EXECUTED
return c;
}
146328: 5a pop %edx <== NOT EXECUTED
146329: 5b pop %ebx <== NOT EXECUTED
14632a: 5e pop %esi <== NOT EXECUTED
14632b: 5f pop %edi <== NOT EXECUTED
14632c: c9 leave <== NOT EXECUTED
14632d: c3 ret <== NOT EXECUTED
14632e: 66 90 xchg %ax,%ax <== NOT EXECUTED
k += 6;
}
/*----------------------------- handle the last (probably partial) block */
k8 = (const uint8_t *)k;
switch(length)
146330: ff 24 95 08 8b 16 00 jmp *0x168b08(,%edx,4) <== NOT EXECUTED
break;
case 7 : b+=((uint32_t)k8[6])<<16; /* fall through */
case 6 : b+=k[2];
a+=k[0]+(((uint32_t)k[1])<<16);
break;
case 5 : b+=k8[4]; /* fall through */
146337: 0f b6 53 04 movzbl 0x4(%ebx),%edx <== NOT EXECUTED
14633b: 01 d1 add %edx,%ecx <== NOT EXECUTED
14633d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
case 4 : a+=k[0]+(((uint32_t)k[1])<<16);
146340: 0f b7 33 movzwl (%ebx),%esi <== NOT EXECUTED
146343: 01 fe add %edi,%esi <== NOT EXECUTED
146345: 0f b7 53 02 movzwl 0x2(%ebx),%edx <== NOT EXECUTED
146349: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
14634c: 01 d6 add %edx,%esi <== NOT EXECUTED
break;
14634e: eb 9d jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
case 11: c+=((uint32_t)k8[10])<<16; /* fall through */
case 10: c+=k[4];
b+=k[2]+(((uint32_t)k[3])<<16);
a+=k[0]+(((uint32_t)k[1])<<16);
break;
case 9 : c+=k8[8]; /* fall through */
146350: 0f b6 53 08 movzbl 0x8(%ebx),%edx <== NOT EXECUTED
146354: 01 d0 add %edx,%eax <== NOT EXECUTED
case 8 : b+=k[2]+(((uint32_t)k[3])<<16);
146356: 0f b7 53 04 movzwl 0x4(%ebx),%edx <== NOT EXECUTED
14635a: 8d 0c 0a lea (%edx,%ecx,1),%ecx <== NOT EXECUTED
14635d: 0f b7 53 06 movzwl 0x6(%ebx),%edx <== NOT EXECUTED
146361: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
146364: 01 d1 add %edx,%ecx <== NOT EXECUTED
146366: eb d8 jmp 146340 <rtems_rfs_dir_hash+0x2d4><== 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)
146368: 89 c1 mov %eax,%ecx <== NOT EXECUTED
14636a: 89 c6 mov %eax,%esi <== NOT EXECUTED
14636c: e9 80 fd ff ff jmp 1460f1 <rtems_rfs_dir_hash+0x85><== NOT EXECUTED
*/
#ifndef VALGRIND
switch(length)
{
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
146371: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED
146374: 03 4b 04 add 0x4(%ebx),%ecx <== NOT EXECUTED
146377: 03 33 add (%ebx),%esi <== NOT EXECUTED
146379: e9 6f ff ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
case 5 : b+=k[1]&0xff; a+=k[0]; break;
case 4 : a+=k[0]; break;
case 3 : a+=k[0]&0xffffff; break;
case 2 : a+=k[0]&0xffff; break;
case 1 : a+=k[0]&0xff; break;
14637e: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
146380: 81 e2 ff 00 00 00 and $0xff,%edx <== NOT EXECUTED
146386: 8d 34 32 lea (%edx,%esi,1),%esi <== NOT EXECUTED
146389: e9 5f ff ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
case 5 : b+=k[1]&0xff; a+=k[0]; break;
case 4 : a+=k[0]; break;
case 3 : a+=k[0]&0xffffff; break;
case 2 : a+=k[0]&0xffff; break;
14638e: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
146390: 81 e2 ff ff 00 00 and $0xffff,%edx <== NOT EXECUTED
146396: 8d 34 32 lea (%edx,%esi,1),%esi <== NOT EXECUTED
146399: e9 4f ff ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
case 8 : b+=k[1]; a+=k[0]; break;
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
case 5 : b+=k[1]&0xff; a+=k[0]; break;
case 4 : a+=k[0]; break;
case 3 : a+=k[0]&0xffffff; break;
14639e: 8b 13 mov (%ebx),%edx <== NOT EXECUTED
1463a0: 81 e2 ff ff ff 00 and $0xffffff,%edx <== NOT EXECUTED
1463a6: 8d 34 32 lea (%edx,%esi,1),%esi <== NOT EXECUTED
1463a9: e9 3f ff ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
case 8 : b+=k[1]; a+=k[0]; break;
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
case 5 : b+=k[1]&0xff; a+=k[0]; break;
case 4 : a+=k[0]; break;
1463ae: 03 33 add (%ebx),%esi <== NOT EXECUTED
1463b0: e9 38 ff ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
case 8 : b+=k[1]; a+=k[0]; break;
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
case 5 : b+=k[1]&0xff; a+=k[0]; break;
1463b5: 8b 53 04 mov 0x4(%ebx),%edx <== NOT EXECUTED
1463b8: 81 e2 ff 00 00 00 and $0xff,%edx <== NOT EXECUTED
1463be: 01 d1 add %edx,%ecx <== NOT EXECUTED
1463c0: 03 33 add (%ebx),%esi <== NOT EXECUTED
1463c2: e9 26 ff ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
case 8 : b+=k[1]; a+=k[0]; break;
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
case 6 : b+=k[1]&0xffff; a+=k[0]; break;
1463c7: 8b 53 04 mov 0x4(%ebx),%edx <== NOT EXECUTED
1463ca: 81 e2 ff ff 00 00 and $0xffff,%edx <== NOT EXECUTED
1463d0: 01 d1 add %edx,%ecx <== NOT EXECUTED
1463d2: 03 33 add (%ebx),%esi <== NOT EXECUTED
1463d4: e9 14 ff ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
case 8 : b+=k[1]; a+=k[0]; break;
case 7 : b+=k[1]&0xffffff; a+=k[0]; break;
1463d9: 8b 53 04 mov 0x4(%ebx),%edx <== NOT EXECUTED
1463dc: 81 e2 ff ff ff 00 and $0xffffff,%edx <== NOT EXECUTED
1463e2: 01 d1 add %edx,%ecx <== NOT EXECUTED
1463e4: 03 33 add (%ebx),%esi <== NOT EXECUTED
1463e6: e9 02 ff ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
{
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
case 8 : b+=k[1]; a+=k[0]; break;
1463eb: 03 4b 04 add 0x4(%ebx),%ecx <== NOT EXECUTED
1463ee: 03 33 add (%ebx),%esi <== NOT EXECUTED
1463f0: e9 f8 fe ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
switch(length)
{
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
case 9 : c+=k[2]&0xff; b+=k[1]; a+=k[0]; break;
1463f5: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
1463f8: 81 e2 ff 00 00 00 and $0xff,%edx <== NOT EXECUTED
1463fe: 01 d0 add %edx,%eax <== NOT EXECUTED
146400: 03 4b 04 add 0x4(%ebx),%ecx <== NOT EXECUTED
146403: 03 33 add (%ebx),%esi <== NOT EXECUTED
146405: e9 e3 fe ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
switch(length)
{
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
case 10: c+=k[2]&0xffff; b+=k[1]; a+=k[0]; break;
14640a: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
14640d: 81 e2 ff ff 00 00 and $0xffff,%edx <== NOT EXECUTED
146413: 01 d0 add %edx,%eax <== NOT EXECUTED
146415: 03 4b 04 add 0x4(%ebx),%ecx <== NOT EXECUTED
146418: 03 33 add (%ebx),%esi <== NOT EXECUTED
14641a: e9 ce fe ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
#ifndef VALGRIND
switch(length)
{
case 12: c+=k[2]; b+=k[1]; a+=k[0]; break;
case 11: c+=k[2]&0xffffff; b+=k[1]; a+=k[0]; break;
14641f: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
146422: 81 e2 ff ff ff 00 and $0xffffff,%edx <== NOT EXECUTED
146428: 01 d0 add %edx,%eax <== NOT EXECUTED
14642a: 03 4b 04 add 0x4(%ebx),%ecx <== NOT EXECUTED
14642d: 03 33 add (%ebx),%esi <== NOT EXECUTED
14642f: e9 b9 fe ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
{
case 12: c+=k[4]+(((uint32_t)k[5])<<16);
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 */
146434: 0f b6 53 0a movzbl 0xa(%ebx),%edx <== NOT EXECUTED
146438: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
14643b: 01 d0 add %edx,%eax <== NOT EXECUTED
case 10: c+=k[4];
14643d: 0f b7 53 08 movzwl 0x8(%ebx),%edx <== NOT EXECUTED
146441: 01 d0 add %edx,%eax <== NOT EXECUTED
146443: e9 0e ff ff ff jmp 146356 <rtems_rfs_dir_hash+0x2ea><== NOT EXECUTED
break;
case 9 : c+=k8[8]; /* fall through */
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 */
146448: 0f b6 53 06 movzbl 0x6(%ebx),%edx <== NOT EXECUTED
14644c: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
14644f: 01 d1 add %edx,%ecx <== NOT EXECUTED
case 6 : b+=k[2];
146451: 0f b7 53 04 movzwl 0x4(%ebx),%edx <== NOT EXECUTED
146455: 01 d1 add %edx,%ecx <== NOT EXECUTED
146457: e9 e4 fe ff ff jmp 146340 <rtems_rfs_dir_hash+0x2d4><== NOT EXECUTED
a+=k[0]+(((uint32_t)k[1])<<16);
break;
case 5 : b+=k8[4]; /* fall through */
case 4 : a+=k[0]+(((uint32_t)k[1])<<16);
break;
case 3 : a+=((uint32_t)k8[2])<<16; /* fall through */
14645c: 0f b6 53 02 movzbl 0x2(%ebx),%edx <== NOT EXECUTED
146460: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
146463: 01 d7 add %edx,%edi <== NOT EXECUTED
case 2 : a+=k[0];
146465: 0f b7 33 movzwl (%ebx),%esi <== NOT EXECUTED
146468: 8d 34 37 lea (%edi,%esi,1),%esi <== NOT EXECUTED
break;
14646b: e9 7d fe ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
case 1 : a+=k8[0];
146470: 0f b6 33 movzbl (%ebx),%esi <== NOT EXECUTED
146473: 01 fe add %edi,%esi <== NOT EXECUTED
break;
146475: e9 73 fe ff ff jmp 1462ed <rtems_rfs_dir_hash+0x281><== NOT EXECUTED
/*----------------------------- handle the last (probably partial) block */
k8 = (const uint8_t *)k;
switch(length)
{
case 12: c+=k[4]+(((uint32_t)k[5])<<16);
14647a: 0f b7 53 08 movzwl 0x8(%ebx),%edx <== NOT EXECUTED
14647e: 8d 04 02 lea (%edx,%eax,1),%eax <== NOT EXECUTED
146481: 0f b7 53 0a movzwl 0xa(%ebx),%edx <== NOT EXECUTED
146485: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
146488: 01 d0 add %edx,%eax <== NOT EXECUTED
14648a: e9 c7 fe ff ff jmp 146356 <rtems_rfs_dir_hash+0x2ea><== 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)
14648f: 89 c1 mov %eax,%ecx <== NOT EXECUTED
146491: 89 c7 mov %eax,%edi <== NOT EXECUTED
146493: e9 eb fd ff ff jmp 146283 <rtems_rfs_dir_hash+0x217><== 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)
146498: 89 c1 mov %eax,%ecx <== NOT EXECUTED
14649a: 89 c7 mov %eax,%edi <== NOT EXECUTED
14649c: e9 fd fc ff ff jmp 14619e <rtems_rfs_dir_hash+0x132><== NOT EXECUTED
0013e248 <rtems_rfs_dir_lookup_ino>:
rtems_rfs_inode_handle* inode,
const char* name,
int length,
rtems_rfs_ino* ino,
uint32_t* offset)
{
13e248: 55 push %ebp <== NOT EXECUTED
13e249: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13e24b: 57 push %edi <== NOT EXECUTED
13e24c: 56 push %esi <== NOT EXECUTED
13e24d: 53 push %ebx <== NOT EXECUTED
13e24e: 83 c4 80 add $0xffffff80,%esp <== NOT EXECUTED
13e251: 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;
13e254: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13e257: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
*offset = 0;
13e25d: 8b 55 1c mov 0x1c(%ebp),%edx <== NOT EXECUTED
13e260: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, inode, &map);
13e266: 8d 4d 88 lea -0x78(%ebp),%ecx <== NOT EXECUTED
13e269: 51 push %ecx <== NOT EXECUTED
13e26a: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13e26d: 53 push %ebx <== NOT EXECUTED
13e26e: e8 21 ef ff ff call 13d194 <rtems_rfs_block_map_open><== NOT EXECUTED
13e273: 89 85 7c ff ff ff mov %eax,-0x84(%ebp) <== NOT EXECUTED
if (rc > 0)
13e279: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e27c: 85 c0 test %eax,%eax <== NOT EXECUTED
13e27e: 7e 10 jle 13e290 <rtems_rfs_dir_lookup_ino+0x48><== NOT EXECUTED
}
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
13e280: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax <== NOT EXECUTED
13e286: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13e289: 5b pop %ebx <== NOT EXECUTED
13e28a: 5e pop %esi <== NOT EXECUTED
13e28b: 5f pop %edi <== NOT EXECUTED
13e28c: c9 leave <== NOT EXECUTED
13e28d: c3 ret <== NOT EXECUTED
13e28e: 66 90 xchg %ax,%ax <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
13e290: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13e294: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13e29b: 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);
13e2a2: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13e2a5: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
13e2a8: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
13e2ab: e8 bc 7d 00 00 call 14606c <rtems_rfs_dir_hash> <== NOT EXECUTED
13e2b0: 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);
13e2b3: 8d 75 e4 lea -0x1c(%ebp),%esi <== NOT EXECUTED
13e2b6: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
13e2b9: 6a 00 push $0x0 <== NOT EXECUTED
13e2bb: 6a 00 push $0x0 <== NOT EXECUTED
13e2bd: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
13e2c0: 50 push %eax <== NOT EXECUTED
13e2c1: 53 push %ebx <== NOT EXECUTED
13e2c2: e8 49 e5 ff ff call 13c810 <rtems_rfs_block_map_seek><== NOT EXECUTED
13e2c7: 89 85 7c ff ff ff mov %eax,-0x84(%ebp) <== NOT EXECUTED
if (rc > 0)
13e2cd: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13e2d0: 85 c0 test %eax,%eax <== NOT EXECUTED
13e2d2: 7e 6d jle 13e341 <rtems_rfs_dir_lookup_ino+0xf9><== 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)
13e2d4: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13e2d7: 75 0a jne 13e2e3 <rtems_rfs_dir_lookup_ino+0x9b><== NOT EXECUTED
13e2d9: c7 85 7c ff ff ff 02 movl $0x2,-0x84(%ebp) <== NOT EXECUTED
13e2e0: 00 00 00
*/
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);
13e2e3: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13e2e6: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
13e2e9: 50 push %eax <== NOT EXECUTED
13e2ea: 53 push %ebx <== NOT EXECUTED
13e2eb: e8 f0 f1 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13e2f0: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13e2f4: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13e2fb: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
rc = ENOENT;
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
13e302: 59 pop %ecx <== NOT EXECUTED
13e303: 5e pop %esi <== NOT EXECUTED
13e304: 8d 55 88 lea -0x78(%ebp),%edx <== NOT EXECUTED
13e307: 52 push %edx <== NOT EXECUTED
13e308: 53 push %ebx <== NOT EXECUTED
13e309: e8 da ec ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
13e30e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
13e311: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax <== NOT EXECUTED
13e317: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13e31a: 5b pop %ebx <== NOT EXECUTED
13e31b: 5e pop %esi <== NOT EXECUTED
13e31c: 5f pop %edi <== NOT EXECUTED
13e31d: c9 leave <== NOT EXECUTED
13e31e: c3 ret <== NOT EXECUTED
13e31f: 90 nop <== NOT EXECUTED
entry += elength;
}
if (rc == 0)
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
13e320: 56 push %esi <== NOT EXECUTED
13e321: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
13e324: 52 push %edx <== NOT EXECUTED
13e325: 8d 4d 88 lea -0x78(%ebp),%ecx <== NOT EXECUTED
13e328: 51 push %ecx <== NOT EXECUTED
13e329: 53 push %ebx <== NOT EXECUTED
13e32a: e8 b1 e4 ff ff call 13c7e0 <rtems_rfs_block_map_next_block><== NOT EXECUTED
13e32f: 89 85 7c ff ff ff mov %eax,-0x84(%ebp) <== 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)
13e335: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e338: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13e33b: 0f 84 6b 01 00 00 je 13e4ac <rtems_rfs_dir_lookup_ino+0x264><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
while ((rc == 0) && block)
13e341: 8b 8d 7c ff ff ff mov -0x84(%ebp),%ecx <== NOT EXECUTED
13e347: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13e349: 0f 85 67 01 00 00 jne 13e4b6 <rtems_rfs_dir_lookup_ino+0x26e><== NOT EXECUTED
13e34f: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13e352: 85 c0 test %eax,%eax <== NOT EXECUTED
13e354: 0f 84 6b 01 00 00 je 13e4c5 <rtems_rfs_dir_lookup_ino+0x27d><== 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);
13e35a: 6a 01 push $0x1 <== NOT EXECUTED
13e35c: 50 push %eax <== NOT EXECUTED
13e35d: 8d 4d d8 lea -0x28(%ebp),%ecx <== NOT EXECUTED
13e360: 51 push %ecx <== NOT EXECUTED
13e361: 53 push %ebx <== NOT EXECUTED
13e362: e8 7d f2 ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
13e367: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) <== NOT EXECUTED
if (rc > 0)
13e36d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e370: 85 c0 test %eax,%eax <== NOT EXECUTED
13e372: 0f 8f 26 01 00 00 jg 13e49e <rtems_rfs_dir_lookup_ino+0x256><== 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);
13e378: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13e37b: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
map.bpos.boff = 0;
13e37e: 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))
13e385: 83 7b 08 0a cmpl $0xa,0x8(%ebx) <== NOT EXECUTED
13e389: 75 1d jne 13e3a8 <rtems_rfs_dir_lookup_ino+0x160><== NOT EXECUTED
13e38b: e9 00 01 00 00 jmp 13e490 <rtems_rfs_dir_lookup_ino+0x248><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
return 0;
}
}
map.bpos.boff += elength;
13e390: 8b 4d 9c mov -0x64(%ebp),%ecx <== NOT EXECUTED
13e393: 01 d1 add %edx,%ecx <== NOT EXECUTED
13e395: 89 4d 9c mov %ecx,-0x64(%ebp) <== 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))
13e398: 8b 73 08 mov 0x8(%ebx),%esi <== NOT EXECUTED
13e39b: 83 ee 0a sub $0xa,%esi <== NOT EXECUTED
13e39e: 39 ce cmp %ecx,%esi <== NOT EXECUTED
13e3a0: 0f 86 ea 00 00 00 jbe 13e490 <rtems_rfs_dir_lookup_ino+0x248><== NOT EXECUTED
return 0;
}
}
map.bpos.boff += elength;
entry += elength;
13e3a6: 01 d0 add %edx,%eax <== NOT EXECUTED
while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
uint32_t ehash;
int elength;
ehash = rtems_rfs_dir_entry_hash (entry);
13e3a8: 0f b6 78 04 movzbl 0x4(%eax),%edi <== NOT EXECUTED
13e3ac: 8a 50 05 mov 0x5(%eax),%dl <== NOT EXECUTED
13e3af: 88 55 85 mov %dl,-0x7b(%ebp) <== NOT EXECUTED
13e3b2: 8a 48 06 mov 0x6(%eax),%cl <== NOT EXECUTED
13e3b5: 88 4d 86 mov %cl,-0x7a(%ebp) <== NOT EXECUTED
13e3b8: 8a 50 07 mov 0x7(%eax),%dl <== NOT EXECUTED
13e3bb: 88 55 87 mov %dl,-0x79(%ebp) <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
13e3be: 0f b6 50 08 movzbl 0x8(%eax),%edx <== NOT EXECUTED
13e3c2: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
13e3c5: 0f b6 48 09 movzbl 0x9(%eax),%ecx <== NOT EXECUTED
13e3c9: 09 ca or %ecx,%edx <== NOT EXECUTED
*ino = rtems_rfs_dir_entry_ino (entry);
13e3cb: 0f b6 48 03 movzbl 0x3(%eax),%ecx <== NOT EXECUTED
13e3cf: 0f b6 30 movzbl (%eax),%esi <== NOT EXECUTED
13e3d2: c1 e6 18 shl $0x18,%esi <== NOT EXECUTED
13e3d5: 09 f1 or %esi,%ecx <== NOT EXECUTED
13e3d7: 0f b6 70 01 movzbl 0x1(%eax),%esi <== NOT EXECUTED
13e3db: c1 e6 10 shl $0x10,%esi <== NOT EXECUTED
13e3de: 09 f1 or %esi,%ecx <== NOT EXECUTED
13e3e0: 0f b6 70 02 movzbl 0x2(%eax),%esi <== NOT EXECUTED
13e3e4: c1 e6 08 shl $0x8,%esi <== NOT EXECUTED
13e3e7: 09 f1 or %esi,%ecx <== NOT EXECUTED
13e3e9: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
13e3ec: 89 0e mov %ecx,(%esi) <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
13e3ee: 81 fa ff ff 00 00 cmp $0xffff,%edx <== NOT EXECUTED
13e3f4: 0f 84 96 00 00 00 je 13e490 <rtems_rfs_dir_lookup_ino+0x248><== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, *ino))
13e3fa: 83 fa 0a cmp $0xa,%edx <== NOT EXECUTED
13e3fd: 0f 8e ce 00 00 00 jle 13e4d1 <rtems_rfs_dir_lookup_ino+0x289><== NOT EXECUTED
13e403: 3b 53 18 cmp 0x18(%ebx),%edx <== NOT EXECUTED
13e406: 0f 83 c5 00 00 00 jae 13e4d1 <rtems_rfs_dir_lookup_ino+0x289><== NOT EXECUTED
13e40c: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13e40e: 0f 84 bd 00 00 00 je 13e4d1 <rtems_rfs_dir_lookup_ino+0x289><== NOT EXECUTED
13e414: 3b 4b 10 cmp 0x10(%ebx),%ecx <== NOT EXECUTED
13e417: 0f 87 b4 00 00 00 ja 13e4d1 <rtems_rfs_dir_lookup_ino+0x289><== NOT EXECUTED
rtems_rfs_inode_ino (inode), elength, *ino, map.bpos.boff);
rc = EIO;
break;
}
if (ehash == hash)
13e41d: c1 e7 18 shl $0x18,%edi <== NOT EXECUTED
13e420: 0f b6 4d 85 movzbl -0x7b(%ebp),%ecx <== NOT EXECUTED
13e424: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13e427: 09 cf or %ecx,%edi <== NOT EXECUTED
13e429: 0f b6 4d 87 movzbl -0x79(%ebp),%ecx <== NOT EXECUTED
13e42d: 09 cf or %ecx,%edi <== NOT EXECUTED
13e42f: 0f b6 4d 86 movzbl -0x7a(%ebp),%ecx <== NOT EXECUTED
13e433: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13e436: 09 cf or %ecx,%edi <== NOT EXECUTED
13e438: 39 7d 80 cmp %edi,-0x80(%ebp) <== NOT EXECUTED
13e43b: 0f 85 4f ff ff ff jne 13e390 <rtems_rfs_dir_lookup_ino+0x148><== 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)
13e441: 8d 70 0a lea 0xa(%eax),%esi <== NOT EXECUTED
13e444: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
13e447: 39 c9 cmp %ecx,%ecx <== NOT EXECUTED
13e449: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
13e44c: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NOT EXECUTED
13e44e: 0f 97 45 87 seta -0x79(%ebp) <== NOT EXECUTED
13e452: 0f 92 c1 setb %cl <== NOT EXECUTED
13e455: 38 4d 87 cmp %cl,-0x79(%ebp) <== NOT EXECUTED
13e458: 0f 85 32 ff ff ff jne 13e390 <rtems_rfs_dir_lookup_ino+0x148><== NOT EXECUTED
{
*offset = rtems_rfs_block_map_pos (fs, &map);
13e45e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13e461: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
13e464: 50 push %eax <== NOT EXECUTED
13e465: 53 push %ebx <== NOT EXECUTED
13e466: e8 29 e1 ff ff call 13c594 <rtems_rfs_block_get_pos><== NOT EXECUTED
13e46b: 8b 75 1c mov 0x1c(%ebp),%esi <== NOT EXECUTED
13e46e: 89 06 mov %eax,(%esi) <== 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);
13e470: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
13e473: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13e475: e8 6a f3 ff ff call 13d7e4 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13e47a: 58 pop %eax <== NOT EXECUTED
13e47b: 5a pop %edx <== NOT EXECUTED
rtems_rfs_inode_ino (inode), rc, strerror (rc));
}
}
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
13e47c: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
13e47f: 50 push %eax <== NOT EXECUTED
13e480: 53 push %ebx <== NOT EXECUTED
13e481: e8 62 eb ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
13e486: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e489: e9 f2 fd ff ff jmp 13e280 <rtems_rfs_dir_lookup_ino+0x38><== NOT EXECUTED
13e48e: 66 90 xchg %ax,%ax <== NOT EXECUTED
map.bpos.boff += elength;
entry += elength;
}
if (rc == 0)
13e490: 8b bd 78 ff ff ff mov -0x88(%ebp),%edi <== NOT EXECUTED
13e496: 85 ff test %edi,%edi <== NOT EXECUTED
13e498: 0f 84 82 fe ff ff je 13e320 <rtems_rfs_dir_lookup_ino+0xd8><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
while ((rc == 0) && block)
13e49e: 8b b5 78 ff ff ff mov -0x88(%ebp),%esi <== NOT EXECUTED
13e4a4: 89 b5 7c ff ff ff mov %esi,-0x84(%ebp) <== NOT EXECUTED
13e4aa: eb 0a jmp 13e4b6 <rtems_rfs_dir_lookup_ino+0x26e><== 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)
13e4ac: c7 85 7c ff ff ff 02 movl $0x2,-0x84(%ebp) <== NOT EXECUTED
13e4b3: 00 00 00
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);
13e4b6: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
13e4b9: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13e4bb: e8 24 f3 ff ff call 13d7e4 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13e4c0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13e4c3: eb b7 jmp 13e47c <rtems_rfs_dir_lookup_ino+0x234><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
while ((rc == 0) && block)
13e4c5: c7 85 7c ff ff ff 05 movl $0x5,-0x84(%ebp) <== NOT EXECUTED
13e4cc: 00 00 00
13e4cf: eb e5 jmp 13e4b6 <rtems_rfs_dir_lookup_ino+0x26e><== NOT EXECUTED
13e4d1: c7 85 78 ff ff ff 05 movl $0x5,-0x88(%ebp) <== NOT EXECUTED
13e4d8: 00 00 00
13e4db: eb c1 jmp 13e49e <rtems_rfs_dir_lookup_ino+0x256><== NOT EXECUTED
0013d80c <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)
{
13d80c: 55 push %ebp <== NOT EXECUTED
13d80d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d80f: 57 push %edi <== NOT EXECUTED
13d810: 56 push %esi <== NOT EXECUTED
13d811: 53 push %ebx <== NOT EXECUTED
13d812: 81 ec a0 00 00 00 sub $0xa0,%esp <== NOT EXECUTED
13d818: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13d81b: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
13d81e: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) <== NOT EXECUTED
13d824: 89 95 7c ff ff ff mov %edx,-0x84(%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;
13d82a: 8b 55 1c mov 0x1c(%ebp),%edx <== NOT EXECUTED
13d82d: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
13d833: 8d 4d 88 lea -0x78(%ebp),%ecx <== NOT EXECUTED
13d836: 51 push %ecx <== NOT EXECUTED
13d837: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
13d83a: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13d83d: e8 52 f9 ff ff call 13d194 <rtems_rfs_block_map_open><== NOT EXECUTED
13d842: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13d844: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d847: 85 c0 test %eax,%eax <== NOT EXECUTED
13d849: 7e 0d jle 13d858 <rtems_rfs_dir_read+0x4c><== NOT EXECUTED
}
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
13d84b: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13d84d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d850: 5b pop %ebx <== NOT EXECUTED
13d851: 5e pop %esi <== NOT EXECUTED
13d852: 5f pop %edi <== NOT EXECUTED
13d853: c9 leave <== NOT EXECUTED
13d854: c3 ret <== NOT EXECUTED
13d855: 8d 76 00 lea 0x0(%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) -
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
13d858: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
13d85b: 8b 5f 08 mov 0x8(%edi),%ebx <== NOT EXECUTED
13d85e: 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) -
13d860: 56 push %esi <== NOT EXECUTED
13d861: 53 push %ebx <== NOT EXECUTED
13d862: ff b5 7c ff ff ff pushl -0x84(%ebp) <== NOT EXECUTED
13d868: ff b5 78 ff ff ff pushl -0x88(%ebp) <== NOT EXECUTED
13d86e: e8 41 ea 01 00 call 15c2b4 <__moddi3> <== NOT EXECUTED
13d873: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d876: 89 85 60 ff ff ff mov %eax,-0xa0(%ebp) <== NOT EXECUTED
13d87c: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
13d882: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13d884: 89 f2 mov %esi,%edx <== NOT EXECUTED
13d886: 2b 85 60 ff ff ff sub -0xa0(%ebp),%eax <== NOT EXECUTED
13d88c: 1b 95 64 ff ff ff sbb -0x9c(%ebp),%edx <== NOT EXECUTED
13d892: 89 85 60 ff ff ff mov %eax,-0xa0(%ebp) <== NOT EXECUTED
13d898: 89 95 64 ff ff ff mov %edx,-0x9c(%ebp) <== NOT EXECUTED
13d89e: 83 fa 00 cmp $0x0,%edx <== NOT EXECUTED
13d8a1: 0f 8e 35 01 00 00 jle 13d9dc <rtems_rfs_dir_read+0x1d0><== NOT EXECUTED
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
offset = (((offset / rtems_rfs_fs_block_size (fs)) + 1) *
rtems_rfs_fs_block_size (fs));
rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);
13d8a7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d8aa: 8d 7d e4 lea -0x1c(%ebp),%edi <== NOT EXECUTED
13d8ad: 57 push %edi <== NOT EXECUTED
13d8ae: ff b5 7c ff ff ff pushl -0x84(%ebp) <== NOT EXECUTED
13d8b4: ff b5 78 ff ff ff pushl -0x88(%ebp) <== NOT EXECUTED
13d8ba: 8d 55 88 lea -0x78(%ebp),%edx <== NOT EXECUTED
13d8bd: 52 push %edx <== NOT EXECUTED
13d8be: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13d8c1: e8 4a ef ff ff call 13c810 <rtems_rfs_block_map_seek><== NOT EXECUTED
13d8c6: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13d8c8: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13d8cb: 85 c0 test %eax,%eax <== NOT EXECUTED
13d8cd: 7e 25 jle 13d8f4 <rtems_rfs_dir_read+0xe8><== NOT EXECUTED
{
if (rc == ENXIO)
13d8cf: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13d8d2: 74 1c je 13d8f0 <rtems_rfs_dir_read+0xe4><== NOT EXECUTED
rc = ENOENT;
rtems_rfs_block_map_close (fs, &map);
13d8d4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d8d7: 8d 4d 88 lea -0x78(%ebp),%ecx <== NOT EXECUTED
13d8da: 51 push %ecx <== NOT EXECUTED
13d8db: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13d8de: e8 05 f7 ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
13d8e3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
13d8e6: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13d8e8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d8eb: 5b pop %ebx <== NOT EXECUTED
13d8ec: 5e pop %esi <== NOT EXECUTED
13d8ed: 5f pop %edi <== NOT EXECUTED
13d8ee: c9 leave <== NOT EXECUTED
13d8ef: c3 ret <== NOT EXECUTED
rtems_rfs_fs_block_size (fs));
rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);
if (rc > 0)
{
if (rc == ENXIO)
13d8f0: b3 02 mov $0x2,%bl <== NOT EXECUTED
13d8f2: eb e0 jmp 13d8d4 <rtems_rfs_dir_read+0xc8><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
13d8f4: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13d8f8: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13d8ff: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
13d906: eb 08 jmp 13d910 <rtems_rfs_dir_read+0x104><== NOT EXECUTED
/*
* Look for an empty entry and if this is the last block that is the end of
* the directory.
*/
while (rc == 0)
13d908: 85 c0 test %eax,%eax <== NOT EXECUTED
13d90a: 0f 85 35 02 00 00 jne 13db45 <rtems_rfs_dir_read+0x339><== NOT EXECUTED
uint8_t* entry;
rtems_rfs_ino eino;
int elength;
int remaining;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
13d910: 6a 01 push $0x1 <== NOT EXECUTED
13d912: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13d915: 8d 5d d8 lea -0x28(%ebp),%ebx <== NOT EXECUTED
13d918: 53 push %ebx <== NOT EXECUTED
13d919: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13d91c: e8 c3 fc ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
if (rc > 0)
13d921: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d924: 85 c0 test %eax,%eax <== NOT EXECUTED
13d926: 0f 8f 10 01 00 00 jg 13da3c <rtems_rfs_dir_read+0x230><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
return rc;
}
entry = rtems_rfs_buffer_data (&buffer);
entry += map.bpos.boff;
13d92c: 8b 55 9c mov -0x64(%ebp),%edx <== NOT EXECUTED
13d92f: 89 55 80 mov %edx,-0x80(%ebp) <== NOT EXECUTED
13d932: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
13d935: 8b 4d 80 mov -0x80(%ebp),%ecx <== NOT EXECUTED
13d938: 03 4a 20 add 0x20(%edx),%ecx <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
13d93b: 0f b6 51 08 movzbl 0x8(%ecx),%edx <== NOT EXECUTED
13d93f: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
13d942: 0f b6 59 09 movzbl 0x9(%ecx),%ebx <== NOT EXECUTED
13d946: 09 da or %ebx,%edx <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
13d948: 8d 59 01 lea 0x1(%ecx),%ebx <== NOT EXECUTED
13d94b: 89 9d 6c ff ff ff mov %ebx,-0x94(%ebp) <== NOT EXECUTED
13d951: 8d 71 02 lea 0x2(%ecx),%esi <== NOT EXECUTED
13d954: 89 b5 70 ff ff ff mov %esi,-0x90(%ebp) <== NOT EXECUTED
13d95a: 8d 59 03 lea 0x3(%ecx),%ebx <== NOT EXECUTED
13d95d: 89 9d 74 ff ff ff mov %ebx,-0x8c(%ebp) <== NOT EXECUTED
13d963: 0f b6 71 03 movzbl 0x3(%ecx),%esi <== NOT EXECUTED
13d967: 0f b6 19 movzbl (%ecx),%ebx <== NOT EXECUTED
13d96a: c1 e3 18 shl $0x18,%ebx <== NOT EXECUTED
13d96d: 09 de or %ebx,%esi <== NOT EXECUTED
13d96f: 0f b6 59 01 movzbl 0x1(%ecx),%ebx <== NOT EXECUTED
13d973: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
13d976: 09 de or %ebx,%esi <== NOT EXECUTED
13d978: 0f b6 59 02 movzbl 0x2(%ecx),%ebx <== NOT EXECUTED
13d97c: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
13d97f: 09 de or %ebx,%esi <== NOT EXECUTED
if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)
13d981: 81 fa ff ff 00 00 cmp $0xffff,%edx <== NOT EXECUTED
13d987: 0f 85 d3 00 00 00 jne 13da60 <rtems_rfs_dir_read+0x254><== NOT EXECUTED
printf ("rtems-rfs: dir-read: found off:%" PRIdoff_t " ino:%ld name=%s\n",
dirent->d_off, dirent->d_ino, dirent->d_name);
break;
}
*length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;
13d98d: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13d990: 8b 41 08 mov 0x8(%ecx),%eax <== NOT EXECUTED
13d993: 2b 45 80 sub -0x80(%ebp),%eax <== NOT EXECUTED
13d996: 8b 5d 1c mov 0x1c(%ebp),%ebx <== NOT EXECUTED
13d999: 01 03 add %eax,(%ebx) <== 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);
13d99b: 50 push %eax <== NOT EXECUTED
13d99c: 57 push %edi <== NOT EXECUTED
13d99d: 8d 75 88 lea -0x78(%ebp),%esi <== NOT EXECUTED
13d9a0: 56 push %esi <== NOT EXECUTED
13d9a1: 51 push %ecx <== NOT EXECUTED
13d9a2: e8 39 ee ff ff call 13c7e0 <rtems_rfs_block_map_next_block><== NOT EXECUTED
if (rc == ENXIO)
13d9a7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d9aa: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13d9ad: 0f 85 55 ff ff ff jne 13d908 <rtems_rfs_dir_read+0xfc><== NOT EXECUTED
13d9b3: bb 02 00 00 00 mov $0x2,%ebx <== NOT EXECUTED
rc = ENOENT;
}
rtems_rfs_buffer_handle_close (fs, &buffer);
13d9b8: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
13d9bb: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13d9be: e8 21 fe ff ff call 13d7e4 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13d9c3: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13d9c6: 8d 7d 88 lea -0x78(%ebp),%edi <== NOT EXECUTED
13d9c9: 57 push %edi <== NOT EXECUTED
13d9ca: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13d9cd: e8 16 f6 ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
13d9d2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d9d5: e9 71 fe ff ff jmp 13d84b <rtems_rfs_dir_read+0x3f><== NOT EXECUTED
13d9da: 66 90 xchg %ax,%ax <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
if (rc > 0)
return rc;
if (((rtems_rfs_fs_block_size (fs) -
13d9dc: 7c 09 jl 13d9e7 <rtems_rfs_dir_read+0x1db><== NOT EXECUTED
13d9de: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
13d9e1: 0f 87 c0 fe ff ff ja 13d8a7 <rtems_rfs_dir_read+0x9b><== NOT EXECUTED
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
offset = (((offset / rtems_rfs_fs_block_size (fs)) + 1) *
13d9e7: 56 push %esi <== NOT EXECUTED
13d9e8: 53 push %ebx <== NOT EXECUTED
13d9e9: ff b5 7c ff ff ff pushl -0x84(%ebp) <== NOT EXECUTED
13d9ef: ff b5 78 ff ff ff pushl -0x88(%ebp) <== NOT EXECUTED
13d9f5: e8 6a e7 01 00 call 15c164 <__divdi3> <== NOT EXECUTED
13d9fa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d9fd: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) <== NOT EXECUTED
13da03: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) <== NOT EXECUTED
13da09: 83 85 78 ff ff ff 01 addl $0x1,-0x88(%ebp) <== NOT EXECUTED
13da10: 83 95 7c ff ff ff 00 adcl $0x0,-0x84(%ebp) <== NOT EXECUTED
13da17: 8b 8d 7c ff ff ff mov -0x84(%ebp),%ecx <== NOT EXECUTED
13da1d: 0f af cb imul %ebx,%ecx <== NOT EXECUTED
13da20: 8b 85 78 ff ff ff mov -0x88(%ebp),%eax <== NOT EXECUTED
13da26: f7 e3 mul %ebx <== NOT EXECUTED
13da28: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) <== NOT EXECUTED
13da2e: 01 ca add %ecx,%edx <== NOT EXECUTED
13da30: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) <== NOT EXECUTED
13da36: e9 6c fe ff ff jmp 13d8a7 <rtems_rfs_dir_read+0x9b><== NOT EXECUTED
13da3b: 90 nop <== NOT EXECUTED
13da3c: 89 c3 mov %eax,%ebx <== NOT EXECUTED
int remaining;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &buffer);
13da3e: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
13da41: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13da44: e8 9b fd ff ff call 13d7e4 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
13da49: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13da4c: 8d 75 88 lea -0x78(%ebp),%esi <== NOT EXECUTED
13da4f: 56 push %esi <== NOT EXECUTED
13da50: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13da53: e8 90 f5 ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
return rc;
13da58: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13da5b: e9 eb fd ff ff jmp 13d84b <rtems_rfs_dir_read+0x3f><== NOT EXECUTED
13da60: 89 8d 68 ff ff ff mov %ecx,-0x98(%ebp) <== NOT EXECUTED
13da66: 89 c3 mov %eax,%ebx <== NOT EXECUTED
13da68: 89 f0 mov %esi,%eax <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)
{
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13da6a: 83 fa 0a cmp $0xa,%edx <== NOT EXECUTED
13da6d: 7f 0d jg 13da7c <rtems_rfs_dir_read+0x270><== NOT EXECUTED
/*
* Look for an empty entry and if this is the last block that is the end of
* the directory.
*/
while (rc == 0)
13da6f: bb 05 00 00 00 mov $0x5,%ebx <== NOT EXECUTED
13da74: e9 3f ff ff ff jmp 13d9b8 <rtems_rfs_dir_read+0x1ac><== NOT EXECUTED
13da79: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)
{
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
13da7c: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13da7f: 3b 56 18 cmp 0x18(%esi),%edx <== NOT EXECUTED
13da82: 73 eb jae 13da6f <rtems_rfs_dir_read+0x263><== NOT EXECUTED
13da84: 85 c0 test %eax,%eax <== NOT EXECUTED
13da86: 74 e7 je 13da6f <rtems_rfs_dir_read+0x263><== NOT EXECUTED
13da88: 3b 46 10 cmp 0x10(%esi),%eax <== NOT EXECUTED
13da8b: 77 e2 ja 13da6f <rtems_rfs_dir_read+0x263><== NOT EXECUTED
rtems_rfs_inode_ino (dir), elength, eino, map.bpos.boff);
rc = EIO;
break;
}
memset (dirent, 0, sizeof (struct dirent));
13da8d: b9 10 01 00 00 mov $0x110,%ecx <== NOT EXECUTED
13da92: 31 c0 xor %eax,%eax <== NOT EXECUTED
13da94: 8b 7d 18 mov 0x18(%ebp),%edi <== NOT EXECUTED
13da97: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
dirent->d_off = offset;
13da99: 8b b5 78 ff ff ff mov -0x88(%ebp),%esi <== NOT EXECUTED
13da9f: 8b bd 7c ff ff ff mov -0x84(%ebp),%edi <== NOT EXECUTED
13daa5: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13daa8: 89 70 04 mov %esi,0x4(%eax) <== NOT EXECUTED
13daab: 89 78 08 mov %edi,0x8(%eax) <== NOT EXECUTED
dirent->d_reclen = sizeof (struct dirent);
13daae: 66 c7 40 0c 10 01 movw $0x110,0xc(%eax) <== NOT EXECUTED
*length += elength;
13dab4: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13dab6: 8b 75 1c mov 0x1c(%ebp),%esi <== NOT EXECUTED
13dab9: 03 0e add (%esi),%ecx <== NOT EXECUTED
13dabb: 89 0e mov %ecx,(%esi) <== NOT EXECUTED
remaining = rtems_rfs_fs_block_size (fs) - (map.bpos.boff + elength);
13dabd: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
13dac0: 8b 47 08 mov 0x8(%edi),%eax <== NOT EXECUTED
13dac3: 2b 45 80 sub -0x80(%ebp),%eax <== NOT EXECUTED
13dac6: 29 d0 sub %edx,%eax <== NOT EXECUTED
if (remaining <= RTEMS_RFS_DIR_ENTRY_SIZE)
13dac8: 83 f8 0a cmp $0xa,%eax <== NOT EXECUTED
13dacb: 7f 04 jg 13dad1 <rtems_rfs_dir_read+0x2c5><== NOT EXECUTED
*length += remaining;
13dacd: 01 c8 add %ecx,%eax <== NOT EXECUTED
13dacf: 89 06 mov %eax,(%esi) <== NOT EXECUTED
elength -= RTEMS_RFS_DIR_ENTRY_SIZE;
13dad1: 83 ea 0a sub $0xa,%edx <== NOT EXECUTED
13dad4: 89 55 84 mov %edx,-0x7c(%ebp) <== NOT EXECUTED
13dad7: 81 fa ff 00 00 00 cmp $0xff,%edx <== NOT EXECUTED
13dadd: 7e 07 jle 13dae6 <rtems_rfs_dir_read+0x2da><== NOT EXECUTED
13dadf: c7 45 84 ff 00 00 00 movl $0xff,-0x7c(%ebp) <== NOT EXECUTED
if (elength > NAME_MAX)
elength = NAME_MAX;
memcpy (dirent->d_name, entry + RTEMS_RFS_DIR_ENTRY_SIZE, elength);
13dae6: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13dae9: 83 c0 10 add $0x10,%eax <== NOT EXECUTED
13daec: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
13daef: 8b 95 68 ff ff ff mov -0x98(%ebp),%edx <== NOT EXECUTED
13daf5: 83 c2 0a add $0xa,%edx <== NOT EXECUTED
13daf8: 89 c7 mov %eax,%edi <== NOT EXECUTED
13dafa: 89 d6 mov %edx,%esi <== NOT EXECUTED
13dafc: 8b 4d 84 mov -0x7c(%ebp),%ecx <== NOT EXECUTED
13daff: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
dirent->d_ino = rtems_rfs_dir_entry_ino (entry);
13db01: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax <== NOT EXECUTED
13db07: 0f b6 10 movzbl (%eax),%edx <== NOT EXECUTED
13db0a: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
13db0d: 8b 8d 6c ff ff ff mov -0x94(%ebp),%ecx <== NOT EXECUTED
13db13: 0f b6 01 movzbl (%ecx),%eax <== NOT EXECUTED
13db16: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
13db19: 09 c2 or %eax,%edx <== NOT EXECUTED
13db1b: 8b b5 74 ff ff ff mov -0x8c(%ebp),%esi <== NOT EXECUTED
13db21: 0f b6 06 movzbl (%esi),%eax <== NOT EXECUTED
13db24: 09 c2 or %eax,%edx <== NOT EXECUTED
13db26: 8b bd 70 ff ff ff mov -0x90(%ebp),%edi <== NOT EXECUTED
13db2c: 0f b6 07 movzbl (%edi),%eax <== NOT EXECUTED
13db2f: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13db32: 09 c2 or %eax,%edx <== NOT EXECUTED
13db34: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13db37: 89 10 mov %edx,(%eax) <== NOT EXECUTED
dirent->d_namlen = elength;
13db39: 8b 55 84 mov -0x7c(%ebp),%edx <== NOT EXECUTED
13db3c: 66 89 50 0e mov %dx,0xe(%eax) <== 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;
13db40: e9 73 fe ff ff jmp 13d9b8 <rtems_rfs_dir_read+0x1ac><== NOT EXECUTED
13db45: 89 c3 mov %eax,%ebx <== NOT EXECUTED
13db47: e9 6c fe ff ff jmp 13d9b8 <rtems_rfs_dir_read+0x1ac><== NOT EXECUTED
0013ee50 <rtems_rfs_file_close>:
}
int
rtems_rfs_file_close (rtems_rfs_file_system* fs,
rtems_rfs_file_handle* handle)
{
13ee50: 55 push %ebp <== NOT EXECUTED
13ee51: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ee53: 57 push %edi <== NOT EXECUTED
13ee54: 56 push %esi <== NOT EXECUTED
13ee55: 53 push %ebx <== NOT EXECUTED
13ee56: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
13ee59: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
13ee5c: 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)
13ee5f: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13ee62: 8b 50 08 mov 0x8(%eax),%edx <== NOT EXECUTED
13ee65: 85 d2 test %edx,%edx <== NOT EXECUTED
13ee67: 7e 04 jle 13ee6d <rtems_rfs_file_close+0x1d><== NOT EXECUTED
handle->shared->references--;
13ee69: 4a dec %edx <== NOT EXECUTED
13ee6a: 89 50 08 mov %edx,0x8(%eax) <== NOT EXECUTED
if (handle->shared->references == 0)
13ee6d: 85 d2 test %edx,%edx <== NOT EXECUTED
13ee6f: 0f 85 5f 01 00 00 jne 13efd4 <rtems_rfs_file_close+0x184><== NOT EXECUTED
{
if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))
13ee75: 8b 50 18 mov 0x18(%eax),%edx <== NOT EXECUTED
13ee78: 85 d2 test %edx,%edx <== NOT EXECUTED
13ee7a: 0f 84 6c 01 00 00 je 13efec <rtems_rfs_file_close+0x19c><== NOT EXECUTED
if (rrc == 0)
{
/*
* @todo This could be clever and only update if different.
*/
rtems_rfs_inode_set_atime (&handle->shared->inode,
13ee80: 8b 88 8c 00 00 00 mov 0x8c(%eax),%ecx <== NOT EXECUTED
13ee86: 89 4d e4 mov %ecx,-0x1c(%ebp) <== 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);
13ee89: 89 cf mov %ecx,%edi <== NOT EXECUTED
13ee8b: c1 ef 18 shr $0x18,%edi <== NOT EXECUTED
13ee8e: 89 f9 mov %edi,%ecx <== NOT EXECUTED
13ee90: 88 4a 10 mov %cl,0x10(%edx) <== NOT EXECUTED
13ee93: 8b 50 18 mov 0x18(%eax),%edx <== NOT EXECUTED
13ee96: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
13ee99: c1 ef 10 shr $0x10,%edi <== NOT EXECUTED
13ee9c: 89 f9 mov %edi,%ecx <== NOT EXECUTED
13ee9e: 88 4a 11 mov %cl,0x11(%edx) <== NOT EXECUTED
13eea1: 8b 50 18 mov 0x18(%eax),%edx <== NOT EXECUTED
13eea4: 8b 7d e4 mov -0x1c(%ebp),%edi <== NOT EXECUTED
13eea7: c1 ef 08 shr $0x8,%edi <== NOT EXECUTED
13eeaa: 89 f9 mov %edi,%ecx <== NOT EXECUTED
13eeac: 88 4a 12 mov %cl,0x12(%edx) <== NOT EXECUTED
13eeaf: 8b 50 18 mov 0x18(%eax),%edx <== NOT EXECUTED
13eeb2: 8a 4d e4 mov -0x1c(%ebp),%cl <== NOT EXECUTED
13eeb5: 88 4a 13 mov %cl,0x13(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
13eeb8: c6 40 1c 01 movb $0x1,0x1c(%eax) <== NOT EXECUTED
handle->shared->atime);
rtems_rfs_inode_set_mtime (&handle->shared->inode,
handle->shared->mtime);
13eebc: 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,
13eebf: 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);
13eec5: 89 d7 mov %edx,%edi <== NOT EXECUTED
13eec7: c1 ef 18 shr $0x18,%edi <== NOT EXECUTED
13eeca: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
13eecd: 8a 4d e4 mov -0x1c(%ebp),%cl <== NOT EXECUTED
13eed0: 8b 78 18 mov 0x18(%eax),%edi <== NOT EXECUTED
13eed3: 88 4f 14 mov %cl,0x14(%edi) <== NOT EXECUTED
13eed6: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13eed8: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
13eedb: 8b 78 18 mov 0x18(%eax),%edi <== NOT EXECUTED
13eede: 88 4f 15 mov %cl,0x15(%edi) <== NOT EXECUTED
13eee1: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13eee3: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
13eee6: 8b 78 18 mov 0x18(%eax),%edi <== NOT EXECUTED
13eee9: 88 4f 16 mov %cl,0x16(%edi) <== NOT EXECUTED
13eeec: 8b 48 18 mov 0x18(%eax),%ecx <== NOT EXECUTED
13eeef: 88 51 17 mov %dl,0x17(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
13eef2: c6 40 1c 01 movb $0x1,0x1c(%eax) <== NOT EXECUTED
handle->shared->mtime);
rtems_rfs_inode_set_ctime (&handle->shared->inode,
handle->shared->ctime);
13eef6: 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,
13eef9: 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);
13eeff: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13ef01: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
13ef04: 8b 78 18 mov 0x18(%eax),%edi <== NOT EXECUTED
13ef07: 88 4f 18 mov %cl,0x18(%edi) <== NOT EXECUTED
13ef0a: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13ef0c: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
13ef0f: 8b 78 18 mov 0x18(%eax),%edi <== NOT EXECUTED
13ef12: 88 4f 19 mov %cl,0x19(%edi) <== NOT EXECUTED
13ef15: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13ef17: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
13ef1a: 8b 78 18 mov 0x18(%eax),%edi <== NOT EXECUTED
13ef1d: 88 4f 1a mov %cl,0x1a(%edi) <== NOT EXECUTED
13ef20: 8b 48 18 mov 0x18(%eax),%ecx <== NOT EXECUTED
13ef23: 88 51 1b mov %dl,0x1b(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
13ef26: c6 40 1c 01 movb $0x1,0x1c(%eax) <== NOT EXECUTED
handle->shared->ctime);
if (!rtems_rfs_block_size_equal (&handle->shared->size,
13ef2a: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13ef2d: 89 c2 mov %eax,%edx <== NOT EXECUTED
13ef2f: 8b 88 84 00 00 00 mov 0x84(%eax),%ecx <== NOT EXECUTED
13ef35: 3b 48 3c cmp 0x3c(%eax),%ecx <== NOT EXECUTED
13ef38: 0f 84 9a 00 00 00 je 13efd8 <rtems_rfs_file_close+0x188><== NOT EXECUTED
13ef3e: 8b b8 88 00 00 00 mov 0x88(%eax),%edi <== 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);
13ef44: 89 4a 3c mov %ecx,0x3c(%edx) <== NOT EXECUTED
13ef47: 89 7a 40 mov %edi,0x40(%edx) <== NOT EXECUTED
map->dirty = true;
13ef4a: c6 42 34 01 movb $0x1,0x34(%edx) <== NOT EXECUTED
13ef4e: 89 d0 mov %edx,%eax <== NOT EXECUTED
13ef50: 31 ff xor %edi,%edi <== 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);
13ef52: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ef55: 83 c0 34 add $0x34,%eax <== NOT EXECUTED
13ef58: 50 push %eax <== NOT EXECUTED
13ef59: 56 push %esi <== NOT EXECUTED
13ef5a: e8 89 e0 ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
if (rc > 0)
13ef5f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ef62: 85 c0 test %eax,%eax <== NOT EXECUTED
13ef64: 7e 06 jle 13ef6c <rtems_rfs_file_close+0x11c><== 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)
13ef66: 85 ff test %edi,%edi <== NOT EXECUTED
13ef68: 75 02 jne 13ef6c <rtems_rfs_file_close+0x11c><== NOT EXECUTED
13ef6a: 89 c7 mov %eax,%edi <== NOT EXECUTED
rrc = rc;
}
rc = rtems_rfs_inode_close (fs, &handle->shared->inode);
13ef6c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ef6f: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13ef72: 83 c0 0c add $0xc,%eax <== NOT EXECUTED
13ef75: 50 push %eax <== NOT EXECUTED
13ef76: 56 push %esi <== NOT EXECUTED
13ef77: e8 ac 1f 00 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
if (rc > 0)
13ef7c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ef7f: 85 c0 test %eax,%eax <== NOT EXECUTED
13ef81: 7e 06 jle 13ef89 <rtems_rfs_file_close+0x139><== 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)
13ef83: 85 ff test %edi,%edi <== NOT EXECUTED
13ef85: 75 02 jne 13ef89 <rtems_rfs_file_close+0x139><== NOT EXECUTED
13ef87: 89 c7 mov %eax,%edi <== NOT EXECUTED
13ef89: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ef8c: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
13ef8f: e8 a0 4a fd ff call 113a34 <_Chain_Extract> <== NOT EXECUTED
rrc = rc;
}
rtems_chain_extract (&handle->shared->link);
free (handle->shared);
13ef94: 59 pop %ecx <== NOT EXECUTED
13ef95: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
13ef98: e8 cb f8 fc ff call 10e868 <free> <== NOT EXECUTED
13ef9d: 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);
13efa0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13efa3: 8d 43 04 lea 0x4(%ebx),%eax <== NOT EXECUTED
13efa6: 50 push %eax <== NOT EXECUTED
13efa7: 56 push %esi <== NOT EXECUTED
13efa8: e8 33 e5 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13efad: c6 43 04 00 movb $0x0,0x4(%ebx) <== NOT EXECUTED
handle->bnum = 0;
13efb1: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
13efb8: 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);
13efbf: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
13efc2: e8 a1 f8 fc ff call 10e868 <free> <== NOT EXECUTED
return rrc;
}
13efc7: 89 f8 mov %edi,%eax <== NOT EXECUTED
13efc9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13efcc: 5b pop %ebx <== NOT EXECUTED
13efcd: 5e pop %esi <== NOT EXECUTED
13efce: 5f pop %edi <== NOT EXECUTED
13efcf: c9 leave <== NOT EXECUTED
13efd0: c3 ret <== NOT EXECUTED
13efd1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
handle->shared->inode.ino);
if (handle->shared->references > 0)
handle->shared->references--;
if (handle->shared->references == 0)
13efd4: 31 ff xor %edi,%edi <== NOT EXECUTED
13efd6: eb c8 jmp 13efa0 <rtems_rfs_file_close+0x150><== NOT EXECUTED
handle->shared->atime);
rtems_rfs_inode_set_mtime (&handle->shared->inode,
handle->shared->mtime);
rtems_rfs_inode_set_ctime (&handle->shared->inode,
handle->shared->ctime);
if (!rtems_rfs_block_size_equal (&handle->shared->size,
13efd8: 8b b8 88 00 00 00 mov 0x88(%eax),%edi <== NOT EXECUTED
13efde: 3b 78 40 cmp 0x40(%eax),%edi <== NOT EXECUTED
13efe1: 0f 85 5d ff ff ff jne 13ef44 <rtems_rfs_file_close+0xf4><== NOT EXECUTED
13efe7: e9 64 ff ff ff jmp 13ef50 <rtems_rfs_file_close+0x100><== NOT EXECUTED
handle->shared->references--;
if (handle->shared->references == 0)
{
if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))
rrc = rtems_rfs_inode_load (fs, &handle->shared->inode);
13efec: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13efef: 83 c0 0c add $0xc,%eax <== NOT EXECUTED
13eff2: 50 push %eax <== NOT EXECUTED
13eff3: 56 push %esi <== NOT EXECUTED
13eff4: e8 63 1f 00 00 call 140f5c <rtems_rfs_inode_load> <== NOT EXECUTED
13eff9: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rrc == 0)
13effb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13effe: 85 c0 test %eax,%eax <== NOT EXECUTED
13f000: 74 08 je 13f00a <rtems_rfs_file_close+0x1ba><== NOT EXECUTED
13f002: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13f005: e9 48 ff ff ff jmp 13ef52 <rtems_rfs_file_close+0x102><== NOT EXECUTED
13f00a: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13f00d: 8b 50 18 mov 0x18(%eax),%edx <== NOT EXECUTED
13f010: e9 6b fe ff ff jmp 13ee80 <rtems_rfs_file_close+0x30><== NOT EXECUTED
0013e70c <rtems_rfs_file_get_shared>:
}
rtems_rfs_file_shared*
rtems_rfs_file_get_shared (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
13e70c: 55 push %ebp <== NOT EXECUTED
13e70d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13e70f: 53 push %ebx <== NOT EXECUTED
13e710: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13e713: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
13e716: 8b 51 70 mov 0x70(%ecx),%edx <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
13e719: 83 c1 74 add $0x74,%ecx <== NOT EXECUTED
rtems_chain_node* node;
node = rtems_chain_first (&fs->file_shares);
while (!rtems_chain_is_tail (&fs->file_shares, node))
13e71c: 39 ca cmp %ecx,%edx <== NOT EXECUTED
13e71e: 75 0a jne 13e72a <rtems_rfs_file_get_shared+0x1e><== NOT EXECUTED
13e720: eb 12 jmp 13e734 <rtems_rfs_file_get_shared+0x28><== NOT EXECUTED
13e722: 66 90 xchg %ax,%ax <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
13e724: 8b 12 mov (%edx),%edx <== NOT EXECUTED
13e726: 39 ca cmp %ecx,%edx <== NOT EXECUTED
13e728: 74 0a je 13e734 <rtems_rfs_file_get_shared+0x28><== NOT EXECUTED
{
rtems_rfs_file_shared* shared;
shared = (rtems_rfs_file_shared*) node;
13e72a: 89 d0 mov %edx,%eax <== NOT EXECUTED
if (shared->inode.ino == ino)
13e72c: 39 5a 14 cmp %ebx,0x14(%edx) <== NOT EXECUTED
13e72f: 75 f3 jne 13e724 <rtems_rfs_file_get_shared+0x18><== NOT EXECUTED
return shared;
node = rtems_chain_next (node);
}
return NULL;
}
13e731: 5b pop %ebx <== NOT EXECUTED
13e732: c9 leave <== NOT EXECUTED
13e733: c3 ret <== 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))
13e734: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (shared->inode.ino == ino)
return shared;
node = rtems_chain_next (node);
}
return NULL;
}
13e736: 5b pop %ebx <== NOT EXECUTED
13e737: c9 leave <== NOT EXECUTED
13e738: c3 ret <== NOT EXECUTED
0013ecc0 <rtems_rfs_file_io_end>:
int
rtems_rfs_file_io_end (rtems_rfs_file_handle* handle,
size_t size,
bool read)
{
13ecc0: 55 push %ebp <== NOT EXECUTED
13ecc1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ecc3: 57 push %edi <== NOT EXECUTED
13ecc4: 56 push %esi <== NOT EXECUTED
13ecc5: 53 push %ebx <== NOT EXECUTED
13ecc6: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
13ecc9: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13eccc: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
13eccf: 8a 45 10 mov 0x10(%ebp),%al <== NOT EXECUTED
13ecd2: 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))
13ecd5: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
13ecd8: 85 d2 test %edx,%edx <== NOT EXECUTED
13ecda: 74 60 je 13ed3c <rtems_rfs_file_io_end+0x7c><== NOT EXECUTED
{
if (!read)
13ecdc: 84 c0 test %al,%al <== NOT EXECUTED
13ecde: 75 04 jne 13ece4 <rtems_rfs_file_io_end+0x24><== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
13ece0: c6 43 04 01 movb $0x1,0x4(%ebx) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
13ece4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ece7: 8d 43 04 lea 0x4(%ebx),%eax <== NOT EXECUTED
13ecea: 50 push %eax <== NOT EXECUTED
13eceb: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13ecee: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13ecf4: e8 e7 e7 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
13ecf9: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
13ecfb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ecfe: 85 c0 test %eax,%eax <== NOT EXECUTED
13ed00: 7e 3c jle 13ed3e <rtems_rfs_file_io_end+0x7e><== NOT EXECUTED
{
printf (
13ed02: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ed05: 50 push %eax <== NOT EXECUTED
13ed06: e8 f1 d3 00 00 call 14c0fc <strerror> <== NOT EXECUTED
13ed0b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ed0e: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
13ed12: 0f 85 2c 01 00 00 jne 13ee44 <rtems_rfs_file_io_end+0x184><== NOT EXECUTED
13ed18: ba 43 cc 15 00 mov $0x15cc43,%edx <== NOT EXECUTED
13ed1d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ed20: 50 push %eax <== NOT EXECUTED
13ed21: 56 push %esi <== NOT EXECUTED
13ed22: 57 push %edi <== NOT EXECUTED
13ed23: 52 push %edx <== NOT EXECUTED
13ed24: 68 54 7a 16 00 push $0x167a54 <== NOT EXECUTED
13ed29: e8 86 b9 00 00 call 14a6b4 <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;
13ed2e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
handle->shared->size.offset =
rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));
}
return rc;
}
13ed31: 89 f0 mov %esi,%eax <== NOT EXECUTED
13ed33: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13ed36: 5b pop %ebx <== NOT EXECUTED
13ed37: 5e pop %esi <== NOT EXECUTED
13ed38: 5f pop %edi <== NOT EXECUTED
13ed39: c9 leave <== NOT EXECUTED
13ed3a: c3 ret <== NOT EXECUTED
13ed3b: 90 nop <== NOT EXECUTED
{
printf (
"rtems-rfs: file-io: end: error on release: %s size=%zu: %d: %s\n",
read ? "read" : "write", size, rc, strerror (rc));
return rc;
13ed3c: 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;
13ed3e: 03 7b 14 add 0x14(%ebx),%edi <== NOT EXECUTED
13ed41: 89 7b 14 mov %edi,0x14(%ebx) <== NOT EXECUTED
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
13ed44: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13ed47: 8b 90 98 00 00 00 mov 0x98(%eax),%edx <== NOT EXECUTED
13ed4d: 3b 7a 08 cmp 0x8(%edx),%edi <== NOT EXECUTED
13ed50: 72 09 jb 13ed5b <rtems_rfs_file_io_end+0x9b><== NOT EXECUTED
{
handle->bpos.bno++;
13ed52: ff 43 10 incl 0x10(%ebx) <== NOT EXECUTED
handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
13ed55: 2b 7a 08 sub 0x8(%edx),%edi <== NOT EXECUTED
13ed58: 89 7b 14 mov %edi,0x14(%ebx) <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
13ed5b: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
13ed5f: 74 4b je 13edac <rtems_rfs_file_io_end+0xec><== NOT EXECUTED
13ed61: 31 d2 xor %edx,%edx <== NOT EXECUTED
13ed63: 31 ff xor %edi,%edi <== NOT EXECUTED
handle->bpos.boff);
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
13ed65: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
13ed67: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13ed69: 83 f1 01 xor $0x1,%ecx <== NOT EXECUTED
13ed6c: 83 e1 01 and $0x1,%ecx <== NOT EXECUTED
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
13ed6f: a8 02 test $0x2,%al <== NOT EXECUTED
13ed71: 74 02 je 13ed75 <rtems_rfs_file_io_end+0xb5><== NOT EXECUTED
13ed73: 31 ff xor %edi,%edi <== NOT EXECUTED
length = rtems_rfs_file_update_length (handle) && length;
13ed75: a8 04 test $0x4,%al <== NOT EXECUTED
13ed77: 0f 84 83 00 00 00 je 13ee00 <rtems_rfs_file_io_end+0x140><== NOT EXECUTED
13ed7d: 31 d2 xor %edx,%edx <== 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)
13ed7f: 84 c9 test %cl,%cl <== NOT EXECUTED
13ed81: 75 4d jne 13edd0 <rtems_rfs_file_io_end+0x110><== NOT EXECUTED
13ed83: 89 f8 mov %edi,%eax <== NOT EXECUTED
13ed85: 84 c0 test %al,%al <== NOT EXECUTED
13ed87: 75 47 jne 13edd0 <rtems_rfs_file_io_end+0x110><== NOT EXECUTED
if (read && atime)
handle->shared->atime = now;
if (!read && mtime)
handle->shared->mtime = now;
}
if (length)
13ed89: 85 d2 test %edx,%edx <== NOT EXECUTED
13ed8b: 74 a4 je 13ed31 <rtems_rfs_file_io_end+0x71><== NOT EXECUTED
{
handle->shared->size.count =
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
13ed8d: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
if (!read && mtime)
handle->shared->mtime = now;
}
if (length)
{
handle->shared->size.count =
13ed90: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED
13ed93: 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 =
13ed99: 8b 50 40 mov 0x40(%eax),%edx <== NOT EXECUTED
13ed9c: 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;
}
13eda2: 89 f0 mov %esi,%eax <== NOT EXECUTED
13eda4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13eda7: 5b pop %ebx <== NOT EXECUTED
13eda8: 5e pop %esi <== NOT EXECUTED
13eda9: 5f pop %edi <== NOT EXECUTED
13edaa: c9 leave <== NOT EXECUTED
13edab: c3 ret <== NOT EXECUTED
length = false;
mtime = false;
if (!read &&
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
13edac: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
13edaf: 85 d2 test %edx,%edx <== NOT EXECUTED
13edb1: 74 6d je 13ee20 <rtems_rfs_file_io_end+0x160><== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
13edb3: 8b 48 3c mov 0x3c(%eax),%ecx <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
13edb6: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13edb8: 75 69 jne 13ee23 <rtems_rfs_file_io_end+0x163><== NOT EXECUTED
13edba: 8b 53 14 mov 0x14(%ebx),%edx <== 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;
13edbd: 89 50 40 mov %edx,0x40(%eax) <== NOT EXECUTED
map->dirty = true;
13edc0: c6 40 34 01 movb $0x1,0x34(%eax) <== NOT EXECUTED
13edc4: b2 01 mov $0x1,%dl <== NOT EXECUTED
13edc6: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
13edcb: eb 98 jmp 13ed65 <rtems_rfs_file_io_end+0xa5><== NOT EXECUTED
13edcd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
handle->bpos.bno, handle->bpos.boff,
atime ? 'A' : '-', mtime ? 'M' : '-', length ? 'L' : '-');
if (atime || mtime)
{
time_t now = time (NULL);
13edd0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13edd3: 6a 00 push $0x0 <== NOT EXECUTED
13edd5: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
13edd8: 88 4d e0 mov %cl,-0x20(%ebp) <== NOT EXECUTED
13eddb: e8 50 26 01 00 call 151430 <time> <== NOT EXECUTED
if (read && atime)
13ede0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ede3: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
13ede7: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
13edea: 8a 4d e0 mov -0x20(%ebp),%cl <== NOT EXECUTED
13eded: 74 19 je 13ee08 <rtems_rfs_file_io_end+0x148><== NOT EXECUTED
13edef: 84 c9 test %cl,%cl <== NOT EXECUTED
13edf1: 74 96 je 13ed89 <rtems_rfs_file_io_end+0xc9><== NOT EXECUTED
handle->shared->atime = now;
13edf3: 8b 4b 1c mov 0x1c(%ebx),%ecx <== NOT EXECUTED
13edf6: 89 81 8c 00 00 00 mov %eax,0x8c(%ecx) <== NOT EXECUTED
13edfc: eb 8b jmp 13ed89 <rtems_rfs_file_io_end+0xc9><== NOT EXECUTED
13edfe: 66 90 xchg %ax,%ax <== NOT EXECUTED
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
length = rtems_rfs_file_update_length (handle) && length;
13ee00: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
13ee03: e9 77 ff ff ff jmp 13ed7f <rtems_rfs_file_io_end+0xbf><== NOT EXECUTED
if (atime || mtime)
{
time_t now = time (NULL);
if (read && atime)
handle->shared->atime = now;
if (!read && mtime)
13ee08: 89 f9 mov %edi,%ecx <== NOT EXECUTED
13ee0a: 84 c9 test %cl,%cl <== NOT EXECUTED
13ee0c: 0f 84 77 ff ff ff je 13ed89 <rtems_rfs_file_io_end+0xc9><== NOT EXECUTED
handle->shared->mtime = now;
13ee12: 8b 4b 1c mov 0x1c(%ebx),%ecx <== NOT EXECUTED
13ee15: 89 81 90 00 00 00 mov %eax,0x90(%ecx) <== NOT EXECUTED
13ee1b: e9 69 ff ff ff jmp 13ed89 <rtems_rfs_file_io_end+0xc9><== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
13ee20: 8b 48 3c mov 0x3c(%eax),%ecx <== NOT EXECUTED
13ee23: 39 ca cmp %ecx,%edx <== NOT EXECUTED
13ee25: 73 93 jae 13edba <rtems_rfs_file_io_end+0xfa><== NOT EXECUTED
13ee27: 49 dec %ecx <== NOT EXECUTED
13ee28: 39 ca cmp %ecx,%edx <== NOT EXECUTED
13ee2a: 0f 85 31 ff ff ff jne 13ed61 <rtems_rfs_file_io_end+0xa1><== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
13ee30: 8b 53 14 mov 0x14(%ebx),%edx <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
13ee33: 3b 50 40 cmp 0x40(%eax),%edx <== NOT EXECUTED
13ee36: 0f 86 25 ff ff ff jbe 13ed61 <rtems_rfs_file_io_end+0xa1><== NOT EXECUTED
13ee3c: e9 7c ff ff ff jmp 13edbd <rtems_rfs_file_io_end+0xfd><== NOT EXECUTED
13ee41: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
rtems_rfs_file_buffer (handle));
if (rc > 0)
{
printf (
13ee44: ba ce cb 15 00 mov $0x15cbce,%edx <== NOT EXECUTED
13ee49: e9 cf fe ff ff jmp 13ed1d <rtems_rfs_file_io_end+0x5d><== NOT EXECUTED
0013e880 <rtems_rfs_file_io_release>:
return rc;
}
int
rtems_rfs_file_io_release (rtems_rfs_file_handle* handle)
{
13e880: 55 push %ebp <== NOT EXECUTED
13e881: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13e883: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13e886: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
13e889: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
13e88c: 85 d2 test %edx,%edx <== NOT EXECUTED
13e88e: 74 1c je 13e8ac <rtems_rfs_file_io_release+0x2c><== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
13e890: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13e893: 8d 50 04 lea 0x4(%eax),%edx <== NOT EXECUTED
13e896: 52 push %edx <== NOT EXECUTED
13e897: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
13e89a: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13e8a0: e8 3b ec ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
13e8a5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
return rc;
}
13e8a8: c9 leave <== NOT EXECUTED
13e8a9: c3 ret <== NOT EXECUTED
13e8aa: 66 90 xchg %ax,%ax <== NOT EXECUTED
int
rtems_rfs_file_io_release (rtems_rfs_file_handle* handle)
{
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
13e8ac: 31 c0 xor %eax,%eax <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
rtems_rfs_file_buffer (handle));
return rc;
}
13e8ae: c9 leave <== NOT EXECUTED
13e8af: c3 ret <== NOT EXECUTED
0013e73c <rtems_rfs_file_io_start>:
int
rtems_rfs_file_io_start (rtems_rfs_file_handle* handle,
size_t* available,
bool read)
{
13e73c: 55 push %ebp <== NOT EXECUTED
13e73d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13e73f: 57 push %edi <== NOT EXECUTED
13e740: 56 push %esi <== NOT EXECUTED
13e741: 53 push %ebx <== NOT EXECUTED
13e742: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
13e745: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13e748: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
13e74b: 8a 55 10 mov 0x10(%ebp),%dl <== 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))
13e74e: 8b 4b 0c mov 0xc(%ebx),%ecx <== NOT EXECUTED
13e751: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13e753: 74 4b je 13e7a0 <rtems_rfs_file_io_start+0x64><== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
13e755: 84 d2 test %dl,%dl <== NOT EXECUTED
13e757: 75 1b jne 13e774 <rtems_rfs_file_io_start+0x38><== NOT EXECUTED
13e759: 8b 43 1c mov 0x1c(%ebx),%eax <== 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));
13e75c: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
13e762: 8b 50 08 mov 0x8(%eax),%edx <== NOT EXECUTED
*available = size - rtems_rfs_file_block_offset (handle);
13e765: 2b 53 14 sub 0x14(%ebx),%edx <== NOT EXECUTED
13e768: 89 16 mov %edx,(%esi) <== NOT EXECUTED
13e76a: 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;
}
13e76c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13e76f: 5b pop %ebx <== NOT EXECUTED
13e770: 5e pop %esi <== NOT EXECUTED
13e771: 5f pop %edi <== NOT EXECUTED
13e772: c9 leave <== NOT EXECUTED
13e773: c3 ret <== NOT EXECUTED
if (rc > 0)
return rc;
}
if (read
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
13e774: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13e777: 8b 50 44 mov 0x44(%eax),%edx <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
13e77a: 85 d2 test %edx,%edx <== NOT EXECUTED
13e77c: 74 12 je 13e790 <rtems_rfs_file_io_start+0x54><== NOT EXECUTED
13e77e: 8b 48 3c mov 0x3c(%eax),%ecx <== NOT EXECUTED
13e781: 49 dec %ecx <== NOT EXECUTED
13e782: 39 ca cmp %ecx,%edx <== NOT EXECUTED
13e784: 75 d6 jne 13e75c <rtems_rfs_file_io_start+0x20><== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
&& rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle)))
13e786: 8b 50 40 mov 0x40(%eax),%edx <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
13e789: 85 d2 test %edx,%edx <== NOT EXECUTED
13e78b: 75 d8 jne 13e765 <rtems_rfs_file_io_start+0x29><== NOT EXECUTED
13e78d: eb cd jmp 13e75c <rtems_rfs_file_io_start+0x20><== NOT EXECUTED
13e78f: 90 nop <== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
13e790: 8b 48 3c mov 0x3c(%eax),%ecx <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
13e793: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13e795: 75 ea jne 13e781 <rtems_rfs_file_io_start+0x45><== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
&& rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle)))
13e797: 8b 50 40 mov 0x40(%eax),%edx <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
13e79a: 85 d2 test %edx,%edx <== NOT EXECUTED
13e79c: 75 c7 jne 13e765 <rtems_rfs_file_io_start+0x29><== NOT EXECUTED
13e79e: eb bc jmp 13e75c <rtems_rfs_file_io_start+0x20><== NOT EXECUTED
int rc;
request_read = read;
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
rtems_rfs_file_map (handle),
13e7a0: 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),
13e7a3: 8d 7d e4 lea -0x1c(%ebp),%edi <== NOT EXECUTED
13e7a6: 57 push %edi <== NOT EXECUTED
13e7a7: 8d 4b 10 lea 0x10(%ebx),%ecx <== NOT EXECUTED
13e7aa: 51 push %ecx <== NOT EXECUTED
13e7ab: 8d 48 34 lea 0x34(%eax),%ecx <== NOT EXECUTED
13e7ae: 51 push %ecx <== NOT EXECUTED
13e7af: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13e7b5: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED
13e7b8: e8 13 df ff ff call 13c6d0 <rtems_rfs_block_map_find><== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
13e7bd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e7c0: 85 c0 test %eax,%eax <== NOT EXECUTED
13e7c2: 8a 55 d4 mov -0x2c(%ebp),%dl <== NOT EXECUTED
13e7c5: 7e 15 jle 13e7dc <rtems_rfs_file_io_start+0xa0><== NOT EXECUTED
{
/*
* Has the read reached the EOF ?
*/
if (read && (rc == ENXIO))
13e7c7: 84 d2 test %dl,%dl <== NOT EXECUTED
13e7c9: 74 49 je 13e814 <rtems_rfs_file_io_start+0xd8><== NOT EXECUTED
13e7cb: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13e7ce: 75 9c jne 13e76c <rtems_rfs_file_io_start+0x30><== NOT EXECUTED
{
*available = 0;
13e7d0: c7 06 00 00 00 00 movl $0x0,(%esi) <== NOT EXECUTED
13e7d6: 30 c0 xor %al,%al <== NOT EXECUTED
return 0;
13e7d8: eb 92 jmp 13e76c <rtems_rfs_file_io_start+0x30><== NOT EXECUTED
13e7da: 66 90 xchg %ax,%ax <== 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 &&
13e7dc: 84 d2 test %dl,%dl <== NOT EXECUTED
13e7de: 74 70 je 13e850 <rtems_rfs_file_io_start+0x114><== NOT EXECUTED
13e7e0: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13e7e3: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
13e7e9: b9 01 00 00 00 mov $0x1,%ecx <== 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),
13e7ee: 51 push %ecx <== NOT EXECUTED
13e7ef: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13e7f2: 8d 4b 04 lea 0x4(%ebx),%ecx <== NOT EXECUTED
13e7f5: 51 push %ecx <== NOT EXECUTED
13e7f6: 50 push %eax <== NOT EXECUTED
13e7f7: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED
13e7fa: e8 e5 ed ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
rtems_rfs_file_buffer (handle),
block, request_read);
if (rc > 0)
13e7ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e802: 85 c0 test %eax,%eax <== NOT EXECUTED
13e804: 8a 55 d4 mov -0x2c(%ebp),%dl <== NOT EXECUTED
13e807: 0f 8f 5f ff ff ff jg 13e76c <rtems_rfs_file_io_start+0x30><== NOT EXECUTED
13e80d: e9 43 ff ff ff jmp 13e755 <rtems_rfs_file_io_start+0x19><== NOT EXECUTED
13e812: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
*available = 0;
return 0;
}
if (rc != ENXIO)
13e814: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13e817: 0f 85 4f ff ff ff jne 13e76c <rtems_rfs_file_io_start+0x30><== 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),
13e81d: 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),
13e820: 57 push %edi <== NOT EXECUTED
13e821: 6a 01 push $0x1 <== NOT EXECUTED
13e823: 8d 48 34 lea 0x34(%eax),%ecx <== NOT EXECUTED
13e826: 51 push %ecx <== NOT EXECUTED
13e827: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13e82d: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED
13e830: e8 8f e4 ff ff call 13ccc4 <rtems_rfs_block_map_grow><== NOT EXECUTED
rtems_rfs_file_map (handle),
1, &block);
if (rc > 0)
13e835: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e838: 85 c0 test %eax,%eax <== NOT EXECUTED
13e83a: 8a 55 d4 mov -0x2c(%ebp),%dl <== NOT EXECUTED
13e83d: 0f 8f 29 ff ff ff jg 13e76c <rtems_rfs_file_io_start+0x30><== NOT EXECUTED
13e843: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13e846: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
13e84c: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
13e84e: eb 9e jmp 13e7ee <rtems_rfs_file_io_start+0xb2><== 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 &&
(rtems_rfs_file_block_offset (handle) ||
13e850: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
13e853: 85 c0 test %eax,%eax <== NOT EXECUTED
13e855: 74 10 je 13e867 <rtems_rfs_file_io_start+0x12b><== NOT EXECUTED
13e857: 8b 4b 1c mov 0x1c(%ebx),%ecx <== NOT EXECUTED
(*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
13e85a: 8b 81 98 00 00 00 mov 0x98(%ecx),%eax <== NOT EXECUTED
13e860: b9 01 00 00 00 mov $0x1,%ecx <== NOT EXECUTED
13e865: eb 87 jmp 13e7ee <rtems_rfs_file_io_start+0xb2><== NOT EXECUTED
13e867: 8b 4b 1c mov 0x1c(%ebx),%ecx <== NOT EXECUTED
13e86a: 8b 81 98 00 00 00 mov 0x98(%ecx),%eax <== NOT EXECUTED
13e870: 8b 3e mov (%esi),%edi <== NOT EXECUTED
13e872: 3b 78 08 cmp 0x8(%eax),%edi <== NOT EXECUTED
13e875: 72 e3 jb 13e85a <rtems_rfs_file_io_start+0x11e><== NOT EXECUTED
13e877: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
13e879: e9 70 ff ff ff jmp 13e7ee <rtems_rfs_file_io_start+0xb2><== NOT EXECUTED
0013f018 <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)
{
13f018: 55 push %ebp <== NOT EXECUTED
13f019: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13f01b: 57 push %edi <== NOT EXECUTED
13f01c: 56 push %esi <== NOT EXECUTED
13f01d: 53 push %ebx <== NOT EXECUTED
13f01e: 83 ec 38 sub $0x38,%esp <== NOT EXECUTED
13f021: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
printf ("rtems-rfs: file-open: ino=%" PRId32 "\n", ino);
*file = NULL;
13f024: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13f027: 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));
13f02d: 6a 20 push $0x20 <== NOT EXECUTED
13f02f: e8 d4 fd fc ff call 10ee08 <malloc> <== NOT EXECUTED
13f034: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (!handle)
13f036: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f039: 85 c0 test %eax,%eax <== NOT EXECUTED
13f03b: 74 47 je 13f084 <rtems_rfs_file_open+0x6c><== NOT EXECUTED
return ENOMEM;
memset (handle, 0, sizeof (rtems_rfs_file_handle));
13f03d: b9 20 00 00 00 mov $0x20,%ecx <== NOT EXECUTED
13f042: 31 c0 xor %eax,%eax <== NOT EXECUTED
13f044: 89 d7 mov %edx,%edi <== NOT EXECUTED
13f046: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
13f048: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13f04b: 8b 41 70 mov 0x70(%ecx),%eax <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
13f04e: 83 c1 74 add $0x74,%ecx <== 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))
13f051: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13f053: 75 09 jne 13f05e <rtems_rfs_file_open+0x46><== NOT EXECUTED
13f055: eb 3d jmp 13f094 <rtems_rfs_file_open+0x7c><== NOT EXECUTED
13f057: 90 nop <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
13f058: 8b 00 mov (%eax),%eax <== NOT EXECUTED
13f05a: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
13f05c: 74 36 je 13f094 <rtems_rfs_file_open+0x7c><== NOT EXECUTED
{
rtems_rfs_file_shared* shared;
shared = (rtems_rfs_file_shared*) node;
13f05e: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (shared->inode.ino == ino)
13f060: 3b 70 14 cmp 0x14(%eax),%esi <== NOT EXECUTED
13f063: 75 f3 jne 13f058 <rtems_rfs_file_open+0x40><== NOT EXECUTED
* the reference count and return the pointer to the data.
*/
shared = rtems_rfs_file_get_shared (fs, ino);
if (shared)
{
shared->references++;
13f065: ff 40 08 incl 0x8(%eax) <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
printf ("rtems-rfs: file-open: ino=%" PRId32 " share created\n", ino);
}
handle->flags = flags;
13f068: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13f06b: 89 02 mov %eax,(%edx) <== NOT EXECUTED
handle->shared = shared;
13f06d: 89 5a 1c mov %ebx,0x1c(%edx) <== NOT EXECUTED
*file = handle;
13f070: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
13f073: 89 11 mov %edx,(%ecx) <== NOT EXECUTED
13f075: 31 f6 xor %esi,%esi <== NOT EXECUTED
return 0;
}
13f077: 89 f0 mov %esi,%eax <== NOT EXECUTED
13f079: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13f07c: 5b pop %ebx <== NOT EXECUTED
13f07d: 5e pop %esi <== NOT EXECUTED
13f07e: 5f pop %edi <== NOT EXECUTED
13f07f: c9 leave <== NOT EXECUTED
13f080: c3 ret <== NOT EXECUTED
13f081: 8d 76 00 lea 0x0(%esi),%esi <== 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));
if (!handle)
13f084: be 0c 00 00 00 mov $0xc,%esi <== NOT EXECUTED
handle->shared = shared;
*file = handle;
return 0;
}
13f089: 89 f0 mov %esi,%eax <== NOT EXECUTED
13f08b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13f08e: 5b pop %ebx <== NOT EXECUTED
13f08f: 5e pop %esi <== NOT EXECUTED
13f090: 5f pop %edi <== NOT EXECUTED
13f091: c9 leave <== NOT EXECUTED
13f092: c3 ret <== NOT EXECUTED
13f093: 90 nop <== 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));
13f094: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13f097: 68 9c 00 00 00 push $0x9c <== NOT EXECUTED
13f09c: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
13f09f: e8 64 fd fc ff call 10ee08 <malloc> <== NOT EXECUTED
13f0a4: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (!shared)
13f0a6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f0a9: 85 c0 test %eax,%eax <== NOT EXECUTED
13f0ab: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
13f0ae: 74 68 je 13f118 <rtems_rfs_file_open+0x100><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
return ENOMEM;
}
memset (shared, 0, sizeof (rtems_rfs_file_shared));
13f0b0: b9 9c 00 00 00 mov $0x9c,%ecx <== NOT EXECUTED
13f0b5: 31 c0 xor %eax,%eax <== NOT EXECUTED
13f0b7: 89 df mov %ebx,%edi <== NOT EXECUTED
13f0b9: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &shared->inode, true);
13f0bb: 8d 7b 0c lea 0xc(%ebx),%edi <== NOT EXECUTED
13f0be: 6a 01 push $0x1 <== NOT EXECUTED
13f0c0: 57 push %edi <== NOT EXECUTED
13f0c1: 56 push %esi <== NOT EXECUTED
13f0c2: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13f0c5: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
13f0c8: e8 df 1e 00 00 call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
13f0cd: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13f0cf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f0d2: 85 c0 test %eax,%eax <== NOT EXECUTED
13f0d4: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
13f0d7: 7e 78 jle 13f151 <rtems_rfs_file_open+0x139><== 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);
13f0d9: 83 ec 0c sub $0xc,%esp <== 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);
free (shared);
13f0dc: 53 push %ebx <== NOT EXECUTED
13f0dd: e8 86 f7 fc ff call 10e868 <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);
13f0e2: 5f pop %edi <== NOT EXECUTED
13f0e3: 58 pop %eax <== NOT EXECUTED
13f0e4: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
13f0e7: 8d 42 04 lea 0x4(%edx),%eax <== NOT EXECUTED
13f0ea: 50 push %eax <== NOT EXECUTED
13f0eb: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13f0ee: e8 ed e3 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13f0f3: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
13f0f6: c6 42 04 00 movb $0x0,0x4(%edx) <== NOT EXECUTED
handle->bnum = 0;
13f0fa: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx) <== NOT EXECUTED
handle->buffer = NULL;
13f101: c7 42 0c 00 00 00 00 movl $0x0,0xc(%edx) <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
13f108: 89 14 24 mov %edx,(%esp) <== NOT EXECUTED
13f10b: e8 58 f7 fc ff call 10e868 <free> <== NOT EXECUTED
return rc;
13f110: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f113: e9 5f ff ff ff jmp 13f077 <rtems_rfs_file_open+0x5f><== 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);
13f118: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13f11b: 8d 42 04 lea 0x4(%edx),%eax <== NOT EXECUTED
13f11e: 50 push %eax <== NOT EXECUTED
13f11f: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13f122: e8 b9 e3 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13f127: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
13f12a: c6 42 04 00 movb $0x0,0x4(%edx) <== NOT EXECUTED
handle->bnum = 0;
13f12e: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx) <== NOT EXECUTED
handle->buffer = NULL;
13f135: c7 42 0c 00 00 00 00 movl $0x0,0xc(%edx) <== NOT EXECUTED
*/
shared = malloc (sizeof (rtems_rfs_file_shared));
if (!shared)
{
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
13f13c: 89 14 24 mov %edx,(%esp) <== NOT EXECUTED
13f13f: e8 24 f7 fc ff call 10e868 <free> <== NOT EXECUTED
13f144: be 0c 00 00 00 mov $0xc,%esi <== NOT EXECUTED
return ENOMEM;
13f149: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f14c: e9 26 ff ff ff jmp 13f077 <rtems_rfs_file_open+0x5f><== 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);
13f151: 51 push %ecx <== NOT EXECUTED
13f152: 8d 43 34 lea 0x34(%ebx),%eax <== NOT EXECUTED
13f155: 50 push %eax <== NOT EXECUTED
13f156: 57 push %edi <== NOT EXECUTED
13f157: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13f15a: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
13f15d: e8 32 e0 ff ff call 13d194 <rtems_rfs_block_map_open><== NOT EXECUTED
13f162: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13f164: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f167: 85 c0 test %eax,%eax <== NOT EXECUTED
13f169: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
13f16c: 7e 12 jle 13f180 <rtems_rfs_file_open+0x168><== 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);
13f16e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13f171: 57 push %edi <== NOT EXECUTED
13f172: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13f175: e8 ae 1d 00 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
free (shared);
13f17a: 5a pop %edx <== NOT EXECUTED
13f17b: e9 5c ff ff ff jmp 13f0dc <rtems_rfs_file_open+0xc4><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
return rc;
}
shared->references = 1;
13f180: 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);
13f187: 8b 73 18 mov 0x18(%ebx),%esi <== NOT EXECUTED
13f18a: 8d 46 0c lea 0xc(%esi),%eax <== NOT EXECUTED
13f18d: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
shared->size.count = rtems_rfs_inode_get_block_count (&shared->inode);
13f190: 0f b6 40 03 movzbl 0x3(%eax),%eax <== NOT EXECUTED
13f194: 0f b6 4e 0c movzbl 0xc(%esi),%ecx <== NOT EXECUTED
13f198: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13f19b: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f19d: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13f1a0: 0f b6 49 01 movzbl 0x1(%ecx),%ecx <== NOT EXECUTED
13f1a4: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13f1a7: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f1a9: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13f1ac: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
13f1b0: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13f1b3: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f1b5: 89 83 84 00 00 00 mov %eax,0x84(%ebx) <== NOT EXECUTED
shared->size.offset = rtems_rfs_inode_get_block_offset (&shared->inode);
13f1bb: 0f b6 4e 0a movzbl 0xa(%esi),%ecx <== NOT EXECUTED
13f1bf: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13f1c2: 0f b6 46 0b movzbl 0xb(%esi),%eax <== NOT EXECUTED
13f1c6: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f1c8: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
13f1cb: 89 83 88 00 00 00 mov %eax,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);
13f1d1: 8d 46 10 lea 0x10(%esi),%eax <== NOT EXECUTED
13f1d4: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
shared->atime = rtems_rfs_inode_get_atime (&shared->inode);
13f1d7: 0f b6 40 03 movzbl 0x3(%eax),%eax <== NOT EXECUTED
13f1db: 0f b6 4e 10 movzbl 0x10(%esi),%ecx <== NOT EXECUTED
13f1df: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13f1e2: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f1e4: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13f1e7: 0f b6 49 01 movzbl 0x1(%ecx),%ecx <== NOT EXECUTED
13f1eb: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13f1ee: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f1f0: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13f1f3: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
13f1f7: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13f1fa: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f1fc: 89 83 8c 00 00 00 mov %eax,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);
13f202: 8d 46 14 lea 0x14(%esi),%eax <== NOT EXECUTED
13f205: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
shared->mtime = rtems_rfs_inode_get_mtime (&shared->inode);
13f208: 0f b6 40 03 movzbl 0x3(%eax),%eax <== NOT EXECUTED
13f20c: 0f b6 4e 14 movzbl 0x14(%esi),%ecx <== NOT EXECUTED
13f210: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13f213: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f215: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13f218: 0f b6 49 01 movzbl 0x1(%ecx),%ecx <== NOT EXECUTED
13f21c: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13f21f: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f221: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
13f224: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
13f228: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13f22b: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f22d: 89 83 90 00 00 00 mov %eax,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);
13f233: 8d 46 18 lea 0x18(%esi),%eax <== NOT EXECUTED
13f236: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
shared->ctime = rtems_rfs_inode_get_ctime (&shared->inode);
13f239: 0f b6 40 03 movzbl 0x3(%eax),%eax <== NOT EXECUTED
13f23d: 0f b6 4e 18 movzbl 0x18(%esi),%ecx <== NOT EXECUTED
13f241: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13f244: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f246: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
13f249: 0f b6 4e 01 movzbl 0x1(%esi),%ecx <== NOT EXECUTED
13f24d: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13f250: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f252: 0f b6 4e 02 movzbl 0x2(%esi),%ecx <== NOT EXECUTED
13f256: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13f259: 09 c8 or %ecx,%eax <== NOT EXECUTED
13f25b: 89 83 94 00 00 00 mov %eax,0x94(%ebx) <== NOT EXECUTED
shared->fs = fs;
13f261: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13f264: 89 83 98 00 00 00 mov %eax,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 );
13f26a: 56 push %esi <== NOT EXECUTED
13f26b: 56 push %esi <== NOT EXECUTED
13f26c: 53 push %ebx <== NOT EXECUTED
13f26d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13f270: 83 c0 70 add $0x70,%eax <== NOT EXECUTED
13f273: 50 push %eax <== NOT EXECUTED
13f274: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
13f277: e8 94 47 fd ff call 113a10 <_Chain_Append> <== NOT EXECUTED
rtems_chain_append (&fs->file_shares, &shared->link);
rtems_rfs_inode_unload (fs, &shared->inode, false);
13f27c: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13f27f: 6a 00 push $0x0 <== NOT EXECUTED
13f281: 57 push %edi <== NOT EXECUTED
13f282: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13f285: e8 06 1c 00 00 call 140e90 <rtems_rfs_inode_unload><== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
13f28a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f28d: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
13f290: e9 d3 fd ff ff jmp 13f068 <rtems_rfs_file_open+0x50><== NOT EXECUTED
0013ebf4 <rtems_rfs_file_seek>:
int
rtems_rfs_file_seek (rtems_rfs_file_handle* handle,
rtems_rfs_pos pos,
rtems_rfs_pos* new_pos)
{
13ebf4: 55 push %ebp <== NOT EXECUTED
13ebf5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13ebf7: 57 push %edi <== NOT EXECUTED
13ebf8: 56 push %esi <== NOT EXECUTED
13ebf9: 53 push %ebx <== NOT EXECUTED
13ebfa: 83 ec 34 sub $0x34,%esp <== NOT EXECUTED
13ebfd: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13ec00: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
13ec03: 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),
13ec06: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13ec09: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
13ec0f: 52 push %edx <== NOT EXECUTED
13ec10: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13ec16: e8 f9 d9 ff ff call 13c614 <rtems_rfs_block_get_size><== NOT EXECUTED
13ec1b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ec1e: 39 d7 cmp %edx,%edi <== NOT EXECUTED
13ec20: 77 52 ja 13ec74 <rtems_rfs_file_seek+0x80><== NOT EXECUTED
13ec22: 73 4c jae 13ec70 <rtems_rfs_file_seek+0x7c><== NOT EXECUTED
handle->shared))
{
rtems_rfs_file_set_bpos (handle, pos);
13ec24: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
13ec27: 50 push %eax <== NOT EXECUTED
13ec28: 57 push %edi <== NOT EXECUTED
13ec29: 56 push %esi <== NOT EXECUTED
13ec2a: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
13ec2d: ff b2 98 00 00 00 pushl 0x98(%edx) <== NOT EXECUTED
13ec33: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
13ec36: e8 15 d9 ff ff call 13c550 <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))
13ec3b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ec3e: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13ec41: 85 c0 test %eax,%eax <== NOT EXECUTED
13ec43: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13ec46: 74 3c je 13ec84 <rtems_rfs_file_seek+0x90><== 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),
13ec48: 8b 53 1c mov 0x1c(%ebx),%edx <== 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),
13ec4b: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13ec4e: 51 push %ecx <== NOT EXECUTED
13ec4f: 50 push %eax <== NOT EXECUTED
13ec50: 8d 42 34 lea 0x34(%edx),%eax <== NOT EXECUTED
13ec53: 50 push %eax <== NOT EXECUTED
13ec54: ff b2 98 00 00 00 pushl 0x98(%edx) <== NOT EXECUTED
13ec5a: e8 71 da ff ff call 13c6d0 <rtems_rfs_block_map_find><== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
13ec5f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ec62: 85 c0 test %eax,%eax <== NOT EXECUTED
13ec64: 7e 32 jle 13ec98 <rtems_rfs_file_seek+0xa4><== NOT EXECUTED
return rc;
}
*new_pos = pos;
return 0;
}
13ec66: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13ec69: 5b pop %ebx <== NOT EXECUTED
13ec6a: 5e pop %esi <== NOT EXECUTED
13ec6b: 5f pop %edi <== NOT EXECUTED
13ec6c: c9 leave <== NOT EXECUTED
13ec6d: c3 ret <== NOT EXECUTED
13ec6e: 66 90 xchg %ax,%ax <== 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),
13ec70: 39 c6 cmp %eax,%esi <== NOT EXECUTED
13ec72: 72 b0 jb 13ec24 <rtems_rfs_file_seek+0x30><== 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);
13ec74: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ec77: 53 push %ebx <== NOT EXECUTED
13ec78: e8 03 fc ff ff call 13e880 <rtems_rfs_file_io_release><== NOT EXECUTED
if (rc > 0)
13ec7d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ec80: 85 c0 test %eax,%eax <== NOT EXECUTED
13ec82: 7f e2 jg 13ec66 <rtems_rfs_file_seek+0x72><== NOT EXECUTED
return rc;
}
*new_pos = pos;
13ec84: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13ec87: 89 30 mov %esi,(%eax) <== NOT EXECUTED
13ec89: 89 78 04 mov %edi,0x4(%eax) <== NOT EXECUTED
13ec8c: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13ec8e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13ec91: 5b pop %ebx <== NOT EXECUTED
13ec92: 5e pop %esi <== NOT EXECUTED
13ec93: 5f pop %edi <== NOT EXECUTED
13ec94: c9 leave <== NOT EXECUTED
13ec95: c3 ret <== NOT EXECUTED
13ec96: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
return rc;
if (rtems_rfs_buffer_bnum (&handle->buffer) != block)
13ec98: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
13ec9b: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED
13ec9e: 74 e4 je 13ec84 <rtems_rfs_file_seek+0x90><== NOT EXECUTED
{
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
13eca0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13eca3: 8d 43 04 lea 0x4(%ebx),%eax <== NOT EXECUTED
13eca6: 50 push %eax <== NOT EXECUTED
13eca7: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13ecaa: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13ecb0: e8 2b e8 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
13ecb5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ecb8: 85 c0 test %eax,%eax <== NOT EXECUTED
13ecba: 7f aa jg 13ec66 <rtems_rfs_file_seek+0x72><== NOT EXECUTED
13ecbc: eb c6 jmp 13ec84 <rtems_rfs_file_seek+0x90><== NOT EXECUTED
0013e8b0 <rtems_rfs_file_set_size>:
}
int
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,
rtems_rfs_pos new_size)
{
13e8b0: 55 push %ebp <== NOT EXECUTED
13e8b1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13e8b3: 57 push %edi <== NOT EXECUTED
13e8b4: 56 push %esi <== NOT EXECUTED
13e8b5: 53 push %ebx <== NOT EXECUTED
13e8b6: 83 ec 44 sub $0x44,%esp <== NOT EXECUTED
13e8b9: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13e8bc: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
13e8bf: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
13e8c2: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
rtems_rfs_block_map* map = rtems_rfs_file_map (handle);
13e8c5: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13e8c8: 8b 72 1c mov 0x1c(%edx),%esi <== NOT EXECUTED
13e8cb: 8d 86 84 00 00 00 lea 0x84(%esi),%eax <== NOT EXECUTED
13e8d1: 50 push %eax <== NOT EXECUTED
13e8d2: ff b6 98 00 00 00 pushl 0x98(%esi) <== NOT EXECUTED
13e8d8: e8 37 dd ff ff call 13c614 <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)
13e8dd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e8e0: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
13e8e3: 31 d7 xor %edx,%edi <== NOT EXECUTED
13e8e5: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
13e8e8: 31 c1 xor %eax,%ecx <== NOT EXECUTED
13e8ea: 09 cf or %ecx,%edi <== NOT EXECUTED
13e8ec: 0f 84 42 02 00 00 je 13eb34 <rtems_rfs_file_set_size+0x284><== 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);
13e8f2: 8d 4e 34 lea 0x34(%esi),%ecx <== NOT EXECUTED
13e8f5: 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)
13e8f8: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
13e8fb: 0b 5d d0 or -0x30(%ebp),%ebx <== NOT EXECUTED
13e8fe: 0f 84 3c 02 00 00 je 13eb40 <rtems_rfs_file_set_size+0x290><== NOT EXECUTED
if (rc > 0)
return rc;
}
else
{
if (size < new_size)
13e904: 39 55 d4 cmp %edx,-0x2c(%ebp) <== NOT EXECUTED
13e907: 0f 83 bb 00 00 00 jae 13e9c8 <rtems_rfs_file_set_size+0x118><== 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);
13e90d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13e910: 8b 7a 1c mov 0x1c(%edx),%edi <== NOT EXECUTED
13e913: 8b 8f 98 00 00 00 mov 0x98(%edi),%ecx <== NOT EXECUTED
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
rtems_rfs_block_map_count (map) -
(((new_size - 1) /
13e919: 8b 41 08 mov 0x8(%ecx),%eax <== NOT EXECUTED
13e91c: 31 d2 xor %edx,%edx <== NOT EXECUTED
13e91e: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
13e921: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
* Shrink
*/
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
13e924: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
13e927: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
13e92a: 83 c0 ff add $0xffffffff,%eax <== NOT EXECUTED
13e92d: 83 d2 ff adc $0xffffffff,%edx <== NOT EXECUTED
13e930: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
13e933: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
13e936: 52 push %edx <== NOT EXECUTED
13e937: 50 push %eax <== NOT EXECUTED
13e938: 89 4d b8 mov %ecx,-0x48(%ebp) <== NOT EXECUTED
13e93b: e8 f8 da 01 00 call 15c438 <__udivdi3> <== NOT EXECUTED
13e940: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13e943: 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)
13e945: 03 46 3c add 0x3c(%esi),%eax <== NOT EXECUTED
13e948: 8b 4d b8 mov -0x48(%ebp),%ecx <== NOT EXECUTED
13e94b: 0f 85 63 02 00 00 jne 13ebb4 <rtems_rfs_file_set_size+0x304><== NOT EXECUTED
blocks =
rtems_rfs_block_map_count (map) -
(((new_size - 1) /
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
offset =
13e951: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
13e954: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
13e957: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
13e95a: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
13e95d: e8 e6 db 01 00 call 15c548 <__umoddi3> <== NOT EXECUTED
13e962: 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;
13e965: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED
map->dirty = true;
13e968: 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),
13e96c: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13e96f: 8b 4b 10 mov 0x10(%ebx),%ecx <== NOT EXECUTED
13e972: 85 c9 test %ecx,%ecx <== NOT EXECUTED
13e974: 0f 85 06 02 00 00 jne 13eb80 <rtems_rfs_file_set_size+0x2d0><== NOT EXECUTED
13e97a: 8b 56 3c mov 0x3c(%esi),%edx <== NOT EXECUTED
13e97d: 39 ca cmp %ecx,%edx <== NOT EXECUTED
13e97f: 0f 86 06 02 00 00 jbe 13eb8b <rtems_rfs_file_set_size+0x2db><== NOT EXECUTED
13e985: 8d 5a ff lea -0x1(%edx),%ebx <== NOT EXECUTED
13e988: 39 d9 cmp %ebx,%ecx <== NOT EXECUTED
13e98a: 0f 84 56 02 00 00 je 13ebe6 <rtems_rfs_file_set_size+0x336><== NOT EXECUTED
rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
rtems_rfs_file_bpos (handle));
}
}
handle->shared->size.count = rtems_rfs_block_map_count (map);
13e990: 89 97 84 00 00 00 mov %edx,0x84(%edi) <== NOT EXECUTED
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
13e996: 8b 46 40 mov 0x40(%esi),%eax <== NOT EXECUTED
13e999: 89 87 88 00 00 00 mov %eax,0x88(%edi) <== NOT EXECUTED
if (rtems_rfs_file_update_mtime (handle))
13e99f: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13e9a2: f6 02 02 testb $0x2,(%edx) <== NOT EXECUTED
13e9a5: 0f 85 89 01 00 00 jne 13eb34 <rtems_rfs_file_set_size+0x284><== NOT EXECUTED
handle->shared->mtime = time (NULL);
13e9ab: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13e9ae: 6a 00 push $0x0 <== NOT EXECUTED
13e9b0: e8 7b 2a 01 00 call 151430 <time> <== NOT EXECUTED
13e9b5: 89 87 90 00 00 00 mov %eax,0x90(%edi) <== NOT EXECUTED
13e9bb: 31 c0 xor %eax,%eax <== NOT EXECUTED
13e9bd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return 0;
}
13e9c0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13e9c3: 5b pop %ebx <== NOT EXECUTED
13e9c4: 5e pop %esi <== NOT EXECUTED
13e9c5: 5f pop %edi <== NOT EXECUTED
13e9c6: c9 leave <== NOT EXECUTED
13e9c7: c3 ret <== NOT EXECUTED
if (rc > 0)
return rc;
}
else
{
if (size < new_size)
13e9c8: 0f 86 a2 01 00 00 jbe 13eb70 <rtems_rfs_file_set_size+0x2c0><== NOT EXECUTED
*/
rtems_rfs_pos count;
uint32_t length;
bool read_block;
count = new_size - size;
13e9ce: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
13e9d1: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
13e9d4: 29 c1 sub %eax,%ecx <== NOT EXECUTED
13e9d6: 19 d3 sbb %edx,%ebx <== NOT EXECUTED
13e9d8: 89 4d d0 mov %ecx,-0x30(%ebp) <== NOT EXECUTED
13e9db: 89 5d d4 mov %ebx,-0x2c(%ebp) <== NOT EXECUTED
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
13e9de: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13e9e1: 8b 7b 1c mov 0x1c(%ebx),%edi <== NOT EXECUTED
13e9e4: 8b 8f 98 00 00 00 mov 0x98(%edi),%ecx <== NOT EXECUTED
13e9ea: 8b 41 08 mov 0x8(%ecx),%eax <== NOT EXECUTED
13e9ed: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
read_block = false;
while (count)
13e9f0: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
13e9f3: 0b 55 d0 or -0x30(%ebp),%edx <== NOT EXECUTED
13e9f6: 0f 84 ad 01 00 00 je 13eba9 <rtems_rfs_file_set_size+0x2f9><== 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),
13e9fc: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13e9ff: 83 c3 04 add $0x4,%ebx <== NOT EXECUTED
13ea02: 89 5d c0 mov %ebx,-0x40(%ebp) <== NOT EXECUTED
13ea05: c6 45 bf 00 movb $0x0,-0x41(%ebp) <== NOT EXECUTED
13ea09: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13ea0c: e9 9c 00 00 00 jmp 13eaad <rtems_rfs_file_set_size+0x1fd><== NOT EXECUTED
13ea11: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
map, 1, &block);
if (rc > 0)
return rc;
}
if (count < (length - bpos.boff))
13ea14: 3b 55 d0 cmp -0x30(%ebp),%edx <== NOT EXECUTED
13ea17: 0f 86 01 01 00 00 jbe 13eb1e <rtems_rfs_file_set_size+0x26e><== NOT EXECUTED
{
length = count + bpos.boff;
13ea1d: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED
13ea20: 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;
13ea23: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED
map->dirty = true;
13ea26: c6 46 34 01 movb $0x1,0x34(%esi) <== NOT EXECUTED
13ea2a: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
13ea2f: c6 45 bf 01 movb $0x1,-0x41(%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),
13ea33: 50 push %eax <== NOT EXECUTED
13ea34: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13ea37: ff 75 c0 pushl -0x40(%ebp) <== NOT EXECUTED
13ea3a: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13ea3d: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13ea43: e8 9c eb ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
rtems_rfs_file_buffer (handle),
block, read_block);
if (rc > 0)
13ea48: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ea4b: 85 c0 test %eax,%eax <== NOT EXECUTED
13ea4d: 0f 8f 6d ff ff ff jg 13e9c0 <rtems_rfs_file_set_size+0x110><== NOT EXECUTED
return rc;
dst = rtems_rfs_buffer_data (&handle->buffer);
memset (dst + bpos.boff, 0, length - bpos.boff);
13ea53: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
13ea56: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
13ea59: 29 d1 sub %edx,%ecx <== NOT EXECUTED
13ea5b: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
13ea5e: 03 50 20 add 0x20(%eax),%edx <== NOT EXECUTED
13ea61: 31 c0 xor %eax,%eax <== NOT EXECUTED
13ea63: 89 d7 mov %edx,%edi <== NOT EXECUTED
13ea65: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
13ea67: c6 43 04 01 movb $0x1,0x4(%ebx) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
13ea6b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ea6e: ff 75 c0 pushl -0x40(%ebp) <== NOT EXECUTED
13ea71: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13ea74: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13ea7a: e8 61 ea ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
13ea7f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ea82: 85 c0 test %eax,%eax <== NOT EXECUTED
13ea84: 0f 8f 36 ff ff ff jg 13e9c0 <rtems_rfs_file_set_size+0x110><== NOT EXECUTED
return rc;
count -= length - bpos.boff;
13ea8a: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
13ea8d: 2b 45 dc sub -0x24(%ebp),%eax <== NOT EXECUTED
13ea90: 31 d2 xor %edx,%edx <== NOT EXECUTED
13ea92: 29 45 d0 sub %eax,-0x30(%ebp) <== NOT EXECUTED
13ea95: 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)
13ea98: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
13ea9b: 0b 45 d0 or -0x30(%ebp),%eax <== NOT EXECUTED
13ea9e: 0f 84 34 01 00 00 je 13ebd8 <rtems_rfs_file_set_size+0x328><== NOT EXECUTED
13eaa4: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13eaa7: 8b 88 98 00 00 00 mov 0x98(%eax),%ecx <== 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);
13eaad: 8b 56 3c mov 0x3c(%esi),%edx <== NOT EXECUTED
13eab0: 89 55 d8 mov %edx,-0x28(%ebp) <== NOT EXECUTED
13eab3: 8b 46 40 mov 0x40(%esi),%eax <== NOT EXECUTED
13eab6: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
13eab9: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
13eac0: 85 c0 test %eax,%eax <== NOT EXECUTED
13eac2: 74 04 je 13eac8 <rtems_rfs_file_set_size+0x218><== NOT EXECUTED
13eac4: 4a dec %edx <== NOT EXECUTED
13eac5: 89 55 d8 mov %edx,-0x28(%ebp) <== NOT EXECUTED
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
13eac8: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
13eacb: 50 push %eax <== NOT EXECUTED
13eacc: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
13eacf: 52 push %edx <== NOT EXECUTED
13ead0: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
13ead3: 51 push %ecx <== NOT EXECUTED
13ead4: e8 f7 db ff ff call 13c6d0 <rtems_rfs_block_map_find><== NOT EXECUTED
map, &bpos, &block);
if (rc > 0)
13ead9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13eadc: 85 c0 test %eax,%eax <== NOT EXECUTED
13eade: 7e 2b jle 13eb0b <rtems_rfs_file_set_size+0x25b><== NOT EXECUTED
{
/*
* Have we reached the EOF ?
*/
if (rc != ENXIO)
13eae0: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
13eae3: 0f 85 d7 fe ff ff jne 13e9c0 <rtems_rfs_file_set_size+0x110><== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),
13eae9: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
13eaec: 51 push %ecx <== NOT EXECUTED
13eaed: 6a 01 push $0x1 <== NOT EXECUTED
13eaef: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED
13eaf2: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13eaf5: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13eafb: e8 c4 e1 ff ff call 13ccc4 <rtems_rfs_block_map_grow><== NOT EXECUTED
map, 1, &block);
if (rc > 0)
13eb00: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13eb03: 85 c0 test %eax,%eax <== NOT EXECUTED
13eb05: 0f 8f b5 fe ff ff jg 13e9c0 <rtems_rfs_file_set_size+0x110><== NOT EXECUTED
return rc;
}
if (count < (length - bpos.boff))
13eb0b: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
13eb0e: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
13eb11: 29 c2 sub %eax,%edx <== NOT EXECUTED
13eb13: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
13eb16: 85 ff test %edi,%edi <== NOT EXECUTED
13eb18: 0f 84 f6 fe ff ff je 13ea14 <rtems_rfs_file_set_size+0x164><== 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;
13eb1e: c7 46 40 00 00 00 00 movl $0x0,0x40(%esi) <== NOT EXECUTED
map->dirty = true;
13eb25: c6 46 34 01 movb $0x1,0x34(%esi) <== NOT EXECUTED
13eb29: 0f b6 45 bf movzbl -0x41(%ebp),%eax <== NOT EXECUTED
13eb2d: e9 01 ff ff ff jmp 13ea33 <rtems_rfs_file_set_size+0x183><== NOT EXECUTED
13eb32: 66 90 xchg %ax,%ax <== NOT EXECUTED
handle->shared->size.count = rtems_rfs_block_map_count (map);
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
if (rtems_rfs_file_update_mtime (handle))
handle->shared->mtime = time (NULL);
13eb34: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
return 0;
}
13eb36: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13eb39: 5b pop %ebx <== NOT EXECUTED
13eb3a: 5e pop %esi <== NOT EXECUTED
13eb3b: 5f pop %edi <== NOT EXECUTED
13eb3c: c9 leave <== NOT EXECUTED
13eb3d: c3 ret <== NOT EXECUTED
13eb3e: 66 90 xchg %ax,%ax <== NOT EXECUTED
/*
* Short cut for the common truncate on open call.
*/
if (new_size == 0)
{
rc = rtems_rfs_block_map_free_all (rtems_rfs_file_fs (handle), map);
13eb40: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13eb43: 51 push %ecx <== NOT EXECUTED
13eb44: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13eb47: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
13eb4a: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
13eb50: e8 67 e0 ff ff call 13cbbc <rtems_rfs_block_map_free_all><== NOT EXECUTED
if (rc > 0)
13eb55: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13eb58: 85 c0 test %eax,%eax <== NOT EXECUTED
13eb5a: 0f 8f 60 fe ff ff jg 13e9c0 <rtems_rfs_file_set_size+0x110><== NOT EXECUTED
13eb60: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13eb63: 8b 79 1c mov 0x1c(%ecx),%edi <== NOT EXECUTED
13eb66: 8b 56 3c mov 0x3c(%esi),%edx <== NOT EXECUTED
13eb69: e9 22 fe ff ff jmp 13e990 <rtems_rfs_file_set_size+0xe0><== NOT EXECUTED
13eb6e: 66 90 xchg %ax,%ax <== NOT EXECUTED
return rc;
}
else
{
if (size < new_size)
13eb70: 39 45 d0 cmp %eax,-0x30(%ebp) <== NOT EXECUTED
13eb73: 0f 86 94 fd ff ff jbe 13e90d <rtems_rfs_file_set_size+0x5d><== NOT EXECUTED
13eb79: e9 50 fe ff ff jmp 13e9ce <rtems_rfs_file_set_size+0x11e><== NOT EXECUTED
13eb7e: 66 90 xchg %ax,%ax <== 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),
13eb80: 8b 56 3c mov 0x3c(%esi),%edx <== NOT EXECUTED
13eb83: 85 d2 test %edx,%edx <== NOT EXECUTED
13eb85: 0f 85 f2 fd ff ff jne 13e97d <rtems_rfs_file_set_size+0xcd><== NOT EXECUTED
rtems_rfs_block_map_size (map)))
rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
13eb8b: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
13eb8e: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
13eb91: 8b 46 40 mov 0x40(%esi),%eax <== NOT EXECUTED
13eb94: 89 43 14 mov %eax,0x14(%ebx) <== NOT EXECUTED
13eb97: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) <== NOT EXECUTED
13eb9e: 85 c0 test %eax,%eax <== NOT EXECUTED
13eba0: 74 07 je 13eba9 <rtems_rfs_file_set_size+0x2f9><== NOT EXECUTED
13eba2: 4a dec %edx <== NOT EXECUTED
13eba3: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13eba6: 89 50 10 mov %edx,0x10(%eax) <== NOT EXECUTED
13eba9: 8b 56 3c mov 0x3c(%esi),%edx <== NOT EXECUTED
13ebac: e9 df fd ff ff jmp 13e990 <rtems_rfs_file_set_size+0xe0><== NOT EXECUTED
13ebb1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
new_size % rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
if (blocks)
{
int rc;
rc = rtems_rfs_block_map_shrink (rtems_rfs_file_fs (handle),
13ebb4: 53 push %ebx <== NOT EXECUTED
13ebb5: 50 push %eax <== NOT EXECUTED
13ebb6: 83 c7 34 add $0x34,%edi <== NOT EXECUTED
13ebb9: 57 push %edi <== NOT EXECUTED
13ebba: 51 push %ecx <== NOT EXECUTED
13ebbb: e8 58 dd ff ff call 13c918 <rtems_rfs_block_map_shrink><== NOT EXECUTED
rtems_rfs_file_map (handle),
blocks);
if (rc > 0)
13ebc0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ebc3: 85 c0 test %eax,%eax <== NOT EXECUTED
13ebc5: 0f 8f f5 fd ff ff jg 13e9c0 <rtems_rfs_file_set_size+0x110><== NOT EXECUTED
13ebcb: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13ebce: 8b 7a 1c mov 0x1c(%edx),%edi <== NOT EXECUTED
13ebd1: e9 7b fd ff ff jmp 13e951 <rtems_rfs_file_set_size+0xa1><== NOT EXECUTED
13ebd6: 66 90 xchg %ax,%ax <== NOT EXECUTED
13ebd8: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
count = new_size - size;
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
read_block = false;
while (count)
13ebdb: 8b 7b 1c mov 0x1c(%ebx),%edi <== NOT EXECUTED
13ebde: 8b 56 3c mov 0x3c(%esi),%edx <== NOT EXECUTED
13ebe1: e9 aa fd ff ff jmp 13e990 <rtems_rfs_file_set_size+0xe0><== 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),
13ebe6: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
13ebe9: 3b 41 14 cmp 0x14(%ecx),%eax <== NOT EXECUTED
13ebec: 0f 83 9e fd ff ff jae 13e990 <rtems_rfs_file_set_size+0xe0><== NOT EXECUTED
13ebf2: eb 97 jmp 13eb8b <rtems_rfs_file_set_size+0x2db><== NOT EXECUTED
0013f8a0 <rtems_rfs_format>:
return rc;
}
int
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
{
13f8a0: 55 push %ebp <== NOT EXECUTED
13f8a1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13f8a3: 57 push %edi <== NOT EXECUTED
13f8a4: 56 push %esi <== NOT EXECUTED
13f8a5: 53 push %ebx <== NOT EXECUTED
13f8a6: 81 ec 0c 01 00 00 sub $0x10c,%esp <== NOT EXECUTED
rtems_rfs_file_system fs;
int group;
int rc;
if (config->verbose)
13f8ac: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13f8af: 80 78 15 00 cmpb $0x0,0x15(%eax) <== NOT EXECUTED
13f8b3: 0f 85 db 03 00 00 jne 13fc94 <rtems_rfs_format+0x3f4><== NOT EXECUTED
printf ("rtems-rfs: format: %s\n", name);
memset (&fs, 0, sizeof (rtems_rfs_file_system));
13f8b9: 8d 95 14 ff ff ff lea -0xec(%ebp),%edx <== NOT EXECUTED
13f8bf: 89 95 f4 fe ff ff mov %edx,-0x10c(%ebp) <== NOT EXECUTED
13f8c5: b9 80 00 00 00 mov $0x80,%ecx <== NOT EXECUTED
13f8ca: 31 c0 xor %eax,%eax <== NOT EXECUTED
13f8cc: 89 d7 mov %edx,%edi <== NOT EXECUTED
13f8ce: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
13f8d0: 8d 85 58 ff ff ff lea -0xa8(%ebp),%eax <== NOT EXECUTED
13f8d6: 89 85 54 ff ff ff mov %eax,-0xac(%ebp) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
13f8dc: 8d 85 54 ff ff ff lea -0xac(%ebp),%eax <== NOT EXECUTED
13f8e2: 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);
13f8e8: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax <== NOT EXECUTED
13f8ee: 89 85 64 ff ff ff mov %eax,-0x9c(%ebp) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
13f8f4: 8d 85 64 ff ff ff lea -0x9c(%ebp),%eax <== NOT EXECUTED
13f8fa: 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);
13f900: 8d 85 78 ff ff ff lea -0x88(%ebp),%eax <== NOT EXECUTED
13f906: 89 85 74 ff ff ff mov %eax,-0x8c(%ebp) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
13f90c: 8d 85 74 ff ff ff lea -0x8c(%ebp),%eax <== NOT EXECUTED
13f912: 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);
13f918: 8d 45 88 lea -0x78(%ebp),%eax <== NOT EXECUTED
13f91b: 89 45 84 mov %eax,-0x7c(%ebp) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
13f91e: 8d 45 84 lea -0x7c(%ebp),%eax <== NOT EXECUTED
13f921: 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;
13f924: c7 85 50 ff ff ff 05 movl $0x5,-0xb0(%ebp) <== NOT EXECUTED
13f92b: 00 00 00
fs.release_count = 0;
fs.release_modified_count = 0;
fs.flags = RTEMS_RFS_FS_NO_LOCAL_CACHE;
13f92e: c7 85 14 ff ff ff 02 movl $0x2,-0xec(%ebp) <== NOT EXECUTED
13f935: 00 00 00
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, &fs);
13f938: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13f93b: 52 push %edx <== NOT EXECUTED
13f93c: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13f93f: e8 44 db ff ff call 13d488 <rtems_rfs_buffer_open> <== NOT EXECUTED
13f944: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13f946: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f949: 85 c0 test %eax,%eax <== NOT EXECUTED
13f94b: 0f 8f 53 06 00 00 jg 13ffa4 <rtems_rfs_format+0x704><== NOT EXECUTED
}
/*
* Check the media.
*/
if (rtems_rfs_fs_media_block_size (&fs) == 0)
13f951: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
13f957: 8b 78 24 mov 0x24(%eax),%edi <== NOT EXECUTED
13f95a: 85 ff test %edi,%edi <== NOT EXECUTED
13f95c: 0f 84 12 03 00 00 je 13fc74 <rtems_rfs_format+0x3d4><== 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;
13f962: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13f965: 8b 1a mov (%edx),%ebx <== NOT EXECUTED
13f967: 89 9d 1c ff ff ff mov %ebx,-0xe4(%ebp) <== NOT EXECUTED
if (!fs->block_size)
13f96d: 85 db test %ebx,%ebx <== NOT EXECUTED
13f96f: 0f 84 73 03 00 00 je 13fce8 <rtems_rfs_format+0x448><== NOT EXECUTED
if (fs->block_size > (4 * 1024))
fs->block_size = (4 * 1024);
}
if ((fs->block_size % rtems_rfs_fs_media_block_size (fs)) != 0)
13f975: 8b 48 24 mov 0x24(%eax),%ecx <== NOT EXECUTED
13f978: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13f97a: 31 d2 xor %edx,%edx <== NOT EXECUTED
13f97c: f7 f1 div %ecx <== NOT EXECUTED
13f97e: 85 d2 test %edx,%edx <== NOT EXECUTED
13f980: 0f 85 06 04 00 00 jne 13fd8c <rtems_rfs_format+0x4ec><== NOT EXECUTED
printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
fs->block_size, rtems_rfs_fs_media_block_size (fs));
return false;
}
fs->group_blocks = config->group_blocks;
13f986: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13f989: 8b 42 04 mov 0x4(%edx),%eax <== NOT EXECUTED
13f98c: 89 85 38 ff ff ff mov %eax,-0xc8(%ebp) <== NOT EXECUTED
if (!fs->group_blocks)
13f992: 85 c0 test %eax,%eax <== NOT EXECUTED
13f994: 0f 84 12 03 00 00 je 13fcac <rtems_rfs_format+0x40c><== NOT EXECUTED
13f99a: 8b 9d 1c ff ff ff mov -0xe4(%ebp),%ebx <== NOT EXECUTED
* block.
*/
fs->group_blocks = rtems_rfs_bitmap_numof_bits (fs->block_size);
}
if (fs->group_blocks > rtems_rfs_bitmap_numof_bits (fs->block_size))
13f9a0: c1 e3 03 shl $0x3,%ebx <== NOT EXECUTED
13f9a3: 39 c3 cmp %eax,%ebx <== NOT EXECUTED
13f9a5: 0f 82 1f 03 00 00 jb 13fcca <rtems_rfs_format+0x42a><== NOT EXECUTED
{
printf ("group block count is higher than bits in block\n");
return false;
}
fs->blocks = rtems_rfs_fs_media_size (fs) / fs->block_size;
13f9ab: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13f9ae: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
13f9b4: 50 push %eax <== NOT EXECUTED
13f9b5: e8 ee f8 ff ff call 13f2a8 <rtems_rfs_fs_media_size><== NOT EXECUTED
13f9ba: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
13f9c0: 31 db xor %ebx,%ebx <== NOT EXECUTED
13f9c2: 53 push %ebx <== NOT EXECUTED
13f9c3: 51 push %ecx <== NOT EXECUTED
13f9c4: 52 push %edx <== NOT EXECUTED
13f9c5: 50 push %eax <== NOT EXECUTED
13f9c6: e8 6d ca 01 00 call 15c438 <__udivdi3> <== NOT EXECUTED
13f9cb: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13f9cd: 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));
13f9d3: 8b 9d 1c ff ff ff mov -0xe4(%ebp),%ebx <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
13f9d9: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13f9dc: 85 c0 test %eax,%eax <== NOT EXECUTED
13f9de: 0f 85 90 03 00 00 jne 13fd74 <rtems_rfs_format+0x4d4><== NOT EXECUTED
13f9e4: be 01 00 00 00 mov $0x1,%esi <== 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),
13f9e9: 89 b5 34 ff ff ff mov %esi,-0xcc(%ebp) <== NOT EXECUTED
rtems_rfs_bits_per_block (fs));
fs->group_inodes = config->group_inodes;
13f9ef: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13f9f2: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
13f9f5: 89 85 3c ff ff ff mov %eax,-0xc4(%ebp) <== NOT EXECUTED
if (!fs->group_inodes)
13f9fb: 85 c0 test %eax,%eax <== NOT EXECUTED
13f9fd: 75 39 jne 13fa38 <rtems_rfs_format+0x198><== 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)
13f9ff: 8b 52 0c mov 0xc(%edx),%edx <== NOT EXECUTED
13fa02: 85 d2 test %edx,%edx <== NOT EXECUTED
13fa04: 75 02 jne 13fa08 <rtems_rfs_format+0x168><== NOT EXECUTED
13fa06: b2 01 mov $0x1,%dl <== NOT EXECUTED
static int
rtems_rfs_inodes_from_percent (rtems_rfs_file_system* fs,
int percentage)
{
int blocks;
blocks = ((rtems_rfs_fs_blocks (fs) -
13fa08: 49 dec %ecx <== NOT EXECUTED
13fa09: 0f af ca imul %edx,%ecx <== NOT EXECUTED
13fa0c: ba 1f 85 eb 51 mov $0x51eb851f,%edx <== NOT EXECUTED
13fa11: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13fa13: f7 e2 mul %edx <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
13fa15: c1 ea 05 shr $0x5,%edx <== NOT EXECUTED
13fa18: 0f 85 76 05 00 00 jne 13ff94 <rtems_rfs_format+0x6f4><== NOT EXECUTED
13fa1e: b9 01 00 00 00 mov $0x1,%ecx <== 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);
13fa23: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13fa25: c1 e8 03 shr $0x3,%eax <== NOT EXECUTED
13fa28: ba 25 49 92 24 mov $0x24924925,%edx <== NOT EXECUTED
13fa2d: f7 e2 mul %edx <== NOT EXECUTED
13fa2f: 0f af d1 imul %ecx,%edx <== NOT EXECUTED
13fa32: 89 95 3c ff ff ff mov %edx,-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;
13fa38: 89 d9 mov %ebx,%ecx <== NOT EXECUTED
13fa3a: c1 e9 03 shr $0x3,%ecx <== NOT EXECUTED
13fa3d: be 25 49 92 24 mov $0x24924925,%esi <== NOT EXECUTED
13fa42: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13fa44: f7 e6 mul %esi <== NOT EXECUTED
13fa46: 89 d1 mov %edx,%ecx <== NOT EXECUTED
13fa48: 89 95 40 ff ff ff mov %edx,-0xc0(%ebp) <== NOT EXECUTED
fs->group_inodes =
rtems_rfs_rup_quotient (fs->group_inodes,
13fa4e: 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)
13fa54: 85 c0 test %eax,%eax <== NOT EXECUTED
13fa56: 0f 85 0c 03 00 00 jne 13fd68 <rtems_rfs_format+0x4c8><== NOT EXECUTED
13fa5c: b0 01 mov $0x1,%al <== 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,
13fa5e: 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 =
13fa61: 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))
13fa67: c1 e3 03 shl $0x3,%ebx <== NOT EXECUTED
13fa6a: 39 d9 cmp %ebx,%ecx <== NOT EXECUTED
13fa6c: 76 06 jbe 13fa74 <rtems_rfs_format+0x1d4><== NOT EXECUTED
fs->group_inodes = rtems_rfs_bitmap_numof_bits (fs->block_size);
13fa6e: 89 9d 3c ff ff ff mov %ebx,-0xc4(%ebp) <== NOT EXECUTED
fs->max_name_length = config->max_name_length;
13fa74: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13fa77: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
13fa7a: 89 85 2c ff ff ff mov %eax,-0xd4(%ebp) <== NOT EXECUTED
if (!fs->max_name_length)
13fa80: 85 c0 test %eax,%eax <== NOT EXECUTED
13fa82: 75 0a jne 13fa8e <rtems_rfs_format+0x1ee><== NOT EXECUTED
{
fs->max_name_length = 512;
13fa84: c7 85 2c ff ff ff 00 movl $0x200,-0xd4(%ebp) <== NOT EXECUTED
13fa8b: 02 00 00
* Check the configuration data.
*/
if (!rtems_rfs_check_config (&fs, config))
return -1;
if (config->verbose)
13fa8e: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
13fa91: 80 7a 15 00 cmpb $0x0,0x15(%edx) <== NOT EXECUTED
13fa95: 0f 84 27 01 00 00 je 13fbc2 <rtems_rfs_format+0x322><== NOT EXECUTED
{
printf ("rtems-rfs: format: media size = %" PRIu64 "\n",
13fa9b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13fa9e: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
13faa4: 50 push %eax <== NOT EXECUTED
13faa5: e8 fe f7 ff ff call 13f2a8 <rtems_rfs_fs_media_size><== NOT EXECUTED
13faaa: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13faad: 52 push %edx <== NOT EXECUTED
13faae: 50 push %eax <== NOT EXECUTED
13faaf: 68 88 7b 16 00 push $0x167b88 <== NOT EXECUTED
13fab4: e8 fb ab 00 00 call 14a6b4 <printf> <== NOT EXECUTED
rtems_rfs_fs_media_size (&fs));
printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",
13fab9: 5a pop %edx <== NOT EXECUTED
13faba: 59 pop %ecx <== NOT EXECUTED
13fabb: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
13fac1: ff 70 1c pushl 0x1c(%eax) <== NOT EXECUTED
13fac4: 68 b0 7b 16 00 push $0x167bb0 <== NOT EXECUTED
13fac9: e8 e6 ab 00 00 call 14a6b4 <printf> <== NOT EXECUTED
rtems_rfs_fs_media_blocks (&fs));
printf ("rtems-rfs: format: media block size = %" PRIu32 "\n",
13face: 5f pop %edi <== NOT EXECUTED
13facf: 58 pop %eax <== NOT EXECUTED
13fad0: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
13fad6: ff 70 24 pushl 0x24(%eax) <== NOT EXECUTED
13fad9: 68 d8 7b 16 00 push $0x167bd8 <== NOT EXECUTED
13fade: e8 d1 ab 00 00 call 14a6b4 <printf> <== NOT EXECUTED
rtems_rfs_fs_media_block_size (&fs));
printf ("rtems-rfs: format: size = %" PRIu64 "\n",
13fae3: 8d 95 14 ff ff ff lea -0xec(%ebp),%edx <== NOT EXECUTED
13fae9: 89 14 24 mov %edx,(%esp) <== NOT EXECUTED
13faec: e8 a7 f7 ff ff call 13f298 <rtems_rfs_fs_size> <== NOT EXECUTED
13faf1: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13faf4: 52 push %edx <== NOT EXECUTED
13faf5: 50 push %eax <== NOT EXECUTED
13faf6: 68 04 7c 16 00 push $0x167c04 <== NOT EXECUTED
13fafb: e8 b4 ab 00 00 call 14a6b4 <printf> <== NOT EXECUTED
rtems_rfs_fs_size (&fs));
printf ("rtems-rfs: format: blocks = %zu\n",
13fb00: 5b pop %ebx <== NOT EXECUTED
13fb01: 5e pop %esi <== NOT EXECUTED
13fb02: ff b5 18 ff ff ff pushl -0xe8(%ebp) <== NOT EXECUTED
13fb08: 68 24 7c 16 00 push $0x167c24 <== NOT EXECUTED
13fb0d: e8 a2 ab 00 00 call 14a6b4 <printf> <== NOT EXECUTED
rtems_rfs_fs_blocks (&fs));
printf ("rtems-rfs: format: block size = %zu\n",
13fb12: 5a pop %edx <== NOT EXECUTED
13fb13: 59 pop %ecx <== NOT EXECUTED
13fb14: ff b5 1c ff ff ff pushl -0xe4(%ebp) <== NOT EXECUTED
13fb1a: 68 48 7c 16 00 push $0x167c48 <== NOT EXECUTED
13fb1f: e8 90 ab 00 00 call 14a6b4 <printf> <== NOT EXECUTED
rtems_rfs_fs_block_size (&fs));
printf ("rtems-rfs: format: bits per block = %u\n",
13fb24: 5f pop %edi <== NOT EXECUTED
13fb25: 58 pop %eax <== NOT EXECUTED
13fb26: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
13fb2c: c1 e0 03 shl $0x3,%eax <== NOT EXECUTED
13fb2f: 50 push %eax <== NOT EXECUTED
13fb30: 68 70 7c 16 00 push $0x167c70 <== NOT EXECUTED
13fb35: e8 7a ab 00 00 call 14a6b4 <printf> <== NOT EXECUTED
rtems_rfs_bits_per_block (&fs));
printf ("rtems-rfs: format: inode size = %zu\n", RTEMS_RFS_INODE_SIZE);
13fb3a: 5b pop %ebx <== NOT EXECUTED
13fb3b: 5e pop %esi <== NOT EXECUTED
13fb3c: 6a 38 push $0x38 <== NOT EXECUTED
13fb3e: 68 98 7c 16 00 push $0x167c98 <== NOT EXECUTED
13fb43: e8 6c ab 00 00 call 14a6b4 <printf> <== NOT EXECUTED
printf ("rtems-rfs: format: inodes = %zu (%d.%d%%)\n",
13fb48: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
13fb4e: e8 d9 fc ff ff call 13f82c <rtems_rfs_inode_overhead><== NOT EXECUTED
13fb53: 89 c1 mov %eax,%ecx <== NOT EXECUTED
13fb55: bb 0a 00 00 00 mov $0xa,%ebx <== NOT EXECUTED
13fb5a: 99 cltd <== NOT EXECUTED
13fb5b: f7 fb idiv %ebx <== NOT EXECUTED
13fb5d: 52 push %edx <== NOT EXECUTED
13fb5e: ba 67 66 66 66 mov $0x66666667,%edx <== NOT EXECUTED
13fb63: 89 c8 mov %ecx,%eax <== NOT EXECUTED
13fb65: f7 ea imul %edx <== NOT EXECUTED
13fb67: c1 fa 02 sar $0x2,%edx <== NOT EXECUTED
13fb6a: c1 f9 1f sar $0x1f,%ecx <== NOT EXECUTED
13fb6d: 29 ca sub %ecx,%edx <== NOT EXECUTED
13fb6f: 52 push %edx <== NOT EXECUTED
13fb70: 8b 85 34 ff ff ff mov -0xcc(%ebp),%eax <== NOT EXECUTED
13fb76: 0f af 85 3c ff ff ff imul -0xc4(%ebp),%eax <== NOT EXECUTED
13fb7d: 50 push %eax <== NOT EXECUTED
13fb7e: 68 c0 7c 16 00 push $0x167cc0 <== NOT EXECUTED
13fb83: e8 2c ab 00 00 call 14a6b4 <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);
13fb88: 83 c4 18 add $0x18,%esp <== NOT EXECUTED
13fb8b: ff b5 34 ff ff ff pushl -0xcc(%ebp) <== NOT EXECUTED
13fb91: 68 ec 7c 16 00 push $0x167cec <== NOT EXECUTED
13fb96: e8 19 ab 00 00 call 14a6b4 <printf> <== NOT EXECUTED
printf ("rtems-rfs: format: group blocks = %zu\n", fs.group_blocks);
13fb9b: 5a pop %edx <== NOT EXECUTED
13fb9c: 59 pop %ecx <== NOT EXECUTED
13fb9d: ff b5 38 ff ff ff pushl -0xc8(%ebp) <== NOT EXECUTED
13fba3: 68 0c 7d 16 00 push $0x167d0c <== NOT EXECUTED
13fba8: e8 07 ab 00 00 call 14a6b4 <printf> <== NOT EXECUTED
printf ("rtems-rfs: format: group inodes = %zu\n", fs.group_inodes);
13fbad: 5f pop %edi <== NOT EXECUTED
13fbae: 58 pop %eax <== NOT EXECUTED
13fbaf: ff b5 3c ff ff ff pushl -0xc4(%ebp) <== NOT EXECUTED
13fbb5: 68 34 7d 16 00 push $0x167d34 <== NOT EXECUTED
13fbba: e8 f5 aa 00 00 call 14a6b4 <printf> <== NOT EXECUTED
13fbbf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rc = rtems_rfs_buffer_setblksize (&fs, rtems_rfs_fs_block_size (&fs));
13fbc2: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13fbc5: ff b5 1c ff ff ff pushl -0xe4(%ebp) <== NOT EXECUTED
13fbcb: 8d 95 14 ff ff ff lea -0xec(%ebp),%edx <== NOT EXECUTED
13fbd1: 52 push %edx <== NOT EXECUTED
13fbd2: e8 41 d8 ff ff call 13d418 <rtems_rfs_buffer_setblksize><== NOT EXECUTED
13fbd7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13fbd9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13fbdc: 85 c0 test %eax,%eax <== NOT EXECUTED
13fbde: 0f 8f 6e 08 00 00 jg 140452 <rtems_rfs_format+0xbb2><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
13fbe4: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13fbe8: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13fbef: 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);
13fbf6: 6a 00 push $0x0 <== NOT EXECUTED
13fbf8: 6a 00 push $0x0 <== NOT EXECUTED
13fbfa: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
13fbfd: 50 push %eax <== NOT EXECUTED
13fbfe: 8d 95 14 ff ff ff lea -0xec(%ebp),%edx <== NOT EXECUTED
13fc04: 52 push %edx <== NOT EXECUTED
13fc05: e8 da d9 ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
13fc0a: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13fc0c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13fc0f: 85 c0 test %eax,%eax <== NOT EXECUTED
13fc11: 0f 8e 91 01 00 00 jle 13fda8 <rtems_rfs_format+0x508><== 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);
13fc17: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13fc1a: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
13fc1d: 50 push %eax <== NOT EXECUTED
13fc1e: 8d 95 14 ff ff ff lea -0xec(%ebp),%edx <== NOT EXECUTED
13fc24: 52 push %edx <== NOT EXECUTED
13fc25: e8 b6 d8 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13fc2a: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13fc2e: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13fc35: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",
13fc3c: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
13fc3f: e8 b8 c4 00 00 call 14c0fc <strerror> <== NOT EXECUTED
13fc44: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13fc47: 50 push %eax <== NOT EXECUTED
13fc48: 53 push %ebx <== NOT EXECUTED
13fc49: 68 94 7d 16 00 push $0x167d94 <== NOT EXECUTED
13fc4e: e8 61 aa 00 00 call 14a6b4 <printf> <== NOT EXECUTED
13fc53: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return -1;
}
if (!rtems_rfs_write_superblock (&fs))
{
printf ("rtems-rfs: format: superblock write failed\n");
13fc56: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13fc59: 68 08 7e 16 00 push $0x167e08 <== NOT EXECUTED
13fc5e: e8 65 ac 00 00 call 14a8c8 <puts> <== NOT EXECUTED
13fc63: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
13fc68: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc, strerror (rc));
return -1;
}
return 0;
}
13fc6b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13fc6e: 5b pop %ebx <== NOT EXECUTED
13fc6f: 5e pop %esi <== NOT EXECUTED
13fc70: 5f pop %edi <== NOT EXECUTED
13fc71: c9 leave <== NOT EXECUTED
13fc72: c3 ret <== NOT EXECUTED
13fc73: 90 nop <== NOT EXECUTED
/*
* Check the media.
*/
if (rtems_rfs_fs_media_block_size (&fs) == 0)
{
printf ("rtems-rfs: media block is invalid: %" PRIu32 "\n",
13fc74: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13fc77: 6a 00 push $0x0 <== NOT EXECUTED
13fc79: 68 f0 7a 16 00 push $0x167af0 <== NOT EXECUTED
13fc7e: e8 31 aa 00 00 call 14a6b4 <printf> <== NOT EXECUTED
13fc83: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
rtems_rfs_fs_media_block_size (&fs));
return -1;
13fc88: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc, strerror (rc));
return -1;
}
return 0;
}
13fc8b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13fc8e: 5b pop %ebx <== NOT EXECUTED
13fc8f: 5e pop %esi <== NOT EXECUTED
13fc90: 5f pop %edi <== NOT EXECUTED
13fc91: c9 leave <== NOT EXECUTED
13fc92: c3 ret <== NOT EXECUTED
13fc93: 90 nop <== NOT EXECUTED
rtems_rfs_file_system fs;
int group;
int rc;
if (config->verbose)
printf ("rtems-rfs: format: %s\n", name);
13fc94: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13fc97: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13fc9a: 68 96 7a 16 00 push $0x167a96 <== NOT EXECUTED
13fc9f: e8 10 aa 00 00 call 14a6b4 <printf> <== NOT EXECUTED
13fca4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13fca7: e9 0d fc ff ff jmp 13f8b9 <rtems_rfs_format+0x19> <== 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);
13fcac: 8b 9d 1c ff ff ff mov -0xe4(%ebp),%ebx <== NOT EXECUTED
13fcb2: 8d 04 dd 00 00 00 00 lea 0x0(,%ebx,8),%eax <== NOT EXECUTED
13fcb9: 89 85 38 ff ff ff mov %eax,-0xc8(%ebp) <== NOT EXECUTED
}
if (fs->group_blocks > rtems_rfs_bitmap_numof_bits (fs->block_size))
13fcbf: c1 e3 03 shl $0x3,%ebx <== NOT EXECUTED
13fcc2: 39 c3 cmp %eax,%ebx <== NOT EXECUTED
13fcc4: 0f 83 e1 fc ff ff jae 13f9ab <rtems_rfs_format+0x10b><== NOT EXECUTED
{
printf ("group block count is higher than bits in block\n");
13fcca: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13fccd: 68 58 7b 16 00 push $0x167b58 <== NOT EXECUTED
13fcd2: e8 f1 ab 00 00 call 14a8c8 <puts> <== NOT EXECUTED
13fcd7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
13fcdc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc, strerror (rc));
return -1;
}
return 0;
}
13fcdf: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13fce2: 5b pop %ebx <== NOT EXECUTED
13fce3: 5e pop %esi <== NOT EXECUTED
13fce4: 5f pop %edi <== NOT EXECUTED
13fce5: c9 leave <== NOT EXECUTED
13fce6: c3 ret <== NOT EXECUTED
13fce7: 90 nop <== NOT EXECUTED
const rtems_rfs_format_config* config)
{
fs->block_size = config->block_size;
if (!fs->block_size)
{
uint64_t total_size = rtems_rfs_fs_media_size (fs);
13fce8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13fceb: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
13fcf1: 50 push %eax <== NOT EXECUTED
13fcf2: e8 b1 f5 ff ff call 13f2a8 <rtems_rfs_fs_media_size><== NOT EXECUTED
if (total_size >= GIGS (1))
13fcf7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13fcfa: 83 fa 00 cmp $0x0,%edx <== NOT EXECUTED
13fcfd: 77 07 ja 13fd06 <rtems_rfs_format+0x466><== NOT EXECUTED
13fcff: 3d ff ff 0f 00 cmp $0xfffff,%eax <== NOT EXECUTED
13fd04: 76 36 jbe 13fd3c <rtems_rfs_format+0x49c><== NOT EXECUTED
{
uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);
13fd06: 05 00 00 10 00 add $0x100000,%eax <== NOT EXECUTED
13fd0b: 83 d2 00 adc $0x0,%edx <== NOT EXECUTED
13fd0e: 0f ac d0 14 shrd $0x14,%edx,%eax <== NOT EXECUTED
13fd12: c1 ea 14 shr $0x14,%edx <== NOT EXECUTED
13fd15: b9 1f 00 00 00 mov $0x1f,%ecx <== NOT EXECUTED
int b;
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
13fd1a: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
13fd1f: eb 0a jmp 13fd2b <rtems_rfs_format+0x48b><== NOT EXECUTED
13fd21: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (total_size >= GIGS (1))
{
uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);
int b;
for (b = 31; b > 0; b--)
13fd24: 49 dec %ecx <== NOT EXECUTED
13fd25: 0f 84 4c 07 00 00 je 140477 <rtems_rfs_format+0xbd7><== NOT EXECUTED
if ((gigs & (1 << b)) != 0)
13fd2b: 89 d3 mov %edx,%ebx <== NOT EXECUTED
13fd2d: d3 e3 shl %cl,%ebx <== NOT EXECUTED
13fd2f: 85 c3 test %eax,%ebx <== NOT EXECUTED
13fd31: 74 f1 je 13fd24 <rtems_rfs_format+0x484><== NOT EXECUTED
break;
fs->block_size = 1 << b;
13fd33: 89 9d 1c ff ff ff mov %ebx,-0xe4(%ebp) <== NOT EXECUTED
13fd39: eb 07 jmp 13fd42 <rtems_rfs_format+0x4a2><== NOT EXECUTED
13fd3b: 90 nop <== NOT EXECUTED
fs->block_size = config->block_size;
if (!fs->block_size)
{
uint64_t total_size = rtems_rfs_fs_media_size (fs);
if (total_size >= GIGS (1))
13fd3c: 8b 9d 1c ff ff ff mov -0xe4(%ebp),%ebx <== NOT EXECUTED
if ((gigs & (1 << b)) != 0)
break;
fs->block_size = 1 << b;
}
if (fs->block_size < 512)
13fd42: 81 fb ff 01 00 00 cmp $0x1ff,%ebx <== NOT EXECUTED
13fd48: 0f 87 22 02 00 00 ja 13ff70 <rtems_rfs_format+0x6d0><== NOT EXECUTED
fs->block_size = 512;
13fd4e: c7 85 1c ff ff ff 00 movl $0x200,-0xe4(%ebp) <== NOT EXECUTED
13fd55: 02 00 00
13fd58: bb 00 02 00 00 mov $0x200,%ebx <== NOT EXECUTED
13fd5d: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
13fd63: e9 0d fc ff ff jmp 13f975 <rtems_rfs_format+0xd5> <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
13fd68: 48 dec %eax <== NOT EXECUTED
13fd69: 31 d2 xor %edx,%edx <== NOT EXECUTED
13fd6b: f7 f1 div %ecx <== NOT EXECUTED
13fd6d: 40 inc %eax <== NOT EXECUTED
13fd6e: e9 eb fc ff ff jmp 13fa5e <rtems_rfs_format+0x1be><== NOT EXECUTED
13fd73: 90 nop <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
13fd74: 8d 40 ff lea -0x1(%eax),%eax <== NOT EXECUTED
13fd77: 8d 34 dd 00 00 00 00 lea 0x0(,%ebx,8),%esi <== NOT EXECUTED
13fd7e: 31 d2 xor %edx,%edx <== NOT EXECUTED
13fd80: f7 f6 div %esi <== NOT EXECUTED
13fd82: 8d 70 01 lea 0x1(%eax),%esi <== NOT EXECUTED
13fd85: e9 5f fc ff ff jmp 13f9e9 <rtems_rfs_format+0x149><== NOT EXECUTED
13fd8a: 66 90 xchg %ax,%ax <== NOT EXECUTED
fs->block_size = (4 * 1024);
}
if ((fs->block_size % rtems_rfs_fs_media_block_size (fs)) != 0)
{
printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
13fd8c: 56 push %esi <== NOT EXECUTED
13fd8d: 51 push %ecx <== NOT EXECUTED
13fd8e: 53 push %ebx <== NOT EXECUTED
13fd8f: 68 18 7b 16 00 push $0x167b18 <== NOT EXECUTED
13fd94: e8 1b a9 00 00 call 14a6b4 <printf> <== NOT EXECUTED
13fd99: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
13fd9e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13fda1: e9 e5 fe ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
13fda6: 66 90 xchg %ax,%ax <== NOT EXECUTED
printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",
rc, strerror (rc));
return false;
}
sb = rtems_rfs_buffer_data (&handle);
13fda8: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
13fdab: 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));
13fdae: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
13fdb4: b0 ff mov $0xff,%al <== NOT EXECUTED
13fdb6: 89 d7 mov %edx,%edi <== NOT EXECUTED
13fdb8: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);
13fdba: c6 02 28 movb $0x28,(%edx) <== NOT EXECUTED
13fdbd: c6 42 01 09 movb $0x9,0x1(%edx) <== NOT EXECUTED
13fdc1: c6 42 02 20 movb $0x20,0x2(%edx) <== NOT EXECUTED
13fdc5: c6 42 03 01 movb $0x1,0x3(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);
13fdc9: c6 42 04 00 movb $0x0,0x4(%edx) <== NOT EXECUTED
13fdcd: c6 42 05 00 movb $0x0,0x5(%edx) <== NOT EXECUTED
13fdd1: c6 42 06 00 movb $0x0,0x6(%edx) <== NOT EXECUTED
13fdd5: c6 42 07 00 movb $0x0,0x7(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));
13fdd9: 0f b6 85 1b ff ff ff movzbl -0xe5(%ebp),%eax <== NOT EXECUTED
13fde0: 88 42 0c mov %al,0xc(%edx) <== NOT EXECUTED
13fde3: 0f b7 85 1a ff ff ff movzwl -0xe6(%ebp),%eax <== NOT EXECUTED
13fdea: 88 42 0d mov %al,0xd(%edx) <== NOT EXECUTED
13fded: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax <== NOT EXECUTED
13fdf3: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
13fdf6: 88 42 0e mov %al,0xe(%edx) <== NOT EXECUTED
13fdf9: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax <== NOT EXECUTED
13fdff: 88 42 0f mov %al,0xf(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
13fe02: 0f b6 85 1f ff ff ff movzbl -0xe1(%ebp),%eax <== NOT EXECUTED
13fe09: 88 42 08 mov %al,0x8(%edx) <== NOT EXECUTED
13fe0c: 0f b7 85 1e ff ff ff movzwl -0xe2(%ebp),%eax <== NOT EXECUTED
13fe13: 88 42 09 mov %al,0x9(%edx) <== NOT EXECUTED
13fe16: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
13fe1c: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
13fe1f: 88 42 0a mov %al,0xa(%edx) <== NOT EXECUTED
13fe22: 8b 85 1c ff ff ff mov -0xe4(%ebp),%eax <== NOT EXECUTED
13fe28: 88 42 0b mov %al,0xb(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);
13fe2b: 0f b6 85 2b ff ff ff movzbl -0xd5(%ebp),%eax <== NOT EXECUTED
13fe32: 88 42 10 mov %al,0x10(%edx) <== NOT EXECUTED
13fe35: 0f b7 85 2a ff ff ff movzwl -0xd6(%ebp),%eax <== NOT EXECUTED
13fe3c: 88 42 11 mov %al,0x11(%edx) <== NOT EXECUTED
13fe3f: 8b 85 28 ff ff ff mov -0xd8(%ebp),%eax <== NOT EXECUTED
13fe45: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
13fe48: 88 42 12 mov %al,0x12(%edx) <== NOT EXECUTED
13fe4b: 8b 85 28 ff ff ff mov -0xd8(%ebp),%eax <== NOT EXECUTED
13fe51: 88 42 13 mov %al,0x13(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
13fe54: 0f b6 85 2f ff ff ff movzbl -0xd1(%ebp),%eax <== NOT EXECUTED
13fe5b: 88 42 14 mov %al,0x14(%edx) <== NOT EXECUTED
13fe5e: 0f b7 85 2e ff ff ff movzwl -0xd2(%ebp),%eax <== NOT EXECUTED
13fe65: 88 42 15 mov %al,0x15(%edx) <== NOT EXECUTED
13fe68: 8b 85 2c ff ff ff mov -0xd4(%ebp),%eax <== NOT EXECUTED
13fe6e: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
13fe71: 88 42 16 mov %al,0x16(%edx) <== NOT EXECUTED
13fe74: 8b 85 2c ff ff ff mov -0xd4(%ebp),%eax <== NOT EXECUTED
13fe7a: 88 42 17 mov %al,0x17(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);
13fe7d: 0f b6 85 37 ff ff ff movzbl -0xc9(%ebp),%eax <== NOT EXECUTED
13fe84: 88 42 18 mov %al,0x18(%edx) <== NOT EXECUTED
13fe87: 0f b7 85 36 ff ff ff movzwl -0xca(%ebp),%eax <== NOT EXECUTED
13fe8e: 88 42 19 mov %al,0x19(%edx) <== NOT EXECUTED
13fe91: 8b 85 34 ff ff ff mov -0xcc(%ebp),%eax <== NOT EXECUTED
13fe97: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
13fe9a: 88 42 1a mov %al,0x1a(%edx) <== NOT EXECUTED
13fe9d: 8b 85 34 ff ff ff mov -0xcc(%ebp),%eax <== NOT EXECUTED
13fea3: 88 42 1b mov %al,0x1b(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);
13fea6: 0f b6 85 3b ff ff ff movzbl -0xc5(%ebp),%eax <== NOT EXECUTED
13fead: 88 42 1c mov %al,0x1c(%edx) <== NOT EXECUTED
13feb0: 0f b7 85 3a ff ff ff movzwl -0xc6(%ebp),%eax <== NOT EXECUTED
13feb7: 88 42 1d mov %al,0x1d(%edx) <== NOT EXECUTED
13feba: 8b 85 38 ff ff ff mov -0xc8(%ebp),%eax <== NOT EXECUTED
13fec0: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
13fec3: 88 42 1e mov %al,0x1e(%edx) <== NOT EXECUTED
13fec6: 8b 85 38 ff ff ff mov -0xc8(%ebp),%eax <== NOT EXECUTED
13fecc: 88 42 1f mov %al,0x1f(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);
13fecf: 0f b6 85 3f ff ff ff movzbl -0xc1(%ebp),%eax <== NOT EXECUTED
13fed6: 88 42 20 mov %al,0x20(%edx) <== NOT EXECUTED
13fed9: 0f b7 85 3e ff ff ff movzwl -0xc2(%ebp),%eax <== NOT EXECUTED
13fee0: 88 42 21 mov %al,0x21(%edx) <== NOT EXECUTED
13fee3: 8b 85 3c ff ff ff mov -0xc4(%ebp),%eax <== NOT EXECUTED
13fee9: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
13feec: 88 42 22 mov %al,0x22(%edx) <== NOT EXECUTED
13feef: 8b 85 3c ff ff ff mov -0xc4(%ebp),%eax <== NOT EXECUTED
13fef5: 88 42 23 mov %al,0x23(%edx) <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);
13fef8: c6 42 24 00 movb $0x0,0x24(%edx) <== NOT EXECUTED
13fefc: c6 42 25 00 movb $0x0,0x25(%edx) <== NOT EXECUTED
13ff00: c6 42 26 00 movb $0x0,0x26(%edx) <== NOT EXECUTED
13ff04: c6 42 27 38 movb $0x38,0x27(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
13ff08: c6 45 d4 01 movb $0x1,-0x2c(%ebp) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (fs, &handle);
13ff0c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ff0f: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
13ff12: 50 push %eax <== NOT EXECUTED
13ff13: 8d 95 14 ff ff ff lea -0xec(%ebp),%edx <== NOT EXECUTED
13ff19: 52 push %edx <== NOT EXECUTED
13ff1a: e8 c1 d5 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
13ff1f: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13ff21: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ff24: 85 c0 test %eax,%eax <== NOT EXECUTED
13ff26: 0f 8e a0 00 00 00 jle 13ffcc <rtems_rfs_format+0x72c><== 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);
13ff2c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ff2f: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
13ff32: 50 push %eax <== NOT EXECUTED
13ff33: 8d 95 14 ff ff ff lea -0xec(%ebp),%edx <== NOT EXECUTED
13ff39: 52 push %edx <== NOT EXECUTED
13ff3a: e8 a1 d5 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13ff3f: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13ff43: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13ff4a: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
printf ("rtems-rfs: write-superblock: buffer release failed: %d: %s\n",
13ff51: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
13ff54: e8 a3 c1 00 00 call 14c0fc <strerror> <== NOT EXECUTED
13ff59: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13ff5c: 50 push %eax <== NOT EXECUTED
13ff5d: 53 push %ebx <== NOT EXECUTED
13ff5e: 68 cc 7d 16 00 push $0x167dcc <== NOT EXECUTED
13ff63: e8 4c a7 00 00 call 14a6b4 <printf> <== NOT EXECUTED
13ff68: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ff6b: e9 e6 fc ff ff jmp 13fc56 <rtems_rfs_format+0x3b6><== NOT EXECUTED
}
if (fs->block_size < 512)
fs->block_size = 512;
if (fs->block_size > (4 * 1024))
13ff70: 81 fb 00 10 00 00 cmp $0x1000,%ebx <== NOT EXECUTED
13ff76: 76 0f jbe 13ff87 <rtems_rfs_format+0x6e7><== NOT EXECUTED
fs->block_size = (4 * 1024);
13ff78: c7 85 1c ff ff ff 00 movl $0x1000,-0xe4(%ebp) <== NOT EXECUTED
13ff7f: 10 00 00
13ff82: bb 00 10 00 00 mov $0x1000,%ebx <== NOT EXECUTED
13ff87: 8b 85 20 ff ff ff mov -0xe0(%ebp),%eax <== NOT EXECUTED
13ff8d: e9 e3 f9 ff ff jmp 13f975 <rtems_rfs_format+0xd5> <== NOT EXECUTED
13ff92: 66 90 xchg %ax,%ax <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
13ff94: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
13ff97: 31 d2 xor %edx,%edx <== NOT EXECUTED
13ff99: f7 f6 div %esi <== NOT EXECUTED
13ff9b: 8d 48 01 lea 0x1(%eax),%ecx <== NOT EXECUTED
13ff9e: e9 80 fa ff ff jmp 13fa23 <rtems_rfs_format+0x183><== NOT EXECUTED
13ffa3: 90 nop <== NOT EXECUTED
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, &fs);
if (rc > 0)
{
printf ("rtems-rfs: format: buffer open failed: %d: %s\n",
13ffa4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13ffa7: 50 push %eax <== NOT EXECUTED
13ffa8: e8 4f c1 00 00 call 14c0fc <strerror> <== NOT EXECUTED
13ffad: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
13ffb0: 50 push %eax <== NOT EXECUTED
13ffb1: 53 push %ebx <== NOT EXECUTED
13ffb2: 68 c0 7a 16 00 push $0x167ac0 <== NOT EXECUTED
13ffb7: e8 f8 a6 00 00 call 14a6b4 <printf> <== NOT EXECUTED
13ffbc: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
rc, strerror (rc));
return -1;
13ffc1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13ffc4: e9 c2 fc ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
13ffc9: 8d 76 00 lea 0x0(%esi),%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);
13ffcc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13ffcf: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
13ffd2: 50 push %eax <== NOT EXECUTED
13ffd3: 8d 95 14 ff ff ff lea -0xec(%ebp),%edx <== NOT EXECUTED
13ffd9: 52 push %edx <== NOT EXECUTED
13ffda: e8 01 d5 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13ffdf: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13ffe3: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13ffea: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
{
printf ("rtems-rfs: format: superblock write failed\n");
return -1;
}
for (group = 0; group < fs.group_count; group++)
13fff1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13fff4: 8b b5 34 ff ff ff mov -0xcc(%ebp),%esi <== NOT EXECUTED
13fffa: 85 f6 test %esi,%esi <== NOT EXECUTED
13fffc: 0f 8e a3 02 00 00 jle 1402a5 <rtems_rfs_format+0xa05><== NOT EXECUTED
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
140002: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
140005: 8a 52 15 mov 0x15(%edx),%dl <== NOT EXECUTED
140008: 88 95 03 ff ff ff mov %dl,-0xfd(%ebp) <== NOT EXECUTED
14000e: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
140011: 8a 40 14 mov 0x14(%eax),%al <== NOT EXECUTED
140014: 88 85 02 ff ff ff mov %al,-0xfe(%ebp) <== NOT EXECUTED
size_t group_size;
int blocks;
int b;
int rc;
group_base = rtems_rfs_fs_block (fs, group, 0);
14001a: 8b 9d 38 ff ff ff mov -0xc8(%ebp),%ebx <== NOT EXECUTED
if (group_base > rtems_rfs_fs_blocks (fs))
140020: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax <== NOT EXECUTED
140026: 85 c0 test %eax,%eax <== NOT EXECUTED
140028: 0f 84 bd 06 00 00 je 1406eb <rtems_rfs_format+0xe4b><== NOT EXECUTED
{
printf ("rtems-rfs: write-group: group %d base beyond disk limit\n",
14002e: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
140033: c7 85 04 ff ff ff 00 movl $0x0,-0xfc(%ebp) <== NOT EXECUTED
14003a: 00 00 00
14003d: 8d 76 00 lea 0x0(%esi),%esi <== 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))
140040: 8d 14 33 lea (%ebx,%esi,1),%edx <== NOT EXECUTED
140043: 39 d0 cmp %edx,%eax <== NOT EXECUTED
140045: 73 04 jae 14004b <rtems_rfs_format+0x7ab><== NOT EXECUTED
group_size = rtems_rfs_fs_blocks (fs) - group_base;
140047: 89 c3 mov %eax,%ebx <== NOT EXECUTED
140049: 29 f3 sub %esi,%ebx <== NOT EXECUTED
if (verbose)
14004b: 80 bd 03 ff ff ff 00 cmpb $0x0,-0xfd(%ebp) <== NOT EXECUTED
140052: 0f 85 08 01 00 00 jne 140160 <rtems_rfs_format+0x8c0><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
140058: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
14005c: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
140063: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
printf (", blocks");
/*
* Open the block bitmap using the new buffer.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
14006a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14006d: 56 push %esi <== NOT EXECUTED
14006e: 53 push %ebx <== NOT EXECUTED
14006f: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
140072: 50 push %eax <== NOT EXECUTED
140073: 8d 95 14 ff ff ff lea -0xec(%ebp),%edx <== NOT EXECUTED
140079: 52 push %edx <== NOT EXECUTED
14007a: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
14007d: 50 push %eax <== NOT EXECUTED
14007e: e8 b1 59 00 00 call 145a34 <rtems_rfs_bitmap_open> <== NOT EXECUTED
group_base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
if (rc > 0)
140083: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
140086: 85 c0 test %eax,%eax <== NOT EXECUTED
140088: 7e 52 jle 1400dc <rtems_rfs_format+0x83c><== NOT EXECUTED
14008a: 89 c7 mov %eax,%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);
14008c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
14008f: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
140092: 52 push %edx <== NOT EXECUTED
140093: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
140099: 50 push %eax <== NOT EXECUTED
14009a: e8 41 d4 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
14009f: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1400a3: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1400aa: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
printf ("\nrtems-rfs: write-group: group %3d: open block bitmap failed: %d: %s\n",
1400b1: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED
1400b4: e8 43 c0 00 00 call 14c0fc <strerror> <== NOT EXECUTED
1400b9: 50 push %eax <== NOT EXECUTED
1400ba: 57 push %edi <== NOT EXECUTED
1400bb: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
1400c1: 68 a8 7e 16 00 push $0x167ea8 <== NOT EXECUTED
1400c6: e8 e9 a5 00 00 call 14a6b4 <printf> <== NOT EXECUTED
1400cb: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1400d0: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
rc, strerror (rc));
return -1;
}
return 0;
}
1400d3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1400d6: 5b pop %ebx <== NOT EXECUTED
1400d7: 5e pop %esi <== NOT EXECUTED
1400d8: 5f pop %edi <== NOT EXECUTED
1400d9: c9 leave <== NOT EXECUTED
1400da: c3 ret <== NOT EXECUTED
1400db: 90 nop <== 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));
1400dc: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
1400e2: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1400e5: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
1400e8: 89 d7 mov %edx,%edi <== NOT EXECUTED
1400ea: b0 ff mov $0xff,%al <== NOT EXECUTED
1400ec: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
/*
* Clear the bitmap.
*/
rc = rtems_rfs_bitmap_map_clear_all (&bitmap);
1400ee: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1400f1: 8d 55 bc lea -0x44(%ebp),%edx <== NOT EXECUTED
1400f4: 52 push %edx <== NOT EXECUTED
1400f5: e8 8a 59 00 00 call 145a84 <rtems_rfs_bitmap_map_clear_all><== NOT EXECUTED
if (rc > 0)
1400fa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1400fd: 85 c0 test %eax,%eax <== NOT EXECUTED
1400ff: 0f 8e 93 00 00 00 jle 140198 <rtems_rfs_format+0x8f8><== NOT EXECUTED
140105: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
rtems_rfs_bitmap_close (&bitmap);
140107: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14010a: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
14010d: 50 push %eax <== NOT EXECUTED
14010e: e8 f1 57 00 00 call 145904 <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);
140113: 59 pop %ecx <== NOT EXECUTED
140114: 5b pop %ebx <== NOT EXECUTED
140115: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
140118: 52 push %edx <== NOT EXECUTED
140119: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
14011f: 50 push %eax <== NOT EXECUTED
140120: e8 bb d3 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
140125: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
140129: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
140130: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
printf ("\nrtems-rfs: write-group: group %3d: block bitmap clear all failed: %d: %s\n",
140137: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED
14013a: e8 bd bf 00 00 call 14c0fc <strerror> <== NOT EXECUTED
14013f: 50 push %eax <== NOT EXECUTED
140140: 57 push %edi <== NOT EXECUTED
140141: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
140147: 68 f0 7e 16 00 push $0x167ef0 <== NOT EXECUTED
14014c: e8 63 a5 00 00 call 14a6b4 <printf> <== NOT EXECUTED
140151: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
140156: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
140159: e9 2d fb ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
14015e: 66 90 xchg %ax,%ax <== NOT EXECUTED
*/
if ((group_base + group_size) > rtems_rfs_fs_blocks (fs))
group_size = rtems_rfs_fs_blocks (fs) - group_base;
if (verbose)
printf ("\rrtems-rfs: format: group %3d: base = %" PRId32 ", size = %zd",
140160: 53 push %ebx <== NOT EXECUTED
140161: 56 push %esi <== NOT EXECUTED
140162: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
140168: 68 70 7e 16 00 push $0x167e70 <== NOT EXECUTED
14016d: e8 42 a5 00 00 call 14a6b4 <printf> <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
140172: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
140176: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
14017d: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
rc, strerror (rc));
return false;
}
if (verbose)
printf (", blocks");
140184: c7 04 24 ad 7a 16 00 movl $0x167aad,(%esp) <== NOT EXECUTED
14018b: e8 24 a5 00 00 call 14a6b4 <printf> <== NOT EXECUTED
140190: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140193: e9 d2 fe ff ff jmp 14006a <rtems_rfs_format+0x7ca><== NOT EXECUTED
}
/*
* Forced allocation of the block bitmap.
*/
rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
140198: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
14019b: 6a 00 push $0x0 <== NOT EXECUTED
14019d: 8d 55 bc lea -0x44(%ebp),%edx <== NOT EXECUTED
1401a0: 52 push %edx <== NOT EXECUTED
1401a1: e8 c6 5a 00 00 call 145c6c <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);
1401a6: 58 pop %eax <== NOT EXECUTED
1401a7: 5a pop %edx <== NOT EXECUTED
1401a8: 6a 01 push $0x1 <== NOT EXECUTED
1401aa: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
1401ad: 50 push %eax <== NOT EXECUTED
1401ae: e8 b9 5a 00 00 call 145c6c <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);
1401b3: 8b 8d 40 ff ff ff mov -0xc0(%ebp),%ecx <== NOT EXECUTED
1401b9: 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)
1401bf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1401c2: 85 c0 test %eax,%eax <== NOT EXECUTED
1401c4: 0f 85 c2 00 00 00 jne 14028c <rtems_rfs_format+0x9ec><== NOT EXECUTED
1401ca: c7 85 fc fe ff ff 01 movl $0x1,-0x104(%ebp) <== NOT EXECUTED
1401d1: 00 00 00
1401d4: 31 ff xor %edi,%edi <== NOT EXECUTED
1401d6: 89 9d f8 fe ff ff mov %ebx,-0x108(%ebp) <== NOT EXECUTED
1401dc: 8b 9d fc fe ff ff mov -0x104(%ebp),%ebx <== NOT EXECUTED
1401e2: 66 90 xchg %ax,%ax <== 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);
1401e4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1401e7: 8d 47 02 lea 0x2(%edi),%eax <== NOT EXECUTED
1401ea: 50 push %eax <== NOT EXECUTED
1401eb: 8d 55 bc lea -0x44(%ebp),%edx <== NOT EXECUTED
1401ee: 52 push %edx <== NOT EXECUTED
1401ef: e8 78 5a 00 00 call 145c6c <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++)
1401f4: 47 inc %edi <== NOT EXECUTED
1401f5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1401f8: 39 df cmp %ebx,%edi <== NOT EXECUTED
1401fa: 7c e8 jl 1401e4 <rtems_rfs_format+0x944><== NOT EXECUTED
1401fc: 8b 9d f8 fe ff ff mov -0x108(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
/*
* Close the block bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
140202: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140205: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
140208: 50 push %eax <== NOT EXECUTED
140209: e8 f6 56 00 00 call 145904 <rtems_rfs_bitmap_close><== NOT EXECUTED
if (rc > 0)
14020e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140211: 85 c0 test %eax,%eax <== NOT EXECUTED
140213: 0f 8f 1f 01 00 00 jg 140338 <rtems_rfs_format+0xa98><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close block bitmap failed: %d: %s\n",
group, rc, strerror (rc));
return false;
}
rtems_rfs_buffer_mark_dirty (&handle);
140219: c6 45 d4 01 movb $0x1,-0x2c(%ebp) <== NOT EXECUTED
if (verbose)
14021d: 80 bd 03 ff ff ff 00 cmpb $0x0,-0xfd(%ebp) <== NOT EXECUTED
140224: 0f 85 b2 01 00 00 jne 1403dc <rtems_rfs_format+0xb3c><== NOT EXECUTED
printf (", inodes");
/*
* Open the inode bitmap using the old buffer. Should release any changes.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
14022a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14022d: 8d 46 01 lea 0x1(%esi),%eax <== NOT EXECUTED
140230: 50 push %eax <== NOT EXECUTED
140231: 53 push %ebx <== NOT EXECUTED
140232: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
140235: 52 push %edx <== NOT EXECUTED
140236: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
14023c: 50 push %eax <== NOT EXECUTED
14023d: 8d 55 bc lea -0x44(%ebp),%edx <== NOT EXECUTED
140240: 52 push %edx <== NOT EXECUTED
140241: e8 ee 57 00 00 call 145a34 <rtems_rfs_bitmap_open> <== NOT EXECUTED
group_base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
if (rc > 0)
140246: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
140249: 85 c0 test %eax,%eax <== NOT EXECUTED
14024b: 0f 8e 1f 01 00 00 jle 140370 <rtems_rfs_format+0xad0><== NOT EXECUTED
140251: 89 c3 mov %eax,%ebx <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
140253: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
140256: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
14025c: e8 17 f6 ff ff call 13f878 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: open inode bitmap failed: %d: %s\n",
140261: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140264: 53 push %ebx <== NOT EXECUTED
140265: e8 92 be 00 00 call 14c0fc <strerror> <== NOT EXECUTED
14026a: 50 push %eax <== NOT EXECUTED
14026b: 53 push %ebx <== NOT EXECUTED
14026c: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
140272: 68 84 7f 16 00 push $0x167f84 <== NOT EXECUTED
140277: e8 38 a4 00 00 call 14a6b4 <printf> <== NOT EXECUTED
14027c: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
140281: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
140284: e9 02 fa ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
140289: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
return 1;
return ((dividend - 1) / divisor) + 1;
14028c: 48 dec %eax <== NOT EXECUTED
14028d: 31 d2 xor %edx,%edx <== NOT EXECUTED
14028f: f7 f1 div %ecx <== NOT EXECUTED
140291: 40 inc %eax <== NOT EXECUTED
140292: 89 85 fc fe ff ff mov %eax,-0x104(%ebp) <== 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++)
140298: 85 c0 test %eax,%eax <== NOT EXECUTED
14029a: 0f 8f 34 ff ff ff jg 1401d4 <rtems_rfs_format+0x934><== NOT EXECUTED
1402a0: e9 5d ff ff ff jmp 140202 <rtems_rfs_format+0x962><== NOT EXECUTED
for (group = 0; group < fs.group_count; group++)
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
return -1;
if (config->verbose)
1402a5: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
1402a8: 80 7a 15 00 cmpb $0x0,0x15(%edx) <== NOT EXECUTED
1402ac: 0f 85 8e 01 00 00 jne 140440 <rtems_rfs_format+0xba0><== NOT EXECUTED
printf ("\n");
rc = rtems_rfs_buffer_close (&fs);
1402b2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1402b5: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
1402bb: 50 push %eax <== NOT EXECUTED
1402bc: e8 9b d1 ff ff call 13d45c <rtems_rfs_buffer_close><== NOT EXECUTED
1402c1: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1402c3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1402c6: 85 c0 test %eax,%eax <== NOT EXECUTED
1402c8: 0f 8f bf 02 00 00 jg 14058d <rtems_rfs_format+0xced><== NOT EXECUTED
int rc;
/*
* External API so returns -1.
*/
rc = rtems_rfs_fs_open (name, NULL,
1402ce: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1402d1: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1402d4: 50 push %eax <== NOT EXECUTED
1402d5: 6a 00 push $0x0 <== NOT EXECUTED
1402d7: 6a 06 push $0x6 <== NOT EXECUTED
1402d9: 6a 00 push $0x0 <== NOT EXECUTED
1402db: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1402de: e8 51 f0 ff ff call 13f334 <rtems_rfs_fs_open> <== NOT EXECUTED
RTEMS_RFS_FS_FORCE_OPEN | RTEMS_RFS_FS_NO_LOCAL_CACHE,
0, &fs);
if (rc < 0)
1402e3: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1402e6: 85 c0 test %eax,%eax <== NOT EXECUTED
1402e8: 0f 88 aa 04 00 00 js 140798 <rtems_rfs_format+0xef8><== NOT EXECUTED
printf ("rtems-rfs: format: file system open failed: %d: %s\n",
errno, strerror (errno));
return -1;
}
rc = rtems_rfs_inode_alloc (fs, RTEMS_RFS_ROOT_INO, &ino);
1402ee: 53 push %ebx <== NOT EXECUTED
1402ef: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
1402f2: 50 push %eax <== NOT EXECUTED
1402f3: 6a 01 push $0x1 <== NOT EXECUTED
1402f5: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1402f8: e8 fb 0d 00 00 call 1410f8 <rtems_rfs_inode_alloc> <== NOT EXECUTED
1402fd: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1402ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140302: 85 c0 test %eax,%eax <== NOT EXECUTED
140304: 0f 8f ea 00 00 00 jg 1403f4 <rtems_rfs_format+0xb54><== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_fs_close (fs);
return rc;
}
if (ino != RTEMS_RFS_ROOT_INO)
14030a: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
14030d: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
140310: 0f 84 6b 01 00 00 je 140481 <rtems_rfs_format+0xbe1><== NOT EXECUTED
{
printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
140316: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
140319: 50 push %eax <== NOT EXECUTED
14031a: 68 80 81 16 00 push $0x168180 <== NOT EXECUTED
14031f: e8 90 a3 00 00 call 14a6b4 <printf> <== NOT EXECUTED
rtems_rfs_fs_close (fs);
140324: 5a pop %edx <== NOT EXECUTED
140325: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
140328: e8 8f ef ff ff call 13f2bc <rtems_rfs_fs_close> <== NOT EXECUTED
14032d: 31 c0 xor %eax,%eax <== NOT EXECUTED
14032f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140332: e9 54 f9 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
140337: 90 nop <== NOT EXECUTED
140338: 89 c7 mov %eax,%edi <== NOT EXECUTED
* Close the block bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &handle);
14033a: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
14033d: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
140343: e8 30 f5 ff ff call 13f878 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close block bitmap failed: %d: %s\n",
140348: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14034b: 57 push %edi <== NOT EXECUTED
14034c: e8 ab bd 00 00 call 14c0fc <strerror> <== NOT EXECUTED
140351: 50 push %eax <== NOT EXECUTED
140352: 57 push %edi <== NOT EXECUTED
140353: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
140359: 68 3c 7f 16 00 push $0x167f3c <== NOT EXECUTED
14035e: e8 51 a3 00 00 call 14a6b4 <printf> <== NOT EXECUTED
140363: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
140368: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
14036b: e9 1b f9 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== 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));
140370: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
140376: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
140379: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
14037c: 31 c0 xor %eax,%eax <== NOT EXECUTED
14037e: 89 d7 mov %edx,%edi <== NOT EXECUTED
140380: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
/*
* Clear the inode bitmap.
*/
rc = rtems_rfs_bitmap_map_clear_all (&bitmap);
140382: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140385: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
140388: 50 push %eax <== NOT EXECUTED
140389: e8 f6 56 00 00 call 145a84 <rtems_rfs_bitmap_map_clear_all><== NOT EXECUTED
if (rc > 0)
14038e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140391: 85 c0 test %eax,%eax <== NOT EXECUTED
140393: 0f 8e 3e 01 00 00 jle 1404d7 <rtems_rfs_format+0xc37><== NOT EXECUTED
140399: 89 c3 mov %eax,%ebx <== NOT EXECUTED
{
rtems_rfs_bitmap_close (&bitmap);
14039b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14039e: 8d 55 bc lea -0x44(%ebp),%edx <== NOT EXECUTED
1403a1: 52 push %edx <== NOT EXECUTED
1403a2: e8 5d 55 00 00 call 145904 <rtems_rfs_bitmap_close><== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
1403a7: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
1403aa: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
1403b0: e8 c3 f4 ff ff call 13f878 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: inode bitmap" \
1403b5: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
1403b8: e8 3f bd 00 00 call 14c0fc <strerror> <== NOT EXECUTED
1403bd: 50 push %eax <== NOT EXECUTED
1403be: 53 push %ebx <== NOT EXECUTED
1403bf: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
1403c5: 68 cc 7f 16 00 push $0x167fcc <== NOT EXECUTED
1403ca: e8 e5 a2 00 00 call 14a6b4 <printf> <== NOT EXECUTED
1403cf: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1403d4: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1403d7: e9 af f8 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
}
rtems_rfs_buffer_mark_dirty (&handle);
if (verbose)
printf (", inodes");
1403dc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1403df: 68 b6 7a 16 00 push $0x167ab6 <== NOT EXECUTED
1403e4: e8 cb a2 00 00 call 14a6b4 <printf> <== NOT EXECUTED
1403e9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1403ec: e9 39 fe ff ff jmp 14022a <rtems_rfs_format+0x98a><== NOT EXECUTED
1403f1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
rc = rtems_rfs_inode_alloc (fs, RTEMS_RFS_ROOT_INO, &ino);
if (rc > 0)
{
printf ("rtems-rfs: format: inode allocation failed: %d: %s\n",
1403f4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1403f7: 50 push %eax <== NOT EXECUTED
1403f8: e8 ff bc 00 00 call 14c0fc <strerror> <== NOT EXECUTED
1403fd: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
140400: 50 push %eax <== NOT EXECUTED
140401: 53 push %ebx <== NOT EXECUTED
140402: 68 4c 81 16 00 push $0x16814c <== NOT EXECUTED
140407: e8 a8 a2 00 00 call 14a6b4 <printf> <== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_fs_close (fs);
14040c: 59 pop %ecx <== NOT EXECUTED
14040d: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
140410: e8 a7 ee ff ff call 13f2bc <rtems_rfs_fs_close> <== NOT EXECUTED
140415: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rc = rtems_rfs_write_root_dir (name);
if (rc > 0)
{
printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",
140418: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14041b: 53 push %ebx <== NOT EXECUTED
14041c: e8 db bc 00 00 call 14c0fc <strerror> <== NOT EXECUTED
140421: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
140424: 50 push %eax <== NOT EXECUTED
140425: 53 push %ebx <== NOT EXECUTED
140426: 68 b8 82 16 00 push $0x1682b8 <== NOT EXECUTED
14042b: e8 84 a2 00 00 call 14a6b4 <printf> <== NOT EXECUTED
140430: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
rc, strerror (rc));
return -1;
140435: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140438: e9 4e f8 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
14043d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
return -1;
if (config->verbose)
printf ("\n");
140440: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140443: 6a 0a push $0xa <== NOT EXECUTED
140445: e8 ca a3 00 00 call 14a814 <putchar> <== NOT EXECUTED
14044a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
14044d: e9 60 fe ff ff jmp 1402b2 <rtems_rfs_format+0xa12><== NOT EXECUTED
}
rc = rtems_rfs_buffer_setblksize (&fs, rtems_rfs_fs_block_size (&fs));
if (rc > 0)
{
printf ("rtems-rfs: format: setting block size failed: %d: %s\n",
140452: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140455: 50 push %eax <== NOT EXECUTED
140456: e8 a1 bc 00 00 call 14c0fc <strerror> <== NOT EXECUTED
14045b: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
14045e: 50 push %eax <== NOT EXECUTED
14045f: 53 push %ebx <== NOT EXECUTED
140460: 68 5c 7d 16 00 push $0x167d5c <== NOT EXECUTED
140465: e8 4a a2 00 00 call 14a6b4 <printf> <== NOT EXECUTED
14046a: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
rc, strerror (rc));
return -1;
14046f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140472: e9 14 f8 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
if (total_size >= GIGS (1))
{
uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);
int b;
for (b = 31; b > 0; b--)
140477: bb 01 00 00 00 mov $0x1,%ebx <== NOT EXECUTED
14047c: e9 b2 f8 ff ff jmp 13fd33 <rtems_rfs_format+0x493><== NOT EXECUTED
printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
rtems_rfs_fs_close (fs);
return rc;
}
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
140481: 6a 01 push $0x1 <== NOT EXECUTED
140483: 8d 75 94 lea -0x6c(%ebp),%esi <== NOT EXECUTED
140486: 56 push %esi <== NOT EXECUTED
140487: 6a 01 push $0x1 <== NOT EXECUTED
140489: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
14048c: e8 1b 0b 00 00 call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
140491: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
140493: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140496: 85 c0 test %eax,%eax <== NOT EXECUTED
140498: 0f 8e 14 01 00 00 jle 1405b2 <rtems_rfs_format+0xd12><== NOT EXECUTED
{
printf ("rtems-rfs: format: inode open failed: %d: %s\n",
14049e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1404a1: 50 push %eax <== NOT EXECUTED
1404a2: e8 55 bc 00 00 call 14c0fc <strerror> <== NOT EXECUTED
1404a7: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1404aa: 50 push %eax <== NOT EXECUTED
1404ab: 53 push %ebx <== NOT EXECUTED
1404ac: 68 b8 81 16 00 push $0x1681b8 <== NOT EXECUTED
1404b1: e8 fe a1 00 00 call 14a6b4 <printf> <== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_group_bitmap_free (fs, true, ino);
1404b6: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1404b9: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1404bc: 6a 01 push $0x1 <== NOT EXECUTED
1404be: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1404c1: e8 e6 03 00 00 call 1408ac <rtems_rfs_group_bitmap_free><== NOT EXECUTED
rtems_rfs_fs_close (fs);
1404c6: 58 pop %eax <== NOT EXECUTED
1404c7: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1404ca: e8 ed ed ff ff call 13f2bc <rtems_rfs_fs_close> <== NOT EXECUTED
1404cf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1404d2: e9 41 ff ff ff jmp 140418 <rtems_rfs_format+0xb78><== NOT EXECUTED
}
/*
* Close the inode bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
1404d7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1404da: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
1404dd: 50 push %eax <== NOT EXECUTED
1404de: e8 21 54 00 00 call 145904 <rtems_rfs_bitmap_close><== NOT EXECUTED
if (rc > 0)
1404e3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1404e6: 85 c0 test %eax,%eax <== NOT EXECUTED
1404e8: 0f 8f 8c 01 00 00 jg 14067a <rtems_rfs_format+0xdda><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close inode" \
" bitmap failed: %d: %s\n", group, rc, strerror (rc));
return false;
}
rtems_rfs_buffer_mark_dirty (&handle);
1404ee: c6 45 d4 01 movb $0x1,-0x2c(%ebp) <== NOT EXECUTED
/*
* Initialise the inode tables if required to do so.
*/
if (initialise_inodes)
1404f2: 80 bd 02 ff ff ff 00 cmpb $0x0,-0xfe(%ebp) <== NOT EXECUTED
1404f9: 0f 84 b3 01 00 00 je 1406b2 <rtems_rfs_format+0xe12><== NOT EXECUTED
{
for (b = 0; b < blocks; b++)
1404ff: 8b bd fc fe ff ff mov -0x104(%ebp),%edi <== NOT EXECUTED
140505: 85 ff test %edi,%edi <== NOT EXECUTED
140507: 0f 8e a5 01 00 00 jle 1406b2 <rtems_rfs_format+0xe12><== NOT EXECUTED
14050d: 83 c6 02 add $0x2,%esi <== NOT EXECUTED
140510: 31 db xor %ebx,%ebx <== NOT EXECUTED
140512: eb 24 jmp 140538 <rtems_rfs_format+0xc98><== 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));
140514: 8b 8d 1c ff ff ff mov -0xe4(%ebp),%ecx <== NOT EXECUTED
14051a: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
14051d: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
140520: 89 d7 mov %edx,%edi <== NOT EXECUTED
140522: b0 ff mov $0xff,%al <== NOT EXECUTED
140524: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
140526: 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++)
14052a: 43 inc %ebx <== NOT EXECUTED
14052b: 46 inc %esi <== NOT EXECUTED
14052c: 3b 9d fc fe ff ff cmp -0x104(%ebp),%ebx <== NOT EXECUTED
140532: 0f 8d 7a 01 00 00 jge 1406b2 <rtems_rfs_format+0xe12><== NOT EXECUTED
{
rc = rtems_rfs_buffer_handle_request (fs, &handle,
140538: 6a 00 push $0x0 <== NOT EXECUTED
14053a: 56 push %esi <== NOT EXECUTED
14053b: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
14053e: 52 push %edx <== NOT EXECUTED
14053f: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
140545: 50 push %eax <== NOT EXECUTED
140546: e8 99 d0 ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
group_base + b + RTEMS_RFS_GROUP_INODE_BLOCK,
false);
if (rc > 0)
14054b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
14054e: 85 c0 test %eax,%eax <== NOT EXECUTED
140550: 7e c2 jle 140514 <rtems_rfs_format+0xc74><== NOT EXECUTED
140552: 89 c3 mov %eax,%ebx <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
140554: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
140557: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
14055d: e8 16 f3 ff ff call 13f878 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: block %" PRId32 " request failed: %d: %s\n",
140562: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140565: 53 push %ebx <== NOT EXECUTED
140566: e8 91 bb 00 00 call 14c0fc <strerror> <== NOT EXECUTED
14056b: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
14056e: 53 push %ebx <== NOT EXECUTED
14056f: 56 push %esi <== NOT EXECUTED
140570: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
140576: 68 60 80 16 00 push $0x168060 <== NOT EXECUTED
14057b: e8 34 a1 00 00 call 14a6b4 <printf> <== NOT EXECUTED
140580: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
140585: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
140588: e9 fe f6 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
printf ("\n");
rc = rtems_rfs_buffer_close (&fs);
if (rc > 0)
{
printf ("rtems-rfs: format: buffer close failed: %d: %s\n",
14058d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140590: 50 push %eax <== NOT EXECUTED
140591: e8 66 bb 00 00 call 14c0fc <strerror> <== NOT EXECUTED
140596: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
140599: 50 push %eax <== NOT EXECUTED
14059a: 53 push %ebx <== NOT EXECUTED
14059b: 68 e8 80 16 00 push $0x1680e8 <== NOT EXECUTED
1405a0: e8 0f a1 00 00 call 14a6b4 <printf> <== NOT EXECUTED
1405a5: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
rc, strerror (rc));
return -1;
1405aa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1405ad: e9 d9 f6 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
rtems_rfs_group_bitmap_free (fs, true, ino);
rtems_rfs_fs_close (fs);
return rc;
}
rc = rtems_rfs_inode_initialise (&inode, 0,
1405b2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1405b5: 6a 00 push $0x0 <== NOT EXECUTED
1405b7: 6a 00 push $0x0 <== NOT EXECUTED
1405b9: 68 c9 41 00 00 push $0x41c9 <== NOT EXECUTED
1405be: 6a 00 push $0x0 <== NOT EXECUTED
1405c0: 56 push %esi <== NOT EXECUTED
1405c1: e8 8a 07 00 00 call 140d50 <rtems_rfs_inode_initialise><== NOT EXECUTED
1405c6: 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)
1405c8: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1405cb: 85 c0 test %eax,%eax <== NOT EXECUTED
1405cd: 7e 1b jle 1405ea <rtems_rfs_format+0xd4a><== NOT EXECUTED
printf ("rtems-rfs: format: inode initialise failed: %d: %s\n",
1405cf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1405d2: 50 push %eax <== NOT EXECUTED
1405d3: e8 24 bb 00 00 call 14c0fc <strerror> <== NOT EXECUTED
1405d8: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1405db: 50 push %eax <== NOT EXECUTED
1405dc: 53 push %ebx <== NOT EXECUTED
1405dd: 68 e8 81 16 00 push $0x1681e8 <== NOT EXECUTED
1405e2: e8 cd a0 00 00 call 14a6b4 <printf> <== NOT EXECUTED
1405e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, ino);
1405ea: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1405ed: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1405f0: 6a 01 push $0x1 <== NOT EXECUTED
1405f2: 68 f8 07 16 00 push $0x1607f8 <== NOT EXECUTED
1405f7: 56 push %esi <== NOT EXECUTED
1405f8: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1405fb: e8 90 d8 ff ff call 13de90 <rtems_rfs_dir_add_entry><== NOT EXECUTED
140600: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
140602: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
140605: 85 c0 test %eax,%eax <== NOT EXECUTED
140607: 7e 1b jle 140624 <rtems_rfs_format+0xd84><== NOT EXECUTED
printf ("rtems-rfs: format: directory add failed: %d: %s\n",
140609: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14060c: 50 push %eax <== NOT EXECUTED
14060d: e8 ea ba 00 00 call 14c0fc <strerror> <== NOT EXECUTED
140612: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
140615: 50 push %eax <== NOT EXECUTED
140616: 53 push %ebx <== NOT EXECUTED
140617: 68 1c 82 16 00 push $0x16821c <== NOT EXECUTED
14061c: e8 93 a0 00 00 call 14a6b4 <printf> <== NOT EXECUTED
140621: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_inode_close (fs, &inode);
140624: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
140627: 56 push %esi <== NOT EXECUTED
140628: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
14062b: e8 f8 08 00 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
140630: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
140632: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140635: 85 c0 test %eax,%eax <== NOT EXECUTED
140637: 7e 1b jle 140654 <rtems_rfs_format+0xdb4><== NOT EXECUTED
printf ("rtems-rfs: format: inode close failed: %d: %s\n",
140639: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14063c: 50 push %eax <== NOT EXECUTED
14063d: e8 ba ba 00 00 call 14c0fc <strerror> <== NOT EXECUTED
140642: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
140645: 50 push %eax <== NOT EXECUTED
140646: 53 push %ebx <== NOT EXECUTED
140647: 68 50 82 16 00 push $0x168250 <== NOT EXECUTED
14064c: e8 63 a0 00 00 call 14a6b4 <printf> <== NOT EXECUTED
140651: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_fs_close (fs);
140654: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140657: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
14065a: e8 5d ec ff ff call 13f2bc <rtems_rfs_fs_close> <== NOT EXECUTED
14065f: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc < 0)
140661: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140664: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED
140667: 0f 8c fb 00 00 00 jl 140768 <rtems_rfs_format+0xec8><== NOT EXECUTED
rc, strerror (rc));
return -1;
}
rc = rtems_rfs_write_root_dir (name);
if (rc > 0)
14066d: 0f 85 a5 fd ff ff jne 140418 <rtems_rfs_format+0xb78><== NOT EXECUTED
140673: 31 c0 xor %eax,%eax <== NOT EXECUTED
140675: e9 11 f6 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
14067a: 89 c3 mov %eax,%ebx <== NOT EXECUTED
* Close the inode bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &handle);
14067c: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
14067f: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
140685: e8 ee f1 ff ff call 13f878 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close inode" \
14068a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14068d: 53 push %ebx <== NOT EXECUTED
14068e: e8 69 ba 00 00 call 14c0fc <strerror> <== NOT EXECUTED
140693: 50 push %eax <== NOT EXECUTED
140694: 53 push %ebx <== NOT EXECUTED
140695: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
14069b: 68 18 80 16 00 push $0x168018 <== NOT EXECUTED
1406a0: e8 0f a0 00 00 call 14a6b4 <printf> <== NOT EXECUTED
1406a5: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1406aa: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1406ad: e9 d9 f5 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
}
}
rc = rtems_rfs_buffer_handle_close (fs, &handle);
1406b2: 8d 55 d4 lea -0x2c(%ebp),%edx <== NOT EXECUTED
1406b5: 8d 85 14 ff ff ff lea -0xec(%ebp),%eax <== NOT EXECUTED
1406bb: e8 b8 f1 ff ff call 13f878 <rtems_rfs_buffer_handle_close><== NOT EXECUTED
if (rc > 0)
1406c0: 85 c0 test %eax,%eax <== NOT EXECUTED
1406c2: 7e 54 jle 140718 <rtems_rfs_format+0xe78><== NOT EXECUTED
1406c4: 89 c3 mov %eax,%ebx <== NOT EXECUTED
{
printf ("\nrtems-rfs: write-group: buffer handle close failed: %d: %s\n",
1406c6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1406c9: 50 push %eax <== NOT EXECUTED
1406ca: e8 2d ba 00 00 call 14c0fc <strerror> <== NOT EXECUTED
1406cf: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1406d2: 50 push %eax <== NOT EXECUTED
1406d3: 53 push %ebx <== NOT EXECUTED
1406d4: 68 a8 80 16 00 push $0x1680a8 <== NOT EXECUTED
1406d9: e8 d6 9f 00 00 call 14a6b4 <printf> <== NOT EXECUTED
1406de: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1406e3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1406e6: e9 a0 f5 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
int b;
int rc;
group_base = rtems_rfs_fs_block (fs, group, 0);
if (group_base > rtems_rfs_fs_blocks (fs))
1406eb: c7 85 04 ff ff ff 00 movl $0x0,-0xfc(%ebp) <== NOT EXECUTED
1406f2: 00 00 00
1406f5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
printf ("rtems-rfs: write-group: group %d base beyond disk limit\n",
1406f8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1406fb: ff b5 04 ff ff ff pushl -0xfc(%ebp) <== NOT EXECUTED
140701: 68 34 7e 16 00 push $0x167e34 <== NOT EXECUTED
140706: e8 a9 9f 00 00 call 14a6b4 <printf> <== NOT EXECUTED
14070b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
140710: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140713: e9 73 f5 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
{
printf ("rtems-rfs: format: superblock write failed\n");
return -1;
}
for (group = 0; group < fs.group_count; group++)
140718: ff 85 04 ff ff ff incl -0xfc(%ebp) <== NOT EXECUTED
14071e: 8b 85 04 ff ff ff mov -0xfc(%ebp),%eax <== NOT EXECUTED
140724: 39 85 34 ff ff ff cmp %eax,-0xcc(%ebp) <== NOT EXECUTED
14072a: 0f 8e 75 fb ff ff jle 1402a5 <rtems_rfs_format+0xa05><== NOT EXECUTED
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
140730: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
140733: 8a 40 15 mov 0x15(%eax),%al <== NOT EXECUTED
140736: 88 85 03 ff ff ff mov %al,-0xfd(%ebp) <== NOT EXECUTED
14073c: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
14073f: 8a 52 14 mov 0x14(%edx),%dl <== NOT EXECUTED
140742: 88 95 02 ff ff ff mov %dl,-0xfe(%ebp) <== NOT EXECUTED
size_t group_size;
int blocks;
int b;
int rc;
group_base = rtems_rfs_fs_block (fs, group, 0);
140748: 8b 9d 38 ff ff ff mov -0xc8(%ebp),%ebx <== NOT EXECUTED
14074e: 8b b5 04 ff ff ff mov -0xfc(%ebp),%esi <== NOT EXECUTED
140754: 0f af f3 imul %ebx,%esi <== NOT EXECUTED
140757: 46 inc %esi <== NOT EXECUTED
if (group_base > rtems_rfs_fs_blocks (fs))
140758: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax <== NOT EXECUTED
14075e: 39 c6 cmp %eax,%esi <== NOT EXECUTED
140760: 0f 86 da f8 ff ff jbe 140040 <rtems_rfs_format+0x7a0><== NOT EXECUTED
140766: eb 90 jmp 1406f8 <rtems_rfs_format+0xe58><== NOT EXECUTED
printf ("rtems-rfs: format: inode close failed: %d: %s\n",
rc, strerror (rc));
rc = rtems_rfs_fs_close (fs);
if (rc < 0)
printf ("rtems-rfs: format: file system close failed: %d: %s\n",
140768: e8 1f 60 00 00 call 14678c <__errno> <== NOT EXECUTED
14076d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140770: ff 30 pushl (%eax) <== NOT EXECUTED
140772: e8 85 b9 00 00 call 14c0fc <strerror> <== NOT EXECUTED
140777: 89 c3 mov %eax,%ebx <== NOT EXECUTED
140779: e8 0e 60 00 00 call 14678c <__errno> <== NOT EXECUTED
14077e: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
140781: 53 push %ebx <== NOT EXECUTED
140782: ff 30 pushl (%eax) <== NOT EXECUTED
140784: 68 80 82 16 00 push $0x168280 <== NOT EXECUTED
140789: e8 26 9f 00 00 call 14a6b4 <printf> <== NOT EXECUTED
14078e: 31 c0 xor %eax,%eax <== NOT EXECUTED
140790: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140793: e9 f3 f4 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
rc = rtems_rfs_fs_open (name, NULL,
RTEMS_RFS_FS_FORCE_OPEN | RTEMS_RFS_FS_NO_LOCAL_CACHE,
0, &fs);
if (rc < 0)
{
printf ("rtems-rfs: format: file system open failed: %d: %s\n",
140798: e8 ef 5f 00 00 call 14678c <__errno> <== NOT EXECUTED
14079d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1407a0: ff 30 pushl (%eax) <== NOT EXECUTED
1407a2: e8 55 b9 00 00 call 14c0fc <strerror> <== NOT EXECUTED
1407a7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
1407a9: e8 de 5f 00 00 call 14678c <__errno> <== NOT EXECUTED
1407ae: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1407b1: 53 push %ebx <== NOT EXECUTED
1407b2: ff 30 pushl (%eax) <== NOT EXECUTED
1407b4: 68 18 81 16 00 push $0x168118 <== NOT EXECUTED
1407b9: e8 f6 9e 00 00 call 14a6b4 <printf> <== NOT EXECUTED
1407be: 31 c0 xor %eax,%eax <== NOT EXECUTED
1407c0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1407c3: e9 c3 f4 ff ff jmp 13fc8b <rtems_rfs_format+0x3eb><== NOT EXECUTED
0013f2bc <rtems_rfs_fs_close>:
return 0;
}
int
rtems_rfs_fs_close (rtems_rfs_file_system* fs)
{
13f2bc: 55 push %ebp <== NOT EXECUTED
13f2bd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13f2bf: 57 push %edi <== NOT EXECUTED
13f2c0: 56 push %esi <== NOT EXECUTED
13f2c1: 53 push %ebx <== NOT EXECUTED
13f2c2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13f2c5: 8b 5d 08 mov 0x8(%ebp),%ebx <== 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++)
13f2c8: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
13f2cb: 85 c0 test %eax,%eax <== NOT EXECUTED
13f2cd: 7e 20 jle 13f2ef <rtems_rfs_fs_close+0x33><== NOT EXECUTED
13f2cf: 31 ff xor %edi,%edi <== NOT EXECUTED
13f2d1: 31 f6 xor %esi,%esi <== NOT EXECUTED
13f2d3: 90 nop <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
13f2d4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13f2d7: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13f2da: 01 f8 add %edi,%eax <== NOT EXECUTED
13f2dc: 50 push %eax <== NOT EXECUTED
13f2dd: 53 push %ebx <== NOT EXECUTED
13f2de: e8 95 17 00 00 call 140a78 <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++)
13f2e3: 46 inc %esi <== NOT EXECUTED
13f2e4: 83 c7 50 add $0x50,%edi <== NOT EXECUTED
13f2e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f2ea: 39 73 20 cmp %esi,0x20(%ebx) <== NOT EXECUTED
13f2ed: 7f e5 jg 13f2d4 <rtems_rfs_fs_close+0x18><== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
rtems_rfs_buffer_close (fs);
13f2ef: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13f2f2: 53 push %ebx <== NOT EXECUTED
13f2f3: e8 64 e1 ff ff call 13d45c <rtems_rfs_buffer_close><== NOT EXECUTED
free (fs);
13f2f8: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
13f2fb: e8 68 f5 fc ff call 10e868 <free> <== NOT EXECUTED
return 0;
}
13f300: 31 c0 xor %eax,%eax <== NOT EXECUTED
13f302: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13f305: 5b pop %ebx <== NOT EXECUTED
13f306: 5e pop %esi <== NOT EXECUTED
13f307: 5f pop %edi <== NOT EXECUTED
13f308: c9 leave <== NOT EXECUTED
13f309: c3 ret <== NOT EXECUTED
0013f2a8 <rtems_rfs_fs_media_size>:
uint64_t
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)
{
13f2a8: 55 push %ebp <== NOT EXECUTED
13f2a9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);
13f2ab: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13f2ae: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
13f2b1: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
13f2b4: 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;
}
13f2b7: c9 leave <== NOT EXECUTED
13f2b8: c3 ret <== NOT EXECUTED
0013f334 <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)
{
13f334: 55 push %ebp <== NOT EXECUTED
13f335: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13f337: 57 push %edi <== NOT EXECUTED
13f338: 56 push %esi <== NOT EXECUTED
13f339: 53 push %ebx <== NOT EXECUTED
13f33a: 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));
13f33d: 68 80 00 00 00 push $0x80 <== NOT EXECUTED
13f342: e8 c1 fa fc ff call 10ee08 <malloc> <== NOT EXECUTED
13f347: 89 c2 mov %eax,%edx <== NOT EXECUTED
13f349: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13f34c: 89 10 mov %edx,(%eax) <== NOT EXECUTED
if (!*fs)
13f34e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f351: 85 d2 test %edx,%edx <== NOT EXECUTED
13f353: 0f 84 18 03 00 00 je 13f671 <rtems_rfs_fs_open+0x33d><== NOT EXECUTED
printf ("rtems-rfs: open: no memory for file system data\n");
errno = ENOMEM;
return -1;
}
memset (*fs, 0, sizeof (rtems_rfs_file_system));
13f359: b9 80 00 00 00 mov $0x80,%ecx <== NOT EXECUTED
13f35e: 31 c0 xor %eax,%eax <== NOT EXECUTED
13f360: 89 d7 mov %edx,%edi <== NOT EXECUTED
13f362: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
(*fs)->user = user;
13f364: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
13f367: 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);
13f36a: 8d 42 44 lea 0x44(%edx),%eax <== NOT EXECUTED
13f36d: 89 42 40 mov %eax,0x40(%edx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
13f370: 8d 42 40 lea 0x40(%edx),%eax <== NOT EXECUTED
13f373: 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);
13f376: 8d 42 54 lea 0x54(%edx),%eax <== NOT EXECUTED
13f379: 89 42 50 mov %eax,0x50(%edx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
13f37c: 8d 42 50 lea 0x50(%edx),%eax <== NOT EXECUTED
13f37f: 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);
13f382: 8d 42 64 lea 0x64(%edx),%eax <== NOT EXECUTED
13f385: 89 42 60 mov %eax,0x60(%edx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
13f388: 8d 42 60 lea 0x60(%edx),%eax <== NOT EXECUTED
13f38b: 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);
13f38e: 8d 42 74 lea 0x74(%edx),%eax <== NOT EXECUTED
13f391: 89 42 70 mov %eax,0x70(%edx) <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
13f394: 8d 42 70 lea 0x70(%edx),%eax <== NOT EXECUTED
13f397: 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;
13f39a: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
13f39d: 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;
13f3a0: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
13f3a3: 89 02 mov %eax,(%edx) <== NOT EXECUTED
group_base = 0;
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, *fs);
13f3a5: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13f3a8: 52 push %edx <== NOT EXECUTED
13f3a9: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
13f3ac: e8 d7 e0 ff ff call 13d488 <rtems_rfs_buffer_open> <== NOT EXECUTED
13f3b1: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13f3b3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f3b6: 85 c0 test %eax,%eax <== NOT EXECUTED
13f3b8: 0f 8f 36 01 00 00 jg 13f4f4 <rtems_rfs_fs_open+0x1c0><== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
rc = rtems_rfs_fs_read_superblock (*fs);
13f3be: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13f3c1: 8b 18 mov (%eax),%ebx <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
13f3c3: c6 45 dc 00 movb $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13f3c7: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13f3ce: 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);
13f3d5: 6a 01 push $0x1 <== NOT EXECUTED
13f3d7: 6a 00 push $0x0 <== NOT EXECUTED
13f3d9: 8d 7d dc lea -0x24(%ebp),%edi <== NOT EXECUTED
13f3dc: 57 push %edi <== NOT EXECUTED
13f3dd: 53 push %ebx <== NOT EXECUTED
13f3de: e8 01 e2 ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
13f3e3: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13f3e5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f3e8: 85 c0 test %eax,%eax <== NOT EXECUTED
13f3ea: 7e 30 jle 13f41c <rtems_rfs_fs_open+0xe8><== NOT EXECUTED
}
rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
13f3ec: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13f3ef: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13f3f2: ff 30 pushl (%eax) <== NOT EXECUTED
13f3f4: e8 63 e0 ff ff call 13d45c <rtems_rfs_buffer_close><== NOT EXECUTED
free (*fs);
13f3f9: 5f pop %edi <== NOT EXECUTED
13f3fa: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
13f3fd: ff 32 pushl (%edx) <== NOT EXECUTED
13f3ff: e8 64 f4 fc ff call 10e868 <free> <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: reading root inode: %d: %s\n",
rc, strerror (rc));
errno = rc;
13f404: e8 83 73 00 00 call 14678c <__errno> <== NOT EXECUTED
13f409: 89 30 mov %esi,(%eax) <== NOT EXECUTED
13f40b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
13f410: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return -1;
}
errno = 0;
return 0;
}
13f413: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13f416: 5b pop %ebx <== NOT EXECUTED
13f417: 5e pop %esi <== NOT EXECUTED
13f418: 5f pop %edi <== NOT EXECUTED
13f419: c9 leave <== NOT EXECUTED
13f41a: c3 ret <== NOT EXECUTED
13f41b: 90 nop <== NOT EXECUTED
printf ("rtems-rfs: read-superblock: request failed%d: %s\n",
rc, strerror (rc));
return rc;
}
sb = rtems_rfs_buffer_data (&handle);
13f41c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
13f41f: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
13f422: 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)
13f425: 0f b6 50 03 movzbl 0x3(%eax),%edx <== NOT EXECUTED
13f429: 0f b6 08 movzbl (%eax),%ecx <== NOT EXECUTED
13f42c: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13f42f: 09 ca or %ecx,%edx <== NOT EXECUTED
13f431: 0f b6 48 01 movzbl 0x1(%eax),%ecx <== NOT EXECUTED
13f435: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13f438: 09 ca or %ecx,%edx <== NOT EXECUTED
13f43a: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
13f43e: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13f441: 09 ca or %ecx,%edx <== NOT EXECUTED
13f443: 81 fa 01 20 09 28 cmp $0x28092001,%edx <== NOT EXECUTED
13f449: 74 29 je 13f474 <rtems_rfs_fs_open+0x140><== 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);
13f44b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13f44e: 57 push %edi <== NOT EXECUTED
13f44f: 53 push %ebx <== NOT EXECUTED
13f450: e8 8b e0 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
13f455: c6 45 dc 00 movb $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->bnum = 0;
13f459: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
13f460: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
13f467: be 05 00 00 00 mov $0x5,%esi <== NOT EXECUTED
13f46c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f46f: e9 78 ff ff ff jmp 13f3ec <rtems_rfs_fs_open+0xb8><== NOT EXECUTED
printf ("rtems-rfs: read-superblock: invalid superblock, bad magic\n");
rtems_rfs_buffer_handle_close (fs, &handle);
return EIO;
}
fs->blocks = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);
13f474: 8b 55 94 mov -0x6c(%ebp),%edx <== NOT EXECUTED
13f477: 0f b6 52 0c movzbl 0xc(%edx),%edx <== NOT EXECUTED
13f47b: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
13f47e: 8b 45 94 mov -0x6c(%ebp),%eax <== NOT EXECUTED
13f481: 0f b6 48 0d movzbl 0xd(%eax),%ecx <== NOT EXECUTED
13f485: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13f488: 09 ca or %ecx,%edx <== NOT EXECUTED
13f48a: 0f b6 48 0f movzbl 0xf(%eax),%ecx <== NOT EXECUTED
13f48e: 09 ca or %ecx,%edx <== NOT EXECUTED
13f490: 0f b6 48 0e movzbl 0xe(%eax),%ecx <== NOT EXECUTED
13f494: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13f497: 09 ca or %ecx,%edx <== NOT EXECUTED
13f499: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
13f49c: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);
13f49f: 0f b6 70 08 movzbl 0x8(%eax),%esi <== NOT EXECUTED
13f4a3: c1 e6 18 shl $0x18,%esi <== NOT EXECUTED
13f4a6: 0f b6 48 09 movzbl 0x9(%eax),%ecx <== NOT EXECUTED
13f4aa: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13f4ad: 09 ce or %ecx,%esi <== NOT EXECUTED
13f4af: 0f b6 48 0b movzbl 0xb(%eax),%ecx <== NOT EXECUTED
13f4b3: 09 ce or %ecx,%esi <== NOT EXECUTED
13f4b5: 0f b6 48 0a movzbl 0xa(%eax),%ecx <== NOT EXECUTED
13f4b9: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13f4bc: 09 ce or %ecx,%esi <== NOT EXECUTED
13f4be: 89 73 08 mov %esi,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);
13f4c1: 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))
13f4c4: 89 d0 mov %edx,%eax <== NOT EXECUTED
13f4c6: f7 e6 mul %esi <== NOT EXECUTED
13f4c8: 89 45 a0 mov %eax,-0x60(%ebp) <== NOT EXECUTED
13f4cb: 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);
13f4ce: 8b 41 1c mov 0x1c(%ecx),%eax <== NOT EXECUTED
13f4d1: f7 61 24 mull 0x24(%ecx) <== NOT EXECUTED
13f4d4: 89 45 88 mov %eax,-0x78(%ebp) <== NOT EXECUTED
13f4d7: 89 55 8c mov %edx,-0x74(%ebp) <== NOT EXECUTED
13f4da: 39 55 a4 cmp %edx,-0x5c(%ebp) <== NOT EXECUTED
13f4dd: 72 3e jb 13f51d <rtems_rfs_fs_open+0x1e9><== NOT EXECUTED
13f4df: 76 37 jbe 13f518 <rtems_rfs_fs_open+0x1e4><== NOT EXECUTED
fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;
if (fs->group_blocks >
rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs)))
{
rtems_rfs_buffer_handle_close (fs, &handle);
13f4e1: 89 fa mov %edi,%edx <== NOT EXECUTED
13f4e3: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13f4e5: e8 22 fe ff ff call 13f30c <rtems_rfs_buffer_handle_close><== NOT EXECUTED
13f4ea: be 05 00 00 00 mov $0x5,%esi <== NOT EXECUTED
13f4ef: e9 f8 fe ff ff jmp 13f3ec <rtems_rfs_fs_open+0xb8><== NOT EXECUTED
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, *fs);
if (rc > 0)
{
free (*fs);
13f4f4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13f4f7: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
13f4fa: ff 32 pushl (%edx) <== NOT EXECUTED
rc = rtems_rfs_inode_close (*fs, &inode);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
free (*fs);
13f4fc: e8 67 f3 fc ff call 10e868 <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;
13f501: e8 86 72 00 00 call 14678c <__errno> <== NOT EXECUTED
13f506: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
13f508: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
13f50d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
errno = 0;
return 0;
}
13f510: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13f513: 5b pop %ebx <== NOT EXECUTED
13f514: 5e pop %esi <== NOT EXECUTED
13f515: 5f pop %edi <== NOT EXECUTED
13f516: c9 leave <== NOT EXECUTED
13f517: c3 ret <== 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);
13f518: 39 45 a0 cmp %eax,-0x60(%ebp) <== NOT EXECUTED
13f51b: 77 c4 ja 13f4e1 <rtems_rfs_fs_open+0x1ad><== 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)
13f51d: 8b 45 94 mov -0x6c(%ebp),%eax <== NOT EXECUTED
13f520: 0f b6 50 24 movzbl 0x24(%eax),%edx <== NOT EXECUTED
13f524: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
13f527: 0f b6 48 25 movzbl 0x25(%eax),%ecx <== NOT EXECUTED
13f52b: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
13f52e: 09 ca or %ecx,%edx <== NOT EXECUTED
13f530: 0f b6 48 27 movzbl 0x27(%eax),%ecx <== NOT EXECUTED
13f534: 09 ca or %ecx,%edx <== NOT EXECUTED
13f536: 0f b6 48 26 movzbl 0x26(%eax),%ecx <== NOT EXECUTED
13f53a: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13f53d: 09 ca or %ecx,%edx <== NOT EXECUTED
13f53f: 83 fa 38 cmp $0x38,%edx <== NOT EXECUTED
13f542: 75 9d jne 13f4e1 <rtems_rfs_fs_open+0x1ad><== 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);
13f544: 8b 55 94 mov -0x6c(%ebp),%edx <== NOT EXECUTED
13f547: 0f b6 4a 10 movzbl 0x10(%edx),%ecx <== NOT EXECUTED
13f54b: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13f54e: 0f b6 52 11 movzbl 0x11(%edx),%edx <== NOT EXECUTED
13f552: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13f555: 09 d1 or %edx,%ecx <== NOT EXECUTED
13f557: 8b 45 94 mov -0x6c(%ebp),%eax <== NOT EXECUTED
13f55a: 0f b6 50 13 movzbl 0x13(%eax),%edx <== NOT EXECUTED
13f55e: 09 d1 or %edx,%ecx <== NOT EXECUTED
13f560: 0f b6 50 12 movzbl 0x12(%eax),%edx <== NOT EXECUTED
13f564: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
13f567: 09 d1 or %edx,%ecx <== NOT EXECUTED
13f569: 89 4b 14 mov %ecx,0x14(%ebx) <== NOT EXECUTED
fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
13f56c: 0f b6 48 14 movzbl 0x14(%eax),%ecx <== NOT EXECUTED
13f570: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13f573: 0f b6 50 15 movzbl 0x15(%eax),%edx <== NOT EXECUTED
13f577: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13f57a: 09 d1 or %edx,%ecx <== NOT EXECUTED
13f57c: 0f b6 50 17 movzbl 0x17(%eax),%edx <== NOT EXECUTED
13f580: 09 d1 or %edx,%ecx <== NOT EXECUTED
13f582: 0f b6 50 16 movzbl 0x16(%eax),%edx <== NOT EXECUTED
13f586: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
13f589: 09 d1 or %edx,%ecx <== NOT EXECUTED
13f58b: 89 4b 18 mov %ecx,0x18(%ebx) <== NOT EXECUTED
fs->group_count = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);
13f58e: 0f b6 50 18 movzbl 0x18(%eax),%edx <== NOT EXECUTED
13f592: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
13f595: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
13f598: 0f b6 50 19 movzbl 0x19(%eax),%edx <== NOT EXECUTED
13f59c: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13f59f: 09 55 a0 or %edx,-0x60(%ebp) <== NOT EXECUTED
13f5a2: 0f b6 50 1b movzbl 0x1b(%eax),%edx <== NOT EXECUTED
13f5a6: 09 55 a0 or %edx,-0x60(%ebp) <== NOT EXECUTED
13f5a9: 0f b6 50 1a movzbl 0x1a(%eax),%edx <== NOT EXECUTED
13f5ad: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
13f5b0: 09 55 a0 or %edx,-0x60(%ebp) <== NOT EXECUTED
13f5b3: 8b 45 a0 mov -0x60(%ebp),%eax <== NOT EXECUTED
13f5b6: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
fs->group_blocks = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS);
13f5b9: 8b 55 94 mov -0x6c(%ebp),%edx <== NOT EXECUTED
13f5bc: 0f b6 52 1c movzbl 0x1c(%edx),%edx <== NOT EXECUTED
13f5c0: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
13f5c3: 89 55 9c mov %edx,-0x64(%ebp) <== NOT EXECUTED
13f5c6: 8b 45 94 mov -0x6c(%ebp),%eax <== NOT EXECUTED
13f5c9: 0f b6 50 1d movzbl 0x1d(%eax),%edx <== NOT EXECUTED
13f5cd: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13f5d0: 09 55 9c or %edx,-0x64(%ebp) <== NOT EXECUTED
13f5d3: 0f b6 50 1f movzbl 0x1f(%eax),%edx <== NOT EXECUTED
13f5d7: 09 55 9c or %edx,-0x64(%ebp) <== NOT EXECUTED
13f5da: 0f b6 50 1e movzbl 0x1e(%eax),%edx <== NOT EXECUTED
13f5de: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
13f5e1: 09 55 9c or %edx,-0x64(%ebp) <== NOT EXECUTED
13f5e4: 8b 55 9c mov -0x64(%ebp),%edx <== NOT EXECUTED
13f5e7: 89 53 24 mov %edx,0x24(%ebx) <== NOT EXECUTED
fs->group_inodes = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);
13f5ea: 0f b6 48 20 movzbl 0x20(%eax),%ecx <== NOT EXECUTED
13f5ee: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
13f5f1: 0f b6 50 21 movzbl 0x21(%eax),%edx <== NOT EXECUTED
13f5f5: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
13f5f8: 09 d1 or %edx,%ecx <== NOT EXECUTED
13f5fa: 0f b6 50 23 movzbl 0x23(%eax),%edx <== NOT EXECUTED
13f5fe: 09 d1 or %edx,%ecx <== NOT EXECUTED
13f600: 0f b6 40 22 movzbl 0x22(%eax),%eax <== NOT EXECUTED
13f604: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
13f607: 09 c1 or %eax,%ecx <== NOT EXECUTED
13f609: 89 4b 28 mov %ecx,0x28(%ebx) <== NOT EXECUTED
fs->blocks_per_block =
rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);
13f60c: 89 f2 mov %esi,%edx <== NOT EXECUTED
13f60e: c1 ea 02 shr $0x2,%edx <== 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 =
13f611: 89 53 30 mov %edx,0x30(%ebx) <== NOT EXECUTED
rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);
fs->block_map_singly_blocks =
13f614: 8d 04 92 lea (%edx,%edx,4),%eax <== NOT EXECUTED
13f617: 89 43 34 mov %eax,0x34(%ebx) <== NOT EXECUTED
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
13f61a: 0f af d2 imul %edx,%edx <== NOT EXECUTED
13f61d: 8d 04 92 lea (%edx,%edx,4),%eax <== NOT EXECUTED
13f620: 89 43 38 mov %eax,0x38(%ebx) <== NOT EXECUTED
fs->blocks_per_block * fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->inodes = fs->group_count * fs->group_inodes;
13f623: 0f af 4d a0 imul -0x60(%ebp),%ecx <== NOT EXECUTED
13f627: 89 4b 10 mov %ecx,0x10(%ebx) <== NOT EXECUTED
fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;
13f62a: 89 f0 mov %esi,%eax <== NOT EXECUTED
13f62c: c1 e8 03 shr $0x3,%eax <== NOT EXECUTED
13f62f: ba 25 49 92 24 mov $0x24924925,%edx <== NOT EXECUTED
13f634: f7 e2 mul %edx <== NOT EXECUTED
13f636: 89 53 2c mov %edx,0x2c(%ebx) <== NOT EXECUTED
if (fs->group_blocks >
13f639: c1 e6 03 shl $0x3,%esi <== NOT EXECUTED
13f63c: 39 75 9c cmp %esi,-0x64(%ebp) <== NOT EXECUTED
13f63f: 0f 87 9c fe ff ff ja 13f4e1 <rtems_rfs_fs_open+0x1ad><== 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);
13f645: 89 fa mov %edi,%edx <== NOT EXECUTED
13f647: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13f649: e8 be fc ff ff call 13f30c <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));
13f64e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13f651: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
13f654: 53 push %ebx <== NOT EXECUTED
13f655: e8 be dd ff ff call 13d418 <rtems_rfs_buffer_setblksize><== NOT EXECUTED
13f65a: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13f65c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f65f: 85 c0 test %eax,%eax <== NOT EXECUTED
13f661: 7e 23 jle 13f686 <rtems_rfs_fs_open+0x352><== NOT EXECUTED
if (rc > 0)
{
int g;
for (g = 0; g < group; g++)
rtems_rfs_group_close (fs, &fs->groups[g]);
rtems_rfs_buffer_handle_close (fs, &handle);
13f663: 89 fa mov %edi,%edx <== NOT EXECUTED
13f665: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13f667: e8 a0 fc ff ff call 13f30c <rtems_rfs_buffer_handle_close><== NOT EXECUTED
13f66c: e9 7b fd ff ff jmp 13f3ec <rtems_rfs_fs_open+0xb8><== NOT EXECUTED
*fs = malloc (sizeof (rtems_rfs_file_system));
if (!*fs)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: no memory for file system data\n");
errno = ENOMEM;
13f671: e8 16 71 00 00 call 14678c <__errno> <== NOT EXECUTED
13f676: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
13f67c: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
13f681: e9 8d fd ff ff jmp 13f413 <rtems_rfs_fs_open+0xdf><== 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));
13f686: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13f689: 6a 50 push $0x50 <== NOT EXECUTED
13f68b: ff 73 20 pushl 0x20(%ebx) <== NOT EXECUTED
13f68e: e8 79 ec fc ff call 10e30c <calloc> <== NOT EXECUTED
13f693: 89 43 1c mov %eax,0x1c(%ebx) <== NOT EXECUTED
if (!fs->groups)
13f696: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f699: 85 c0 test %eax,%eax <== NOT EXECUTED
13f69b: 0f 84 5b 01 00 00 je 13f7fc <rtems_rfs_fs_open+0x4c8><== 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++)
13f6a1: 8b 53 20 mov 0x20(%ebx),%edx <== NOT EXECUTED
13f6a4: 85 d2 test %edx,%edx <== NOT EXECUTED
13f6a6: 0f 8e 8c 00 00 00 jle 13f738 <rtems_rfs_fs_open+0x404><== NOT EXECUTED
fs->groups = calloc (fs->group_count, sizeof (rtems_rfs_group));
if (!fs->groups)
{
rtems_rfs_buffer_handle_close (fs, &handle);
13f6ac: 8b 53 24 mov 0x24(%ebx),%edx <== NOT EXECUTED
13f6af: c7 45 a0 00 00 00 00 movl $0x0,-0x60(%ebp) <== NOT EXECUTED
13f6b6: c7 45 9c 00 00 00 00 movl $0x0,-0x64(%ebp) <== NOT EXECUTED
13f6bd: 31 f6 xor %esi,%esi <== NOT EXECUTED
13f6bf: eb 13 jmp 13f6d4 <rtems_rfs_fs_open+0x3a0><== NOT EXECUTED
13f6c1: 8d 76 00 lea 0x0(%esi),%esi <== 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++)
13f6c4: 46 inc %esi <== NOT EXECUTED
13f6c5: 83 45 a0 50 addl $0x50,-0x60(%ebp) <== NOT EXECUTED
13f6c9: 3b 73 20 cmp 0x20(%ebx),%esi <== NOT EXECUTED
13f6cc: 7d 6a jge 13f738 <rtems_rfs_fs_open+0x404><== NOT EXECUTED
13f6ce: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
13f6d1: 8b 53 24 mov 0x24(%ebx),%edx <== NOT EXECUTED
{
rc = rtems_rfs_group_open (fs,
13f6d4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13f6d7: 03 45 a0 add -0x60(%ebp),%eax <== NOT EXECUTED
13f6da: 50 push %eax <== NOT EXECUTED
13f6db: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
13f6de: 52 push %edx <== NOT EXECUTED
13f6df: 0f af d6 imul %esi,%edx <== NOT EXECUTED
13f6e2: 42 inc %edx <== NOT EXECUTED
13f6e3: 52 push %edx <== NOT EXECUTED
13f6e4: 53 push %ebx <== NOT EXECUTED
13f6e5: e8 0e 14 00 00 call 140af8 <rtems_rfs_group_open> <== NOT EXECUTED
rtems_rfs_fs_block (fs, group, 0),
fs->group_blocks,
fs->group_inodes,
&fs->groups[group]);
if (rc > 0)
13f6ea: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
13f6ed: 85 c0 test %eax,%eax <== NOT EXECUTED
13f6ef: 7e d3 jle 13f6c4 <rtems_rfs_fs_open+0x390><== NOT EXECUTED
13f6f1: 89 75 9c mov %esi,-0x64(%ebp) <== NOT EXECUTED
13f6f4: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
int g;
for (g = 0; g < group; g++)
13f6f6: 83 7d 9c 00 cmpl $0x0,-0x64(%ebp) <== NOT EXECUTED
13f6fa: 0f 84 63 ff ff ff je 13f663 <rtems_rfs_fs_open+0x32f><== NOT EXECUTED
13f700: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
13f702: 31 c0 xor %eax,%eax <== NOT EXECUTED
13f704: 89 75 a0 mov %esi,-0x60(%ebp) <== NOT EXECUTED
13f707: 89 da mov %ebx,%edx <== NOT EXECUTED
13f709: 89 ce mov %ecx,%esi <== NOT EXECUTED
13f70b: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[g]);
13f70d: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13f710: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
13f713: 01 f0 add %esi,%eax <== NOT EXECUTED
13f715: 50 push %eax <== NOT EXECUTED
13f716: 52 push %edx <== NOT EXECUTED
13f717: 89 55 98 mov %edx,-0x68(%ebp) <== NOT EXECUTED
13f71a: e8 59 13 00 00 call 140a78 <rtems_rfs_group_close> <== NOT EXECUTED
fs->group_inodes,
&fs->groups[group]);
if (rc > 0)
{
int g;
for (g = 0; g < group; g++)
13f71f: 43 inc %ebx <== NOT EXECUTED
13f720: 83 c6 50 add $0x50,%esi <== NOT EXECUTED
13f723: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f726: 39 5d 9c cmp %ebx,-0x64(%ebp) <== NOT EXECUTED
13f729: 8b 55 98 mov -0x68(%ebp),%edx <== NOT EXECUTED
13f72c: 7f df jg 13f70d <rtems_rfs_fs_open+0x3d9><== NOT EXECUTED
13f72e: 8b 75 a0 mov -0x60(%ebp),%esi <== NOT EXECUTED
13f731: 89 d3 mov %edx,%ebx <== NOT EXECUTED
13f733: e9 2b ff ff ff jmp 13f663 <rtems_rfs_fs_open+0x32f><== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);
13f738: 6a 01 push $0x1 <== NOT EXECUTED
13f73a: 8d 5d b4 lea -0x4c(%ebp),%ebx <== NOT EXECUTED
13f73d: 53 push %ebx <== NOT EXECUTED
13f73e: 6a 01 push $0x1 <== NOT EXECUTED
13f740: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
13f743: ff 32 pushl (%edx) <== NOT EXECUTED
13f745: e8 62 18 00 00 call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
13f74a: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
13f74c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f74f: 85 c0 test %eax,%eax <== NOT EXECUTED
13f751: 0f 8f 95 fc ff ff jg 13f3ec <rtems_rfs_fs_open+0xb8><== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
if (((*fs)->flags & RTEMS_RFS_FS_FORCE_OPEN) == 0)
13f757: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13f75a: 8b 10 mov (%eax),%edx <== NOT EXECUTED
13f75c: f6 02 04 testb $0x4,(%edx) <== NOT EXECUTED
13f75f: 75 22 jne 13f783 <rtems_rfs_fs_open+0x44f><== 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);
13f761: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
13f764: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
13f768: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
13f76b: 0f b6 40 03 movzbl 0x3(%eax),%eax <== NOT EXECUTED
13f76f: 09 c8 or %ecx,%eax <== NOT EXECUTED
{
mode = rtems_rfs_inode_get_mode (&inode);
if ((mode == 0xffff) || !RTEMS_RFS_S_ISDIR (mode))
13f771: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
13f775: 74 4d je 13f7c4 <rtems_rfs_fs_open+0x490><== NOT EXECUTED
13f777: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
13f77c: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
13f781: 75 41 jne 13f7c4 <rtems_rfs_fs_open+0x490><== NOT EXECUTED
errno = EIO;
return -1;
}
}
rc = rtems_rfs_inode_close (*fs, &inode);
13f783: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13f786: 53 push %ebx <== NOT EXECUTED
13f787: 52 push %edx <== NOT EXECUTED
13f788: e8 9b 17 00 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
13f78d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
13f78f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f792: 85 c0 test %eax,%eax <== NOT EXECUTED
13f794: 7f 16 jg 13f7ac <rtems_rfs_fs_open+0x478><== NOT EXECUTED
printf ("rtems-rfs: open: closing root inode: %d: %s\n", rc, strerror (rc));
errno = rc;
return -1;
}
errno = 0;
13f796: e8 f1 6f 00 00 call 14678c <__errno> <== NOT EXECUTED
13f79b: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
13f7a1: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
13f7a3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13f7a6: 5b pop %ebx <== NOT EXECUTED
13f7a7: 5e pop %esi <== NOT EXECUTED
13f7a8: 5f pop %edi <== NOT EXECUTED
13f7a9: c9 leave <== NOT EXECUTED
13f7aa: c3 ret <== NOT EXECUTED
13f7ab: 90 nop <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (*fs, &inode);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
13f7ac: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13f7af: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
13f7b2: ff 32 pushl (%edx) <== NOT EXECUTED
13f7b4: e8 a3 dc ff ff call 13d45c <rtems_rfs_buffer_close><== NOT EXECUTED
free (*fs);
13f7b9: 5a pop %edx <== NOT EXECUTED
13f7ba: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13f7bd: ff 30 pushl (%eax) <== NOT EXECUTED
13f7bf: e9 38 fd ff ff jmp 13f4fc <rtems_rfs_fs_open+0x1c8><== NOT EXECUTED
{
mode = rtems_rfs_inode_get_mode (&inode);
if ((mode == 0xffff) || !RTEMS_RFS_S_ISDIR (mode))
{
rtems_rfs_inode_close (*fs, &inode);
13f7c4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
13f7c7: 53 push %ebx <== NOT EXECUTED
13f7c8: 52 push %edx <== NOT EXECUTED
13f7c9: e8 5a 17 00 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_buffer_close (*fs);
13f7ce: 5b pop %ebx <== NOT EXECUTED
13f7cf: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
13f7d2: ff 32 pushl (%edx) <== NOT EXECUTED
13f7d4: e8 83 dc ff ff call 13d45c <rtems_rfs_buffer_close><== NOT EXECUTED
free (*fs);
13f7d9: 59 pop %ecx <== NOT EXECUTED
13f7da: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
13f7dd: ff 30 pushl (%eax) <== NOT EXECUTED
13f7df: e8 84 f0 fc ff call 10e868 <free> <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: invalid root inode mode\n");
errno = EIO;
13f7e4: e8 a3 6f 00 00 call 14678c <__errno> <== NOT EXECUTED
13f7e9: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
13f7ef: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
13f7f4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13f7f7: e9 17 fc ff ff jmp 13f413 <rtems_rfs_fs_open+0xdf><== NOT EXECUTED
fs->groups = calloc (fs->group_count, sizeof (rtems_rfs_group));
if (!fs->groups)
{
rtems_rfs_buffer_handle_close (fs, &handle);
13f7fc: 89 fa mov %edi,%edx <== NOT EXECUTED
13f7fe: 89 d8 mov %ebx,%eax <== NOT EXECUTED
13f800: e8 07 fb ff ff call 13f30c <rtems_rfs_buffer_handle_close><== NOT EXECUTED
13f805: be 0c 00 00 00 mov $0xc,%esi <== NOT EXECUTED
13f80a: e9 dd fb ff ff jmp 13f3ec <rtems_rfs_fs_open+0xb8><== NOT EXECUTED
0013f298 <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)
{
13f298: 55 push %ebp <== NOT EXECUTED
13f299: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13f29b: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
13f29e: 8b 42 04 mov 0x4(%edx),%eax <== NOT EXECUTED
13f2a1: 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;
}
13f2a4: c9 leave <== NOT EXECUTED
13f2a5: c3 ret <== NOT EXECUTED
00140908 <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)
{
140908: 55 push %ebp <== NOT EXECUTED
140909: 89 e5 mov %esp,%ebp <== NOT EXECUTED
14090b: 57 push %edi <== NOT EXECUTED
14090c: 56 push %esi <== NOT EXECUTED
14090d: 53 push %ebx <== NOT EXECUTED
14090e: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
140911: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
140914: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
140917: 8a 55 10 mov 0x10(%ebp),%dl <== NOT EXECUTED
14091a: 88 55 cf mov %dl,-0x31(%ebp) <== NOT EXECUTED
rtems_rfs_bitmap_bit bit;
int offset;
bool updown;
int direction;
if (inode)
14091d: 84 d2 test %dl,%dl <== NOT EXECUTED
14091f: 0f 84 e7 00 00 00 je 140a0c <rtems_rfs_group_bitmap_alloc+0x104><== NOT EXECUTED
{
size = fs->group_inodes;
140925: 8b 51 28 mov 0x28(%ecx),%edx <== NOT EXECUTED
140928: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
goal -= RTEMS_RFS_ROOT_INO;
14092b: 48 dec %eax <== NOT EXECUTED
}
else
size = fs->group_blocks;
group_start = goal / size;
14092c: 31 d2 xor %edx,%edx <== NOT EXECUTED
14092e: f7 75 d4 divl -0x2c(%ebp) <== NOT EXECUTED
140931: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (goal % size);
140934: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
*/
while (true)
{
rtems_rfs_bitmap_control* bitmap;
int group;
bool allocated = false;
140937: c6 45 e7 00 movb $0x0,-0x19(%ebp) <== NOT EXECUTED
14093b: 89 c6 mov %eax,%esi <== NOT EXECUTED
14093d: bb 01 00 00 00 mov $0x1,%ebx <== NOT EXECUTED
140942: b2 01 mov $0x1,%dl <== NOT EXECUTED
140944: 31 ff xor %edi,%edi <== 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;
140946: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
140949: 48 dec %eax <== NOT EXECUTED
14094a: 89 45 d4 mov %eax,-0x2c(%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))
14094d: 85 f6 test %esi,%esi <== NOT EXECUTED
14094f: 78 07 js 140958 <rtems_rfs_group_bitmap_alloc+0x50><== NOT EXECUTED
140951: 39 71 20 cmp %esi,0x20(%ecx) <== NOT EXECUTED
140954: 7f 3e jg 140994 <rtems_rfs_group_bitmap_alloc+0x8c><== NOT EXECUTED
140956: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
if (!updown)
140958: 84 d2 test %dl,%dl <== NOT EXECUTED
14095a: 0f 84 94 00 00 00 je 1409f4 <rtems_rfs_group_bitmap_alloc+0xec><== NOT EXECUTED
break;
direction = direction > 0 ? -1 : 1;
140960: 4b dec %ebx <== NOT EXECUTED
140961: 0f 95 c3 setne %bl <== NOT EXECUTED
140964: 0f b6 db movzbl %bl,%ebx <== NOT EXECUTED
140967: 8d 5c 1b ff lea -0x1(%ebx,%ebx,1),%ebx <== 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)
14096b: 85 ff test %edi,%edi <== NOT EXECUTED
14096d: 0f 84 91 00 00 00 je 140a04 <rtems_rfs_group_bitmap_alloc+0xfc><== NOT EXECUTED
140973: 31 d2 xor %edx,%edx <== NOT EXECUTED
bit = direction > 0 ? 0 : size - 1;
140975: 83 fb 01 cmp $0x1,%ebx <== NOT EXECUTED
140978: 75 75 jne 1409ef <rtems_rfs_group_bitmap_alloc+0xe7><== NOT EXECUTED
14097a: 31 c0 xor %eax,%eax <== NOT EXECUTED
14097c: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
*/
while (true)
{
rtems_rfs_bitmap_control* bitmap;
int group;
bool allocated = false;
14097f: 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);
140983: 89 fe mov %edi,%esi <== NOT EXECUTED
140985: 0f af f3 imul %ebx,%esi <== NOT EXECUTED
140988: 03 75 d0 add -0x30(%ebp),%esi <== 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))
14098b: 85 f6 test %esi,%esi <== NOT EXECUTED
14098d: 78 c9 js 140958 <rtems_rfs_group_bitmap_alloc+0x50><== NOT EXECUTED
14098f: 39 71 20 cmp %esi,0x20(%ecx) <== NOT EXECUTED
140992: 7e c4 jle 140958 <rtems_rfs_group_bitmap_alloc+0x50><== NOT EXECUTED
direction = direction > 0 ? -1 : 1;
updown = false;
continue;
}
if (inode)
140994: 80 7d cf 00 cmpb $0x0,-0x31(%ebp) <== NOT EXECUTED
140998: 75 7e jne 140a18 <rtems_rfs_group_bitmap_alloc+0x110><== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
14099a: 8d 04 b6 lea (%esi,%esi,4),%eax <== NOT EXECUTED
14099d: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
1409a0: 03 41 1c add 0x1c(%ecx),%eax <== NOT EXECUTED
1409a3: 83 c0 08 add $0x8,%eax <== NOT EXECUTED
1409a6: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);
1409a9: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
1409ac: 50 push %eax <== NOT EXECUTED
1409ad: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
1409b0: 50 push %eax <== NOT EXECUTED
1409b1: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1409b4: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
1409b7: 88 55 c4 mov %dl,-0x3c(%ebp) <== NOT EXECUTED
1409ba: 89 4d c0 mov %ecx,-0x40(%ebp) <== NOT EXECUTED
1409bd: e8 72 55 00 00 call 145f34 <rtems_rfs_bitmap_map_alloc><== NOT EXECUTED
if (rc > 0)
1409c2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1409c5: 85 c0 test %eax,%eax <== NOT EXECUTED
1409c7: 8a 55 c4 mov -0x3c(%ebp),%dl <== NOT EXECUTED
1409ca: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
1409cd: 7f 2a jg 1409f9 <rtems_rfs_group_bitmap_alloc+0xf1><== NOT EXECUTED
return rc;
if (rtems_rfs_fs_release_bitmaps (fs))
1409cf: f6 01 01 testb $0x1,(%ecx) <== NOT EXECUTED
1409d2: 74 58 je 140a2c <rtems_rfs_group_bitmap_alloc+0x124><== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
if (allocated)
1409d4: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
1409d8: 75 6b jne 140a45 <rtems_rfs_group_bitmap_alloc+0x13d><== NOT EXECUTED
printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
inode ? "inode" : "block", *result);
return 0;
}
if (updown)
1409da: 84 d2 test %dl,%dl <== NOT EXECUTED
1409dc: 74 0b je 1409e9 <rtems_rfs_group_bitmap_alloc+0xe1><== NOT EXECUTED
direction = direction > 0 ? -1 : 1;
1409de: 4b dec %ebx <== NOT EXECUTED
1409df: 0f 95 c3 setne %bl <== NOT EXECUTED
1409e2: 0f b6 db movzbl %bl,%ebx <== NOT EXECUTED
1409e5: 8d 5c 1b ff lea -0x1(%ebx,%ebx,1),%ebx <== NOT EXECUTED
offset++;
1409e9: 47 inc %edi <== 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;
1409ea: 83 fb 01 cmp $0x1,%ebx <== NOT EXECUTED
1409ed: 74 8b je 14097a <rtems_rfs_group_bitmap_alloc+0x72><== NOT EXECUTED
1409ef: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED
1409f2: eb 88 jmp 14097c <rtems_rfs_group_bitmap_alloc+0x74><== NOT EXECUTED
}
if (updown)
direction = direction > 0 ? -1 : 1;
offset++;
1409f4: 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;
}
1409f9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1409fc: 5b pop %ebx <== NOT EXECUTED
1409fd: 5e pop %esi <== NOT EXECUTED
1409fe: 5f pop %edi <== NOT EXECUTED
1409ff: c9 leave <== NOT EXECUTED
140a00: c3 ret <== NOT EXECUTED
140a01: 8d 76 00 lea 0x0(%esi),%esi <== 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)
140a04: 31 d2 xor %edx,%edx <== NOT EXECUTED
140a06: e9 74 ff ff ff jmp 14097f <rtems_rfs_group_bitmap_alloc+0x77><== NOT EXECUTED
140a0b: 90 nop <== NOT EXECUTED
{
size = fs->group_inodes;
goal -= RTEMS_RFS_ROOT_INO;
}
else
size = fs->group_blocks;
140a0c: 8b 51 24 mov 0x24(%ecx),%edx <== NOT EXECUTED
140a0f: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
140a12: e9 15 ff ff ff jmp 14092c <rtems_rfs_group_bitmap_alloc+0x24><== NOT EXECUTED
140a17: 90 nop <== NOT EXECUTED
updown = false;
continue;
}
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
140a18: 8d 04 b6 lea (%esi,%esi,4),%eax <== NOT EXECUTED
140a1b: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
140a1e: 03 41 1c add 0x1c(%ecx),%eax <== NOT EXECUTED
140a21: 83 c0 2c add $0x2c,%eax <== NOT EXECUTED
140a24: 89 45 c8 mov %eax,-0x38(%ebp) <== NOT EXECUTED
140a27: eb 80 jmp 1409a9 <rtems_rfs_group_bitmap_alloc+0xa1><== NOT EXECUTED
140a29: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);
if (rc > 0)
return rc;
if (rtems_rfs_fs_release_bitmaps (fs))
rtems_rfs_bitmap_release_buffer (fs, bitmap);
140a2c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
140a2f: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
140a32: ff 30 pushl (%eax) <== NOT EXECUTED
140a34: 51 push %ecx <== NOT EXECUTED
140a35: e8 a6 ca ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
140a3a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140a3d: 8b 4d c0 mov -0x40(%ebp),%ecx <== NOT EXECUTED
140a40: 8a 55 c4 mov -0x3c(%ebp),%dl <== NOT EXECUTED
140a43: eb 8f jmp 1409d4 <rtems_rfs_group_bitmap_alloc+0xcc><== NOT EXECUTED
if (allocated)
{
if (inode)
140a45: 80 7d cf 00 cmpb $0x0,-0x31(%ebp) <== NOT EXECUTED
140a49: 74 14 je 140a5f <rtems_rfs_group_bitmap_alloc+0x157><== NOT EXECUTED
*result = rtems_rfs_group_inode (fs, group, bit);
140a4b: 0f af 71 28 imul 0x28(%ecx),%esi <== NOT EXECUTED
140a4f: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
140a52: 8d 44 30 01 lea 0x1(%eax,%esi,1),%eax <== NOT EXECUTED
140a56: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
140a59: 89 02 mov %eax,(%edx) <== NOT EXECUTED
140a5b: 31 c0 xor %eax,%eax <== NOT EXECUTED
140a5d: eb 9a jmp 1409f9 <rtems_rfs_group_bitmap_alloc+0xf1><== NOT EXECUTED
else
*result = rtems_rfs_group_block (&fs->groups[group], bit);
140a5f: 8b 49 1c mov 0x1c(%ecx),%ecx <== NOT EXECUTED
140a62: 8d 14 b6 lea (%esi,%esi,4),%edx <== NOT EXECUTED
140a65: c1 e2 04 shl $0x4,%edx <== NOT EXECUTED
140a68: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
140a6b: 03 04 11 add (%ecx,%edx,1),%eax <== NOT EXECUTED
140a6e: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
140a71: 89 02 mov %eax,(%edx) <== NOT EXECUTED
140a73: 31 c0 xor %eax,%eax <== NOT EXECUTED
140a75: eb 82 jmp 1409f9 <rtems_rfs_group_bitmap_alloc+0xf1><== NOT EXECUTED
001408ac <rtems_rfs_group_bitmap_free>:
int
rtems_rfs_group_bitmap_free (rtems_rfs_file_system* fs,
bool inode,
rtems_rfs_bitmap_bit no)
{
1408ac: 55 push %ebp <== NOT EXECUTED
1408ad: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1408af: 57 push %edi <== NOT EXECUTED
1408b0: 56 push %esi <== NOT EXECUTED
1408b1: 53 push %ebx <== NOT EXECUTED
1408b2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1408b5: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
1408b8: 8b 45 10 mov 0x10(%ebp),%eax <== 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)
1408bb: 80 7d 0c 00 cmpb $0x0,0xc(%ebp) <== NOT EXECUTED
1408bf: 74 33 je 1408f4 <rtems_rfs_group_bitmap_free+0x48><== NOT EXECUTED
{
no -= RTEMS_RFS_SUPERBLOCK_SIZE;
size = fs->group_blocks;
}
group = no / size;
1408c1: 48 dec %eax <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
1408c2: 31 d2 xor %edx,%edx <== NOT EXECUTED
1408c4: f7 73 28 divl 0x28(%ebx) <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
1408c7: 8d 34 80 lea (%eax,%eax,4),%esi <== NOT EXECUTED
1408ca: c1 e6 04 shl $0x4,%esi <== NOT EXECUTED
1408cd: 03 73 1c add 0x1c(%ebx),%esi <== NOT EXECUTED
1408d0: 83 c6 2c add $0x2c,%esi <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
rc = rtems_rfs_bitmap_map_clear (bitmap, bit);
1408d3: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1408d6: 52 push %edx <== NOT EXECUTED
1408d7: 56 push %esi <== NOT EXECUTED
1408d8: e8 0b 53 00 00 call 145be8 <rtems_rfs_bitmap_map_clear><== NOT EXECUTED
1408dd: 89 c7 mov %eax,%edi <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
1408df: 58 pop %eax <== NOT EXECUTED
1408e0: 5a pop %edx <== NOT EXECUTED
1408e1: ff 36 pushl (%esi) <== NOT EXECUTED
1408e3: 53 push %ebx <== NOT EXECUTED
1408e4: e8 f7 cb ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
return rc;
}
1408e9: 89 f8 mov %edi,%eax <== NOT EXECUTED
1408eb: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1408ee: 5b pop %ebx <== NOT EXECUTED
1408ef: 5e pop %esi <== NOT EXECUTED
1408f0: 5f pop %edi <== NOT EXECUTED
1408f1: c9 leave <== NOT EXECUTED
1408f2: c3 ret <== NOT EXECUTED
1408f3: 90 nop <== NOT EXECUTED
{
no -= RTEMS_RFS_SUPERBLOCK_SIZE;
size = fs->group_blocks;
}
group = no / size;
1408f4: 48 dec %eax <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
1408f5: 31 d2 xor %edx,%edx <== NOT EXECUTED
1408f7: f7 73 24 divl 0x24(%ebx) <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
1408fa: 8d 34 80 lea (%eax,%eax,4),%esi <== NOT EXECUTED
1408fd: c1 e6 04 shl $0x4,%esi <== NOT EXECUTED
140900: 03 73 1c add 0x1c(%ebx),%esi <== NOT EXECUTED
140903: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
140906: eb cb jmp 1408d3 <rtems_rfs_group_bitmap_free+0x27><== NOT EXECUTED
00140830 <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)
{
140830: 55 push %ebp <== NOT EXECUTED
140831: 89 e5 mov %esp,%ebp <== NOT EXECUTED
140833: 57 push %edi <== NOT EXECUTED
140834: 56 push %esi <== NOT EXECUTED
140835: 53 push %ebx <== NOT EXECUTED
140836: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140839: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
14083c: 8b 45 10 mov 0x10(%ebp),%eax <== 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)
14083f: 80 7d 0c 00 cmpb $0x0,0xc(%ebp) <== NOT EXECUTED
140843: 74 3f je 140884 <rtems_rfs_group_bitmap_test+0x54><== NOT EXECUTED
{
if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs)))
140845: 85 c0 test %eax,%eax <== NOT EXECUTED
140847: 7e 53 jle 14089c <rtems_rfs_group_bitmap_test+0x6c><== NOT EXECUTED
140849: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
14084c: 77 4e ja 14089c <rtems_rfs_group_bitmap_test+0x6c><== NOT EXECUTED
if (no >= rtems_rfs_fs_blocks (fs))
return EINVAL;
size = fs->group_blocks;
}
group = no / size;
14084e: 48 dec %eax <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
14084f: 31 d2 xor %edx,%edx <== NOT EXECUTED
140851: f7 73 28 divl 0x28(%ebx) <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
140854: 8d 3c 80 lea (%eax,%eax,4),%edi <== NOT EXECUTED
140857: c1 e7 04 shl $0x4,%edi <== NOT EXECUTED
14085a: 03 7b 1c add 0x1c(%ebx),%edi <== NOT EXECUTED
14085d: 83 c7 2c add $0x2c,%edi <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
140860: 51 push %ecx <== NOT EXECUTED
140861: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
140864: 52 push %edx <== NOT EXECUTED
140865: 57 push %edi <== NOT EXECUTED
140866: e8 25 53 00 00 call 145b90 <rtems_rfs_bitmap_map_test><== NOT EXECUTED
14086b: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
14086d: 58 pop %eax <== NOT EXECUTED
14086e: 5a pop %edx <== NOT EXECUTED
14086f: ff 37 pushl (%edi) <== NOT EXECUTED
140871: 53 push %ebx <== NOT EXECUTED
140872: e8 69 cc ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
return rc;
140877: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
14087a: 89 f0 mov %esi,%eax <== NOT EXECUTED
14087c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
14087f: 5b pop %ebx <== NOT EXECUTED
140880: 5e pop %esi <== NOT EXECUTED
140881: 5f pop %edi <== NOT EXECUTED
140882: c9 leave <== NOT EXECUTED
140883: c3 ret <== NOT EXECUTED
no -= RTEMS_RFS_ROOT_INO;
size = fs->group_inodes;
}
else
{
if (no >= rtems_rfs_fs_blocks (fs))
140884: 3b 43 04 cmp 0x4(%ebx),%eax <== NOT EXECUTED
140887: 73 13 jae 14089c <rtems_rfs_group_bitmap_test+0x6c><== NOT EXECUTED
return EINVAL;
size = fs->group_blocks;
}
group = no / size;
bit = (rtems_rfs_bitmap_bit) (no % size);
140889: 31 d2 xor %edx,%edx <== NOT EXECUTED
14088b: f7 73 24 divl 0x24(%ebx) <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
14088e: 8d 3c 80 lea (%eax,%eax,4),%edi <== NOT EXECUTED
140891: c1 e7 04 shl $0x4,%edi <== NOT EXECUTED
140894: 03 7b 1c add 0x1c(%ebx),%edi <== NOT EXECUTED
140897: 83 c7 08 add $0x8,%edi <== NOT EXECUTED
14089a: eb c4 jmp 140860 <rtems_rfs_group_bitmap_test+0x30><== NOT EXECUTED
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
rtems_rfs_bitmap_release_buffer (fs, bitmap);
return rc;
14089c: be 16 00 00 00 mov $0x16,%esi <== NOT EXECUTED
}
1408a1: 89 f0 mov %esi,%eax <== NOT EXECUTED
1408a3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1408a6: 5b pop %ebx <== NOT EXECUTED
1408a7: 5e pop %esi <== NOT EXECUTED
1408a8: 5f pop %edi <== NOT EXECUTED
1408a9: c9 leave <== NOT EXECUTED
1408aa: c3 ret <== NOT EXECUTED
00140a78 <rtems_rfs_group_close>:
return 0;
}
int
rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group)
{
140a78: 55 push %ebp <== NOT EXECUTED
140a79: 89 e5 mov %esp,%ebp <== NOT EXECUTED
140a7b: 57 push %edi <== NOT EXECUTED
140a7c: 56 push %esi <== NOT EXECUTED
140a7d: 53 push %ebx <== NOT EXECUTED
140a7e: 83 ec 18 sub $0x18,%esp <== NOT EXECUTED
140a81: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
140a84: 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);
140a87: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED
140a8a: 50 push %eax <== NOT EXECUTED
140a8b: e8 74 4e 00 00 call 145904 <rtems_rfs_bitmap_close><== NOT EXECUTED
140a90: 89 c7 mov %eax,%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);
140a92: 59 pop %ecx <== NOT EXECUTED
140a93: 58 pop %eax <== NOT EXECUTED
140a94: 8d 43 44 lea 0x44(%ebx),%eax <== NOT EXECUTED
140a97: 50 push %eax <== NOT EXECUTED
140a98: 56 push %esi <== NOT EXECUTED
140a99: e8 42 ca ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
140a9e: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
140aa2: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
140aa9: 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);
140ab0: 8d 43 08 lea 0x8(%ebx),%eax <== NOT EXECUTED
140ab3: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
140ab6: e8 49 4e 00 00 call 145904 <rtems_rfs_bitmap_close><== NOT EXECUTED
if (rc > 0)
140abb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140abe: 85 c0 test %eax,%eax <== NOT EXECUTED
140ac0: 7e 2e jle 140af0 <rtems_rfs_group_close+0x78><== NOT EXECUTED
140ac2: 89 c7 mov %eax,%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);
140ac4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
140ac7: 8d 43 20 lea 0x20(%ebx),%eax <== NOT EXECUTED
140aca: 50 push %eax <== NOT EXECUTED
140acb: 56 push %esi <== NOT EXECUTED
140acc: e8 0f ca ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
140ad1: c6 43 20 00 movb $0x0,0x20(%ebx) <== NOT EXECUTED
handle->bnum = 0;
140ad5: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
140adc: 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;
}
140ae3: 89 f8 mov %edi,%eax <== NOT EXECUTED
140ae5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
140ae8: 5b pop %ebx <== NOT EXECUTED
140ae9: 5e pop %esi <== NOT EXECUTED
140aea: 5f pop %edi <== NOT EXECUTED
140aeb: c9 leave <== NOT EXECUTED
140aec: c3 ret <== NOT EXECUTED
140aed: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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);
if (rc > 0)
140af0: 85 ff test %edi,%edi <== NOT EXECUTED
140af2: 79 d0 jns 140ac4 <rtems_rfs_group_close+0x4c><== NOT EXECUTED
140af4: 31 ff xor %edi,%edi <== NOT EXECUTED
140af6: eb cc jmp 140ac4 <rtems_rfs_group_close+0x4c><== NOT EXECUTED
00140af8 <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)
{
140af8: 55 push %ebp <== NOT EXECUTED
140af9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
140afb: 57 push %edi <== NOT EXECUTED
140afc: 56 push %esi <== NOT EXECUTED
140afd: 53 push %ebx <== NOT EXECUTED
140afe: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
140b01: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
140b04: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
140b07: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
140b0a: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED
int rc;
if (base >= rtems_rfs_fs_blocks (fs))
140b0d: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED
140b10: 39 c2 cmp %eax,%edx <== NOT EXECUTED
140b12: 0f 86 bc 00 00 00 jbe 140bd4 <rtems_rfs_group_open+0xdc><== 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))
140b18: 8d 0c 07 lea (%edi,%eax,1),%ecx <== NOT EXECUTED
140b1b: 39 ca cmp %ecx,%edx <== NOT EXECUTED
140b1d: 77 04 ja 140b23 <rtems_rfs_group_open+0x2b><== NOT EXECUTED
size = rtems_rfs_fs_blocks (fs) - base;
140b1f: 89 d7 mov %edx,%edi <== NOT EXECUTED
140b21: 29 c7 sub %eax,%edi <== 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;
140b23: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
group->size = size;
140b25: 89 7b 04 mov %edi,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;
140b28: c6 43 20 00 movb $0x0,0x20(%ebx) <== NOT EXECUTED
handle->bnum = 0;
140b2c: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
140b33: 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,
140b3a: 8d 53 20 lea 0x20(%ebx),%edx <== NOT EXECUTED
140b3d: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
140b40: 8d 53 08 lea 0x8(%ebx),%edx <== NOT EXECUTED
140b43: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
140b46: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140b49: 50 push %eax <== NOT EXECUTED
140b4a: 57 push %edi <== NOT EXECUTED
140b4b: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
140b4e: 56 push %esi <== NOT EXECUTED
140b4f: 52 push %edx <== NOT EXECUTED
140b50: e8 df 4e 00 00 call 145a34 <rtems_rfs_bitmap_open> <== NOT EXECUTED
&group->block_bitmap_buffer, size,
group->base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
if (rc > 0)
140b55: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
140b58: 85 c0 test %eax,%eax <== NOT EXECUTED
140b5a: 7e 34 jle 140b90 <rtems_rfs_group_open+0x98><== 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);
140b5c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
140b5f: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
140b62: 56 push %esi <== NOT EXECUTED
140b63: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
140b66: e8 75 c9 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
140b6b: c6 43 20 00 movb $0x0,0x20(%ebx) <== NOT EXECUTED
handle->bnum = 0;
140b6f: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
140b76: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx) <== NOT EXECUTED
140b7d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140b80: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);
rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);
}
return 0;
}
140b83: 89 d0 mov %edx,%eax <== NOT EXECUTED
140b85: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
140b88: 5b pop %ebx <== NOT EXECUTED
140b89: 5e pop %esi <== NOT EXECUTED
140b8a: 5f pop %edi <== NOT EXECUTED
140b8b: c9 leave <== NOT EXECUTED
140b8c: c3 ret <== NOT EXECUTED
140b8d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
140b90: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
140b94: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
140b9b: 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,
140ba2: 8d 4b 44 lea 0x44(%ebx),%ecx <== NOT EXECUTED
140ba5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140ba8: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
140baa: 40 inc %eax <== NOT EXECUTED
140bab: 50 push %eax <== NOT EXECUTED
140bac: 3b 7d 14 cmp 0x14(%ebp),%edi <== NOT EXECUTED
140baf: 77 33 ja 140be4 <rtems_rfs_group_open+0xec><== NOT EXECUTED
140bb1: 57 push %edi <== NOT EXECUTED
140bb2: 51 push %ecx <== NOT EXECUTED
140bb3: 56 push %esi <== NOT EXECUTED
140bb4: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED
140bb7: 50 push %eax <== NOT EXECUTED
140bb8: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
140bbb: e8 74 4e 00 00 call 145a34 <rtems_rfs_bitmap_open> <== NOT EXECUTED
&group->inode_bitmap_buffer, inodes,
group->base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
if (rc > 0)
140bc0: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
140bc3: 85 c0 test %eax,%eax <== NOT EXECUTED
140bc5: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
140bc8: 7f 22 jg 140bec <rtems_rfs_group_open+0xf4><== 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))
140bca: f6 06 01 testb $0x1,(%esi) <== NOT EXECUTED
140bcd: 74 51 je 140c20 <rtems_rfs_group_open+0x128><== NOT EXECUTED
140bcf: 31 d2 xor %edx,%edx <== NOT EXECUTED
140bd1: eb b0 jmp 140b83 <rtems_rfs_group_open+0x8b><== NOT EXECUTED
140bd3: 90 nop <== NOT EXECUTED
size_t inodes,
rtems_rfs_group* group)
{
int rc;
if (base >= rtems_rfs_fs_blocks (fs))
140bd4: ba 05 00 00 00 mov $0x5,%edx <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);
rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);
}
return 0;
}
140bd9: 89 d0 mov %edx,%eax <== NOT EXECUTED
140bdb: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
140bde: 5b pop %ebx <== NOT EXECUTED
140bdf: 5e pop %esi <== NOT EXECUTED
140be0: 5f pop %edi <== NOT EXECUTED
140be1: c9 leave <== NOT EXECUTED
140be2: c3 ret <== NOT EXECUTED
140be3: 90 nop <== 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,
140be4: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
140be7: eb c8 jmp 140bb1 <rtems_rfs_group_open+0xb9><== NOT EXECUTED
140be9: 8d 76 00 lea 0x0(%esi),%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);
140bec: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
140bef: 51 push %ecx <== NOT EXECUTED
140bf0: 56 push %esi <== NOT EXECUTED
140bf1: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
140bf4: e8 e7 c8 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
140bf9: c6 43 44 00 movb $0x0,0x44(%ebx) <== NOT EXECUTED
handle->bnum = 0;
140bfd: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) <== NOT EXECUTED
handle->buffer = NULL;
140c04: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) <== NOT EXECUTED
&group->inode_bitmap_buffer, inodes,
group->base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &group->inode_bitmap_buffer);
rtems_rfs_bitmap_close (&group->block_bitmap);
140c0b: 5a pop %edx <== NOT EXECUTED
140c0c: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
140c0f: e8 f0 4c 00 00 call 145904 <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);
140c14: 5f pop %edi <== NOT EXECUTED
140c15: 58 pop %eax <== NOT EXECUTED
140c16: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
140c19: 56 push %esi <== NOT EXECUTED
140c1a: e9 47 ff ff ff jmp 140b66 <rtems_rfs_group_open+0x6e><== NOT EXECUTED
140c1f: 90 nop <== NOT EXECUTED
return rc;
}
if (rtems_rfs_fs_release_bitmaps (fs))
{
rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);
140c20: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
140c23: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
140c26: 56 push %esi <== NOT EXECUTED
140c27: e8 b4 c8 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);
140c2c: 5a pop %edx <== NOT EXECUTED
140c2d: 59 pop %ecx <== NOT EXECUTED
140c2e: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
140c31: 56 push %esi <== NOT EXECUTED
140c32: e8 a9 c8 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
140c37: 31 d2 xor %edx,%edx <== NOT EXECUTED
140c39: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140c3c: e9 42 ff ff ff jmp 140b83 <rtems_rfs_group_open+0x8b><== NOT EXECUTED
001407c8 <rtems_rfs_group_usage>:
int
rtems_rfs_group_usage (rtems_rfs_file_system* fs,
size_t* blocks,
size_t* inodes)
{
1407c8: 55 push %ebp <== NOT EXECUTED
1407c9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1407cb: 57 push %edi <== NOT EXECUTED
1407cc: 56 push %esi <== NOT EXECUTED
1407cd: 53 push %ebx <== NOT EXECUTED
1407ce: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
1407d1: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
int g;
*blocks = 0;
1407d4: c7 06 00 00 00 00 movl $0x0,(%esi) <== NOT EXECUTED
*inodes = 0;
1407da: c7 03 00 00 00 00 movl $0x0,(%ebx) <== NOT EXECUTED
for (g = 0; g < fs->group_count; g++)
1407e0: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1407e3: 8b 78 20 mov 0x20(%eax),%edi <== NOT EXECUTED
1407e6: 85 ff test %edi,%edi <== NOT EXECUTED
1407e8: 7e 1e jle 140808 <rtems_rfs_group_usage+0x40><== NOT EXECUTED
1407ea: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1407ed: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
1407ef: 90 nop <== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
*blocks +=
1407f0: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED
1407f3: 2b 50 18 sub 0x18(%eax),%edx <== NOT EXECUTED
1407f6: 01 16 add %edx,(%esi) <== NOT EXECUTED
rtems_rfs_bitmap_map_size(&group->block_bitmap) -
rtems_rfs_bitmap_map_free (&group->block_bitmap);
*inodes +=
1407f8: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED
1407fb: 2b 50 3c sub 0x3c(%eax),%edx <== NOT EXECUTED
1407fe: 01 13 add %edx,(%ebx) <== NOT EXECUTED
int g;
*blocks = 0;
*inodes = 0;
for (g = 0; g < fs->group_count; g++)
140800: 41 inc %ecx <== NOT EXECUTED
140801: 83 c0 50 add $0x50,%eax <== NOT EXECUTED
140804: 39 f9 cmp %edi,%ecx <== NOT EXECUTED
140806: 7c e8 jl 1407f0 <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))
140808: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
14080b: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
14080e: 8b 06 mov (%esi),%eax <== NOT EXECUTED
140810: 39 d0 cmp %edx,%eax <== NOT EXECUTED
140812: 76 02 jbe 140816 <rtems_rfs_group_usage+0x4e><== NOT EXECUTED
140814: 89 d0 mov %edx,%eax <== NOT EXECUTED
140816: 89 06 mov %eax,(%esi) <== NOT EXECUTED
*blocks = rtems_rfs_fs_blocks (fs);
if (*inodes > rtems_rfs_fs_inodes (fs))
140818: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
14081b: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
14081e: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
140820: 39 d0 cmp %edx,%eax <== NOT EXECUTED
140822: 76 02 jbe 140826 <rtems_rfs_group_usage+0x5e><== NOT EXECUTED
140824: 89 d0 mov %edx,%eax <== NOT EXECUTED
140826: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
*inodes = rtems_rfs_fs_inodes (fs);
return 0;
}
140828: 31 c0 xor %eax,%eax <== NOT EXECUTED
14082a: 5b pop %ebx <== NOT EXECUTED
14082b: 5e pop %esi <== NOT EXECUTED
14082c: 5f pop %edi <== NOT EXECUTED
14082d: c9 leave <== NOT EXECUTED
14082e: c3 ret <== NOT EXECUTED
001410f8 <rtems_rfs_inode_alloc>:
int
rtems_rfs_inode_alloc (rtems_rfs_file_system* fs,
rtems_rfs_bitmap_bit goal,
rtems_rfs_ino* ino)
{
1410f8: 55 push %ebp <== NOT EXECUTED
1410f9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1410fb: 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);
1410fe: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
141101: 50 push %eax <== NOT EXECUTED
141102: 6a 01 push $0x1 <== NOT EXECUTED
141104: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
141107: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
14110a: e8 f9 f7 ff ff call 140908 <rtems_rfs_group_bitmap_alloc><== NOT EXECUTED
*ino = bit;
14110f: 8b 4d f4 mov -0xc(%ebp),%ecx <== NOT EXECUTED
141112: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
141115: 89 0a mov %ecx,(%edx) <== NOT EXECUTED
return rc;
}
141117: c9 leave <== NOT EXECUTED
141118: c3 ret <== NOT EXECUTED
00140f28 <rtems_rfs_inode_close>:
}
int
rtems_rfs_inode_close (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
140f28: 55 push %ebp <== NOT EXECUTED
140f29: 89 e5 mov %esp,%ebp <== NOT EXECUTED
140f2b: 53 push %ebx <== NOT EXECUTED
140f2c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
140f2f: 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);
140f32: 6a 01 push $0x1 <== NOT EXECUTED
140f34: 53 push %ebx <== NOT EXECUTED
140f35: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
140f38: e8 53 ff ff ff call 140e90 <rtems_rfs_inode_unload><== NOT EXECUTED
if ((rc == 0) && (handle->loads > 0))
140f3d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140f40: 85 c0 test %eax,%eax <== NOT EXECUTED
140f42: 75 09 jne 140f4d <rtems_rfs_inode_close+0x25><== NOT EXECUTED
140f44: 8b 53 24 mov 0x24(%ebx),%edx <== NOT EXECUTED
140f47: 85 d2 test %edx,%edx <== NOT EXECUTED
140f49: 7e 02 jle 140f4d <rtems_rfs_inode_close+0x25><== NOT EXECUTED
140f4b: b0 05 mov $0x5,%al <== NOT EXECUTED
printf ("rtems-rfs: inode-close: bad loads number: %d\n",
handle->loads);
rc = EIO;
}
handle->ino = 0;
140f4d: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
return rc;
}
140f54: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
140f57: c9 leave <== NOT EXECUTED
140f58: c3 ret <== NOT EXECUTED
0014111c <rtems_rfs_inode_create>:
uint16_t mode,
uint16_t links,
uid_t uid,
gid_t gid,
rtems_rfs_ino* ino)
{
14111c: 55 push %ebp <== NOT EXECUTED
14111d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
14111f: 57 push %edi <== NOT EXECUTED
141120: 56 push %esi <== NOT EXECUTED
141121: 53 push %ebx <== NOT EXECUTED
141122: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
141125: 8b 75 1c mov 0x1c(%ebp),%esi <== NOT EXECUTED
141128: 8b 7d 20 mov 0x20(%ebp),%edi <== NOT EXECUTED
14112b: 8b 55 24 mov 0x24(%ebp),%edx <== NOT EXECUTED
}
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & RTEMS_RFS_S_IFMT)
14112e: 0f b7 45 18 movzwl 0x18(%ebp),%eax <== NOT EXECUTED
141132: 89 45 94 mov %eax,-0x6c(%ebp) <== NOT EXECUTED
141135: 89 c1 mov %eax,%ecx <== NOT EXECUTED
141137: 81 e1 00 f0 00 00 and $0xf000,%ecx <== NOT EXECUTED
14113d: 81 f9 00 60 00 00 cmp $0x6000,%ecx <== NOT EXECUTED
141143: 74 33 je 141178 <rtems_rfs_inode_create+0x5c><== NOT EXECUTED
141145: 7e 21 jle 141168 <rtems_rfs_inode_create+0x4c><== NOT EXECUTED
141147: 81 f9 00 80 00 00 cmp $0x8000,%ecx <== NOT EXECUTED
14114d: 74 29 je 141178 <rtems_rfs_inode_create+0x5c><== NOT EXECUTED
14114f: 81 f9 00 a0 00 00 cmp $0xa000,%ecx <== NOT EXECUTED
141155: 74 21 je 141178 <rtems_rfs_inode_create+0x5c><== NOT EXECUTED
141157: bb 16 00 00 00 mov $0x16,%ebx <== NOT EXECUTED
rtems_rfs_inode_free (fs, *ino);
return rc;
}
return 0;
}
14115c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
14115e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141161: 5b pop %ebx <== NOT EXECUTED
141162: 5e pop %esi <== NOT EXECUTED
141163: 5f pop %edi <== NOT EXECUTED
141164: c9 leave <== NOT EXECUTED
141165: c3 ret <== NOT EXECUTED
141166: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & RTEMS_RFS_S_IFMT)
141168: 81 f9 00 20 00 00 cmp $0x2000,%ecx <== NOT EXECUTED
14116e: 74 08 je 141178 <rtems_rfs_inode_create+0x5c><== NOT EXECUTED
141170: 81 f9 00 40 00 00 cmp $0x4000,%ecx <== NOT EXECUTED
141176: 75 df jne 141157 <rtems_rfs_inode_create+0x3b><== NOT EXECUTED
break;
default:
return EINVAL;
}
rc = rtems_rfs_inode_alloc (fs, parent, ino);
141178: 50 push %eax <== NOT EXECUTED
141179: ff 75 28 pushl 0x28(%ebp) <== NOT EXECUTED
14117c: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
14117f: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
141182: 89 55 8c mov %edx,-0x74(%ebp) <== NOT EXECUTED
141185: 89 4d 90 mov %ecx,-0x70(%ebp) <== NOT EXECUTED
141188: e8 6b ff ff ff call 1410f8 <rtems_rfs_inode_alloc> <== NOT EXECUTED
14118d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
14118f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141192: 85 c0 test %eax,%eax <== NOT EXECUTED
141194: 7f c6 jg 14115c <rtems_rfs_inode_create+0x40><== NOT EXECUTED
return rc;
rc = rtems_rfs_inode_open (fs, *ino, &inode, true);
141196: 6a 01 push $0x1 <== NOT EXECUTED
141198: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
14119b: 50 push %eax <== NOT EXECUTED
14119c: 8b 45 28 mov 0x28(%ebp),%eax <== NOT EXECUTED
14119f: ff 30 pushl (%eax) <== NOT EXECUTED
1411a1: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1411a4: e8 03 fe ff ff call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
1411a9: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1411ab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1411ae: 85 c0 test %eax,%eax <== NOT EXECUTED
1411b0: 8b 55 8c mov -0x74(%ebp),%edx <== NOT EXECUTED
1411b3: 8b 4d 90 mov -0x70(%ebp),%ecx <== NOT EXECUTED
1411b6: 7e 18 jle 1411d0 <rtems_rfs_inode_create+0xb4><== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &inode);
if (rc > 0)
{
rtems_rfs_inode_free (fs, *ino);
1411b8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1411bb: 8b 45 28 mov 0x28(%ebp),%eax <== NOT EXECUTED
1411be: ff 30 pushl (%eax) <== NOT EXECUTED
1411c0: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1411c3: e8 80 fe ff ff call 141048 <rtems_rfs_inode_free> <== NOT EXECUTED
return rc;
1411c8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1411cb: eb 8f jmp 14115c <rtems_rfs_inode_create+0x40><== NOT EXECUTED
1411cd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
rtems_rfs_inode_free (fs, *ino);
return rc;
}
rc = rtems_rfs_inode_initialise (&inode, links, mode, uid, gid);
1411d0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1411d3: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
1411d6: 52 push %edx <== NOT EXECUTED
1411d7: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED
1411da: 57 push %edi <== NOT EXECUTED
1411db: ff 75 94 pushl -0x6c(%ebp) <== NOT EXECUTED
1411de: 0f b7 f6 movzwl %si,%esi <== NOT EXECUTED
1411e1: 56 push %esi <== NOT EXECUTED
1411e2: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
1411e5: 50 push %eax <== NOT EXECUTED
1411e6: 89 4d 90 mov %ecx,-0x70(%ebp) <== NOT EXECUTED
1411e9: e8 62 fb ff ff call 140d50 <rtems_rfs_inode_initialise><== NOT EXECUTED
1411ee: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1411f0: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1411f3: 85 c0 test %eax,%eax <== NOT EXECUTED
1411f5: 8b 4d 90 mov -0x70(%ebp),%ecx <== NOT EXECUTED
1411f8: 7f 52 jg 14124c <rtems_rfs_inode_create+0x130><== 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))
1411fa: 81 f9 00 40 00 00 cmp $0x4000,%ecx <== NOT EXECUTED
141200: 0f 84 ca 00 00 00 je 1412d0 <rtems_rfs_inode_create+0x1b4><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
141206: 6a 01 push $0x1 <== NOT EXECUTED
141208: 8d 75 c0 lea -0x40(%ebp),%esi <== NOT EXECUTED
14120b: 56 push %esi <== NOT EXECUTED
14120c: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
14120f: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
141212: 89 4d 90 mov %ecx,-0x70(%ebp) <== NOT EXECUTED
141215: e8 92 fd ff ff call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
14121a: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
14121c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
14121f: 85 c0 test %eax,%eax <== NOT EXECUTED
141221: 8b 4d 90 mov -0x70(%ebp),%ecx <== NOT EXECUTED
141224: 7e 3c jle 141262 <rtems_rfs_inode_create+0x146><== NOT EXECUTED
rtems_rfs_inode_get_links (&parent_inode) + 1);
rc = rtems_rfs_inode_close (fs, &parent_inode);
if (rc > 0)
{
rtems_rfs_inode_delete (fs, &inode);
141226: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141229: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
14122c: 50 push %eax <== NOT EXECUTED
14122d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
141230: e8 2b fe ff ff call 141060 <rtems_rfs_inode_delete><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
141235: 5a pop %edx <== NOT EXECUTED
141236: 59 pop %ecx <== NOT EXECUTED
141237: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
14123a: 50 push %eax <== NOT EXECUTED
14123b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
14123e: e8 e5 fc ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
return rc;
141243: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141246: e9 11 ff ff ff jmp 14115c <rtems_rfs_inode_create+0x40><== NOT EXECUTED
14124b: 90 nop <== NOT EXECUTED
}
rc = rtems_rfs_inode_initialise (&inode, links, mode, uid, gid);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &inode);
14124c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
14124f: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
141252: 50 push %eax <== NOT EXECUTED
141253: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
141256: e8 cd fc ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_free (fs, *ino);
14125b: 5e pop %esi <== NOT EXECUTED
14125c: 5f pop %edi <== NOT EXECUTED
14125d: e9 59 ff ff ff jmp 1411bb <rtems_rfs_inode_create+0x9f><== NOT EXECUTED
rtems_rfs_inode_delete (fs, &inode);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, *ino);
141262: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141265: 8b 45 28 mov 0x28(%ebp),%eax <== NOT EXECUTED
141268: ff 30 pushl (%eax) <== NOT EXECUTED
14126a: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
14126d: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
141270: 56 push %esi <== NOT EXECUTED
141271: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
141274: 89 4d 90 mov %ecx,-0x70(%ebp) <== NOT EXECUTED
141277: e8 14 cc ff ff call 13de90 <rtems_rfs_dir_add_entry><== NOT EXECUTED
14127c: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
14127e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
141281: 85 c0 test %eax,%eax <== NOT EXECUTED
141283: 8b 4d 90 mov -0x70(%ebp),%ecx <== NOT EXECUTED
141286: 7f 7f jg 141307 <rtems_rfs_inode_create+0x1eb><== 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))
141288: 81 f9 00 40 00 00 cmp $0x4000,%ecx <== NOT EXECUTED
14128e: 0f 84 c6 00 00 00 je 14135a <rtems_rfs_inode_create+0x23e><== NOT EXECUTED
rtems_rfs_inode_set_links (&parent_inode,
rtems_rfs_inode_get_links (&parent_inode) + 1);
rc = rtems_rfs_inode_close (fs, &parent_inode);
141294: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141297: 56 push %esi <== NOT EXECUTED
141298: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
14129b: e8 88 fc ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
1412a0: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1412a2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1412a5: 85 c0 test %eax,%eax <== NOT EXECUTED
1412a7: 0f 8f 79 ff ff ff jg 141226 <rtems_rfs_inode_create+0x10a><== NOT EXECUTED
rtems_rfs_inode_delete (fs, &inode);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_inode_close (fs, &inode);
1412ad: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1412b0: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
1412b3: 50 push %eax <== NOT EXECUTED
1412b4: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1412b7: e8 6c fc ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
1412bc: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1412be: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1412c1: 85 c0 test %eax,%eax <== NOT EXECUTED
1412c3: 0f 8f ef fe ff ff jg 1411b8 <rtems_rfs_inode_create+0x9c><== NOT EXECUTED
1412c9: 31 db xor %ebx,%ebx <== NOT EXECUTED
1412cb: e9 8c fe ff ff jmp 14115c <rtems_rfs_inode_create+0x40><== NOT EXECUTED
*
* The inode delete will free the inode.
*/
if (RTEMS_RFS_S_ISDIR (mode))
{
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, *ino);
1412d0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1412d3: 8b 45 28 mov 0x28(%ebp),%eax <== NOT EXECUTED
1412d6: ff 30 pushl (%eax) <== NOT EXECUTED
1412d8: 6a 01 push $0x1 <== NOT EXECUTED
1412da: 68 f8 07 16 00 push $0x1607f8 <== NOT EXECUTED
1412df: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
1412e2: 50 push %eax <== NOT EXECUTED
1412e3: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1412e6: 89 4d 90 mov %ecx,-0x70(%ebp) <== NOT EXECUTED
1412e9: e8 a2 cb ff ff call 13de90 <rtems_rfs_dir_add_entry><== NOT EXECUTED
1412ee: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc == 0)
1412f0: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1412f3: 85 c0 test %eax,%eax <== NOT EXECUTED
1412f5: 8b 4d 90 mov -0x70(%ebp),%ecx <== NOT EXECUTED
1412f8: 74 3d je 141337 <rtems_rfs_inode_create+0x21b><== NOT EXECUTED
rc = rtems_rfs_dir_add_entry (fs, &inode, "..", 2, parent);
if (rc > 0)
1412fa: 85 db test %ebx,%ebx <== NOT EXECUTED
1412fc: 0f 8e 04 ff ff ff jle 141206 <rtems_rfs_inode_create+0xea><== NOT EXECUTED
141302: e9 1f ff ff ff jmp 141226 <rtems_rfs_inode_create+0x10a><== NOT EXECUTED
}
rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, *ino);
if (rc > 0)
{
rtems_rfs_inode_delete (fs, &inode);
141307: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
14130a: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
14130d: 50 push %eax <== NOT EXECUTED
14130e: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
141311: e8 4a fd ff ff call 141060 <rtems_rfs_inode_delete><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
141316: 5a pop %edx <== NOT EXECUTED
141317: 59 pop %ecx <== NOT EXECUTED
141318: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
14131b: 50 push %eax <== NOT EXECUTED
14131c: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
14131f: e8 04 fc ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
141324: 5f pop %edi <== NOT EXECUTED
141325: 58 pop %eax <== NOT EXECUTED
141326: 56 push %esi <== NOT EXECUTED
141327: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
14132a: e8 f9 fb ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
return rc;
14132f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141332: e9 25 fe ff ff jmp 14115c <rtems_rfs_inode_create+0x40><== NOT EXECUTED
*/
if (RTEMS_RFS_S_ISDIR (mode))
{
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, *ino);
if (rc == 0)
rc = rtems_rfs_dir_add_entry (fs, &inode, "..", 2, parent);
141337: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14133a: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
14133d: 6a 02 push $0x2 <== NOT EXECUTED
14133f: 68 e3 1e 16 00 push $0x161ee3 <== NOT EXECUTED
141344: 8d 45 98 lea -0x68(%ebp),%eax <== NOT EXECUTED
141347: 50 push %eax <== NOT EXECUTED
141348: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
14134b: e8 40 cb ff ff call 13de90 <rtems_rfs_dir_add_entry><== NOT EXECUTED
141350: 89 c3 mov %eax,%ebx <== NOT EXECUTED
141352: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
141355: 8b 4d 90 mov -0x70(%ebp),%ecx <== NOT EXECUTED
141358: eb a0 jmp 1412fa <rtems_rfs_inode_create+0x1de><== 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);
14135a: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED
14135d: 0f b6 11 movzbl (%ecx),%edx <== NOT EXECUTED
141360: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
141363: 0f b6 41 01 movzbl 0x1(%ecx),%eax <== NOT EXECUTED
141367: 09 d0 or %edx,%eax <== NOT EXECUTED
if (links == 0xffff)
141369: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
14136d: 74 18 je 141387 <rtems_rfs_inode_create+0x26b><== NOT EXECUTED
14136f: 40 inc %eax <== NOT EXECUTED
141370: 89 c2 mov %eax,%edx <== NOT EXECUTED
141372: 66 c1 ea 08 shr $0x8,%dx <== 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);
141376: 88 11 mov %dl,(%ecx) <== NOT EXECUTED
141378: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
14137b: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
14137e: c6 45 d0 01 movb $0x1,-0x30(%ebp) <== NOT EXECUTED
141382: e9 0d ff ff ff jmp 141294 <rtems_rfs_inode_create+0x178><== 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);
if (links == 0xffff)
141387: b0 01 mov $0x1,%al <== NOT EXECUTED
141389: 31 d2 xor %edx,%edx <== NOT EXECUTED
14138b: eb e9 jmp 141376 <rtems_rfs_inode_create+0x25a><== NOT EXECUTED
00141060 <rtems_rfs_inode_delete>:
}
int
rtems_rfs_inode_delete (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
141060: 55 push %ebp <== NOT EXECUTED
141061: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141063: 57 push %edi <== NOT EXECUTED
141064: 56 push %esi <== NOT EXECUTED
141065: 53 push %ebx <== NOT EXECUTED
141066: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
141069: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
14106c: 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))
14106f: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
141072: 85 c0 test %eax,%eax <== NOT EXECUTED
141074: 74 1e je 141094 <rtems_rfs_inode_delete+0x34><== NOT EXECUTED
rtems_rfs_block_map map;
/*
* Free the ino number.
*/
rc = rtems_rfs_inode_free (fs, handle->ino);
141076: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141079: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
14107c: 56 push %esi <== NOT EXECUTED
14107d: e8 c6 ff ff ff call 141048 <rtems_rfs_inode_free> <== NOT EXECUTED
if (rc > 0)
141082: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141085: 85 c0 test %eax,%eax <== NOT EXECUTED
141087: 7e 17 jle 1410a0 <rtems_rfs_inode_delete+0x40><== NOT EXECUTED
handle->loads = 0;
handle->node = NULL;
}
}
return rc;
}
141089: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
14108c: 5b pop %ebx <== NOT EXECUTED
14108d: 5e pop %esi <== NOT EXECUTED
14108e: 5f pop %edi <== NOT EXECUTED
14108f: c9 leave <== NOT EXECUTED
141090: c3 ret <== NOT EXECUTED
141091: 8d 76 00 lea 0x0(%esi),%esi <== 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))
141094: 31 c0 xor %eax,%eax <== NOT EXECUTED
handle->loads = 0;
handle->node = NULL;
}
}
return rc;
}
141096: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141099: 5b pop %ebx <== NOT EXECUTED
14109a: 5e pop %esi <== NOT EXECUTED
14109b: 5f pop %edi <== NOT EXECUTED
14109c: c9 leave <== NOT EXECUTED
14109d: c3 ret <== NOT EXECUTED
14109e: 66 90 xchg %ax,%ax <== NOT EXECUTED
return rc;
/*
* Free the blocks the inode may have attached.
*/
rc = rtems_rfs_block_map_open (fs, handle, &map);
1410a0: 57 push %edi <== NOT EXECUTED
1410a1: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
1410a4: 57 push %edi <== NOT EXECUTED
1410a5: 53 push %ebx <== NOT EXECUTED
1410a6: 56 push %esi <== NOT EXECUTED
1410a7: e8 e8 c0 ff ff call 13d194 <rtems_rfs_block_map_open><== NOT EXECUTED
if (rc == 0)
1410ac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1410af: 85 c0 test %eax,%eax <== NOT EXECUTED
1410b1: 75 d6 jne 141089 <rtems_rfs_inode_delete+0x29><== NOT EXECUTED
{
int rrc;
rrc = rtems_rfs_block_map_free_all (fs, &map);
1410b3: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1410b6: 57 push %edi <== NOT EXECUTED
1410b7: 56 push %esi <== NOT EXECUTED
1410b8: e8 ff ba ff ff call 13cbbc <rtems_rfs_block_map_free_all><== NOT EXECUTED
rc = rtems_rfs_block_map_close (fs, &map);
1410bd: 5a pop %edx <== NOT EXECUTED
1410be: 59 pop %ecx <== NOT EXECUTED
1410bf: 57 push %edi <== NOT EXECUTED
1410c0: 56 push %esi <== NOT EXECUTED
1410c1: e8 22 bf ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
if (rc > 0)
rrc = rc;
memset (handle->node, 0xff, RTEMS_RFS_INODE_SIZE);
1410c6: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
1410c9: b9 38 00 00 00 mov $0x38,%ecx <== NOT EXECUTED
1410ce: b0 ff mov $0xff,%al <== NOT EXECUTED
1410d0: 89 d7 mov %edx,%edi <== NOT EXECUTED
1410d2: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1410d4: 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);
1410d8: 5f pop %edi <== NOT EXECUTED
1410d9: 58 pop %eax <== NOT EXECUTED
1410da: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
1410dd: 50 push %eax <== NOT EXECUTED
1410de: 56 push %esi <== NOT EXECUTED
1410df: e8 fc c3 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->loads = 0;
1410e4: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
handle->node = NULL;
1410eb: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
1410f2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1410f5: eb 92 jmp 141089 <rtems_rfs_inode_delete+0x29><== NOT EXECUTED
00141048 <rtems_rfs_inode_free>:
}
int
rtems_rfs_inode_free (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
141048: 55 push %ebp <== NOT EXECUTED
141049: 89 e5 mov %esp,%ebp <== NOT EXECUTED
14104b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
rtems_rfs_bitmap_bit bit;
bit = ino;
return rtems_rfs_group_bitmap_free (fs, true, bit);
14104e: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
141051: 6a 01 push $0x1 <== NOT EXECUTED
141053: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
141056: e8 51 f8 ff ff call 1408ac <rtems_rfs_group_bitmap_free><== NOT EXECUTED
}
14105b: c9 leave <== NOT EXECUTED
14105c: c3 ret <== NOT EXECUTED
00140c44 <rtems_rfs_inode_get_size>:
}
rtems_rfs_pos
rtems_rfs_inode_get_size (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
140c44: 55 push %ebp <== NOT EXECUTED
140c45: 89 e5 mov %esp,%ebp <== NOT EXECUTED
140c47: 53 push %ebx <== NOT EXECUTED
140c48: 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);
140c4b: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
140c4e: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140c51: 8d 4a 0c lea 0xc(%edx),%ecx <== NOT EXECUTED
rtems_rfs_block_size size;
size.count = rtems_rfs_inode_get_block_count (handle);
140c54: 0f b6 41 03 movzbl 0x3(%ecx),%eax <== NOT EXECUTED
140c58: 0f b6 5a 0c movzbl 0xc(%edx),%ebx <== NOT EXECUTED
140c5c: c1 e3 18 shl $0x18,%ebx <== NOT EXECUTED
140c5f: 09 d8 or %ebx,%eax <== NOT EXECUTED
140c61: 0f b6 59 01 movzbl 0x1(%ecx),%ebx <== NOT EXECUTED
140c65: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
140c68: 09 d8 or %ebx,%eax <== NOT EXECUTED
140c6a: 0f b6 49 02 movzbl 0x2(%ecx),%ecx <== NOT EXECUTED
140c6e: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
140c71: 09 c8 or %ecx,%eax <== NOT EXECUTED
140c73: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
size.offset = rtems_rfs_inode_get_block_offset (handle);
140c76: 0f b6 4a 0a movzbl 0xa(%edx),%ecx <== NOT EXECUTED
140c7a: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
140c7d: 0f b6 42 0b movzbl 0xb(%edx),%eax <== NOT EXECUTED
140c81: 09 c8 or %ecx,%eax <== NOT EXECUTED
140c83: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
140c86: 89 45 f4 mov %eax,-0xc(%ebp) <== NOT EXECUTED
return rtems_rfs_block_get_size (fs, &size);
140c89: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
140c8c: 50 push %eax <== NOT EXECUTED
140c8d: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
140c90: e8 7f b9 ff ff call 13c614 <rtems_rfs_block_get_size><== NOT EXECUTED
}
140c95: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
140c98: c9 leave <== NOT EXECUTED
140c99: c3 ret <== NOT EXECUTED
00140d50 <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)
{
140d50: 55 push %ebp <== NOT EXECUTED
140d51: 89 e5 mov %esp,%ebp <== NOT EXECUTED
140d53: 57 push %edi <== NOT EXECUTED
140d54: 56 push %esi <== NOT EXECUTED
140d55: 53 push %ebx <== NOT EXECUTED
140d56: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
140d59: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
140d5c: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
140d5f: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
140d62: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
140d65: 66 89 55 e6 mov %dx,-0x1a(%ebp) <== NOT EXECUTED
140d69: 8b 75 18 mov 0x18(%ebp),%esi <== NOT EXECUTED
140d6c: 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);
140d70: 89 df mov %ebx,%edi <== NOT EXECUTED
140d72: 66 c1 ef 08 shr $0x8,%di <== NOT EXECUTED
140d76: 89 fa mov %edi,%edx <== NOT EXECUTED
140d78: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED
140d7b: 88 16 mov %dl,(%esi) <== NOT EXECUTED
140d7d: 8b 78 0c mov 0xc(%eax),%edi <== NOT EXECUTED
140d80: 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);
140d83: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
140d86: c6 43 08 00 movb $0x0,0x8(%ebx) <== NOT EXECUTED
140d8a: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
140d8d: 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);
140d91: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
140d94: 89 cf mov %ecx,%edi <== NOT EXECUTED
140d96: 66 c1 ef 08 shr $0x8,%di <== NOT EXECUTED
140d9a: 89 fa mov %edi,%edx <== NOT EXECUTED
140d9c: 88 53 02 mov %dl,0x2(%ebx) <== NOT EXECUTED
140d9f: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
140da2: 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);
140da5: 8b 75 c8 mov -0x38(%ebp),%esi <== NOT EXECUTED
140da8: c1 e6 10 shl $0x10,%esi <== NOT EXECUTED
140dab: 0f b7 4d e6 movzwl -0x1a(%ebp),%ecx <== NOT EXECUTED
140daf: 09 ce or %ecx,%esi <== NOT EXECUTED
140db1: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
140db4: 89 f3 mov %esi,%ebx <== NOT EXECUTED
140db6: c1 eb 18 shr $0x18,%ebx <== NOT EXECUTED
140db9: 88 59 04 mov %bl,0x4(%ecx) <== NOT EXECUTED
140dbc: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
140dbf: 89 f3 mov %esi,%ebx <== NOT EXECUTED
140dc1: c1 eb 10 shr $0x10,%ebx <== NOT EXECUTED
140dc4: 88 59 05 mov %bl,0x5(%ecx) <== NOT EXECUTED
140dc7: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
140dca: c1 ee 08 shr $0x8,%esi <== NOT EXECUTED
140dcd: 89 f2 mov %esi,%edx <== NOT EXECUTED
140dcf: 88 51 06 mov %dl,0x6(%ecx) <== NOT EXECUTED
140dd2: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
140dd5: 8a 55 e6 mov -0x1a(%ebp),%dl <== NOT EXECUTED
140dd8: 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);
140ddb: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140dde: c6 42 0a 00 movb $0x0,0xa(%edx) <== NOT EXECUTED
140de2: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140de5: 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);
140de9: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140dec: c6 42 0c 00 movb $0x0,0xc(%edx) <== NOT EXECUTED
140df0: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140df3: c6 42 0d 00 movb $0x0,0xd(%edx) <== NOT EXECUTED
140df7: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140dfa: c6 42 0e 00 movb $0x0,0xe(%edx) <== NOT EXECUTED
140dfe: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140e01: c6 42 0f 00 movb $0x0,0xf(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
140e05: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
140e09: 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);
140e0b: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
140e0e: c6 44 11 1c 00 movb $0x0,0x1c(%ecx,%edx,1) <== NOT EXECUTED
140e13: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
140e16: c6 44 11 1d 00 movb $0x0,0x1d(%ecx,%edx,1) <== NOT EXECUTED
140e1b: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
140e1e: c6 44 11 1e 00 movb $0x0,0x1e(%ecx,%edx,1) <== NOT EXECUTED
140e23: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED
140e26: c6 44 11 1f 00 movb $0x0,0x1f(%ecx,%edx,1) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
140e2b: c6 40 10 01 movb $0x1,0x10(%eax) <== NOT EXECUTED
140e2f: 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++)
140e32: 83 fa 14 cmp $0x14,%edx <== NOT EXECUTED
140e35: 75 d4 jne 140e0b <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);
140e37: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140e3a: c6 42 30 00 movb $0x0,0x30(%edx) <== NOT EXECUTED
140e3e: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140e41: c6 42 31 00 movb $0x0,0x31(%edx) <== NOT EXECUTED
140e45: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140e48: c6 42 32 00 movb $0x0,0x32(%edx) <== NOT EXECUTED
140e4c: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140e4f: 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);
140e53: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140e56: c6 42 34 00 movb $0x0,0x34(%edx) <== NOT EXECUTED
140e5a: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140e5d: c6 42 35 00 movb $0x0,0x35(%edx) <== NOT EXECUTED
140e61: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140e64: c6 42 36 00 movb $0x0,0x36(%edx) <== NOT EXECUTED
140e68: 8b 50 0c mov 0xc(%eax),%edx <== NOT EXECUTED
140e6b: c6 42 37 00 movb $0x0,0x37(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
140e6f: 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);
140e73: c7 45 10 01 00 00 00 movl $0x1,0x10(%ebp) <== NOT EXECUTED
140e7a: c7 45 0c 01 00 00 00 movl $0x1,0xc(%ebp) <== NOT EXECUTED
140e81: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
140e84: 83 c4 2c add $0x2c,%esp <== NOT EXECUTED
140e87: 5b pop %ebx <== NOT EXECUTED
140e88: 5e pop %esi <== NOT EXECUTED
140e89: 5f pop %edi <== NOT EXECUTED
140e8a: 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);
140e8b: e9 0c fe ff ff jmp 140c9c <rtems_rfs_inode_time_stamp_now><== NOT EXECUTED
00140f5c <rtems_rfs_inode_load>:
int
rtems_rfs_inode_load (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
140f5c: 55 push %ebp <== NOT EXECUTED
140f5d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
140f5f: 53 push %ebx <== NOT EXECUTED
140f60: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
140f63: 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))
140f66: 8b 4b 0c mov 0xc(%ebx),%ecx <== NOT EXECUTED
140f69: 85 c9 test %ecx,%ecx <== NOT EXECUTED
140f6b: 74 0b je 140f78 <rtems_rfs_inode_load+0x1c><== NOT EXECUTED
handle->node = rtems_rfs_buffer_data (&handle->buffer);
handle->node += handle->offset;
}
handle->loads++;
140f6d: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED
140f70: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
140f72: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
140f75: c9 leave <== NOT EXECUTED
140f76: c3 ret <== NOT EXECUTED
140f77: 90 nop <== NOT EXECUTED
if (!rtems_rfs_inode_is_loaded (handle))
{
int rc;
rc = rtems_rfs_buffer_handle_request (fs,&handle->buffer,
140f78: 6a 01 push $0x1 <== NOT EXECUTED
140f7a: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED
140f7d: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
140f80: 50 push %eax <== NOT EXECUTED
140f81: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
140f84: e8 5b c6 ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
handle->block, true);
if (rc > 0)
140f89: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140f8c: 85 c0 test %eax,%eax <== NOT EXECUTED
140f8e: 7f e2 jg 140f72 <rtems_rfs_inode_load+0x16><== NOT EXECUTED
return rc;
handle->node = rtems_rfs_buffer_data (&handle->buffer);
140f90: 8b 4b 18 mov 0x18(%ebx),%ecx <== NOT EXECUTED
handle->node += handle->offset;
140f93: 8b 53 20 mov 0x20(%ebx),%edx <== NOT EXECUTED
140f96: c1 e2 03 shl $0x3,%edx <== NOT EXECUTED
140f99: 8d 04 d5 00 00 00 00 lea 0x0(,%edx,8),%eax <== NOT EXECUTED
140fa0: 29 d0 sub %edx,%eax <== NOT EXECUTED
140fa2: 03 41 20 add 0x20(%ecx),%eax <== NOT EXECUTED
140fa5: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
140fa8: eb c3 jmp 140f6d <rtems_rfs_inode_load+0x11><== NOT EXECUTED
00140fac <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)
{
140fac: 55 push %ebp <== NOT EXECUTED
140fad: 89 e5 mov %esp,%ebp <== NOT EXECUTED
140faf: 56 push %esi <== NOT EXECUTED
140fb0: 53 push %ebx <== NOT EXECUTED
140fb1: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
140fb4: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
140fb7: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
140fba: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
140fbd: 8a 45 14 mov 0x14(%ebp),%al <== NOT EXECUTED
140fc0: 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)
140fc3: 85 d2 test %edx,%edx <== NOT EXECUTED
140fc5: 74 61 je 141028 <rtems_rfs_inode_open+0x7c><== NOT EXECUTED
return EINVAL;
if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))
140fc7: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
140fca: 3b 43 10 cmp 0x10(%ebx),%eax <== NOT EXECUTED
140fcd: 77 59 ja 141028 <rtems_rfs_inode_open+0x7c><== NOT EXECUTED
return EINVAL;
handle->ino = ino;
140fcf: 89 51 08 mov %edx,0x8(%ecx) <== NOT EXECUTED
handle->node = NULL;
140fd2: c7 41 0c 00 00 00 00 movl $0x0,0xc(%ecx) <== NOT EXECUTED
handle->loads = 0;
140fd9: 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;
140fe0: 31 d2 xor %edx,%edx <== NOT EXECUTED
140fe2: f7 73 28 divl 0x28(%ebx) <== NOT EXECUTED
140fe5: 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;
140fe7: 89 d0 mov %edx,%eax <== NOT EXECUTED
140fe9: 31 d2 xor %edx,%edx <== NOT EXECUTED
140feb: f7 73 2c divl 0x2c(%ebx) <== NOT EXECUTED
140fee: 89 51 20 mov %edx,0x20(%ecx) <== NOT EXECUTED
handle->block = rtems_rfs_group_block (&fs->groups[group], index);
140ff1: 8b 53 1c mov 0x1c(%ebx),%edx <== NOT EXECUTED
140ff4: 8d 34 b6 lea (%esi,%esi,4),%esi <== NOT EXECUTED
140ff7: c1 e6 04 shl $0x4,%esi <== NOT EXECUTED
140ffa: 8b 14 16 mov (%esi,%edx,1),%edx <== NOT EXECUTED
140ffd: 8d 44 10 02 lea 0x2(%eax,%edx,1),%eax <== NOT EXECUTED
141001: 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;
141004: c6 41 10 00 movb $0x0,0x10(%ecx) <== NOT EXECUTED
handle->bnum = 0;
141008: c7 41 14 00 00 00 00 movl $0x0,0x14(%ecx) <== NOT EXECUTED
handle->buffer = NULL;
14100f: 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)
141016: 80 7d f7 00 cmpb $0x0,-0x9(%ebp) <== NOT EXECUTED
14101a: 75 18 jne 141034 <rtems_rfs_inode_open+0x88><== NOT EXECUTED
14101c: 31 c0 xor %eax,%eax <== NOT EXECUTED
rc = rtems_rfs_inode_load (fs, handle);
return rc;
}
14101e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141021: 5b pop %ebx <== NOT EXECUTED
141022: 5e pop %esi <== NOT EXECUTED
141023: c9 leave <== NOT EXECUTED
141024: c3 ret <== NOT EXECUTED
141025: 8d 76 00 lea 0x0(%esi),%esi <== 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);
141028: b8 16 00 00 00 mov $0x16,%eax <== NOT EXECUTED
return rc;
}
14102d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141030: 5b pop %ebx <== NOT EXECUTED
141031: 5e pop %esi <== NOT EXECUTED
141032: c9 leave <== NOT EXECUTED
141033: c3 ret <== 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);
141034: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED
141037: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
return rc;
}
14103a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
14103d: 5b pop %ebx <== NOT EXECUTED
14103e: 5e pop %esi <== NOT EXECUTED
14103f: 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);
141040: e9 17 ff ff ff jmp 140f5c <rtems_rfs_inode_load> <== NOT EXECUTED
0013f82c <rtems_rfs_inode_overhead>:
/**
* Return the inode overhead given a number of inodes.
*/
static int
rtems_rfs_inode_overhead (rtems_rfs_file_system* fs)
{
13f82c: 55 push %ebp <== NOT EXECUTED
13f82d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13f82f: 53 push %ebx <== NOT EXECUTED
13f830: 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,
13f832: 8b 58 08 mov 0x8(%eax),%ebx <== NOT EXECUTED
13f835: 8b 50 28 mov 0x28(%eax),%edx <== NOT EXECUTED
13f838: c1 e2 03 shl $0x3,%edx <== NOT EXECUTED
13f83b: 8d 04 d5 00 00 00 00 lea 0x0(,%edx,8),%eax <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
13f842: 29 d0 sub %edx,%eax <== NOT EXECUTED
13f844: 75 1e jne 13f864 <rtems_rfs_inode_overhead+0x38><== NOT EXECUTED
13f846: b8 d0 07 00 00 mov $0x7d0,%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));
13f84b: 8d 14 dd 00 00 00 00 lea 0x0(,%ebx,8),%edx <== 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))
13f852: 8b 59 04 mov 0x4(%ecx),%ebx <== NOT EXECUTED
13f855: 4b dec %ebx <== NOT EXECUTED
13f856: 39 d3 cmp %edx,%ebx <== NOT EXECUTED
13f858: 72 02 jb 13f85c <rtems_rfs_inode_overhead+0x30><== 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));
13f85a: 89 d3 mov %edx,%ebx <== 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;
13f85c: 99 cltd <== NOT EXECUTED
13f85d: f7 fb idiv %ebx <== NOT EXECUTED
return ((blocks + 1) * 100 * 10) / bits_per_block;
}
13f85f: 5b pop %ebx <== NOT EXECUTED
13f860: c9 leave <== NOT EXECUTED
13f861: c3 ret <== NOT EXECUTED
13f862: 66 90 xchg %ax,%ax <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
13f864: 48 dec %eax <== NOT EXECUTED
13f865: 31 d2 xor %edx,%edx <== NOT EXECUTED
13f867: f7 f3 div %ebx <== NOT EXECUTED
13f869: 8d 44 80 0a lea 0xa(%eax,%eax,4),%eax <== NOT EXECUTED
13f86d: 8d 04 80 lea (%eax,%eax,4),%eax <== NOT EXECUTED
13f870: 8d 04 80 lea (%eax,%eax,4),%eax <== NOT EXECUTED
13f873: c1 e0 03 shl $0x3,%eax <== NOT EXECUTED
13f876: eb d3 jmp 13f84b <rtems_rfs_inode_overhead+0x1f><== NOT EXECUTED
00140c9c <rtems_rfs_inode_time_stamp_now>:
int
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,
bool atime,
bool mtime)
{
140c9c: 55 push %ebp <== NOT EXECUTED
140c9d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
140c9f: 57 push %edi <== NOT EXECUTED
140ca0: 56 push %esi <== NOT EXECUTED
140ca1: 53 push %ebx <== NOT EXECUTED
140ca2: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
140ca5: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
140ca8: 8a 4d 0c mov 0xc(%ebp),%cl <== NOT EXECUTED
140cab: 8a 55 10 mov 0x10(%ebp),%dl <== NOT EXECUTED
time_t now;
if (!rtems_rfs_inode_is_loaded (handle))
140cae: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
140cb1: 85 c0 test %eax,%eax <== NOT EXECUTED
140cb3: 0f 84 87 00 00 00 je 140d40 <rtems_rfs_inode_time_stamp_now+0xa4><== NOT EXECUTED
return ENXIO;
now = time (NULL);
140cb9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140cbc: 6a 00 push $0x0 <== NOT EXECUTED
140cbe: 88 55 e0 mov %dl,-0x20(%ebp) <== NOT EXECUTED
140cc1: 88 4d e4 mov %cl,-0x1c(%ebp) <== NOT EXECUTED
140cc4: e8 67 07 01 00 call 151430 <time> <== NOT EXECUTED
if (atime)
140cc9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140ccc: 8a 4d e4 mov -0x1c(%ebp),%cl <== NOT EXECUTED
140ccf: 84 c9 test %cl,%cl <== NOT EXECUTED
140cd1: 8a 55 e0 mov -0x20(%ebp),%dl <== NOT EXECUTED
140cd4: 74 31 je 140d07 <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);
140cd6: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED
140cd9: 89 c6 mov %eax,%esi <== NOT EXECUTED
140cdb: c1 ee 18 shr $0x18,%esi <== NOT EXECUTED
140cde: 89 f1 mov %esi,%ecx <== NOT EXECUTED
140ce0: 88 4f 10 mov %cl,0x10(%edi) <== NOT EXECUTED
140ce3: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED
140ce6: 89 c6 mov %eax,%esi <== NOT EXECUTED
140ce8: c1 ee 10 shr $0x10,%esi <== NOT EXECUTED
140ceb: 89 f1 mov %esi,%ecx <== NOT EXECUTED
140ced: 88 4f 11 mov %cl,0x11(%edi) <== NOT EXECUTED
140cf0: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED
140cf3: 89 c6 mov %eax,%esi <== NOT EXECUTED
140cf5: c1 ee 08 shr $0x8,%esi <== NOT EXECUTED
140cf8: 89 f1 mov %esi,%ecx <== NOT EXECUTED
140cfa: 88 4f 12 mov %cl,0x12(%edi) <== NOT EXECUTED
140cfd: 8b 4b 0c mov 0xc(%ebx),%ecx <== NOT EXECUTED
140d00: 88 41 13 mov %al,0x13(%ecx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
140d03: c6 43 10 01 movb $0x1,0x10(%ebx) <== NOT EXECUTED
rtems_rfs_inode_set_atime (handle, now);
if (mtime)
140d07: 84 d2 test %dl,%dl <== NOT EXECUTED
140d09: 74 2b je 140d36 <rtems_rfs_inode_time_stamp_now+0x9a><== 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);
140d0b: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
140d0e: 89 c1 mov %eax,%ecx <== NOT EXECUTED
140d10: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
140d13: 88 4a 14 mov %cl,0x14(%edx) <== NOT EXECUTED
140d16: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
140d19: 89 c1 mov %eax,%ecx <== NOT EXECUTED
140d1b: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
140d1e: 88 4a 15 mov %cl,0x15(%edx) <== NOT EXECUTED
140d21: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
140d24: 89 c1 mov %eax,%ecx <== NOT EXECUTED
140d26: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
140d29: 88 4a 16 mov %cl,0x16(%edx) <== NOT EXECUTED
140d2c: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
140d2f: 88 42 17 mov %al,0x17(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
140d32: c6 43 10 01 movb $0x1,0x10(%ebx) <== NOT EXECUTED
140d36: 31 c0 xor %eax,%eax <== NOT EXECUTED
rtems_rfs_inode_set_mtime (handle, now);
return 0;
}
140d38: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
140d3b: 5b pop %ebx <== NOT EXECUTED
140d3c: 5e pop %esi <== NOT EXECUTED
140d3d: 5f pop %edi <== NOT EXECUTED
140d3e: c9 leave <== NOT EXECUTED
140d3f: c3 ret <== NOT EXECUTED
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,
bool atime,
bool mtime)
{
time_t now;
if (!rtems_rfs_inode_is_loaded (handle))
140d40: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED
if (atime)
rtems_rfs_inode_set_atime (handle, now);
if (mtime)
rtems_rfs_inode_set_mtime (handle, now);
return 0;
}
140d45: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
140d48: 5b pop %ebx <== NOT EXECUTED
140d49: 5e pop %esi <== NOT EXECUTED
140d4a: 5f pop %edi <== NOT EXECUTED
140d4b: c9 leave <== NOT EXECUTED
140d4c: c3 ret <== NOT EXECUTED
00140e90 <rtems_rfs_inode_unload>:
int
rtems_rfs_inode_unload (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle,
bool update_ctime)
{
140e90: 55 push %ebp <== NOT EXECUTED
140e91: 89 e5 mov %esp,%ebp <== NOT EXECUTED
140e93: 53 push %ebx <== NOT EXECUTED
140e94: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED
140e97: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
140e9a: 8a 55 10 mov 0x10(%ebp),%dl <== 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))
140e9d: 8b 4b 0c mov 0xc(%ebx),%ecx <== NOT EXECUTED
140ea0: 85 c9 test %ecx,%ecx <== NOT EXECUTED
140ea2: 74 0f je 140eb3 <rtems_rfs_inode_unload+0x23><== NOT EXECUTED
{
if (handle->loads == 0)
140ea4: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
140ea7: 85 c0 test %eax,%eax <== NOT EXECUTED
140ea9: 74 39 je 140ee4 <rtems_rfs_inode_unload+0x54><== NOT EXECUTED
return EIO;
handle->loads--;
140eab: 48 dec %eax <== NOT EXECUTED
140eac: 89 43 24 mov %eax,0x24(%ebx) <== NOT EXECUTED
if (handle->loads == 0)
140eaf: 85 c0 test %eax,%eax <== NOT EXECUTED
140eb1: 74 09 je 140ebc <rtems_rfs_inode_unload+0x2c><== NOT EXECUTED
* If the buffer is dirty it will be release. Also set the ctime.
*/
if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)
rtems_rfs_inode_set_ctime (handle, time (NULL));
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
handle->node = NULL;
140eb3: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
return rc;
}
140eb5: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
140eb8: c9 leave <== NOT EXECUTED
140eb9: c3 ret <== NOT EXECUTED
140eba: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (handle->loads == 0)
{
/*
* If the buffer is dirty it will be release. Also set the ctime.
*/
if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)
140ebc: 80 7b 10 00 cmpb $0x0,0x10(%ebx) <== NOT EXECUTED
140ec0: 74 04 je 140ec6 <rtems_rfs_inode_unload+0x36><== NOT EXECUTED
140ec2: 84 d2 test %dl,%dl <== NOT EXECUTED
140ec4: 75 26 jne 140eec <rtems_rfs_inode_unload+0x5c><== NOT EXECUTED
rtems_rfs_inode_set_ctime (handle, time (NULL));
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
140ec6: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
140ec9: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
140ecc: 50 push %eax <== NOT EXECUTED
140ecd: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
140ed0: e8 0b c6 ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->node = NULL;
140ed5: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
140edc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
return rc;
}
140edf: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
140ee2: c9 leave <== NOT EXECUTED
140ee3: c3 ret <== NOT EXECUTED
handle->ino, handle->loads,
rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");
if (rtems_rfs_inode_is_loaded (handle))
{
if (handle->loads == 0)
140ee4: b0 05 mov $0x5,%al <== NOT EXECUTED
handle->node = NULL;
}
}
return rc;
}
140ee6: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
140ee9: c9 leave <== NOT EXECUTED
140eea: c3 ret <== NOT EXECUTED
140eeb: 90 nop <== NOT EXECUTED
{
/*
* If the buffer is dirty it will be release. Also set the ctime.
*/
if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)
rtems_rfs_inode_set_ctime (handle, time (NULL));
140eec: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
140eef: 6a 00 push $0x0 <== NOT EXECUTED
140ef1: e8 3a 05 01 00 call 151430 <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);
140ef6: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
140ef9: 89 c1 mov %eax,%ecx <== NOT EXECUTED
140efb: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
140efe: 88 4a 18 mov %cl,0x18(%edx) <== NOT EXECUTED
140f01: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
140f04: 89 c1 mov %eax,%ecx <== NOT EXECUTED
140f06: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
140f09: 88 4a 19 mov %cl,0x19(%edx) <== NOT EXECUTED
140f0c: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
140f0f: 89 c1 mov %eax,%ecx <== NOT EXECUTED
140f11: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
140f14: 88 4a 1a mov %cl,0x1a(%edx) <== NOT EXECUTED
140f17: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
140f1a: 88 42 1b mov %al,0x1b(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
140f1d: c6 43 10 01 movb $0x1,0x10(%ebx) <== NOT EXECUTED
140f21: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
140f24: eb a0 jmp 140ec6 <rtems_rfs_inode_unload+0x36><== NOT EXECUTED
0014192c <rtems_rfs_link>:
const char* name,
int length,
rtems_rfs_ino parent,
rtems_rfs_ino target,
bool link_dir)
{
14192c: 55 push %ebp <== NOT EXECUTED
14192d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
14192f: 57 push %edi <== NOT EXECUTED
141930: 56 push %esi <== NOT EXECUTED
141931: 53 push %ebx <== NOT EXECUTED
141932: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
141935: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
141938: 8a 45 1c mov 0x1c(%ebp),%al <== NOT EXECUTED
14193b: 88 45 97 mov %al,-0x69(%ebp) <== 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);
14193e: 6a 01 push $0x1 <== NOT EXECUTED
141940: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
141943: 57 push %edi <== NOT EXECUTED
141944: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
141947: 56 push %esi <== NOT EXECUTED
141948: e8 5f f6 ff ff call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
14194d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
14194f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141952: 85 c0 test %eax,%eax <== NOT EXECUTED
141954: 0f 85 bf 00 00 00 jne 141a19 <rtems_rfs_link+0xed> <== 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)))
14195a: 80 7d 97 00 cmpb $0x0,-0x69(%ebp) <== NOT EXECUTED
14195e: 75 1a jne 14197a <rtems_rfs_link+0x4e> <== NOT EXECUTED
141960: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
141963: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
141967: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
14196a: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
14196f: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
141974: 0f 84 ce 00 00 00 je 141a48 <rtems_rfs_link+0x11c> <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
return ENOTSUP;
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
14197a: 6a 01 push $0x1 <== NOT EXECUTED
14197c: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
14197f: 50 push %eax <== NOT EXECUTED
141980: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
141983: 56 push %esi <== NOT EXECUTED
141984: e8 23 f6 ff ff call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
141989: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
14198b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
14198e: 85 c0 test %eax,%eax <== NOT EXECUTED
141990: 75 7a jne 141a0c <rtems_rfs_link+0xe0> <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, target);
141992: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141995: ff 75 18 pushl 0x18(%ebp) <== NOT EXECUTED
141998: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
14199b: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
14199e: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
1419a1: 50 push %eax <== NOT EXECUTED
1419a2: 56 push %esi <== NOT EXECUTED
1419a3: e8 e8 c4 ff ff call 13de90 <rtems_rfs_dir_add_entry><== NOT EXECUTED
1419a8: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1419aa: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1419ad: 85 c0 test %eax,%eax <== NOT EXECUTED
1419af: 7f 73 jg 141a24 <rtems_rfs_link+0xf8> <== 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);
1419b1: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
1419b4: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
1419b7: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1419ba: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
1419be: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
1419c0: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
1419c4: 0f 84 9a 00 00 00 je 141a64 <rtems_rfs_link+0x138> <== NOT EXECUTED
1419ca: 40 inc %eax <== NOT EXECUTED
1419cb: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1419cd: 66 c1 e9 08 shr $0x8,%cx <== 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);
1419d1: 88 0a mov %cl,(%edx) <== NOT EXECUTED
1419d3: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
1419d6: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1419d9: c6 45 a8 01 movb $0x1,-0x58(%ebp) <== NOT EXECUTED
}
links = rtems_rfs_inode_get_links (&target_inode) + 1;
rtems_rfs_inode_set_links (&target_inode, links);
rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);
1419dd: 53 push %ebx <== NOT EXECUTED
1419de: 6a 01 push $0x1 <== NOT EXECUTED
1419e0: 6a 01 push $0x1 <== NOT EXECUTED
1419e2: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
1419e5: 50 push %eax <== NOT EXECUTED
1419e6: e8 b1 f2 ff ff call 140c9c <rtems_rfs_inode_time_stamp_now><== NOT EXECUTED
1419eb: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1419ed: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1419f0: 85 c0 test %eax,%eax <== NOT EXECUTED
1419f2: 7f 30 jg 141a24 <rtems_rfs_link+0xf8> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
rc = rtems_rfs_inode_close (fs, &parent_inode);
1419f4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1419f7: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
1419fa: 50 push %eax <== NOT EXECUTED
1419fb: 56 push %esi <== NOT EXECUTED
1419fc: e8 27 f5 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
141a01: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
141a03: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141a06: 85 c0 test %eax,%eax <== NOT EXECUTED
141a08: 7e 66 jle 141a70 <rtems_rfs_link+0x144> <== NOT EXECUTED
141a0a: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
141a0c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141a0f: 57 push %edi <== NOT EXECUTED
141a10: 56 push %esi <== NOT EXECUTED
141a11: e8 12 f5 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
return rc;
141a16: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
141a19: 89 d8 mov %ebx,%eax <== NOT EXECUTED
141a1b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141a1e: 5b pop %ebx <== NOT EXECUTED
141a1f: 5e pop %esi <== NOT EXECUTED
141a20: 5f pop %edi <== NOT EXECUTED
141a21: c9 leave <== NOT EXECUTED
141a22: c3 ret <== NOT EXECUTED
141a23: 90 nop <== NOT EXECUTED
rtems_rfs_inode_set_links (&target_inode, links);
rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &parent_inode);
141a24: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141a27: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
141a2a: 50 push %eax <== NOT EXECUTED
141a2b: 56 push %esi <== NOT EXECUTED
141a2c: e8 f7 f4 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
141a31: 5a pop %edx <== NOT EXECUTED
141a32: 59 pop %ecx <== NOT EXECUTED
141a33: 57 push %edi <== NOT EXECUTED
141a34: 56 push %esi <== NOT EXECUTED
141a35: e8 ee f4 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
return rc;
141a3a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
141a3d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
141a3f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141a42: 5b pop %ebx <== NOT EXECUTED
141a43: 5e pop %esi <== NOT EXECUTED
141a44: 5f pop %edi <== NOT EXECUTED
141a45: c9 leave <== NOT EXECUTED
141a46: c3 ret <== NOT EXECUTED
141a47: 90 nop <== 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)))
{
rtems_rfs_inode_close (fs, &target_inode);
141a48: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141a4b: 57 push %edi <== NOT EXECUTED
141a4c: 56 push %esi <== NOT EXECUTED
141a4d: e8 d6 f4 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
141a52: b3 86 mov $0x86,%bl <== NOT EXECUTED
return ENOTSUP;
141a54: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
141a57: 89 d8 mov %ebx,%eax <== NOT EXECUTED
141a59: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141a5c: 5b pop %ebx <== NOT EXECUTED
141a5d: 5e pop %esi <== NOT EXECUTED
141a5e: 5f pop %edi <== NOT EXECUTED
141a5f: c9 leave <== NOT EXECUTED
141a60: c3 ret <== NOT EXECUTED
141a61: 8d 76 00 lea 0x0(%esi),%esi <== 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);
if (links == 0xffff)
141a64: b0 01 mov $0x1,%al <== NOT EXECUTED
141a66: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
141a68: e9 64 ff ff ff jmp 1419d1 <rtems_rfs_link+0xa5> <== NOT EXECUTED
141a6d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
rc = rtems_rfs_inode_close (fs, &target_inode);
141a70: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141a73: 57 push %edi <== NOT EXECUTED
141a74: 56 push %esi <== NOT EXECUTED
141a75: e8 ae f4 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
141a7a: 89 c3 mov %eax,%ebx <== NOT EXECUTED
return rc;
141a7c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141a7f: eb 98 jmp 141a19 <rtems_rfs_link+0xed> <== NOT EXECUTED
00141aa4 <rtems_rfs_mutex_create>:
RTEMS_NO_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
#endif
int
rtems_rfs_mutex_create (rtems_rfs_mutex* mutex)
{
141aa4: 55 push %ebp <== NOT EXECUTED
141aa5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141aa7: 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'),
141aaa: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
141aad: 6a 00 push $0x0 <== NOT EXECUTED
141aaf: 6a 24 push $0x24 <== NOT EXECUTED
141ab1: 6a 01 push $0x1 <== NOT EXECUTED
141ab3: 68 6d 53 46 52 push $0x5246536d <== NOT EXECUTED
141ab8: e8 67 11 fd ff call 112c24 <rtems_semaphore_create><== NOT EXECUTED
1, RTEMS_RFS_MUTEX_ATTRIBS, 0,
mutex);
if (sc != RTEMS_SUCCESSFUL)
141abd: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
141ac0: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
141ac3: 19 c0 sbb %eax,%eax <== NOT EXECUTED
141ac5: f7 d0 not %eax <== NOT EXECUTED
141ac7: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
rtems_status_text (sc));
return EIO;
}
#endif
return 0;
}
141aca: c9 leave <== NOT EXECUTED
141acb: c3 ret <== NOT EXECUTED
00141a84 <rtems_rfs_mutex_destroy>:
return 0;
}
int
rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex)
{
141a84: 55 push %ebp <== NOT EXECUTED
141a85: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141a87: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
#if __rtems__
rtems_status_code sc;
sc = rtems_semaphore_delete (*mutex);
141a8a: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
141a8d: ff 30 pushl (%eax) <== NOT EXECUTED
141a8f: e8 64 13 fd ff call 112df8 <rtems_semaphore_delete><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
141a94: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141a97: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED
141a9a: 19 c0 sbb %eax,%eax <== NOT EXECUTED
141a9c: f7 d0 not %eax <== NOT EXECUTED
141a9e: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
rtems_status_text (sc));
return EIO;
}
#endif
return 0;
}
141aa1: c9 leave <== NOT EXECUTED
141aa2: c3 ret <== NOT EXECUTED
0013d340 <rtems_rfs_release_chain>:
static int
rtems_rfs_release_chain (rtems_chain_control* chain,
uint32_t* count,
bool modified)
{
13d340: 55 push %ebp <== NOT EXECUTED
13d341: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13d343: 57 push %edi <== NOT EXECUTED
13d344: 56 push %esi <== NOT EXECUTED
13d345: 53 push %ebx <== NOT EXECUTED
13d346: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
13d349: 89 c3 mov %eax,%ebx <== NOT EXECUTED
13d34b: 89 d6 mov %edx,%esi <== NOT EXECUTED
13d34d: 8d 78 04 lea 0x4(%eax),%edi <== NOT EXECUTED
13d350: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);
(*count)--;
buffer->user = (void*) 0;
rc = rtems_rfs_buffer_io_release (buffer, modified);
13d357: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
13d35a: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
13d35d: 8d 76 00 lea 0x0(%esi),%esi <== 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))
13d360: 39 3b cmp %edi,(%ebx) <== NOT EXECUTED
13d362: 74 34 je 13d398 <rtems_rfs_release_chain+0x58><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
13d364: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
13d367: 53 push %ebx <== NOT EXECUTED
13d368: e8 df 66 fd ff call 113a4c <_Chain_Get> <== NOT EXECUTED
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);
(*count)--;
13d36d: ff 0e decl (%esi) <== NOT EXECUTED
buffer->user = (void*) 0;
13d36f: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
13d376: 59 pop %ecx <== NOT EXECUTED
13d377: 5a pop %edx <== NOT EXECUTED
13d378: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
13d37b: 50 push %eax <== NOT EXECUTED
13d37c: e8 57 8c 00 00 call 145fd8 <rtems_rfs_buffer_bdbuf_release><== NOT EXECUTED
if ((rc > 0) && (rrc == 0))
13d381: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
13d384: 85 c0 test %eax,%eax <== NOT EXECUTED
13d386: 7e d8 jle 13d360 <rtems_rfs_release_chain+0x20><== NOT EXECUTED
13d388: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED
13d38b: 85 d2 test %edx,%edx <== NOT EXECUTED
13d38d: 75 d1 jne 13d360 <rtems_rfs_release_chain+0x20><== NOT EXECUTED
13d38f: 89 45 e0 mov %eax,-0x20(%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))
13d392: 39 3b cmp %edi,(%ebx) <== NOT EXECUTED
13d394: 75 ce jne 13d364 <rtems_rfs_release_chain+0x24><== NOT EXECUTED
13d396: 66 90 xchg %ax,%ax <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
if ((rc > 0) && (rrc == 0))
rrc = rc;
}
return rrc;
}
13d398: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
13d39b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
13d39e: 5b pop %ebx <== NOT EXECUTED
13d39f: 5e pop %esi <== NOT EXECUTED
13d3a0: 5f pop %edi <== NOT EXECUTED
13d3a1: c9 leave <== NOT EXECUTED
13d3a2: c3 ret <== NOT EXECUTED
00127ed4 <rtems_rfs_rtems_chown>:
static int
rtems_rfs_rtems_chown (rtems_filesystem_location_info_t *pathloc,
uid_t owner,
gid_t group)
{
127ed4: 55 push %ebp <== NOT EXECUTED
127ed5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
127ed7: 57 push %edi <== NOT EXECUTED
127ed8: 56 push %esi <== NOT EXECUTED
127ed9: 53 push %ebx <== NOT EXECUTED
127eda: 83 ec 60 sub $0x60,%esp <== NOT EXECUTED
127edd: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
127ee0: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
127ee3: 66 89 55 b6 mov %dx,-0x4a(%ebp) <== NOT EXECUTED
127ee7: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
127eea: 66 89 55 98 mov %dx,-0x68(%ebp) <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
127eee: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
127ef1: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
127ef4: 8b 30 mov (%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);
127ef6: 6a 00 push $0x0 <== NOT EXECUTED
127ef8: 6a 00 push $0x0 <== NOT EXECUTED
127efa: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
127efd: ff 30 pushl (%eax) <== NOT EXECUTED
127eff: e8 f4 af fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
printf ("rtems-rfs-rtems: chown: in: ino:%" PRId32 " uid:%d gid:%d\n",
ino, owner, group);
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
127f04: 6a 01 push $0x1 <== NOT EXECUTED
127f06: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
127f09: 57 push %edi <== NOT EXECUTED
127f0a: 56 push %esi <== NOT EXECUTED
127f0b: 53 push %ebx <== NOT EXECUTED
127f0c: e8 9b 90 01 00 call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
127f11: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
127f13: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
127f16: 85 c0 test %eax,%eax <== NOT EXECUTED
127f18: 7e 2e jle 127f48 <rtems_rfs_rtems_chown+0x74><== 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);
127f1a: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
127f1d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127f20: 53 push %ebx <== NOT EXECUTED
127f21: e8 7e 54 01 00 call 13d3a4 <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);
127f26: 5b pop %ebx <== NOT EXECUTED
127f27: ff 37 pushl (%edi) <== NOT EXECUTED
127f29: e8 c6 b0 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
if (rc)
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("chown: closing inode", rc);
127f2e: e8 59 e8 01 00 call 14678c <__errno> <== NOT EXECUTED
127f33: 89 30 mov %esi,(%eax) <== NOT EXECUTED
127f35: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
127f3a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
127f3d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127f40: 5b pop %ebx <== NOT EXECUTED
127f41: 5e pop %esi <== NOT EXECUTED
127f42: 5f pop %edi <== NOT EXECUTED
127f43: c9 leave <== NOT EXECUTED
127f44: c3 ret <== NOT EXECUTED
127f45: 8d 76 00 lea 0x0(%esi),%esi <== 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);
127f48: 8b 45 98 mov -0x68(%ebp),%eax <== NOT EXECUTED
127f4b: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
127f4e: 0f b7 55 b6 movzwl -0x4a(%ebp),%edx <== NOT EXECUTED
127f52: 09 d0 or %edx,%eax <== NOT EXECUTED
127f54: 89 c1 mov %eax,%ecx <== NOT EXECUTED
127f56: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
127f59: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
127f5c: 88 4a 04 mov %cl,0x4(%edx) <== NOT EXECUTED
127f5f: 89 c1 mov %eax,%ecx <== NOT EXECUTED
127f61: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
127f64: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
127f67: 88 4a 05 mov %cl,0x5(%edx) <== NOT EXECUTED
127f6a: c1 e8 08 shr $0x8,%eax <== NOT EXECUTED
127f6d: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
127f70: 88 42 06 mov %al,0x6(%edx) <== NOT EXECUTED
127f73: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
127f76: 8a 55 b6 mov -0x4a(%ebp),%dl <== NOT EXECUTED
127f79: 88 50 07 mov %dl,0x7(%eax) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
127f7c: 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);
127f80: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127f83: 57 push %edi <== NOT EXECUTED
127f84: 53 push %ebx <== NOT EXECUTED
127f85: e8 9e 8f 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
127f8a: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
127f8c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127f8f: 85 c0 test %eax,%eax <== NOT EXECUTED
127f91: 75 87 jne 127f1a <rtems_rfs_rtems_chown+0x46><== 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);
127f93: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
127f96: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127f99: 53 push %ebx <== NOT EXECUTED
127f9a: e8 05 54 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
127f9f: 59 pop %ecx <== NOT EXECUTED
127fa0: ff 36 pushl (%esi) <== NOT EXECUTED
127fa2: e8 4d b0 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
127fa7: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rtems_rfs_rtems_error ("chown: closing inode", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
127fa9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
127fac: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127faf: 5b pop %ebx <== NOT EXECUTED
127fb0: 5e pop %esi <== NOT EXECUTED
127fb1: 5f pop %edi <== NOT EXECUTED
127fb2: c9 leave <== NOT EXECUTED
127fb3: c3 ret <== NOT EXECUTED
00141c00 <rtems_rfs_rtems_device_close>:
* @return int
*/
static int
rtems_rfs_rtems_device_close (rtems_libio_t* iop)
{
141c00: 55 push %ebp <== NOT EXECUTED
141c01: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141c03: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
141c06: 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;
141c09: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
minor = (intptr_t) iop->data1;
141c0c: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
args.iop = iop;
141c0f: 89 45 ec mov %eax,-0x14(%ebp) <== NOT EXECUTED
args.flags = 0;
141c12: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) <== NOT EXECUTED
args.mode = 0;
141c19: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_close (major, minor, (void *) &args);
141c20: 8d 45 ec lea -0x14(%ebp),%eax <== NOT EXECUTED
141c23: 50 push %eax <== NOT EXECUTED
141c24: 51 push %ecx <== NOT EXECUTED
141c25: 52 push %edx <== NOT EXECUTED
141c26: e8 b9 1f 00 00 call 143be4 <rtems_io_close> <== NOT EXECUTED
if (status)
141c2b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141c2e: 85 c0 test %eax,%eax <== NOT EXECUTED
141c30: 75 02 jne 141c34 <rtems_rfs_rtems_device_close+0x34><== NOT EXECUTED
return rtems_deviceio_errno (status);
return 0;
}
141c32: c9 leave <== NOT EXECUTED
141c33: c3 ret <== NOT EXECUTED
args.flags = 0;
args.mode = 0;
status = rtems_io_close (major, minor, (void *) &args);
if (status)
return rtems_deviceio_errno (status);
141c34: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141c37: 50 push %eax <== NOT EXECUTED
141c38: e8 97 0a 00 00 call 1426d4 <rtems_deviceio_errno> <== NOT EXECUTED
141c3d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0;
}
141c40: c9 leave <== NOT EXECUTED
141c41: c3 ret <== NOT EXECUTED
00141ad8 <rtems_rfs_rtems_device_ftruncate>:
* @return int
*/
static int
rtems_rfs_rtems_device_ftruncate (rtems_libio_t* iop, rtems_off64_t length)
{
141ad8: 55 push %ebp <== NOT EXECUTED
141ad9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
141adb: 31 c0 xor %eax,%eax <== NOT EXECUTED
141add: c9 leave <== NOT EXECUTED
141ade: c3 ret <== NOT EXECUTED
00141ae0 <rtems_rfs_rtems_device_ioctl>:
static int
rtems_rfs_rtems_device_ioctl (rtems_libio_t* iop,
uint32_t command,
void* buffer)
{
141ae0: 55 push %ebp <== NOT EXECUTED
141ae1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141ae3: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
141ae6: 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;
141ae9: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
minor = (intptr_t) iop->data1;
141aec: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
args.iop = iop;
141aef: 89 45 e8 mov %eax,-0x18(%ebp) <== NOT EXECUTED
args.command = command;
141af2: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
141af5: 89 45 ec mov %eax,-0x14(%ebp) <== NOT EXECUTED
args.buffer = buffer;
141af8: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
141afb: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
status = rtems_io_control (major, minor, (void *) &args);
141afe: 8d 45 e8 lea -0x18(%ebp),%eax <== NOT EXECUTED
141b01: 50 push %eax <== NOT EXECUTED
141b02: 51 push %ecx <== NOT EXECUTED
141b03: 52 push %edx <== NOT EXECUTED
141b04: e8 27 21 00 00 call 143c30 <rtems_io_control> <== NOT EXECUTED
if (status)
141b09: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141b0c: 85 c0 test %eax,%eax <== NOT EXECUTED
141b0e: 75 08 jne 141b18 <rtems_rfs_rtems_device_ioctl+0x38><== NOT EXECUTED
return rtems_deviceio_errno (status);
return args.ioctl_return;
141b10: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
141b13: c9 leave <== NOT EXECUTED
141b14: c3 ret <== NOT EXECUTED
141b15: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
args.command = command;
args.buffer = buffer;
status = rtems_io_control (major, minor, (void *) &args);
if (status)
return rtems_deviceio_errno (status);
141b18: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141b1b: 50 push %eax <== NOT EXECUTED
141b1c: e8 b3 0b 00 00 call 1426d4 <rtems_deviceio_errno> <== NOT EXECUTED
141b21: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return args.ioctl_return;
}
141b24: c9 leave <== NOT EXECUTED
141b25: c3 ret <== NOT EXECUTED
00141acc <rtems_rfs_rtems_device_lseek>:
static rtems_off64_t
rtems_rfs_rtems_device_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
141acc: 55 push %ebp <== NOT EXECUTED
141acd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return offset;
}
141acf: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
141ad2: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
141ad5: c9 leave <== NOT EXECUTED
141ad6: c3 ret <== NOT EXECUTED
00141c44 <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)
{
141c44: 55 push %ebp <== NOT EXECUTED
141c45: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141c47: 57 push %edi <== NOT EXECUTED
141c48: 56 push %esi <== NOT EXECUTED
141c49: 53 push %ebx <== NOT EXECUTED
141c4a: 81 ec 90 00 00 00 sub $0x90,%esp <== NOT EXECUTED
141c50: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_libio_open_close_args_t args;
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
141c53: 8b 46 28 mov 0x28(%esi),%eax <== NOT EXECUTED
141c56: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
141c59: 8b 56 38 mov 0x38(%esi),%edx <== NOT EXECUTED
141c5c: 6a 00 push $0x0 <== NOT EXECUTED
141c5e: 6a 00 push $0x0 <== NOT EXECUTED
141c60: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
141c63: ff 30 pushl (%eax) <== NOT EXECUTED
141c65: 89 95 70 ff ff ff mov %edx,-0x90(%ebp) <== NOT EXECUTED
141c6b: e8 88 12 fd ff call 112ef8 <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);
141c70: 6a 01 push $0x1 <== NOT EXECUTED
141c72: 8d 7d b4 lea -0x4c(%ebp),%edi <== NOT EXECUTED
141c75: 57 push %edi <== NOT EXECUTED
141c76: 8b 95 70 ff ff ff mov -0x90(%ebp),%edx <== NOT EXECUTED
141c7c: 52 push %edx <== NOT EXECUTED
141c7d: 53 push %ebx <== NOT EXECUTED
141c7e: e8 29 f3 ff ff call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
if (rc > 0)
141c83: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
141c86: 85 c0 test %eax,%eax <== NOT EXECUTED
141c88: 7e 3a jle 141cc4 <rtems_rfs_rtems_device_open+0x80><== 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);
141c8a: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
141c8d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141c90: 53 push %ebx <== NOT EXECUTED
141c91: 89 85 70 ff ff ff mov %eax,-0x90(%ebp) <== NOT EXECUTED
141c97: e8 08 b7 ff ff call 13d3a4 <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);
141c9c: 59 pop %ecx <== NOT EXECUTED
141c9d: ff 36 pushl (%esi) <== NOT EXECUTED
141c9f: e8 50 13 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("device_open: opening inode", rc);
141ca4: e8 e3 4a 00 00 call 14678c <__errno> <== NOT EXECUTED
141ca9: 8b 95 70 ff ff ff mov -0x90(%ebp),%edx <== NOT EXECUTED
141caf: 89 10 mov %edx,(%eax) <== NOT EXECUTED
141cb1: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
141cb6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
status = rtems_io_open (major, minor, (void *) &args);
if (status)
return rtems_deviceio_errno(status);
return 0;
}
141cb9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141cbc: 5b pop %ebx <== NOT EXECUTED
141cbd: 5e pop %esi <== NOT EXECUTED
141cbe: 5f pop %edi <== NOT EXECUTED
141cbf: c9 leave <== NOT EXECUTED
141cc0: c3 ret <== NOT EXECUTED
141cc1: 8d 76 00 lea 0x0(%esi),%esi <== 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]);
141cc4: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED
141cc7: 8d 42 1c lea 0x1c(%edx),%eax <== NOT EXECUTED
141cca: 8a 52 1c mov 0x1c(%edx),%dl <== NOT EXECUTED
141ccd: 88 95 78 ff ff ff mov %dl,-0x88(%ebp) <== NOT EXECUTED
141cd3: 8a 50 01 mov 0x1(%eax),%dl <== NOT EXECUTED
141cd6: 88 95 77 ff ff ff mov %dl,-0x89(%ebp) <== NOT EXECUTED
141cdc: 8a 50 02 mov 0x2(%eax),%dl <== NOT EXECUTED
141cdf: 88 95 76 ff ff ff mov %dl,-0x8a(%ebp) <== NOT EXECUTED
141ce5: 8a 50 03 mov 0x3(%eax),%dl <== NOT EXECUTED
141ce8: 88 95 75 ff ff ff mov %dl,-0x8b(%ebp) <== NOT EXECUTED
141cee: 8a 50 04 mov 0x4(%eax),%dl <== NOT EXECUTED
141cf1: 88 55 98 mov %dl,-0x68(%ebp) <== NOT EXECUTED
141cf4: 8a 50 05 mov 0x5(%eax),%dl <== NOT EXECUTED
141cf7: 88 55 97 mov %dl,-0x69(%ebp) <== NOT EXECUTED
141cfa: 8a 50 06 mov 0x6(%eax),%dl <== NOT EXECUTED
141cfd: 88 55 96 mov %dl,-0x6a(%ebp) <== NOT EXECUTED
141d00: 8a 40 07 mov 0x7(%eax),%al <== NOT EXECUTED
141d03: 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);
141d06: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141d09: 57 push %edi <== NOT EXECUTED
141d0a: 53 push %ebx <== NOT EXECUTED
141d0b: e8 18 f2 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
141d10: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
141d12: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141d15: 85 c0 test %eax,%eax <== NOT EXECUTED
141d17: 7e 2b jle 141d44 <rtems_rfs_rtems_device_open+0x100><== 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);
141d19: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
141d1c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141d1f: 53 push %ebx <== NOT EXECUTED
141d20: e8 7f b6 ff ff call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
141d25: 5a pop %edx <== NOT EXECUTED
141d26: ff 36 pushl (%esi) <== NOT EXECUTED
141d28: e8 c7 12 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("device_open: closing inode", rc);
141d2d: e8 5a 4a 00 00 call 14678c <__errno> <== NOT EXECUTED
141d32: 89 38 mov %edi,(%eax) <== NOT EXECUTED
141d34: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
141d39: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
status = rtems_io_open (major, minor, (void *) &args);
if (status)
return rtems_deviceio_errno(status);
return 0;
}
141d3c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141d3f: 5b pop %ebx <== NOT EXECUTED
141d40: 5e pop %esi <== NOT EXECUTED
141d41: 5f pop %edi <== NOT EXECUTED
141d42: c9 leave <== NOT EXECUTED
141d43: c3 ret <== NOT EXECUTED
141d44: 0f b6 bd 75 ff ff ff movzbl -0x8b(%ebp),%edi <== NOT EXECUTED
141d4b: 8a 85 78 ff ff ff mov -0x88(%ebp),%al <== NOT EXECUTED
141d51: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
141d54: 09 c7 or %eax,%edi <== NOT EXECUTED
141d56: 0f b6 85 77 ff ff ff movzbl -0x89(%ebp),%eax <== NOT EXECUTED
141d5d: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
141d60: 09 c7 or %eax,%edi <== NOT EXECUTED
141d62: 0f b6 85 76 ff ff ff movzbl -0x8a(%ebp),%eax <== NOT EXECUTED
141d69: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
141d6c: 09 c7 or %eax,%edi <== NOT EXECUTED
141d6e: 8a 4d 98 mov -0x68(%ebp),%cl <== NOT EXECUTED
141d71: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
141d74: 0f b6 45 97 movzbl -0x69(%ebp),%eax <== NOT EXECUTED
141d78: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
141d7b: 09 c1 or %eax,%ecx <== NOT EXECUTED
141d7d: 0f b6 45 95 movzbl -0x6b(%ebp),%eax <== NOT EXECUTED
141d81: 09 c1 or %eax,%ecx <== NOT EXECUTED
141d83: 0f b6 45 96 movzbl -0x6a(%ebp),%eax <== NOT EXECUTED
141d87: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
141d8a: 09 c1 or %eax,%ecx <== 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);
141d8c: 8b 53 7c mov 0x7c(%ebx),%edx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
141d8f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141d92: 53 push %ebx <== NOT EXECUTED
141d93: 89 95 70 ff ff ff mov %edx,-0x90(%ebp) <== NOT EXECUTED
141d99: 89 8d 6c ff ff ff mov %ecx,-0x94(%ebp) <== NOT EXECUTED
141d9f: e8 00 b6 ff ff call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
141da4: 58 pop %eax <== NOT EXECUTED
141da5: 8b 95 70 ff ff ff mov -0x90(%ebp),%edx <== NOT EXECUTED
141dab: ff 32 pushl (%edx) <== NOT EXECUTED
141dad: e8 42 12 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rtems_rfs_rtems_error ("device_open: closing inode", rc);
}
rtems_rfs_rtems_unlock (fs);
iop->data0 = major;
141db2: 89 7e 30 mov %edi,0x30(%esi) <== NOT EXECUTED
iop->data1 = (void*)((intptr_t) minor);
141db5: 8b 8d 6c ff ff ff mov -0x94(%ebp),%ecx <== NOT EXECUTED
141dbb: 89 4e 34 mov %ecx,0x34(%esi) <== NOT EXECUTED
args.iop = iop;
141dbe: 89 75 dc mov %esi,-0x24(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
141dc1: 8b 46 14 mov 0x14(%esi),%eax <== NOT EXECUTED
141dc4: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
args.mode = mode;
141dc7: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
141dca: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
status = rtems_io_open (major, minor, (void *) &args);
141dcd: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
141dd0: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
141dd3: 50 push %eax <== NOT EXECUTED
141dd4: 51 push %ecx <== NOT EXECUTED
141dd5: 57 push %edi <== NOT EXECUTED
141dd6: e8 a1 1e 00 00 call 143c7c <rtems_io_open> <== NOT EXECUTED
if (status)
141ddb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141dde: 85 c0 test %eax,%eax <== NOT EXECUTED
141de0: 0f 84 d3 fe ff ff je 141cb9 <rtems_rfs_rtems_device_open+0x75><== NOT EXECUTED
return rtems_deviceio_errno(status);
141de6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141de9: 50 push %eax <== NOT EXECUTED
141dea: e8 e5 08 00 00 call 1426d4 <rtems_deviceio_errno> <== NOT EXECUTED
141def: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141df2: e9 c2 fe ff ff jmp 141cb9 <rtems_rfs_rtems_device_open+0x75><== NOT EXECUTED
00141b94 <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)
{
141b94: 55 push %ebp <== NOT EXECUTED
141b95: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141b97: 56 push %esi <== NOT EXECUTED
141b98: 53 push %ebx <== NOT EXECUTED
141b99: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
141b9c: 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;
141b9f: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
minor = (intptr_t) iop->data1;
141ba2: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
args.iop = iop;
141ba5: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
args.offset = iop->offset;
141ba8: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
141bab: 8b 70 10 mov 0x10(%eax),%esi <== NOT EXECUTED
141bae: 89 5d e0 mov %ebx,-0x20(%ebp) <== NOT EXECUTED
141bb1: 89 75 e4 mov %esi,-0x1c(%ebp) <== NOT EXECUTED
args.buffer = buffer;
141bb4: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
141bb7: 89 5d e8 mov %ebx,-0x18(%ebp) <== NOT EXECUTED
args.count = count;
141bba: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
141bbd: 89 5d ec mov %ebx,-0x14(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
141bc0: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED
141bc3: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
args.bytes_moved = 0;
141bc6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_read (major, minor, (void *) &args);
141bcd: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
141bd0: 50 push %eax <== NOT EXECUTED
141bd1: 51 push %ecx <== NOT EXECUTED
141bd2: 52 push %edx <== NOT EXECUTED
141bd3: e8 f0 20 00 00 call 143cc8 <rtems_io_read> <== NOT EXECUTED
if (status)
141bd8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141bdb: 85 c0 test %eax,%eax <== NOT EXECUTED
141bdd: 75 0d jne 141bec <rtems_rfs_rtems_device_read+0x58><== NOT EXECUTED
return rtems_deviceio_errno (status);
return (ssize_t) args.bytes_moved;
141bdf: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
141be2: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
141be5: 5b pop %ebx <== NOT EXECUTED
141be6: 5e pop %esi <== NOT EXECUTED
141be7: c9 leave <== NOT EXECUTED
141be8: c3 ret <== NOT EXECUTED
141be9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read (major, minor, (void *) &args);
if (status)
return rtems_deviceio_errno (status);
141bec: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141bef: 50 push %eax <== NOT EXECUTED
141bf0: e8 df 0a 00 00 call 1426d4 <rtems_deviceio_errno> <== NOT EXECUTED
141bf5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
141bf8: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
141bfb: 5b pop %ebx <== NOT EXECUTED
141bfc: 5e pop %esi <== NOT EXECUTED
141bfd: c9 leave <== NOT EXECUTED
141bfe: c3 ret <== NOT EXECUTED
00141b28 <rtems_rfs_rtems_device_write>:
static ssize_t
rtems_rfs_rtems_device_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
141b28: 55 push %ebp <== NOT EXECUTED
141b29: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141b2b: 56 push %esi <== NOT EXECUTED
141b2c: 53 push %ebx <== NOT EXECUTED
141b2d: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
141b30: 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;
141b33: 8b 50 30 mov 0x30(%eax),%edx <== NOT EXECUTED
minor = (intptr_t) iop->data1;
141b36: 8b 48 34 mov 0x34(%eax),%ecx <== NOT EXECUTED
args.iop = iop;
141b39: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
args.offset = iop->offset;
141b3c: 8b 58 0c mov 0xc(%eax),%ebx <== NOT EXECUTED
141b3f: 8b 70 10 mov 0x10(%eax),%esi <== NOT EXECUTED
141b42: 89 5d e0 mov %ebx,-0x20(%ebp) <== NOT EXECUTED
141b45: 89 75 e4 mov %esi,-0x1c(%ebp) <== NOT EXECUTED
args.buffer = (void *) buffer;
141b48: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
141b4b: 89 5d e8 mov %ebx,-0x18(%ebp) <== NOT EXECUTED
args.count = count;
141b4e: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
141b51: 89 5d ec mov %ebx,-0x14(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
141b54: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED
141b57: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
args.bytes_moved = 0;
141b5a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_write (major, minor, (void *) &args);
141b61: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
141b64: 50 push %eax <== NOT EXECUTED
141b65: 51 push %ecx <== NOT EXECUTED
141b66: 52 push %edx <== NOT EXECUTED
141b67: e8 a8 21 00 00 call 143d14 <rtems_io_write> <== NOT EXECUTED
if (status)
141b6c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141b6f: 85 c0 test %eax,%eax <== NOT EXECUTED
141b71: 75 0d jne 141b80 <rtems_rfs_rtems_device_write+0x58><== NOT EXECUTED
return rtems_deviceio_errno (status);
return (ssize_t) args.bytes_moved;
141b73: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
141b76: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
141b79: 5b pop %ebx <== NOT EXECUTED
141b7a: 5e pop %esi <== NOT EXECUTED
141b7b: c9 leave <== NOT EXECUTED
141b7c: c3 ret <== NOT EXECUTED
141b7d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write (major, minor, (void *) &args);
if (status)
return rtems_deviceio_errno (status);
141b80: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141b83: 50 push %eax <== NOT EXECUTED
141b84: e8 4b 0b 00 00 call 1426d4 <rtems_deviceio_errno> <== NOT EXECUTED
141b89: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
141b8c: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
141b8f: 5b pop %ebx <== NOT EXECUTED
141b90: 5e pop %esi <== NOT EXECUTED
141b91: c9 leave <== NOT EXECUTED
141b92: c3 ret <== NOT EXECUTED
00141df8 <rtems_rfs_rtems_dir_close>:
* @param iop
* @retval 0 Always no error.
*/
static int
rtems_rfs_rtems_dir_close (rtems_libio_t* iop)
{
141df8: 55 push %ebp <== NOT EXECUTED
141df9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/*
* The RFS does not hold any resources. Nothing to do.
*/
return 0;
}
141dfb: 31 c0 xor %eax,%eax <== NOT EXECUTED
141dfd: c9 leave <== NOT EXECUTED
141dfe: c3 ret <== NOT EXECUTED
00141e00 <rtems_rfs_rtems_dir_lseek>:
*/
static rtems_off64_t
rtems_rfs_rtems_dir_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
141e00: 55 push %ebp <== NOT EXECUTED
141e01: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141e03: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
switch (whence)
141e06: 83 7d 14 01 cmpl $0x1,0x14(%ebp) <== NOT EXECUTED
141e0a: 76 18 jbe 141e24 <rtems_rfs_rtems_dir_lseek+0x24><== 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);
141e0c: e8 7b 49 00 00 call 14678c <__errno> <== NOT EXECUTED
141e11: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
141e17: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
141e1c: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
break;
}
return 0;
}
141e21: c9 leave <== NOT EXECUTED
141e22: c3 ret <== NOT EXECUTED
141e23: 90 nop <== NOT EXECUTED
static rtems_off64_t
rtems_rfs_rtems_dir_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
switch (whence)
141e24: 31 c0 xor %eax,%eax <== NOT EXECUTED
141e26: 31 d2 xor %edx,%edx <== NOT EXECUTED
default:
return rtems_rfs_rtems_error ("dir_lseek: bad whence", EINVAL);
break;
}
return 0;
}
141e28: c9 leave <== NOT EXECUTED
141e29: c3 ret <== NOT EXECUTED
00141ff8 <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)
{
141ff8: 55 push %ebp <== NOT EXECUTED
141ff9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141ffb: 57 push %edi <== NOT EXECUTED
141ffc: 56 push %esi <== NOT EXECUTED
141ffd: 53 push %ebx <== NOT EXECUTED
141ffe: 83 ec 50 sub $0x50,%esp <== NOT EXECUTED
142001: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
142004: 8b 46 28 mov 0x28(%esi),%eax <== NOT EXECUTED
142007: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
14200a: 8b 56 38 mov 0x38(%esi),%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);
14200d: 6a 00 push $0x0 <== NOT EXECUTED
14200f: 6a 00 push $0x0 <== NOT EXECUTED
142011: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
142014: ff 30 pushl (%eax) <== NOT EXECUTED
142016: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
142019: e8 da 0e fd ff call 112ef8 <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);
14201e: 6a 01 push $0x1 <== NOT EXECUTED
142020: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
142023: 57 push %edi <== NOT EXECUTED
142024: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
142027: 52 push %edx <== NOT EXECUTED
142028: 53 push %ebx <== NOT EXECUTED
142029: e8 7e ef ff ff call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
if (rc)
14202e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
142031: 85 c0 test %eax,%eax <== NOT EXECUTED
142033: 75 4f jne 142084 <rtems_rfs_rtems_dir_open+0x8c><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_open: opening inode", rc);
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
142035: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
142038: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
14203c: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
14203f: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
142044: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
142049: 75 6d jne 1420b8 <rtems_rfs_rtems_dir_open+0xc0><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);
}
iop->offset = 0;
14204b: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi) <== NOT EXECUTED
142052: c7 46 10 00 00 00 00 movl $0x0,0x10(%esi) <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
142059: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
14205c: 57 push %edi <== NOT EXECUTED
14205d: 53 push %ebx <== NOT EXECUTED
14205e: e8 c5 ee ff ff call 140f28 <rtems_rfs_inode_close> <== 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);
142063: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
142066: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
142069: e8 36 b3 ff ff call 13d3a4 <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);
14206e: 5a pop %edx <== NOT EXECUTED
14206f: ff 36 pushl (%esi) <== NOT EXECUTED
142071: e8 7e 0f fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
142076: 31 c0 xor %eax,%eax <== NOT EXECUTED
142078: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return 0;
}
14207b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
14207e: 5b pop %ebx <== NOT EXECUTED
14207f: 5e pop %esi <== NOT EXECUTED
142080: 5f pop %edi <== NOT EXECUTED
142081: c9 leave <== NOT EXECUTED
142082: c3 ret <== NOT EXECUTED
142083: 90 nop <== 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);
142084: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
142087: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14208a: 53 push %ebx <== NOT EXECUTED
14208b: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
14208e: e8 11 b3 ff ff call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
142093: 5b pop %ebx <== NOT EXECUTED
142094: ff 36 pushl (%esi) <== NOT EXECUTED
142096: e8 59 0f fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc)
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_open: opening inode", rc);
14209b: e8 ec 46 00 00 call 14678c <__errno> <== NOT EXECUTED
1420a0: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
1420a3: 89 10 mov %edx,(%eax) <== NOT EXECUTED
1420a5: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1420aa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
iop->offset = 0;
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
return 0;
}
1420ad: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1420b0: 5b pop %ebx <== NOT EXECUTED
1420b1: 5e pop %esi <== NOT EXECUTED
1420b2: 5f pop %edi <== NOT EXECUTED
1420b3: c9 leave <== NOT EXECUTED
1420b4: c3 ret <== NOT EXECUTED
1420b5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_open: opening inode", rc);
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
{
rtems_rfs_inode_close (fs, &inode);
1420b8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1420bb: 57 push %edi <== NOT EXECUTED
1420bc: 53 push %ebx <== NOT EXECUTED
1420bd: e8 66 ee ff ff call 140f28 <rtems_rfs_inode_close> <== 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);
1420c2: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1420c5: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
1420c8: e8 d7 b2 ff ff call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
1420cd: 59 pop %ecx <== NOT EXECUTED
1420ce: ff 36 pushl (%esi) <== NOT EXECUTED
1420d0: e8 1f 0f fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);
1420d5: e8 b2 46 00 00 call 14678c <__errno> <== NOT EXECUTED
1420da: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
1420e0: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1420e5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1420e8: eb 91 jmp 14207b <rtems_rfs_rtems_dir_open+0x83><== NOT EXECUTED
00141edc <rtems_rfs_rtems_dir_read>:
*/
static ssize_t
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
141edc: 55 push %ebp <== NOT EXECUTED
141edd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141edf: 57 push %edi <== NOT EXECUTED
141ee0: 56 push %esi <== NOT EXECUTED
141ee1: 53 push %ebx <== NOT EXECUTED
141ee2: 83 ec 50 sub $0x50,%esp <== NOT EXECUTED
141ee5: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
141ee8: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED
141eeb: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
141eee: 8b 7b 38 mov 0x38(%ebx),%edi <== 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);
141ef1: 6a 00 push $0x0 <== NOT EXECUTED
141ef3: 6a 00 push $0x0 <== NOT EXECUTED
141ef5: 8b 46 7c mov 0x7c(%esi),%eax <== NOT EXECUTED
141ef8: ff 30 pushl (%eax) <== NOT EXECUTED
141efa: e8 f9 0f fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
count = count / sizeof (struct dirent);
dirent = buffer;
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
141eff: 6a 01 push $0x1 <== NOT EXECUTED
141f01: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
141f04: 50 push %eax <== NOT EXECUTED
141f05: 57 push %edi <== NOT EXECUTED
141f06: 56 push %esi <== NOT EXECUTED
141f07: e8 a0 f0 ff ff call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
141f0c: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
141f0e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
141f11: 85 c0 test %eax,%eax <== NOT EXECUTED
141f13: 0f 85 9b 00 00 00 jne 141fb4 <rtems_rfs_rtems_dir_read+0xd8><== NOT EXECUTED
struct dirent* dirent;
ssize_t bytes_transferred;
int d;
int rc;
count = count / sizeof (struct dirent);
141f19: ba f1 f0 f0 f0 mov $0xf0f0f0f1,%edx <== NOT EXECUTED
141f1e: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
141f21: f7 e2 mul %edx <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
}
bytes_transferred = 0;
for (d = 0; d < count; d++, dirent++)
141f23: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
141f26: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
141f29: 74 5c je 141f87 <rtems_rfs_rtems_dir_read+0xab><== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc)
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
141f2b: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
141f2e: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED
141f31: c7 45 b4 00 00 00 00 movl $0x0,-0x4c(%ebp) <== NOT EXECUTED
141f38: 31 ff xor %edi,%edi <== NOT EXECUTED
141f3a: eb 2a jmp 141f66 <rtems_rfs_rtems_dir_read+0x8a><== NOT EXECUTED
if (rc == ENOENT)
{
rc = 0;
break;
}
if (rc > 0)
141f3c: 85 c0 test %eax,%eax <== NOT EXECUTED
141f3e: 0f 8f a0 00 00 00 jg 141fe4 <rtems_rfs_rtems_dir_read+0x108><== NOT EXECUTED
{
bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
break;
}
iop->offset += size;
141f44: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
141f47: 31 d2 xor %edx,%edx <== NOT EXECUTED
141f49: 03 43 0c add 0xc(%ebx),%eax <== NOT EXECUTED
141f4c: 13 53 10 adc 0x10(%ebx),%edx <== NOT EXECUTED
141f4f: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
141f52: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED
141f55: 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++)
141f5b: ff 45 b4 incl -0x4c(%ebp) <== NOT EXECUTED
141f5e: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
141f61: 39 4d b0 cmp %ecx,-0x50(%ebp) <== NOT EXECUTED
141f64: 76 21 jbe 141f87 <rtems_rfs_rtems_dir_read+0xab><== NOT EXECUTED
{
size_t size;
rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size);
141f66: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141f69: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
141f6c: 51 push %ecx <== NOT EXECUTED
141f6d: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
141f70: 01 f9 add %edi,%ecx <== NOT EXECUTED
141f72: 51 push %ecx <== NOT EXECUTED
141f73: 52 push %edx <== NOT EXECUTED
141f74: 50 push %eax <== NOT EXECUTED
141f75: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
141f78: 50 push %eax <== NOT EXECUTED
141f79: 56 push %esi <== NOT EXECUTED
141f7a: e8 8d b8 ff ff call 13d80c <rtems_rfs_dir_read> <== NOT EXECUTED
if (rc == ENOENT)
141f7f: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
141f82: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
141f85: 75 b5 jne 141f3c <rtems_rfs_rtems_dir_read+0x60><== NOT EXECUTED
}
iop->offset += size;
bytes_transferred += sizeof (struct dirent);
}
rtems_rfs_inode_close (fs, &inode);
141f87: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141f8a: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED
141f8d: 50 push %eax <== NOT EXECUTED
141f8e: 56 push %esi <== NOT EXECUTED
141f8f: e8 94 ef ff ff call 140f28 <rtems_rfs_inode_close> <== 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);
141f94: 8b 5e 7c mov 0x7c(%esi),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
141f97: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
141f9a: e8 05 b4 ff ff call 13d3a4 <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);
141f9f: 5e pop %esi <== NOT EXECUTED
141fa0: ff 33 pushl (%ebx) <== NOT EXECUTED
141fa2: e8 4d 10 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
141fa7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return bytes_transferred;
}
141faa: 89 f8 mov %edi,%eax <== NOT EXECUTED
141fac: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141faf: 5b pop %ebx <== NOT EXECUTED
141fb0: 5e pop %esi <== NOT EXECUTED
141fb1: 5f pop %edi <== NOT EXECUTED
141fb2: c9 leave <== NOT EXECUTED
141fb3: c3 ret <== 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);
141fb4: 8b 5e 7c mov 0x7c(%esi),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
141fb7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141fba: 56 push %esi <== NOT EXECUTED
141fbb: e8 e4 b3 ff ff call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
141fc0: 58 pop %eax <== NOT EXECUTED
141fc1: ff 33 pushl (%ebx) <== NOT EXECUTED
141fc3: e8 2c 10 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc)
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
141fc8: e8 bf 47 00 00 call 14678c <__errno> <== NOT EXECUTED
141fcd: 89 38 mov %edi,(%eax) <== NOT EXECUTED
141fcf: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
141fd4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
return bytes_transferred;
}
141fd7: 89 f8 mov %edi,%eax <== NOT EXECUTED
141fd9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141fdc: 5b pop %ebx <== NOT EXECUTED
141fdd: 5e pop %esi <== NOT EXECUTED
141fde: 5f pop %edi <== NOT EXECUTED
141fdf: c9 leave <== NOT EXECUTED
141fe0: c3 ret <== NOT EXECUTED
141fe1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rc = 0;
break;
}
if (rc > 0)
{
bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
141fe4: 89 45 ac mov %eax,-0x54(%ebp) <== NOT EXECUTED
141fe7: e8 a0 47 00 00 call 14678c <__errno> <== NOT EXECUTED
141fec: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
141fef: 89 10 mov %edx,(%eax) <== NOT EXECUTED
141ff1: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
141ff6: eb 8f jmp 141f87 <rtems_rfs_rtems_dir_read+0xab><== NOT EXECUTED
00141e2c <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)
{
141e2c: 55 push %ebp <== NOT EXECUTED
141e2d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141e2f: 57 push %edi <== NOT EXECUTED
141e30: 56 push %esi <== NOT EXECUTED
141e31: 53 push %ebx <== NOT EXECUTED
141e32: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
141e35: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
141e38: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
141e3b: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
141e3e: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
141e41: 8b 3a mov (%edx),%edi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
141e43: 8b 30 mov (%eax),%esi <== NOT EXECUTED
uint32_t doff = rtems_rfs_rtems_get_pathloc_doff (pathloc);
141e45: 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)
141e48: 83 fe 01 cmp $0x1,%esi <== NOT EXECUTED
141e4b: 74 7b je 141ec8 <rtems_rfs_rtems_dir_rmnod+0x9c><== 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);
141e4d: 51 push %ecx <== NOT EXECUTED
141e4e: 6a 00 push $0x0 <== NOT EXECUTED
141e50: 6a 00 push $0x0 <== NOT EXECUTED
141e52: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
141e55: ff 30 pushl (%eax) <== NOT EXECUTED
141e57: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
141e5a: e8 99 10 fd ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_rmnod: root inode", EBUSY);
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_if_empty);
141e5f: c7 04 24 01 00 00 00 movl $0x1,(%esp) <== NOT EXECUTED
141e66: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
141e69: 52 push %edx <== NOT EXECUTED
141e6a: 56 push %esi <== NOT EXECUTED
141e6b: 57 push %edi <== NOT EXECUTED
141e6c: 53 push %ebx <== NOT EXECUTED
141e6d: e8 e6 f8 ff ff call 141758 <rtems_rfs_unlink> <== NOT EXECUTED
141e72: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
141e74: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
141e77: 85 c0 test %eax,%eax <== NOT EXECUTED
141e79: 75 21 jne 141e9c <rtems_rfs_rtems_dir_rmnod+0x70><== 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);
141e7b: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
141e7e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141e81: 53 push %ebx <== NOT EXECUTED
141e82: e8 1d b5 ff ff call 13d3a4 <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);
141e87: 58 pop %eax <== NOT EXECUTED
141e88: ff 36 pushl (%esi) <== NOT EXECUTED
141e8a: e8 65 11 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
141e8f: 31 c0 xor %eax,%eax <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_rmnod: unlinking", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
141e91: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
141e94: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141e97: 5b pop %ebx <== NOT EXECUTED
141e98: 5e pop %esi <== NOT EXECUTED
141e99: 5f pop %edi <== NOT EXECUTED
141e9a: c9 leave <== NOT EXECUTED
141e9b: c3 ret <== 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);
141e9c: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
141e9f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141ea2: 53 push %ebx <== NOT EXECUTED
141ea3: e8 fc b4 ff ff call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
141ea8: 5a pop %edx <== NOT EXECUTED
141ea9: ff 37 pushl (%edi) <== NOT EXECUTED
141eab: e8 44 11 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_if_empty);
if (rc)
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("dir_rmnod: unlinking", rc);
141eb0: e8 d7 48 00 00 call 14678c <__errno> <== NOT EXECUTED
141eb5: 89 30 mov %esi,(%eax) <== NOT EXECUTED
141eb7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
141ebc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
141ebf: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141ec2: 5b pop %ebx <== NOT EXECUTED
141ec3: 5e pop %esi <== NOT EXECUTED
141ec4: 5f pop %edi <== NOT EXECUTED
141ec5: c9 leave <== NOT EXECUTED
141ec6: c3 ret <== NOT EXECUTED
141ec7: 90 nop <== 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)
return rtems_rfs_rtems_error ("dir_rmnod: root inode", EBUSY);
141ec8: e8 bf 48 00 00 call 14678c <__errno> <== NOT EXECUTED
141ecd: c7 00 10 00 00 00 movl $0x10,(%eax) <== NOT EXECUTED
141ed3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
141ed8: eb ba jmp 141e94 <rtems_rfs_rtems_dir_rmnod+0x68><== NOT EXECUTED
0012778c <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)
{
12778c: 55 push %ebp <== NOT EXECUTED
12778d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12778f: 57 push %edi <== NOT EXECUTED
127790: 56 push %esi <== NOT EXECUTED
127791: 53 push %ebx <== NOT EXECUTED
127792: 83 ec 5c sub $0x5c,%esp <== NOT EXECUTED
127795: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
127798: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
12779b: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
12779e: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
rtems_rfs_inode_handle inode;
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
1277a1: 8b 02 mov (%edx),%eax <== NOT EXECUTED
1277a3: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
rtems_rfs_ino node_ino;
uint32_t doff = 0;
1277a6: 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);
1277ad: 31 c0 xor %eax,%eax <== NOT EXECUTED
1277af: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
1277b4: 89 df mov %ebx,%edi <== NOT EXECUTED
1277b6: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1277b8: f7 d1 not %ecx <== NOT EXECUTED
1277ba: 8d 44 0b ff lea -0x1(%ebx,%ecx,1),%eax <== NOT EXECUTED
1277be: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
1277c1: 89 01 mov %eax,(%ecx) <== NOT EXECUTED
1277c3: 89 cf mov %ecx,%edi <== NOT EXECUTED
while (*name != path)
1277c5: eb 03 jmp 1277ca <rtems_rfs_rtems_eval_for_make+0x3e><== NOT EXECUTED
1277c7: 90 nop <== NOT EXECUTED
{
(*name)--;
if (rtems_filesystem_is_separator (**name))
{
(*name)++;
break;
1277c8: 8b 07 mov (%edi),%eax <== 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)
1277ca: 39 c3 cmp %eax,%ebx <== NOT EXECUTED
1277cc: 74 1e je 1277ec <rtems_rfs_rtems_eval_for_make+0x60><== NOT EXECUTED
{
(*name)--;
1277ce: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED
1277d1: 89 17 mov %edx,(%edi) <== NOT EXECUTED
if (rtems_filesystem_is_separator (**name))
1277d3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1277d6: 0f be 40 ff movsbl -0x1(%eax),%eax <== NOT EXECUTED
1277da: 50 push %eax <== NOT EXECUTED
1277db: e8 ec 87 fe ff call 10ffcc <rtems_filesystem_is_separator><== NOT EXECUTED
1277e0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1277e3: 85 c0 test %eax,%eax <== NOT EXECUTED
1277e5: 74 e1 je 1277c8 <rtems_rfs_rtems_eval_for_make+0x3c><== NOT EXECUTED
{
(*name)++;
1277e7: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1277ea: ff 00 incl (%eax) <== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, strlen(path));
1277ec: 31 c0 xor %eax,%eax <== NOT EXECUTED
1277ee: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
1277f3: 89 df mov %ebx,%edi <== NOT EXECUTED
1277f5: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1277f7: f7 d1 not %ecx <== NOT EXECUTED
1277f9: 49 dec %ecx <== NOT EXECUTED
1277fa: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1277fd: 51 push %ecx <== NOT EXECUTED
1277fe: 53 push %ebx <== NOT EXECUTED
1277ff: e8 88 6e fe ff call 10e68c <rtems_filesystem_prefix_separators><== NOT EXECUTED
path += stripped;
127804: 01 c3 add %eax,%ebx <== NOT EXECUTED
127806: 89 5d a4 mov %ebx,-0x5c(%ebp) <== 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);
127809: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
12780c: 6a 00 push $0x0 <== NOT EXECUTED
12780e: 6a 00 push $0x0 <== NOT EXECUTED
127810: 8b 46 7c mov 0x7c(%esi),%eax <== NOT EXECUTED
127813: ff 30 pushl (%eax) <== NOT EXECUTED
127815: e8 de b6 fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
12781a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
12781d: 6a 01 push $0x1 <== NOT EXECUTED
12781f: 8d 55 b4 lea -0x4c(%ebp),%edx <== NOT EXECUTED
127822: 52 push %edx <== NOT EXECUTED
127823: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
127826: 56 push %esi <== NOT EXECUTED
127827: e8 80 97 01 00 call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
if (rc > 0)
12782c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12782f: 85 c0 test %eax,%eax <== NOT EXECUTED
127831: 0f 8f e5 02 00 00 jg 127b1c <rtems_rfs_rtems_eval_for_make+0x390><== 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)) &&
127837: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
12783a: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
12783e: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
127841: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
127846: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
12784b: 0f 84 7b 01 00 00 je 1279cc <rtems_rfs_rtems_eval_for_make+0x240><== NOT EXECUTED
}
/*
* Is this the end of the pathname we where given ?
*/
if (path == *name)
127851: 8b 4d a4 mov -0x5c(%ebp),%ecx <== NOT EXECUTED
127854: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
127857: 39 0a cmp %ecx,(%edx) <== NOT EXECUTED
127859: 0f 84 c1 00 00 00 je 127920 <rtems_rfs_rtems_eval_for_make+0x194><== NOT EXECUTED
12785f: 89 cb mov %ecx,%ebx <== NOT EXECUTED
127861: 31 d2 xor %edx,%edx <== NOT EXECUTED
127863: 89 d7 mov %edx,%edi <== NOT EXECUTED
127865: eb 10 jmp 127877 <rtems_rfs_rtems_eval_for_make+0xeb><== NOT EXECUTED
127867: 90 nop <== NOT EXECUTED
/*
* Extract the node name we will look for this time around.
*/
node = path;
node_len = 0;
while (!rtems_filesystem_is_separator(*path) &&
127868: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
12786b: 74 1d je 12788a <rtems_rfs_rtems_eval_for_make+0xfe><== NOT EXECUTED
(*path != '\0') &&
(node_len < (rtems_rfs_fs_max_name (fs) - 1)))
12786d: 8b 46 18 mov 0x18(%esi),%eax <== NOT EXECUTED
127870: 48 dec %eax <== NOT EXECUTED
127871: 39 c7 cmp %eax,%edi <== NOT EXECUTED
127873: 73 15 jae 12788a <rtems_rfs_rtems_eval_for_make+0xfe><== NOT EXECUTED
{
node_len++;
127875: 47 inc %edi <== NOT EXECUTED
path++;
127876: 43 inc %ebx <== NOT EXECUTED
/*
* Extract the node name we will look for this time around.
*/
node = path;
node_len = 0;
while (!rtems_filesystem_is_separator(*path) &&
127877: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12787a: 0f be 03 movsbl (%ebx),%eax <== NOT EXECUTED
12787d: 50 push %eax <== NOT EXECUTED
12787e: e8 49 87 fe ff call 10ffcc <rtems_filesystem_is_separator><== NOT EXECUTED
127883: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127886: 85 c0 test %eax,%eax <== NOT EXECUTED
127888: 74 de je 127868 <rtems_rfs_rtems_eval_for_make+0xdc><== NOT EXECUTED
12788a: 89 fa mov %edi,%edx <== NOT EXECUTED
}
/*
* Eat any separators at start of the new path.
*/
stripped = rtems_filesystem_prefix_separators (path, strlen (path));
12788c: 31 c0 xor %eax,%eax <== NOT EXECUTED
12788e: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
127893: 89 df mov %ebx,%edi <== NOT EXECUTED
127895: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
127897: f7 d1 not %ecx <== NOT EXECUTED
127899: 49 dec %ecx <== NOT EXECUTED
12789a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12789d: 51 push %ecx <== NOT EXECUTED
12789e: 53 push %ebx <== NOT EXECUTED
12789f: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
1278a2: e8 e5 6d fe ff call 10e68c <rtems_filesystem_prefix_separators><== NOT EXECUTED
path += stripped;
1278a7: 01 c3 add %eax,%ebx <== 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))
1278a9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1278ac: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
1278af: 80 38 2e cmpb $0x2e,(%eax) <== NOT EXECUTED
1278b2: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
1278b5: 74 55 je 12790c <rtems_rfs_rtems_eval_for_make+0x180><== 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))
1278b7: 80 3b 2e cmpb $0x2e,(%ebx) <== NOT EXECUTED
1278ba: 75 0a jne 1278c6 <rtems_rfs_rtems_eval_for_make+0x13a><== NOT EXECUTED
1278bc: 80 7b 01 2e cmpb $0x2e,0x1(%ebx) <== NOT EXECUTED
1278c0: 0f 84 46 01 00 00 je 127a0c <rtems_rfs_rtems_eval_for_make+0x280><== NOT EXECUTED
else
{
/*
* Read the inode so we know it exists and what type it is.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
1278c6: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1278c9: 8d 4d dc lea -0x24(%ebp),%ecx <== NOT EXECUTED
1278cc: 51 push %ecx <== NOT EXECUTED
1278cd: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1278d0: 50 push %eax <== NOT EXECUTED
1278d1: 52 push %edx <== NOT EXECUTED
1278d2: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED
1278d5: 8d 55 b4 lea -0x4c(%ebp),%edx <== NOT EXECUTED
1278d8: 52 push %edx <== NOT EXECUTED
1278d9: 56 push %esi <== NOT EXECUTED
1278da: e8 69 69 01 00 call 13e248 <rtems_rfs_dir_lookup_ino><== NOT EXECUTED
node, node_len - stripped, &ino, &doff);
if (rc > 0)
1278df: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1278e2: 85 c0 test %eax,%eax <== NOT EXECUTED
1278e4: 0f 8f 92 02 00 00 jg 127b7c <rtems_rfs_rtems_eval_for_make+0x3f0><== 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);
1278ea: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1278ed: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
1278f0: 50 push %eax <== NOT EXECUTED
1278f1: 56 push %esi <== NOT EXECUTED
1278f2: e8 31 96 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
if (rc > 0)
1278f7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1278fa: 85 c0 test %eax,%eax <== NOT EXECUTED
1278fc: 0f 8f 60 02 00 00 jg 127b62 <rtems_rfs_rtems_eval_for_make+0x3d6><== NOT EXECUTED
127902: 89 5d a4 mov %ebx,-0x5c(%ebp) <== NOT EXECUTED
127905: e9 13 ff ff ff jmp 12781d <rtems_rfs_rtems_eval_for_make+0x91><== NOT EXECUTED
12790a: 66 90 xchg %ax,%ax <== 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))
12790c: 8a 40 01 mov 0x1(%eax),%al <== NOT EXECUTED
12790f: 84 c0 test %al,%al <== NOT EXECUTED
127911: 0f 85 5d 01 00 00 jne 127a74 <rtems_rfs_rtems_eval_for_make+0x2e8><== NOT EXECUTED
{
if (*path)
127917: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
12791a: 0f 85 77 01 00 00 jne 127a97 <rtems_rfs_rtems_eval_for_make+0x30b><== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("eval_for_make: closing node", rc);
}
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
127920: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
127923: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
127927: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12792a: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
12792f: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
127934: 0f 85 fc 01 00 00 jne 127b36 <rtems_rfs_rtems_eval_for_make+0x3aa><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTDIR);
}
if (!rtems_rfs_rtems_eval_perms (&inode, RTEMS_LIBIO_PERMS_WX))
12793a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12793d: 6a 03 push $0x3 <== NOT EXECUTED
12793f: 8d 4d b4 lea -0x4c(%ebp),%ecx <== NOT EXECUTED
127942: 51 push %ecx <== NOT EXECUTED
127943: e8 84 07 00 00 call 1280cc <rtems_rfs_rtems_eval_perms><== NOT EXECUTED
127948: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12794b: 84 c0 test %al,%al <== NOT EXECUTED
12794d: 0f 84 92 00 00 00 je 1279e5 <rtems_rfs_rtems_eval_for_make+0x259><== NOT EXECUTED
}
/*
* Make sure the name does not already exists in the directory.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, *name, strlen (*name),
127953: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
127956: 8b 11 mov (%ecx),%edx <== NOT EXECUTED
127958: 31 c0 xor %eax,%eax <== NOT EXECUTED
12795a: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
12795f: 89 d7 mov %edx,%edi <== NOT EXECUTED
127961: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
127963: f7 d1 not %ecx <== NOT EXECUTED
127965: 49 dec %ecx <== NOT EXECUTED
127966: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127969: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED
12796c: 50 push %eax <== NOT EXECUTED
12796d: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
127970: 50 push %eax <== NOT EXECUTED
127971: 51 push %ecx <== NOT EXECUTED
127972: 52 push %edx <== NOT EXECUTED
127973: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
127976: 50 push %eax <== NOT EXECUTED
127977: 56 push %esi <== NOT EXECUTED
127978: e8 cb 68 01 00 call 13e248 <rtems_rfs_dir_lookup_ino><== NOT EXECUTED
12797d: 89 c3 mov %eax,%ebx <== NOT EXECUTED
&node_ino, &doff);
if (rc == 0)
12797f: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
127982: 85 c0 test %eax,%eax <== NOT EXECUTED
127984: 0f 84 1c 02 00 00 je 127ba6 <rtems_rfs_rtems_eval_for_make+0x41a><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("eval_for_make: found name", EEXIST);
}
if (rc != ENOENT)
12798a: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
12798d: 0f 84 19 01 00 00 je 127aac <rtems_rfs_rtems_eval_for_make+0x320><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
127993: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127996: 8d 4d b4 lea -0x4c(%ebp),%ecx <== NOT EXECUTED
127999: 51 push %ecx <== NOT EXECUTED
12799a: 56 push %esi <== NOT EXECUTED
12799b: e8 88 95 01 00 call 140f28 <rtems_rfs_inode_close> <== 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);
1279a0: 8b 7e 7c mov 0x7c(%esi),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1279a3: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
1279a6: e8 f9 59 01 00 call 13d3a4 <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);
1279ab: 58 pop %eax <== NOT EXECUTED
1279ac: ff 37 pushl (%edi) <== NOT EXECUTED
1279ae: e8 41 b6 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("eval_for_make: look up", rc);
1279b3: e8 d4 ed 01 00 call 14678c <__errno> <== NOT EXECUTED
1279b8: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
1279ba: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
1279bf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
return rc;
}
1279c2: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1279c4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1279c7: 5b pop %ebx <== NOT EXECUTED
1279c8: 5e pop %esi <== NOT EXECUTED
1279c9: 5f pop %edi <== NOT EXECUTED
1279ca: c9 leave <== NOT EXECUTED
1279cb: c3 ret <== 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)) &&
1279cc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1279cf: 6a 01 push $0x1 <== NOT EXECUTED
1279d1: 8d 4d b4 lea -0x4c(%ebp),%ecx <== NOT EXECUTED
1279d4: 51 push %ecx <== NOT EXECUTED
1279d5: e8 f2 06 00 00 call 1280cc <rtems_rfs_rtems_eval_perms><== NOT EXECUTED
1279da: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1279dd: 84 c0 test %al,%al <== NOT EXECUTED
1279df: 0f 85 6c fe ff ff jne 127851 <rtems_rfs_rtems_eval_for_make+0xc5><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTDIR);
}
if (!rtems_rfs_rtems_eval_perms (&inode, RTEMS_LIBIO_PERMS_WX))
{
rtems_rfs_inode_close (fs, &inode);
1279e5: 51 push %ecx <== NOT EXECUTED
1279e6: 51 push %ecx <== NOT EXECUTED
1279e7: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
1279ea: 50 push %eax <== NOT EXECUTED
1279eb: 56 push %esi <== NOT EXECUTED
1279ec: e8 37 95 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
1279f1: 89 f0 mov %esi,%eax <== NOT EXECUTED
1279f3: e8 c8 ee ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: cannot write", EACCES);
1279f8: e8 8f ed 01 00 call 14678c <__errno> <== NOT EXECUTED
1279fd: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED
127a03: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
127a06: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127a09: eb b7 jmp 1279c2 <rtems_rfs_rtems_eval_for_make+0x236><== NOT EXECUTED
127a0b: 90 nop <== 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))
127a0c: 8d 7b 02 lea 0x2(%ebx),%edi <== NOT EXECUTED
127a0f: 8a 43 02 mov 0x2(%ebx),%al <== NOT EXECUTED
127a12: 84 c0 test %al,%al <== NOT EXECUTED
127a14: 0f 85 e0 00 00 00 jne 127afa <rtems_rfs_rtems_eval_for_make+0x36e><== NOT EXECUTED
{
/*
* If we are at the root inode of the file system we have a crossmount
* path.
*/
if (ino == RTEMS_RFS_ROOT_INO)
127a1a: 83 7d e4 01 cmpl $0x1,-0x1c(%ebp) <== NOT EXECUTED
127a1e: 0f 84 ab 01 00 00 je 127bcf <rtems_rfs_rtems_eval_for_make+0x443><== 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)))
127a24: 8b 45 c0 mov -0x40(%ebp),%eax <== NOT EXECUTED
127a27: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
127a2b: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
127a2e: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
127a33: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
127a38: 0f 85 d6 01 00 00 jne 127c14 <rtems_rfs_rtems_eval_for_make+0x488><== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
127a3e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127a41: 8d 55 dc lea -0x24(%ebp),%edx <== NOT EXECUTED
127a44: 52 push %edx <== NOT EXECUTED
127a45: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
127a48: 51 push %ecx <== NOT EXECUTED
127a49: 6a 02 push $0x2 <== NOT EXECUTED
127a4b: 68 e3 1e 16 00 push $0x161ee3 <== NOT EXECUTED
127a50: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
127a53: 50 push %eax <== NOT EXECUTED
127a54: 56 push %esi <== NOT EXECUTED
127a55: e8 ee 67 01 00 call 13e248 <rtems_rfs_dir_lookup_ino><== NOT EXECUTED
if (rc > 0)
127a5a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
127a5d: 85 c0 test %eax,%eax <== NOT EXECUTED
127a5f: 0f 8e 85 fe ff ff jle 1278ea <rtems_rfs_rtems_eval_for_make+0x15e><== NOT EXECUTED
127a65: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
127a67: 53 push %ebx <== NOT EXECUTED
127a68: 53 push %ebx <== NOT EXECUTED
127a69: 8d 55 b4 lea -0x4c(%ebp),%edx <== NOT EXECUTED
127a6c: 52 push %edx <== NOT EXECUTED
127a6d: e9 13 01 00 00 jmp 127b85 <rtems_rfs_rtems_eval_for_make+0x3f9><== NOT EXECUTED
127a72: 66 90 xchg %ax,%ax <== 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))
127a74: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127a77: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
127a7a: 50 push %eax <== NOT EXECUTED
127a7b: e8 4c 85 fe ff call 10ffcc <rtems_filesystem_is_separator><== NOT EXECUTED
127a80: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127a83: 85 c0 test %eax,%eax <== NOT EXECUTED
127a85: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
127a88: 0f 84 29 fe ff ff je 1278b7 <rtems_rfs_rtems_eval_for_make+0x12b><== NOT EXECUTED
{
if (*path)
127a8e: 80 3b 00 cmpb $0x0,(%ebx) <== NOT EXECUTED
127a91: 0f 84 89 fe ff ff je 127920 <rtems_rfs_rtems_eval_for_make+0x194><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
127a97: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127a9a: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
127a9d: 50 push %eax <== NOT EXECUTED
127a9e: 56 push %esi <== NOT EXECUTED
127a9f: e8 84 94 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
continue;
127aa4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127aa7: e9 56 fe ff ff jmp 127902 <rtems_rfs_rtems_eval_for_make+0x176><== NOT EXECUTED
/*
* Set the parent ino in the path location.
*/
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
127aac: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
127aaf: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
127ab2: 89 02 mov %eax,(%edx) <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
127ab4: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
127ab7: 89 42 04 mov %eax,0x4(%edx) <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
127aba: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127abd: 8d 4d b4 lea -0x4c(%ebp),%ecx <== NOT EXECUTED
127ac0: 51 push %ecx <== NOT EXECUTED
127ac1: 52 push %edx <== NOT EXECUTED
127ac2: e8 4d 06 00 00 call 128114 <rtems_rfs_rtems_set_handlers><== NOT EXECUTED
127ac7: 5b pop %ebx <== NOT EXECUTED
127ac8: 5f pop %edi <== NOT EXECUTED
127ac9: 3c 01 cmp $0x1,%al <== NOT EXECUTED
127acb: 19 db sbb %ebx,%ebx <== NOT EXECUTED
127acd: 83 e3 05 and $0x5,%ebx <== 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);
127ad0: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
127ad3: 50 push %eax <== NOT EXECUTED
127ad4: 56 push %esi <== NOT EXECUTED
127ad5: e8 4e 94 01 00 call 140f28 <rtems_rfs_inode_close> <== 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);
127ada: 8b 7e 7c mov 0x7c(%esi),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
127add: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
127ae0: e8 bf 58 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
127ae5: 59 pop %ecx <== NOT EXECUTED
127ae6: ff 37 pushl (%edi) <== NOT EXECUTED
127ae8: e8 07 b5 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
127aed: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rc;
}
127af0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
127af2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127af5: 5b pop %ebx <== NOT EXECUTED
127af6: 5e pop %esi <== NOT EXECUTED
127af7: 5f pop %edi <== NOT EXECUTED
127af8: c9 leave <== NOT EXECUTED
127af9: c3 ret <== 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))
127afa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127afd: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
127b00: 50 push %eax <== NOT EXECUTED
127b01: 89 55 a0 mov %edx,-0x60(%ebp) <== NOT EXECUTED
127b04: e8 c3 84 fe ff call 10ffcc <rtems_filesystem_is_separator><== NOT EXECUTED
127b09: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127b0c: 85 c0 test %eax,%eax <== NOT EXECUTED
127b0e: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
127b11: 0f 84 af fd ff ff je 1278c6 <rtems_rfs_rtems_eval_for_make+0x13a><== NOT EXECUTED
127b17: e9 fe fe ff ff jmp 127a1a <rtems_rfs_rtems_eval_for_make+0x28e><== NOT EXECUTED
127b1c: 89 c3 mov %eax,%ebx <== NOT EXECUTED
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc > 0)
{
rtems_rfs_rtems_unlock (fs);
127b1e: 89 f0 mov %esi,%eax <== NOT EXECUTED
127b20: e8 9b ed ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: read ino", rc);
127b25: e8 62 ec 01 00 call 14678c <__errno> <== NOT EXECUTED
127b2a: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
127b2c: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
127b31: e9 8c fe ff ff jmp 1279c2 <rtems_rfs_rtems_eval_for_make+0x236><== NOT EXECUTED
}
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
{
rtems_rfs_inode_close (fs, &inode);
127b36: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127b39: 8d 55 b4 lea -0x4c(%ebp),%edx <== NOT EXECUTED
127b3c: 52 push %edx <== NOT EXECUTED
127b3d: 56 push %esi <== NOT EXECUTED
127b3e: e8 e5 93 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
127b43: 89 f0 mov %esi,%eax <== NOT EXECUTED
127b45: e8 76 ed ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTDIR);
127b4a: e8 3d ec 01 00 call 14678c <__errno> <== NOT EXECUTED
127b4f: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED
127b55: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
127b5a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127b5d: e9 60 fe ff ff jmp 1279c2 <rtems_rfs_rtems_eval_for_make+0x236><== NOT EXECUTED
127b62: 89 c7 mov %eax,%edi <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &inode);
if (rc > 0)
{
rtems_rfs_rtems_unlock (fs);
127b64: 89 f0 mov %esi,%eax <== NOT EXECUTED
127b66: e8 55 ed ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: closing node", rc);
127b6b: e8 1c ec 01 00 call 14678c <__errno> <== NOT EXECUTED
127b70: 89 38 mov %edi,(%eax) <== NOT EXECUTED
127b72: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
127b77: e9 46 fe ff ff jmp 1279c2 <rtems_rfs_rtems_eval_for_make+0x236><== NOT EXECUTED
127b7c: 89 c7 mov %eax,%edi <== NOT EXECUTED
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
node, node_len - stripped, &ino, &doff);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &inode);
127b7e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127b81: 8d 4d b4 lea -0x4c(%ebp),%ecx <== NOT EXECUTED
127b84: 51 push %ecx <== NOT EXECUTED
127b85: 56 push %esi <== NOT EXECUTED
127b86: e8 9d 93 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
127b8b: 89 f0 mov %esi,%eax <== NOT EXECUTED
127b8d: e8 2e ed ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: reading inode", rc);
127b92: e8 f5 eb 01 00 call 14678c <__errno> <== NOT EXECUTED
127b97: 89 38 mov %edi,(%eax) <== NOT EXECUTED
127b99: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
127b9e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127ba1: e9 1c fe ff ff jmp 1279c2 <rtems_rfs_rtems_eval_for_make+0x236><== NOT EXECUTED
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, *name, strlen (*name),
&node_ino, &doff);
if (rc == 0)
{
rtems_rfs_inode_close (fs, &inode);
127ba6: 52 push %edx <== NOT EXECUTED
127ba7: 52 push %edx <== NOT EXECUTED
127ba8: 8d 55 b4 lea -0x4c(%ebp),%edx <== NOT EXECUTED
127bab: 52 push %edx <== NOT EXECUTED
127bac: 56 push %esi <== NOT EXECUTED
127bad: e8 76 93 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
127bb2: 89 f0 mov %esi,%eax <== NOT EXECUTED
127bb4: e8 07 ed ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: found name", EEXIST);
127bb9: e8 ce eb 01 00 call 14678c <__errno> <== NOT EXECUTED
127bbe: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED
127bc4: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
127bc7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127bca: e9 f3 fd ff ff jmp 1279c2 <rtems_rfs_rtems_eval_for_make+0x236><== 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);
127bcf: 50 push %eax <== NOT EXECUTED
127bd0: 50 push %eax <== NOT EXECUTED
127bd1: 8d 4d b4 lea -0x4c(%ebp),%ecx <== NOT EXECUTED
127bd4: 51 push %ecx <== NOT EXECUTED
127bd5: 56 push %esi <== NOT EXECUTED
127bd6: 89 7d a0 mov %edi,-0x60(%ebp) <== NOT EXECUTED
127bd9: e8 4a 93 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
127bde: 89 f0 mov %esi,%eax <== NOT EXECUTED
127be0: e8 db ec ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
*pathloc = pathloc->mt_entry->mt_point_node;
127be5: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
127be8: 8b 70 10 mov 0x10(%eax),%esi <== NOT EXECUTED
127beb: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
127bee: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
127bf3: 89 c7 mov %eax,%edi <== NOT EXECUTED
127bf5: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return (*pathloc->ops->evalformake_h)(path + 2, pathloc, name);
127bf7: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
127bfa: 89 c1 mov %eax,%ecx <== NOT EXECUTED
127bfc: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
127bff: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
127c02: 51 push %ecx <== NOT EXECUTED
127c03: 8b 55 a0 mov -0x60(%ebp),%edx <== NOT EXECUTED
127c06: 52 push %edx <== NOT EXECUTED
127c07: ff 50 04 call *0x4(%eax) <== NOT EXECUTED
127c0a: 89 c3 mov %eax,%ebx <== NOT EXECUTED
127c0c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127c0f: e9 ae fd ff ff jmp 1279c2 <rtems_rfs_rtems_eval_for_make+0x236><== 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)))
{
rtems_rfs_inode_close (fs, &inode);
127c14: 57 push %edi <== NOT EXECUTED
127c15: 57 push %edi <== NOT EXECUTED
127c16: 8d 45 b4 lea -0x4c(%ebp),%eax <== NOT EXECUTED
127c19: 50 push %eax <== NOT EXECUTED
127c1a: 56 push %esi <== NOT EXECUTED
127c1b: e8 08 93 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
127c20: 89 f0 mov %esi,%eax <== NOT EXECUTED
127c22: e8 99 ec ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTSUP);
127c27: e8 60 eb 01 00 call 14678c <__errno> <== NOT EXECUTED
127c2c: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
127c32: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
127c35: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127c38: e9 85 fd ff ff jmp 1279c2 <rtems_rfs_rtems_eval_for_make+0x236><== NOT EXECUTED
00126bbc <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)
{
126bbc: 55 push %ebp <== NOT EXECUTED
126bbd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
126bbf: 57 push %edi <== NOT EXECUTED
126bc0: 56 push %esi <== NOT EXECUTED
126bc1: 53 push %ebx <== NOT EXECUTED
126bc2: 83 ec 64 sub $0x64,%esp <== NOT EXECUTED
126bc5: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
126bc8: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
126bcb: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED
126bce: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
126bd1: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
126bd4: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
rtems_rfs_inode_handle inode;
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
126bd7: 8b 02 mov (%edx),%eax <== NOT EXECUTED
126bd9: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
uint32_t doff = 0;
126bdc: 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);
126be3: 53 push %ebx <== NOT EXECUTED
126be4: 56 push %esi <== NOT EXECUTED
126be5: e8 a2 7a fe ff call 10e68c <rtems_filesystem_prefix_separators><== NOT EXECUTED
path += stripped;
126bea: 01 c6 add %eax,%esi <== NOT EXECUTED
126bec: 89 75 b0 mov %esi,-0x50(%ebp) <== NOT EXECUTED
pathlen -= stripped;
126bef: 29 c3 sub %eax,%ebx <== 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);
126bf1: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
126bf4: 6a 00 push $0x0 <== NOT EXECUTED
126bf6: 6a 00 push $0x0 <== NOT EXECUTED
126bf8: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
126bfb: 8b 41 7c mov 0x7c(%ecx),%eax <== NOT EXECUTED
126bfe: ff 30 pushl (%eax) <== NOT EXECUTED
126c00: e8 f3 c2 fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
126c05: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
126c08: 6a 01 push $0x1 <== NOT EXECUTED
126c0a: 8d 7d b8 lea -0x48(%ebp),%edi <== NOT EXECUTED
126c0d: 57 push %edi <== NOT EXECUTED
126c0e: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
126c11: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
126c14: e8 93 a3 01 00 call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
if (rc > 0)
126c19: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126c1c: 85 c0 test %eax,%eax <== NOT EXECUTED
126c1e: 0f 8f 22 02 00 00 jg 126e46 <rtems_rfs_rtems_eval_path+0x28a><== NOT EXECUTED
}
/*
* Is this the end of the pathname we where given ?
*/
if ((*path == '\0') || (pathlen == 0))
126c24: 8b 45 b0 mov -0x50(%ebp),%eax <== NOT EXECUTED
126c27: 8a 10 mov (%eax),%dl <== NOT EXECUTED
126c29: 84 d2 test %dl,%dl <== NOT EXECUTED
126c2b: 0f 84 e2 00 00 00 je 126d13 <rtems_rfs_rtems_eval_path+0x157><== NOT EXECUTED
126c31: 85 db test %ebx,%ebx <== NOT EXECUTED
126c33: 0f 84 da 00 00 00 je 126d13 <rtems_rfs_rtems_eval_path+0x157><== 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)) &&
126c39: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED
126c3c: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
126c40: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
126c43: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
126c48: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
126c4d: 0f 84 1d 01 00 00 je 126d70 <rtems_rfs_rtems_eval_path+0x1b4><== NOT EXECUTED
126c53: 8b 75 b0 mov -0x50(%ebp),%esi <== NOT EXECUTED
126c56: 31 ff xor %edi,%edi <== NOT EXECUTED
126c58: eb 20 jmp 126c7a <rtems_rfs_rtems_eval_path+0xbe><== NOT EXECUTED
126c5a: 66 90 xchg %ax,%ax <== NOT EXECUTED
/*
* Extract the node name we will look for this time around.
*/
node = path;
node_len = 0;
while (!rtems_filesystem_is_separator (*path) &&
126c5c: 80 3e 00 cmpb $0x0,(%esi) <== NOT EXECUTED
126c5f: 74 2c je 126c8d <rtems_rfs_rtems_eval_path+0xd1><== NOT EXECUTED
126c61: 85 db test %ebx,%ebx <== NOT EXECUTED
126c63: 0f 84 ff 00 00 00 je 126d68 <rtems_rfs_rtems_eval_path+0x1ac><== NOT EXECUTED
(*path != '\0') && pathlen &&
((node_len + 1) < rtems_rfs_fs_max_name (fs)))
126c69: 8d 47 01 lea 0x1(%edi),%eax <== NOT EXECUTED
126c6c: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
126c6f: 3b 42 18 cmp 0x18(%edx),%eax <== NOT EXECUTED
126c72: 73 19 jae 126c8d <rtems_rfs_rtems_eval_path+0xd1><== NOT EXECUTED
{
path++;
126c74: 46 inc %esi <== NOT EXECUTED
pathlen--;
126c75: 4b dec %ebx <== NOT EXECUTED
126c76: 8a 16 mov (%esi),%dl <== NOT EXECUTED
126c78: 89 c7 mov %eax,%edi <== NOT EXECUTED
/*
* Extract the node name we will look for this time around.
*/
node = path;
node_len = 0;
while (!rtems_filesystem_is_separator (*path) &&
126c7a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126c7d: 0f be d2 movsbl %dl,%edx <== NOT EXECUTED
126c80: 52 push %edx <== NOT EXECUTED
126c81: e8 46 93 fe ff call 10ffcc <rtems_filesystem_is_separator><== NOT EXECUTED
126c86: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126c89: 85 c0 test %eax,%eax <== NOT EXECUTED
126c8b: 74 cf je 126c5c <rtems_rfs_rtems_eval_path+0xa0><== NOT EXECUTED
(*path != '\0') && pathlen &&
((node_len + 1) < rtems_rfs_fs_max_name (fs)))
126c8d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
126c8f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126c92: 50 push %eax <== NOT EXECUTED
126c93: 56 push %esi <== NOT EXECUTED
126c94: e8 f3 79 fe ff call 10e68c <rtems_filesystem_prefix_separators><== NOT EXECUTED
126c99: 89 c2 mov %eax,%edx <== NOT EXECUTED
path += stripped;
126c9b: 01 c6 add %eax,%esi <== NOT EXECUTED
pathlen -= stripped;
126c9d: 29 c3 sub %eax,%ebx <== NOT EXECUTED
node_len += stripped;
126c9f: 8d 3c 38 lea (%eax,%edi,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))
126ca2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126ca5: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
126ca8: 80 39 2e cmpb $0x2e,(%ecx) <== NOT EXECUTED
126cab: 74 4b je 126cf8 <rtems_rfs_rtems_eval_path+0x13c><== 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,
126cad: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126cb0: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
126cb3: 50 push %eax <== NOT EXECUTED
126cb4: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED
126cb7: 51 push %ecx <== NOT EXECUTED
126cb8: 29 d7 sub %edx,%edi <== NOT EXECUTED
126cba: 57 push %edi <== NOT EXECUTED
126cbb: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
126cbe: 8d 7d b8 lea -0x48(%ebp),%edi <== NOT EXECUTED
126cc1: 57 push %edi <== NOT EXECUTED
126cc2: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
126cc5: e8 7e 75 01 00 call 13e248 <rtems_rfs_dir_lookup_ino><== NOT EXECUTED
node, node_len - stripped, &ino, &doff);
if (rc > 0)
126cca: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
126ccd: 85 c0 test %eax,%eax <== NOT EXECUTED
126ccf: 0f 8f be 01 00 00 jg 126e93 <rtems_rfs_rtems_eval_path+0x2d7><== 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);
126cd5: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126cd8: 8d 55 b8 lea -0x48(%ebp),%edx <== NOT EXECUTED
126cdb: 52 push %edx <== NOT EXECUTED
126cdc: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
126cdf: e8 44 a2 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
if (rc > 0)
126ce4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126ce7: 85 c0 test %eax,%eax <== NOT EXECUTED
126ce9: 0f 8f 72 01 00 00 jg 126e61 <rtems_rfs_rtems_eval_path+0x2a5><== NOT EXECUTED
126cef: 89 75 b0 mov %esi,-0x50(%ebp) <== NOT EXECUTED
126cf2: e9 11 ff ff ff jmp 126c08 <rtems_rfs_rtems_eval_path+0x4c><== NOT EXECUTED
126cf7: 90 nop <== 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))
126cf8: 41 inc %ecx <== NOT EXECUTED
126cf9: 8b 45 b0 mov -0x50(%ebp),%eax <== NOT EXECUTED
126cfc: 8a 40 01 mov 0x1(%eax),%al <== NOT EXECUTED
126cff: 88 45 a7 mov %al,-0x59(%ebp) <== NOT EXECUTED
126d02: 84 c0 test %al,%al <== NOT EXECUTED
126d04: 0f 85 89 00 00 00 jne 126d93 <rtems_rfs_rtems_eval_path+0x1d7><== NOT EXECUTED
{
if (*path)
126d0a: 80 3e 00 cmpb $0x0,(%esi) <== NOT EXECUTED
126d0d: 0f 85 fd 00 00 00 jne 126e10 <rtems_rfs_rtems_eval_path+0x254><== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("eval_path: closing node", rc);
}
}
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
126d13: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
126d16: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
126d19: 89 07 mov %eax,(%edi) <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
126d1b: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
126d1e: 89 47 04 mov %eax,0x4(%edi) <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
126d21: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126d24: 8d 45 b8 lea -0x48(%ebp),%eax <== NOT EXECUTED
126d27: 50 push %eax <== NOT EXECUTED
126d28: 57 push %edi <== NOT EXECUTED
126d29: e8 e6 13 00 00 call 128114 <rtems_rfs_rtems_set_handlers><== NOT EXECUTED
126d2e: 5a pop %edx <== NOT EXECUTED
126d2f: 59 pop %ecx <== NOT EXECUTED
126d30: 3c 01 cmp $0x1,%al <== NOT EXECUTED
126d32: 19 db sbb %ebx,%ebx <== NOT EXECUTED
126d34: 83 e3 05 and $0x5,%ebx <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
126d37: 8d 55 b8 lea -0x48(%ebp),%edx <== NOT EXECUTED
126d3a: 52 push %edx <== NOT EXECUTED
126d3b: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
126d3e: e8 e5 a1 01 00 call 140f28 <rtems_rfs_inode_close> <== 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);
126d43: 8b 4d b4 mov -0x4c(%ebp),%ecx <== NOT EXECUTED
126d46: 8b 71 7c mov 0x7c(%ecx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
126d49: 89 0c 24 mov %ecx,(%esp) <== NOT EXECUTED
126d4c: e8 53 66 01 00 call 13d3a4 <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);
126d51: 5f pop %edi <== NOT EXECUTED
126d52: ff 36 pushl (%esi) <== NOT EXECUTED
126d54: e8 9b c2 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
126d59: 83 c4 10 add $0x10,%esp <== 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;
}
126d5c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
126d5e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
126d61: 5b pop %ebx <== NOT EXECUTED
126d62: 5e pop %esi <== NOT EXECUTED
126d63: 5f pop %edi <== NOT EXECUTED
126d64: c9 leave <== NOT EXECUTED
126d65: c3 ret <== NOT EXECUTED
126d66: 66 90 xchg %ax,%ax <== NOT EXECUTED
/*
* Extract the node name we will look for this time around.
*/
node = path;
node_len = 0;
while (!rtems_filesystem_is_separator (*path) &&
126d68: 31 c0 xor %eax,%eax <== NOT EXECUTED
126d6a: e9 20 ff ff ff jmp 126c8f <rtems_rfs_rtems_eval_path+0xd3><== NOT EXECUTED
126d6f: 90 nop <== 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)) &&
126d70: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126d73: 6a 01 push $0x1 <== NOT EXECUTED
126d75: 8d 55 b8 lea -0x48(%ebp),%edx <== NOT EXECUTED
126d78: 52 push %edx <== NOT EXECUTED
126d79: e8 4e 13 00 00 call 1280cc <rtems_rfs_rtems_eval_perms><== NOT EXECUTED
126d7e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126d81: 84 c0 test %al,%al <== NOT EXECUTED
126d83: 0f 84 64 01 00 00 je 126eed <rtems_rfs_rtems_eval_path+0x331><== NOT EXECUTED
126d89: 8b 4d b0 mov -0x50(%ebp),%ecx <== NOT EXECUTED
126d8c: 8a 11 mov (%ecx),%dl <== NOT EXECUTED
126d8e: e9 c0 fe ff ff jmp 126c53 <rtems_rfs_rtems_eval_path+0x97><== 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))
126d93: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126d96: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
126d99: 50 push %eax <== NOT EXECUTED
126d9a: 89 55 ac mov %edx,-0x54(%ebp) <== NOT EXECUTED
126d9d: 89 4d a8 mov %ecx,-0x58(%ebp) <== NOT EXECUTED
126da0: e8 27 92 fe ff call 10ffcc <rtems_filesystem_is_separator><== NOT EXECUTED
126da5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126da8: 85 c0 test %eax,%eax <== NOT EXECUTED
126daa: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
126dad: 8b 4d a8 mov -0x58(%ebp),%ecx <== NOT EXECUTED
126db0: 0f 85 54 ff ff ff jne 126d0a <rtems_rfs_rtems_eval_path+0x14e><== 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))
126db6: 8b 45 b0 mov -0x50(%ebp),%eax <== NOT EXECUTED
126db9: 80 38 2e cmpb $0x2e,(%eax) <== NOT EXECUTED
126dbc: 0f 85 eb fe ff ff jne 126cad <rtems_rfs_rtems_eval_path+0xf1><== NOT EXECUTED
126dc2: 80 39 2e cmpb $0x2e,(%ecx) <== NOT EXECUTED
126dc5: 0f 85 e2 fe ff ff jne 126cad <rtems_rfs_rtems_eval_path+0xf1><== NOT EXECUTED
126dcb: 8a 40 02 mov 0x2(%eax),%al <== NOT EXECUTED
126dce: 84 c0 test %al,%al <== NOT EXECUTED
126dd0: 75 55 jne 126e27 <rtems_rfs_rtems_eval_path+0x26b><== NOT EXECUTED
{
/*
* If we are at root inode of the file system we have a crossmount path.
*/
if (ino == RTEMS_RFS_ROOT_INO)
126dd2: 83 7d e4 01 cmpl $0x1,-0x1c(%ebp) <== NOT EXECUTED
126dd6: 0f 84 bf 00 00 00 je 126e9b <rtems_rfs_rtems_eval_path+0x2df><== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
126ddc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126ddf: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
126de2: 50 push %eax <== NOT EXECUTED
126de3: 8d 55 e4 lea -0x1c(%ebp),%edx <== NOT EXECUTED
126de6: 52 push %edx <== NOT EXECUTED
126de7: 6a 02 push $0x2 <== NOT EXECUTED
126de9: 68 e3 1e 16 00 push $0x161ee3 <== NOT EXECUTED
126dee: 8d 4d b8 lea -0x48(%ebp),%ecx <== NOT EXECUTED
126df1: 51 push %ecx <== NOT EXECUTED
126df2: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
126df5: e8 4e 74 01 00 call 13e248 <rtems_rfs_dir_lookup_ino><== NOT EXECUTED
if (rc > 0)
126dfa: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
126dfd: 85 c0 test %eax,%eax <== NOT EXECUTED
126dff: 0f 8e d0 fe ff ff jle 126cd5 <rtems_rfs_rtems_eval_path+0x119><== NOT EXECUTED
126e05: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
126e07: 53 push %ebx <== NOT EXECUTED
126e08: 53 push %ebx <== NOT EXECUTED
126e09: 8d 7d b8 lea -0x48(%ebp),%edi <== NOT EXECUTED
126e0c: 57 push %edi <== NOT EXECUTED
126e0d: eb 5b jmp 126e6a <rtems_rfs_rtems_eval_path+0x2ae><== NOT EXECUTED
126e0f: 90 nop <== NOT EXECUTED
*/
if (rtems_rfs_current_dir (node))
{
if (*path)
{
rtems_rfs_inode_close (fs, &inode);
126e10: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126e13: 8d 55 b8 lea -0x48(%ebp),%edx <== NOT EXECUTED
126e16: 52 push %edx <== NOT EXECUTED
126e17: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
126e1a: e8 09 a1 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
continue;
126e1f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126e22: e9 c8 fe ff ff jmp 126cef <rtems_rfs_rtems_eval_path+0x133><== 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))
126e27: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126e2a: 0f be c0 movsbl %al,%eax <== NOT EXECUTED
126e2d: 50 push %eax <== NOT EXECUTED
126e2e: 89 55 ac mov %edx,-0x54(%ebp) <== NOT EXECUTED
126e31: e8 96 91 fe ff call 10ffcc <rtems_filesystem_is_separator><== NOT EXECUTED
126e36: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126e39: 85 c0 test %eax,%eax <== NOT EXECUTED
126e3b: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
126e3e: 0f 84 69 fe ff ff je 126cad <rtems_rfs_rtems_eval_path+0xf1><== NOT EXECUTED
126e44: eb 8c jmp 126dd2 <rtems_rfs_rtems_eval_path+0x216><== NOT EXECUTED
126e46: 89 c6 mov %eax,%esi <== NOT EXECUTED
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc > 0)
{
rtems_rfs_rtems_unlock (fs);
126e48: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
126e4b: e8 70 fa ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: opening inode", rc);
126e50: e8 37 f9 01 00 call 14678c <__errno> <== NOT EXECUTED
126e55: 89 30 mov %esi,(%eax) <== NOT EXECUTED
126e57: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
126e5c: e9 fb fe ff ff jmp 126d5c <rtems_rfs_rtems_eval_path+0x1a0><== NOT EXECUTED
126e61: 89 c6 mov %eax,%esi <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &inode);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &inode);
126e63: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126e66: 8d 4d b8 lea -0x48(%ebp),%ecx <== NOT EXECUTED
126e69: 51 push %ecx <== NOT EXECUTED
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
node, node_len - stripped, &ino, &doff);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &inode);
126e6a: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
126e6d: e8 b6 a0 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
126e72: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
126e75: e8 46 fa ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return ((errno = rc) == 0) ? 0 : -1;
126e7a: e8 0d f9 01 00 call 14678c <__errno> <== NOT EXECUTED
126e7f: 89 30 mov %esi,(%eax) <== NOT EXECUTED
126e81: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
126e86: 83 c4 10 add $0x10,%esp <== 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;
}
126e89: 89 d8 mov %ebx,%eax <== NOT EXECUTED
126e8b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
126e8e: 5b pop %ebx <== NOT EXECUTED
126e8f: 5e pop %esi <== NOT EXECUTED
126e90: 5f pop %edi <== NOT EXECUTED
126e91: c9 leave <== NOT EXECUTED
126e92: c3 ret <== NOT EXECUTED
126e93: 89 c6 mov %eax,%esi <== NOT EXECUTED
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
node, node_len - stripped, &ino, &doff);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &inode);
126e95: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126e98: 57 push %edi <== NOT EXECUTED
126e99: eb cf jmp 126e6a <rtems_rfs_rtems_eval_path+0x2ae><== NOT EXECUTED
126e9b: 89 fa mov %edi,%edx <== NOT EXECUTED
126e9d: 89 75 b0 mov %esi,-0x50(%ebp) <== NOT EXECUTED
if (ino == RTEMS_RFS_ROOT_INO)
{
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);
126ea0: 56 push %esi <== NOT EXECUTED
126ea1: 56 push %esi <== NOT EXECUTED
126ea2: 8d 7d b8 lea -0x48(%ebp),%edi <== NOT EXECUTED
126ea5: 57 push %edi <== NOT EXECUTED
126ea6: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
126ea9: 89 55 ac mov %edx,-0x54(%ebp) <== NOT EXECUTED
126eac: e8 77 a0 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
126eb1: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
126eb4: e8 07 fa ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
*pathloc = pathloc->mt_entry->mt_point_node;
126eb9: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED
126ebc: 8b 70 10 mov 0x10(%eax),%esi <== NOT EXECUTED
126ebf: 83 c6 08 add $0x8,%esi <== NOT EXECUTED
126ec2: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED
126ec7: 89 c7 mov %eax,%edi <== NOT EXECUTED
126ec9: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)(path - node_len, pathlen + node_len,
126ecb: 89 c1 mov %eax,%ecx <== NOT EXECUTED
126ecd: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
126ed0: 51 push %ecx <== NOT EXECUTED
126ed1: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
126ed4: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
126ed7: 8d 1c 1a lea (%edx,%ebx,1),%ebx <== NOT EXECUTED
126eda: 53 push %ebx <== NOT EXECUTED
126edb: 8b 7d b0 mov -0x50(%ebp),%edi <== NOT EXECUTED
126ede: 29 d7 sub %edx,%edi <== NOT EXECUTED
126ee0: 57 push %edi <== NOT EXECUTED
126ee1: ff 10 call *(%eax) <== NOT EXECUTED
126ee3: 89 c3 mov %eax,%ebx <== NOT EXECUTED
126ee5: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
126ee8: e9 6f fe ff ff jmp 126d5c <rtems_rfs_rtems_eval_path+0x1a0><== 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)) &&
!rtems_rfs_rtems_eval_perms (&inode, RTEMS_LIBIO_PERMS_SEARCH))
{
rtems_rfs_inode_close (fs, &inode);
126eed: 57 push %edi <== NOT EXECUTED
126eee: 57 push %edi <== NOT EXECUTED
126eef: 8d 7d b8 lea -0x48(%ebp),%edi <== NOT EXECUTED
126ef2: 57 push %edi <== NOT EXECUTED
126ef3: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
126ef6: e8 2d a0 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
126efb: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
126efe: e8 bd f9 ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: eval perms", EACCES);
126f03: e8 84 f8 01 00 call 14678c <__errno> <== NOT EXECUTED
126f08: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED
126f0e: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED
126f11: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126f14: e9 43 fe ff ff jmp 126d5c <rtems_rfs_rtems_eval_path+0x1a0><== NOT EXECUTED
001280cc <rtems_rfs_rtems_eval_perms>:
#include "rtems-rfs-rtems.h"
bool
rtems_rfs_rtems_eval_perms (rtems_rfs_inode_handle* inode, int flags)
{
1280cc: 55 push %ebp <== NOT EXECUTED
1280cd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1280cf: 53 push %ebx <== NOT EXECUTED
1280d0: 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);
1280d3: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1280d6: 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;
1280d9: 89 d0 mov %edx,%eax <== NOT EXECUTED
1280db: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED
1280de: 8d 0c d5 00 00 00 00 lea 0x0(,%edx,8),%ecx <== NOT EXECUTED
1280e5: 09 c8 or %ecx,%eax <== NOT EXECUTED
1280e7: 09 d0 or %edx,%eax <== NOT EXECUTED
1280e9: 25 ff 01 00 00 and $0x1ff,%eax <== NOT EXECUTED
1280ee: 0f b6 4b 02 movzbl 0x2(%ebx),%ecx <== NOT EXECUTED
1280f2: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1280f5: 0f b6 53 03 movzbl 0x3(%ebx),%edx <== NOT EXECUTED
1280f9: 09 ca or %ecx,%edx <== NOT EXECUTED
1280fb: 85 d0 test %edx,%eax <== NOT EXECUTED
1280fd: 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;
}
128100: 5b pop %ebx <== NOT EXECUTED
128101: c9 leave <== NOT EXECUTED
128102: c3 ret <== NOT EXECUTED
00127de0 <rtems_rfs_rtems_fchmod>:
* @return int
*/
int
rtems_rfs_rtems_fchmod (rtems_filesystem_location_info_t* pathloc,
mode_t mode)
{
127de0: 55 push %ebp <== NOT EXECUTED
127de1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
127de3: 57 push %edi <== NOT EXECUTED
127de4: 56 push %esi <== NOT EXECUTED
127de5: 53 push %ebx <== NOT EXECUTED
127de6: 83 ec 40 sub $0x40,%esp <== NOT EXECUTED
127de9: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
127dec: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
127def: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
127df2: 8b 38 mov (%eax),%edi <== 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);
127df4: 6a 00 push $0x0 <== NOT EXECUTED
127df6: 6a 00 push $0x0 <== NOT EXECUTED
127df8: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
127dfb: ff 30 pushl (%eax) <== NOT EXECUTED
127dfd: e8 f6 b0 fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
printf ("rtems-rfs-rtems: fchmod: in: ino:%" PRId32 " mode:%06" PRIomode_t "\n",
ino, mode);
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
127e02: 6a 01 push $0x1 <== NOT EXECUTED
127e04: 8d 75 c0 lea -0x40(%ebp),%esi <== NOT EXECUTED
127e07: 56 push %esi <== NOT EXECUTED
127e08: 57 push %edi <== NOT EXECUTED
127e09: 53 push %ebx <== NOT EXECUTED
127e0a: e8 9d 91 01 00 call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
127e0f: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
127e11: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
127e14: 85 c0 test %eax,%eax <== NOT EXECUTED
127e16: 74 2c je 127e44 <rtems_rfs_rtems_fchmod+0x64><== 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);
127e18: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
127e1b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127e1e: 53 push %ebx <== NOT EXECUTED
127e1f: e8 80 55 01 00 call 13d3a4 <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);
127e24: 5a pop %edx <== NOT EXECUTED
127e25: ff 36 pushl (%esi) <== NOT EXECUTED
127e27: e8 c8 b1 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("fchmod: opening inode", rc);
127e2c: e8 5b e9 01 00 call 14678c <__errno> <== NOT EXECUTED
127e31: 89 38 mov %edi,(%eax) <== NOT EXECUTED
127e33: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
127e38: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
127e3b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127e3e: 5b pop %ebx <== NOT EXECUTED
127e3f: 5e pop %esi <== NOT EXECUTED
127e40: 5f pop %edi <== NOT EXECUTED
127e41: c9 leave <== NOT EXECUTED
127e42: c3 ret <== NOT EXECUTED
127e43: 90 nop <== 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);
127e44: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
127e47: 0f b6 42 02 movzbl 0x2(%edx),%eax <== NOT EXECUTED
127e4b: 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);
127e4e: 25 00 f0 ff ff and $0xfffff000,%eax <== NOT EXECUTED
imode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
127e53: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
127e56: 81 e1 ff 0f 00 00 and $0xfff,%ecx <== NOT EXECUTED
127e5c: 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);
127e5e: 89 c1 mov %eax,%ecx <== NOT EXECUTED
127e60: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
127e64: 88 4a 02 mov %cl,0x2(%edx) <== NOT EXECUTED
127e67: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
127e6a: 88 42 03 mov %al,0x3(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
127e6d: c6 45 d0 01 movb $0x1,-0x30(%ebp) <== NOT EXECUTED
rtems_rfs_inode_set_mode (&inode, imode);
rc = rtems_rfs_inode_close (fs, &inode);
127e71: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127e74: 56 push %esi <== NOT EXECUTED
127e75: 53 push %ebx <== NOT EXECUTED
127e76: e8 ad 90 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
127e7b: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
127e7d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127e80: 85 c0 test %eax,%eax <== NOT EXECUTED
127e82: 7e 2c jle 127eb0 <rtems_rfs_rtems_fchmod+0xd0><== 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);
127e84: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
127e87: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127e8a: 53 push %ebx <== NOT EXECUTED
127e8b: e8 14 55 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
127e90: 58 pop %eax <== NOT EXECUTED
127e91: ff 37 pushl (%edi) <== NOT EXECUTED
127e93: e8 5c b1 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("fchmod: closing inode", rc);
127e98: e8 ef e8 01 00 call 14678c <__errno> <== NOT EXECUTED
127e9d: 89 30 mov %esi,(%eax) <== NOT EXECUTED
127e9f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
127ea4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
127ea7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127eaa: 5b pop %ebx <== NOT EXECUTED
127eab: 5e pop %esi <== NOT EXECUTED
127eac: 5f pop %edi <== NOT EXECUTED
127ead: c9 leave <== NOT EXECUTED
127eae: c3 ret <== NOT EXECUTED
127eaf: 90 nop <== 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);
127eb0: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
127eb3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127eb6: 53 push %ebx <== NOT EXECUTED
127eb7: e8 e8 54 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
127ebc: 5b pop %ebx <== NOT EXECUTED
127ebd: ff 36 pushl (%esi) <== NOT EXECUTED
127ebf: e8 30 b1 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
127ec4: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rtems_rfs_rtems_error ("fchmod: closing inode", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
127ec6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
127ec9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127ecc: 5b pop %ebx <== NOT EXECUTED
127ecd: 5e pop %esi <== NOT EXECUTED
127ece: 5f pop %edi <== NOT EXECUTED
127ecf: c9 leave <== NOT EXECUTED
127ed0: c3 ret <== NOT EXECUTED
001268b8 <rtems_rfs_rtems_fcntl>:
*/
int
rtems_rfs_rtems_fcntl (int cmd,
rtems_libio_t* iop)
{
1268b8: 55 push %ebp <== NOT EXECUTED
1268b9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
1268bb: 31 c0 xor %eax,%eax <== NOT EXECUTED
1268bd: c9 leave <== NOT EXECUTED
1268be: c3 ret <== NOT EXECUTED
00126b80 <rtems_rfs_rtems_fdatasync>:
* @param iop
* @return int
*/
int
rtems_rfs_rtems_fdatasync (rtems_libio_t* iop)
{
126b80: 55 push %ebp <== NOT EXECUTED
126b81: 89 e5 mov %esp,%ebp <== NOT EXECUTED
126b83: 53 push %ebx <== NOT EXECUTED
126b84: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
int rc;
rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
126b87: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
126b8a: 8b 40 28 mov 0x28(%eax),%eax <== NOT EXECUTED
126b8d: ff 70 34 pushl 0x34(%eax) <== NOT EXECUTED
126b90: e8 4f 68 01 00 call 13d3e4 <rtems_rfs_buffer_sync> <== NOT EXECUTED
126b95: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
126b97: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126b9a: 85 c0 test %eax,%eax <== NOT EXECUTED
126b9c: 75 0a jne 126ba8 <rtems_rfs_rtems_fdatasync+0x28><== NOT EXECUTED
126b9e: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rtems_rfs_rtems_error ("fdatasync: sync", rc);
return 0;
}
126ba0: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
126ba3: c9 leave <== NOT EXECUTED
126ba4: c3 ret <== NOT EXECUTED
126ba5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
int rc;
rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
if (rc)
return rtems_rfs_rtems_error ("fdatasync: sync", rc);
126ba8: e8 df fb 01 00 call 14678c <__errno> <== NOT EXECUTED
126bad: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
126baf: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return 0;
}
126bb4: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
126bb7: c9 leave <== NOT EXECUTED
126bb8: c3 ret <== NOT EXECUTED
00142200 <rtems_rfs_rtems_file_close>:
* @param iop
* @return int
*/
static int
rtems_rfs_rtems_file_close (rtems_libio_t* iop)
{
142200: 55 push %ebp <== NOT EXECUTED
142201: 89 e5 mov %esp,%ebp <== NOT EXECUTED
142203: 57 push %edi <== NOT EXECUTED
142204: 56 push %esi <== NOT EXECUTED
142205: 53 push %ebx <== NOT EXECUTED
142206: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
142209: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
14220c: 8b 70 38 mov 0x38(%eax),%esi <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_file_fs (file);
14220f: 8b 46 1c mov 0x1c(%esi),%eax <== NOT EXECUTED
142212: 8b 98 98 00 00 00 mov 0x98(%eax),%ebx <== 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);
142218: 6a 00 push $0x0 <== NOT EXECUTED
14221a: 6a 00 push $0x0 <== NOT EXECUTED
14221c: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
14221f: ff 30 pushl (%eax) <== NOT EXECUTED
142221: e8 d2 0c fd ff call 112ef8 <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);
142226: 5f pop %edi <== NOT EXECUTED
142227: 58 pop %eax <== NOT EXECUTED
142228: 56 push %esi <== NOT EXECUTED
142229: 53 push %ebx <== NOT EXECUTED
14222a: e8 21 cc ff ff call 13ee50 <rtems_rfs_file_close> <== NOT EXECUTED
14222f: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
142231: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142234: 85 c0 test %eax,%eax <== NOT EXECUTED
142236: 7e 0c jle 142244 <rtems_rfs_rtems_file_close+0x44><== NOT EXECUTED
rc = rtems_rfs_rtems_error ("file-close: file close", rc);
142238: e8 4f 45 00 00 call 14678c <__errno> <== NOT EXECUTED
14223d: 89 30 mov %esi,(%eax) <== NOT EXECUTED
14223f: be ff ff ff ff mov $0xffffffff,%esi <== 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);
142244: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
142247: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14224a: 53 push %ebx <== NOT EXECUTED
14224b: e8 54 b1 ff ff call 13d3a4 <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);
142250: 5b pop %ebx <== NOT EXECUTED
142251: ff 37 pushl (%edi) <== NOT EXECUTED
142253: e8 9c 0d fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rc;
}
142258: 89 f0 mov %esi,%eax <== NOT EXECUTED
14225a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
14225d: 5b pop %ebx <== NOT EXECUTED
14225e: 5e pop %esi <== NOT EXECUTED
14225f: 5f pop %edi <== NOT EXECUTED
142260: c9 leave <== NOT EXECUTED
142261: c3 ret <== NOT EXECUTED
00142264 <rtems_rfs_rtems_file_ftruncate>:
* @return int
*/
int
rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop,
rtems_off64_t length)
{
142264: 55 push %ebp <== NOT EXECUTED
142265: 89 e5 mov %esp,%ebp <== NOT EXECUTED
142267: 57 push %edi <== NOT EXECUTED
142268: 56 push %esi <== NOT EXECUTED
142269: 53 push %ebx <== NOT EXECUTED
14226a: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
14226d: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
142270: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
142273: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
142276: 8b 5f 38 mov 0x38(%edi),%ebx <== 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);
142279: 6a 00 push $0x0 <== NOT EXECUTED
14227b: 6a 00 push $0x0 <== NOT EXECUTED
14227d: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
142280: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
142286: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
142289: ff 30 pushl (%eax) <== NOT EXECUTED
14228b: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
14228e: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED
142291: e8 62 0c fd ff call 112ef8 <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);
142296: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
142299: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
14229c: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
14229f: 51 push %ecx <== NOT EXECUTED
1422a0: 52 push %edx <== NOT EXECUTED
1422a1: 53 push %ebx <== NOT EXECUTED
1422a2: e8 09 c6 ff ff call 13e8b0 <rtems_rfs_file_set_size><== NOT EXECUTED
1422a7: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
1422a9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1422ac: 85 c0 test %eax,%eax <== NOT EXECUTED
1422ae: 74 0c je 1422bc <rtems_rfs_rtems_file_ftruncate+0x58><== NOT EXECUTED
rc = rtems_rfs_rtems_error ("file_ftruncate: set size", rc);
1422b0: e8 d7 44 00 00 call 14678c <__errno> <== NOT EXECUTED
1422b5: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1422b7: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
iop->size = rtems_rfs_file_size (file);
1422bc: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
1422bf: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1422c2: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
1422c8: 52 push %edx <== NOT EXECUTED
1422c9: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
1422cf: e8 40 a3 ff ff call 13c614 <rtems_rfs_block_get_size><== NOT EXECUTED
1422d4: 89 47 04 mov %eax,0x4(%edi) <== NOT EXECUTED
1422d7: 89 57 08 mov %edx,0x8(%edi) <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
1422da: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
1422dd: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== 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);
1422e3: 8b 58 7c mov 0x7c(%eax),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1422e6: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
1422e9: e8 b6 b0 ff ff call 13d3a4 <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);
1422ee: 5a pop %edx <== NOT EXECUTED
1422ef: ff 33 pushl (%ebx) <== NOT EXECUTED
1422f1: e8 fe 0c fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rc;
}
1422f6: 89 f0 mov %esi,%eax <== NOT EXECUTED
1422f8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1422fb: 5b pop %ebx <== NOT EXECUTED
1422fc: 5e pop %esi <== NOT EXECUTED
1422fd: 5f pop %edi <== NOT EXECUTED
1422fe: c9 leave <== NOT EXECUTED
1422ff: c3 ret <== NOT EXECUTED
001420ec <rtems_rfs_rtems_file_ioctl>:
* @param buffer
*/
int
rtems_rfs_rtems_file_ioctl (rtems_libio_t* iop, uint32_t command, void* buffer)
{
1420ec: 55 push %ebp <== NOT EXECUTED
1420ed: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
1420ef: 31 c0 xor %eax,%eax <== NOT EXECUTED
1420f1: c9 leave <== NOT EXECUTED
1420f2: c3 ret <== NOT EXECUTED
001424d0 <rtems_rfs_rtems_file_lseek>:
*/
rtems_off64_t
rtems_rfs_rtems_file_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
1424d0: 55 push %ebp <== NOT EXECUTED
1424d1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1424d3: 57 push %edi <== NOT EXECUTED
1424d4: 56 push %esi <== NOT EXECUTED
1424d5: 53 push %ebx <== NOT EXECUTED
1424d6: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
1424d9: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
1424dc: 8b 5e 38 mov 0x38(%esi),%ebx <== 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);
1424df: 6a 00 push $0x0 <== NOT EXECUTED
1424e1: 6a 00 push $0x0 <== NOT EXECUTED
1424e3: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
1424e6: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
1424ec: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
1424ef: ff 30 pushl (%eax) <== NOT EXECUTED
1424f1: e8 02 0a fd ff call 112ef8 <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;
1424f6: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
1424f9: 8b 56 10 mov 0x10(%esi),%edx <== NOT EXECUTED
1424fc: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
1424ff: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
rc = rtems_rfs_file_seek (file, pos, &pos);
142502: 8d 4d e0 lea -0x20(%ebp),%ecx <== NOT EXECUTED
142505: 51 push %ecx <== NOT EXECUTED
142506: 52 push %edx <== NOT EXECUTED
142507: 50 push %eax <== NOT EXECUTED
142508: 53 push %ebx <== NOT EXECUTED
142509: e8 e6 c6 ff ff call 13ebf4 <rtems_rfs_file_seek> <== NOT EXECUTED
14250e: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
142510: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
142513: 85 c0 test %eax,%eax <== NOT EXECUTED
142515: 74 39 je 142550 <rtems_rfs_rtems_file_lseek+0x80><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
142517: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
14251a: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== 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);
142520: 8b 58 7c mov 0x7c(%eax),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
142523: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
142526: 50 push %eax <== NOT EXECUTED
142527: e8 78 ae ff ff call 13d3a4 <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);
14252c: 58 pop %eax <== NOT EXECUTED
14252d: ff 33 pushl (%ebx) <== NOT EXECUTED
14252f: e8 c0 0a fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rtems_rfs_rtems_error ("file_lseek: lseek", rc);
142534: e8 53 42 00 00 call 14678c <__errno> <== NOT EXECUTED
142539: 89 38 mov %edi,(%eax) <== NOT EXECUTED
14253b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
142540: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
142545: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
return iop->offset;
}
142548: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
14254b: 5b pop %ebx <== NOT EXECUTED
14254c: 5e pop %esi <== NOT EXECUTED
14254d: 5f pop %edi <== NOT EXECUTED
14254e: c9 leave <== NOT EXECUTED
14254f: c3 ret <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
return rtems_rfs_rtems_error ("file_lseek: lseek", rc);
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
142550: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
142553: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== 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);
142559: 8b 58 7c mov 0x7c(%eax),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
14255c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14255f: 50 push %eax <== NOT EXECUTED
142560: e8 3f ae ff ff call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
142565: 5f pop %edi <== NOT EXECUTED
142566: ff 33 pushl (%ebx) <== NOT EXECUTED
142568: e8 87 0a fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return iop->offset;
14256d: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
142570: 8b 56 10 mov 0x10(%esi),%edx <== NOT EXECUTED
142573: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
142576: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142579: 5b pop %ebx <== NOT EXECUTED
14257a: 5e pop %esi <== NOT EXECUTED
14257b: 5f pop %edi <== NOT EXECUTED
14257c: c9 leave <== NOT EXECUTED
14257d: c3 ret <== NOT EXECUTED
00142580 <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)
{
142580: 55 push %ebp <== NOT EXECUTED
142581: 89 e5 mov %esp,%ebp <== NOT EXECUTED
142583: 57 push %edi <== NOT EXECUTED
142584: 56 push %esi <== NOT EXECUTED
142585: 53 push %ebx <== NOT EXECUTED
142586: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
142589: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
14258c: 8b 46 28 mov 0x28(%esi),%eax <== NOT EXECUTED
14258f: 8b 58 34 mov 0x34(%eax),%ebx <== 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);
142592: 6a 00 push $0x0 <== NOT EXECUTED
142594: 6a 00 push $0x0 <== NOT EXECUTED
142596: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
142599: ff 30 pushl (%eax) <== NOT EXECUTED
14259b: e8 58 09 fd ff call 112ef8 <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);
1425a0: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1425a3: 50 push %eax <== NOT EXECUTED
1425a4: 6a 00 push $0x0 <== NOT EXECUTED
1425a6: ff 76 38 pushl 0x38(%esi) <== NOT EXECUTED
1425a9: 53 push %ebx <== NOT EXECUTED
1425aa: e8 69 ca ff ff call 13f018 <rtems_rfs_file_open> <== NOT EXECUTED
1425af: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
1425b1: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1425b4: 85 c0 test %eax,%eax <== NOT EXECUTED
1425b6: 7e 2c jle 1425e4 <rtems_rfs_rtems_file_open+0x64><== 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);
1425b8: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1425bb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1425be: 53 push %ebx <== NOT EXECUTED
1425bf: e8 e0 ad ff ff call 13d3a4 <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);
1425c4: 59 pop %ecx <== NOT EXECUTED
1425c5: ff 36 pushl (%esi) <== NOT EXECUTED
1425c7: e8 28 0a fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("file-open: open", rc);
1425cc: e8 bb 41 00 00 call 14678c <__errno> <== NOT EXECUTED
1425d1: 89 38 mov %edi,(%eax) <== NOT EXECUTED
1425d3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1425d8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
iop->size = rtems_rfs_file_size (file);
iop->file_info = file;
rtems_rfs_rtems_unlock (fs);
return 0;
}
1425db: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1425de: 5b pop %ebx <== NOT EXECUTED
1425df: 5e pop %esi <== NOT EXECUTED
1425e0: 5f pop %edi <== NOT EXECUTED
1425e1: c9 leave <== NOT EXECUTED
1425e2: c3 ret <== NOT EXECUTED
1425e3: 90 nop <== 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);
1425e4: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
1425e7: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1425ea: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1425ed: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
1425f3: 52 push %edx <== NOT EXECUTED
1425f4: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
1425fa: e8 15 a0 ff ff call 13c614 <rtems_rfs_block_get_size><== NOT EXECUTED
1425ff: 89 46 04 mov %eax,0x4(%esi) <== NOT EXECUTED
142602: 89 56 08 mov %edx,0x8(%esi) <== NOT EXECUTED
iop->file_info = file;
142605: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
142608: 89 46 38 mov %eax,0x38(%esi) <== 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);
14260b: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
14260e: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
142611: e8 8e ad ff ff call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
142616: 5a pop %edx <== NOT EXECUTED
142617: ff 36 pushl (%esi) <== NOT EXECUTED
142619: e8 d6 09 fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
14261e: 31 c0 xor %eax,%eax <== NOT EXECUTED
142620: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return 0;
}
142623: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142626: 5b pop %ebx <== NOT EXECUTED
142627: 5e pop %esi <== NOT EXECUTED
142628: 5f pop %edi <== NOT EXECUTED
142629: c9 leave <== NOT EXECUTED
14262a: c3 ret <== NOT EXECUTED
001420f4 <rtems_rfs_rtems_file_read>:
*/
ssize_t
rtems_rfs_rtems_file_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
1420f4: 55 push %ebp <== NOT EXECUTED
1420f5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1420f7: 57 push %edi <== NOT EXECUTED
1420f8: 56 push %esi <== NOT EXECUTED
1420f9: 53 push %ebx <== NOT EXECUTED
1420fa: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
1420fd: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
142100: 8b 5e 38 mov 0x38(%esi),%ebx <== 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);
142103: 6a 00 push $0x0 <== NOT EXECUTED
142105: 6a 00 push $0x0 <== NOT EXECUTED
142107: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
14210a: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
142110: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
142113: ff 30 pushl (%eax) <== NOT EXECUTED
142115: e8 de 0d fd ff call 112ef8 <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;
14211a: 8b 7e 0c mov 0xc(%esi),%edi <== NOT EXECUTED
14211d: 8b 76 10 mov 0x10(%esi),%esi <== NOT EXECUTED
if (pos < rtems_rfs_file_size (file))
142120: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
142123: 5a pop %edx <== NOT EXECUTED
142124: 59 pop %ecx <== NOT EXECUTED
142125: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
14212b: 52 push %edx <== NOT EXECUTED
14212c: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
142132: e8 dd a4 ff ff call 13c614 <rtems_rfs_block_get_size><== NOT EXECUTED
142137: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
14213a: 39 d6 cmp %edx,%esi <== NOT EXECUTED
14213c: 72 36 jb 142174 <rtems_rfs_rtems_file_read+0x80><== NOT EXECUTED
14213e: 76 30 jbe 142170 <rtems_rfs_rtems_file_read+0x7c><== NOT EXECUTED
if (size > count)
size = count;
memcpy (data, rtems_rfs_file_data (file), size);
data += size;
142140: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
break;
}
}
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
142147: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
14214a: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== 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);
142150: 8b 58 7c mov 0x7c(%eax),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
142153: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
142156: 50 push %eax <== NOT EXECUTED
142157: e8 48 b2 ff ff call 13d3a4 <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);
14215c: 58 pop %eax <== NOT EXECUTED
14215d: ff 33 pushl (%ebx) <== NOT EXECUTED
14215f: e8 90 0e fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return read;
}
142164: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
142167: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
14216a: 5b pop %ebx <== NOT EXECUTED
14216b: 5e pop %esi <== NOT EXECUTED
14216c: 5f pop %edi <== NOT EXECUTED
14216d: c9 leave <== NOT EXECUTED
14216e: c3 ret <== NOT EXECUTED
14216f: 90 nop <== NOT EXECUTED
rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
pos = iop->offset;
if (pos < rtems_rfs_file_size (file))
142170: 39 c7 cmp %eax,%edi <== NOT EXECUTED
142172: 73 cc jae 142140 <rtems_rfs_rtems_file_read+0x4c><== NOT EXECUTED
{
while (count)
142174: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
142177: 85 d2 test %edx,%edx <== NOT EXECUTED
142179: 74 c5 je 142140 <rtems_rfs_rtems_file_read+0x4c><== NOT EXECUTED
void* buffer,
size_t count)
{
rtems_rfs_file_handle* file = iop->file_info;
rtems_rfs_pos pos;
uint8_t* data = buffer;
14217b: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
14217e: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
142181: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
142188: eb 0d jmp 142197 <rtems_rfs_rtems_file_read+0xa3><== NOT EXECUTED
14218a: 66 90 xchg %ax,%ax <== NOT EXECUTED
memcpy (data, rtems_rfs_file_data (file), size);
data += size;
count -= size;
read += size;
14218c: 01 55 d0 add %edx,-0x30(%ebp) <== NOT EXECUTED
pos = iop->offset;
if (pos < rtems_rfs_file_size (file))
{
while (count)
14218f: 29 55 10 sub %edx,0x10(%ebp) <== NOT EXECUTED
142192: 74 b3 je 142147 <rtems_rfs_rtems_file_read+0x53><== NOT EXECUTED
if (size > count)
size = count;
memcpy (data, rtems_rfs_file_data (file), size);
data += size;
142194: 01 55 d4 add %edx,-0x2c(%ebp) <== NOT EXECUTED
{
while (count)
{
size_t size;
rc = rtems_rfs_file_io_start (file, &size, true);
142197: 56 push %esi <== NOT EXECUTED
142198: 6a 01 push $0x1 <== NOT EXECUTED
14219a: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
14219d: 50 push %eax <== NOT EXECUTED
14219e: 53 push %ebx <== NOT EXECUTED
14219f: e8 98 c5 ff ff call 13e73c <rtems_rfs_file_io_start><== NOT EXECUTED
if (rc > 0)
1421a4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1421a7: 85 c0 test %eax,%eax <== NOT EXECUTED
1421a9: 7f 3d jg 1421e8 <rtems_rfs_rtems_file_read+0xf4><== NOT EXECUTED
{
read = rtems_rfs_rtems_error ("file-read: read: io-start", rc);
break;
}
if (size == 0)
1421ab: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1421ae: 89 d1 mov %edx,%ecx <== NOT EXECUTED
1421b0: 85 d2 test %edx,%edx <== NOT EXECUTED
1421b2: 74 93 je 142147 <rtems_rfs_rtems_file_read+0x53><== NOT EXECUTED
break;
if (size > count)
1421b4: 3b 55 10 cmp 0x10(%ebp),%edx <== NOT EXECUTED
1421b7: 76 0a jbe 1421c3 <rtems_rfs_rtems_file_read+0xcf><== NOT EXECUTED
size = count;
1421b9: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
1421bc: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
1421bf: 89 c1 mov %eax,%ecx <== NOT EXECUTED
1421c1: 89 c2 mov %eax,%edx <== NOT EXECUTED
memcpy (data, rtems_rfs_file_data (file), size);
1421c3: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
1421c6: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
1421c9: 03 73 14 add 0x14(%ebx),%esi <== NOT EXECUTED
1421cc: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED
1421cf: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
data += size;
count -= size;
read += size;
rc = rtems_rfs_file_io_end (file, size, true);
1421d1: 51 push %ecx <== NOT EXECUTED
1421d2: 6a 01 push $0x1 <== NOT EXECUTED
1421d4: 52 push %edx <== NOT EXECUTED
1421d5: 53 push %ebx <== NOT EXECUTED
1421d6: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
1421d9: e8 e2 ca ff ff call 13ecc0 <rtems_rfs_file_io_end> <== NOT EXECUTED
if (rc > 0)
1421de: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1421e1: 85 c0 test %eax,%eax <== NOT EXECUTED
1421e3: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
1421e6: 7e a4 jle 14218c <rtems_rfs_rtems_file_read+0x98><== NOT EXECUTED
1421e8: 89 c6 mov %eax,%esi <== NOT EXECUTED
{
read = rtems_rfs_rtems_error ("file-read: read: io-end", rc);
1421ea: e8 9d 45 00 00 call 14678c <__errno> <== NOT EXECUTED
1421ef: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1421f1: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp) <== NOT EXECUTED
1421f8: e9 4a ff ff ff jmp 142147 <rtems_rfs_rtems_file_read+0x53><== NOT EXECUTED
00142300 <rtems_rfs_rtems_file_write>:
*/
ssize_t
rtems_rfs_rtems_file_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
142300: 55 push %ebp <== NOT EXECUTED
142301: 89 e5 mov %esp,%ebp <== NOT EXECUTED
142303: 57 push %edi <== NOT EXECUTED
142304: 56 push %esi <== NOT EXECUTED
142305: 53 push %ebx <== NOT EXECUTED
142306: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
142309: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
14230c: 8b 58 38 mov 0x38(%eax),%ebx <== 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);
14230f: 6a 00 push $0x0 <== NOT EXECUTED
142311: 6a 00 push $0x0 <== NOT EXECUTED
142313: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
142316: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== NOT EXECUTED
14231c: 8b 40 7c mov 0x7c(%eax),%eax <== NOT EXECUTED
14231f: ff 30 pushl (%eax) <== NOT EXECUTED
142321: e8 d2 0b fd ff call 112ef8 <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;
142326: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
142329: 8b 71 0c mov 0xc(%ecx),%esi <== NOT EXECUTED
14232c: 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))
14232f: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
142332: 5a pop %edx <== NOT EXECUTED
142333: 59 pop %ecx <== NOT EXECUTED
142334: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
14233a: 52 push %edx <== NOT EXECUTED
14233b: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
142341: e8 ce a2 ff ff call 13c614 <rtems_rfs_block_get_size><== NOT EXECUTED
142346: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
142349: 39 d7 cmp %edx,%edi <== NOT EXECUTED
14234b: 72 26 jb 142373 <rtems_rfs_rtems_file_write+0x73><== NOT EXECUTED
14234d: 0f 86 09 01 00 00 jbe 14245c <rtems_rfs_rtems_file_write+0x15c><== NOT EXECUTED
{
rc = rtems_rfs_file_set_size (file, pos + 1);
142353: 50 push %eax <== NOT EXECUTED
142354: 89 f0 mov %esi,%eax <== NOT EXECUTED
142356: 89 fa mov %edi,%edx <== NOT EXECUTED
142358: 83 c0 01 add $0x1,%eax <== NOT EXECUTED
14235b: 83 d2 00 adc $0x0,%edx <== NOT EXECUTED
14235e: 52 push %edx <== NOT EXECUTED
14235f: 50 push %eax <== NOT EXECUTED
142360: 53 push %ebx <== NOT EXECUTED
142361: e8 4a c5 ff ff call 13e8b0 <rtems_rfs_file_set_size><== NOT EXECUTED
142366: 89 c2 mov %eax,%edx <== NOT EXECUTED
if (rc)
142368: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
14236b: 85 c0 test %eax,%eax <== NOT EXECUTED
14236d: 0f 85 f9 00 00 00 jne 14246c <rtems_rfs_rtems_file_write+0x16c><== 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);
142373: 8d 43 10 lea 0x10(%ebx),%eax <== NOT EXECUTED
142376: 50 push %eax <== NOT EXECUTED
142377: 57 push %edi <== NOT EXECUTED
142378: 56 push %esi <== NOT EXECUTED
142379: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
14237c: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
142382: e8 c9 a1 ff ff call 13c550 <rtems_rfs_block_get_bpos><== NOT EXECUTED
while (count)
142387: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
14238a: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
14238d: 85 d2 test %edx,%edx <== NOT EXECUTED
14238f: 0f 84 2c 01 00 00 je 1424c1 <rtems_rfs_rtems_file_write+0x1c1><== 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;
142395: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
142398: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
14239b: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
1423a2: eb 0b jmp 1423af <rtems_rfs_rtems_file_write+0xaf><== NOT EXECUTED
memcpy (rtems_rfs_file_data (file), data, size);
data += size;
count -= size;
write += size;
1423a4: 01 75 d0 add %esi,-0x30(%ebp) <== NOT EXECUTED
}
}
rtems_rfs_file_set_bpos (file, pos);
while (count)
1423a7: 29 75 10 sub %esi,0x10(%ebp) <== NOT EXECUTED
1423aa: 74 63 je 14240f <rtems_rfs_rtems_file_write+0x10f><== NOT EXECUTED
if (size > count)
size = count;
memcpy (rtems_rfs_file_data (file), data, size);
data += size;
1423ac: 01 75 d4 add %esi,-0x2c(%ebp) <== NOT EXECUTED
rtems_rfs_file_set_bpos (file, pos);
while (count)
{
size_t size = count;
1423af: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
1423b2: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
rc = rtems_rfs_file_io_start (file, &size, false);
1423b5: 50 push %eax <== NOT EXECUTED
1423b6: 6a 00 push $0x0 <== NOT EXECUTED
1423b8: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
1423bb: 50 push %eax <== NOT EXECUTED
1423bc: 53 push %ebx <== NOT EXECUTED
1423bd: e8 7a c3 ff ff call 13e73c <rtems_rfs_file_io_start><== NOT EXECUTED
if (rc)
1423c2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1423c5: 85 c0 test %eax,%eax <== NOT EXECUTED
1423c7: 0f 85 df 00 00 00 jne 1424ac <rtems_rfs_rtems_file_write+0x1ac><== NOT EXECUTED
{
write = rtems_rfs_rtems_error ("file-write: write open", rc);
break;
}
if (size > count)
1423cd: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
1423d0: 3b 4d 10 cmp 0x10(%ebp),%ecx <== NOT EXECUTED
1423d3: 76 06 jbe 1423db <rtems_rfs_rtems_file_write+0xdb><== NOT EXECUTED
size = count;
1423d5: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
1423d8: 89 4d e4 mov %ecx,-0x1c(%ebp) <== NOT EXECUTED
memcpy (rtems_rfs_file_data (file), data, size);
1423db: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
1423de: 8b 40 20 mov 0x20(%eax),%eax <== NOT EXECUTED
1423e1: 03 43 14 add 0x14(%ebx),%eax <== NOT EXECUTED
1423e4: 89 c7 mov %eax,%edi <== NOT EXECUTED
1423e6: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED
1423e9: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
data += size;
1423eb: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
count -= size;
write += size;
rc = rtems_rfs_file_io_end (file, size, false);
1423ee: 57 push %edi <== NOT EXECUTED
1423ef: 6a 00 push $0x0 <== NOT EXECUTED
1423f1: 56 push %esi <== NOT EXECUTED
1423f2: 53 push %ebx <== NOT EXECUTED
1423f3: e8 c8 c8 ff ff call 13ecc0 <rtems_rfs_file_io_end> <== NOT EXECUTED
if (rc)
1423f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1423fb: 85 c0 test %eax,%eax <== NOT EXECUTED
1423fd: 74 a5 je 1423a4 <rtems_rfs_rtems_file_write+0xa4><== NOT EXECUTED
1423ff: 89 c7 mov %eax,%edi <== NOT EXECUTED
{
write = rtems_rfs_rtems_error ("file-write: write close", rc);
142401: e8 86 43 00 00 call 14678c <__errno> <== NOT EXECUTED
142406: 89 38 mov %edi,(%eax) <== NOT EXECUTED
142408: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp) <== NOT EXECUTED
break;
}
}
iop->size = rtems_rfs_file_size (file);
14240f: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
142412: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
142415: 8d 90 84 00 00 00 lea 0x84(%eax),%edx <== NOT EXECUTED
14241b: 52 push %edx <== NOT EXECUTED
14241c: ff b0 98 00 00 00 pushl 0x98(%eax) <== NOT EXECUTED
142422: e8 ed a1 ff ff call 13c614 <rtems_rfs_block_get_size><== NOT EXECUTED
142427: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
14242a: 89 41 04 mov %eax,0x4(%ecx) <== NOT EXECUTED
14242d: 89 51 08 mov %edx,0x8(%ecx) <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
142430: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
142433: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== 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);
142439: 8b 58 7c mov 0x7c(%eax),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
14243c: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
14243f: e8 60 af ff ff call 13d3a4 <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);
142444: 59 pop %ecx <== NOT EXECUTED
142445: ff 33 pushl (%ebx) <== NOT EXECUTED
142447: e8 a8 0b fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
14244c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return write;
}
14244f: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
142452: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
142455: 5b pop %ebx <== NOT EXECUTED
142456: 5e pop %esi <== NOT EXECUTED
142457: 5f pop %edi <== NOT EXECUTED
142458: c9 leave <== NOT EXECUTED
142459: c3 ret <== NOT EXECUTED
14245a: 66 90 xchg %ax,%ax <== 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))
14245c: 39 c6 cmp %eax,%esi <== NOT EXECUTED
14245e: 0f 82 0f ff ff ff jb 142373 <rtems_rfs_rtems_file_write+0x73><== NOT EXECUTED
142464: e9 ea fe ff ff jmp 142353 <rtems_rfs_rtems_file_write+0x53><== NOT EXECUTED
142469: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
rc = rtems_rfs_file_set_size (file, pos + 1);
if (rc)
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
14246c: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED
14246f: 8b 80 98 00 00 00 mov 0x98(%eax),%eax <== 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);
142475: 8b 58 7c mov 0x7c(%eax),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
142478: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14247b: 50 push %eax <== NOT EXECUTED
14247c: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
14247f: e8 20 af ff ff call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
142484: 59 pop %ecx <== NOT EXECUTED
142485: ff 33 pushl (%ebx) <== NOT EXECUTED
142487: e8 68 0b fd ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rtems_rfs_rtems_error ("file-write: write extend", rc);
14248c: e8 fb 42 00 00 call 14678c <__errno> <== NOT EXECUTED
142491: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
142494: 89 10 mov %edx,(%eax) <== NOT EXECUTED
142496: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp) <== NOT EXECUTED
14249d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
iop->size = rtems_rfs_file_size (file);
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
return write;
}
1424a0: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED
1424a3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1424a6: 5b pop %ebx <== NOT EXECUTED
1424a7: 5e pop %esi <== NOT EXECUTED
1424a8: 5f pop %edi <== NOT EXECUTED
1424a9: c9 leave <== NOT EXECUTED
1424aa: c3 ret <== NOT EXECUTED
1424ab: 90 nop <== NOT EXECUTED
1424ac: 89 c6 mov %eax,%esi <== NOT EXECUTED
size_t size = count;
rc = rtems_rfs_file_io_start (file, &size, false);
if (rc)
{
write = rtems_rfs_rtems_error ("file-write: write open", rc);
1424ae: e8 d9 42 00 00 call 14678c <__errno> <== NOT EXECUTED
1424b3: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1424b5: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp) <== NOT EXECUTED
1424bc: e9 4e ff ff ff jmp 14240f <rtems_rfs_rtems_file_write+0x10f><== NOT EXECUTED
if (size > count)
size = count;
memcpy (rtems_rfs_file_data (file), data, size);
data += size;
1424c1: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED
1424c8: e9 42 ff ff ff jmp 14240f <rtems_rfs_rtems_file_write+0x10f><== NOT EXECUTED
001268b0 <rtems_rfs_rtems_freenodinfo>:
* @retval 0 Always returned.
*/
int
rtems_rfs_rtems_freenodinfo (rtems_filesystem_location_info_t* pathloc)
{
1268b0: 55 push %ebp <== NOT EXECUTED
1268b1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0;
}
1268b3: 31 c0 xor %eax,%eax <== NOT EXECUTED
1268b5: c9 leave <== NOT EXECUTED
1268b6: c3 ret <== NOT EXECUTED
00128104 <rtems_rfs_rtems_imode>:
return true;
}
uint16_t
rtems_rfs_rtems_imode (mode_t mode)
{
128104: 55 push %ebp <== NOT EXECUTED
128105: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/*
* Mapping matches RTEMS so no need to change.
*/
return mode;
}
128107: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
12810a: c9 leave <== NOT EXECUTED
12810b: c3 ret <== NOT EXECUTED
00126924 <rtems_rfs_rtems_initialise>:
*/
int
rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
const void* data)
{
126924: 55 push %ebp <== NOT EXECUTED
126925: 89 e5 mov %esp,%ebp <== NOT EXECUTED
126927: 57 push %edi <== NOT EXECUTED
126928: 56 push %esi <== NOT EXECUTED
126929: 53 push %ebx <== NOT EXECUTED
12692a: 83 ec 2c sub $0x2c,%esp <== 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;
12692d: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
int rc;
/*
* Parse the options the user specifiies.
*/
while (options)
126930: 85 db test %ebx,%ebx <== NOT EXECUTED
126932: 0f 84 9c 01 00 00 je 126ad4 <rtems_rfs_rtems_initialise+0x1b0><== NOT EXECUTED
126938: c7 45 d0 05 00 00 00 movl $0x5,-0x30(%ebp) <== NOT EXECUTED
12693f: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
126946: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
printf ("options=%s\n", options);
126948: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12694b: 53 push %ebx <== NOT EXECUTED
12694c: 68 9d 34 16 00 push $0x16349d <== NOT EXECUTED
126951: e8 5e 3d 02 00 call 14a6b4 <printf> <== NOT EXECUTED
if (strncmp (options, "hold-bitmaps",
126956: 89 de mov %ebx,%esi <== NOT EXECUTED
126958: bf a9 34 16 00 mov $0x1634a9,%edi <== NOT EXECUTED
12695d: b9 0c 00 00 00 mov $0xc,%ecx <== NOT EXECUTED
126962: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NOT EXECUTED
126964: 0f 97 c2 seta %dl <== NOT EXECUTED
126967: 0f 92 c0 setb %al <== NOT EXECUTED
12696a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12696d: 38 c2 cmp %al,%dl <== NOT EXECUTED
12696f: 75 6f jne 1269e0 <rtems_rfs_rtems_initialise+0xbc><== NOT EXECUTED
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
126971: 83 4d d4 01 orl $0x1,-0x2c(%ebp) <== NOT EXECUTED
max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
}
else
return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
options = strchr (options, ',');
126975: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
126978: 6a 2c push $0x2c <== NOT EXECUTED
12697a: 53 push %ebx <== NOT EXECUTED
12697b: e8 80 55 02 00 call 14bf00 <strchr> <== NOT EXECUTED
126980: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (options)
126983: 85 c0 test %eax,%eax <== NOT EXECUTED
126985: 74 09 je 126990 <rtems_rfs_rtems_initialise+0x6c><== NOT EXECUTED
{
++options;
126987: 8d 58 01 lea 0x1(%eax),%ebx <== NOT EXECUTED
if (*options == '\0')
12698a: 80 78 01 00 cmpb $0x0,0x1(%eax) <== NOT EXECUTED
12698e: 75 b8 jne 126948 <rtems_rfs_rtems_initialise+0x24><== NOT EXECUTED
options = NULL;
}
}
rtems = malloc (sizeof (rtems_rfs_rtems_private));
126990: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126993: 6a 04 push $0x4 <== NOT EXECUTED
126995: e8 6e 84 fe ff call 10ee08 <malloc> <== NOT EXECUTED
12699a: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (!rtems)
12699c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12699f: 85 c0 test %eax,%eax <== NOT EXECUTED
1269a1: 0f 84 40 01 00 00 je 126ae7 <rtems_rfs_rtems_initialise+0x1c3><== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: local data", ENOMEM);
memset (rtems, 0, sizeof (rtems_rfs_rtems_private));
1269a7: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
rc = rtems_rfs_mutex_create (&rtems->access);
1269ad: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1269b0: 50 push %eax <== NOT EXECUTED
1269b1: e8 ee b0 01 00 call 141aa4 <rtems_rfs_mutex_create><== NOT EXECUTED
1269b6: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1269b8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1269bb: 85 c0 test %eax,%eax <== NOT EXECUTED
1269bd: 7e 6d jle 126a2c <rtems_rfs_rtems_initialise+0x108><== NOT EXECUTED
}
rc = rtems_rfs_fs_open (mt_entry->dev, rtems, flags, max_held_buffers, &fs);
if (rc)
{
free (rtems);
1269bf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1269c2: 53 push %ebx <== NOT EXECUTED
1269c3: e8 a0 7e fe ff call 10e868 <free> <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: open", rc);
1269c8: e8 bf fd 01 00 call 14678c <__errno> <== NOT EXECUTED
1269cd: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1269cf: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1269d4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
mt_entry->mt_fs_root.ops = &rtems_rfs_ops;
rtems_rfs_rtems_unlock (fs);
return 0;
}
1269d7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1269da: 5b pop %ebx <== NOT EXECUTED
1269db: 5e pop %esi <== NOT EXECUTED
1269dc: 5f pop %edi <== NOT EXECUTED
1269dd: c9 leave <== NOT EXECUTED
1269de: c3 ret <== NOT EXECUTED
1269df: 90 nop <== NOT EXECUTED
{
printf ("options=%s\n", options);
if (strncmp (options, "hold-bitmaps",
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
else if (strncmp (options, "no-local-cache",
1269e0: b9 0e 00 00 00 mov $0xe,%ecx <== NOT EXECUTED
1269e5: 89 de mov %ebx,%esi <== NOT EXECUTED
1269e7: bf b6 34 16 00 mov $0x1634b6,%edi <== NOT EXECUTED
1269ec: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NOT EXECUTED
1269ee: 75 0c jne 1269fc <rtems_rfs_rtems_initialise+0xd8><== NOT EXECUTED
sizeof ("no-local-cache") - 1) == 0)
flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;
1269f0: 83 4d d4 02 orl $0x2,-0x2c(%ebp) <== NOT EXECUTED
1269f4: e9 7c ff ff ff jmp 126975 <rtems_rfs_rtems_initialise+0x51><== NOT EXECUTED
1269f9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
else if (strncmp (options, "max-held-bufs",
1269fc: bf c5 34 16 00 mov $0x1634c5,%edi <== NOT EXECUTED
126a01: b9 0d 00 00 00 mov $0xd,%ecx <== NOT EXECUTED
126a06: 89 de mov %ebx,%esi <== NOT EXECUTED
126a08: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NOT EXECUTED
126a0a: 0f 85 ac 00 00 00 jne 126abc <rtems_rfs_rtems_initialise+0x198><== NOT EXECUTED
sizeof ("max-held-bufs") - 1) == 0)
{
max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
126a10: 51 push %ecx <== NOT EXECUTED
126a11: 6a 00 push $0x0 <== NOT EXECUTED
126a13: 6a 00 push $0x0 <== NOT EXECUTED
126a15: 8d 43 0e lea 0xe(%ebx),%eax <== NOT EXECUTED
126a18: 50 push %eax <== NOT EXECUTED
126a19: e8 26 71 02 00 call 14db44 <strtoul> <== NOT EXECUTED
126a1e: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
126a21: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126a24: e9 4c ff ff ff jmp 126975 <rtems_rfs_rtems_initialise+0x51><== NOT EXECUTED
126a29: 8d 76 00 lea 0x0(%esi),%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);
126a2c: 52 push %edx <== NOT EXECUTED
126a2d: 6a 00 push $0x0 <== NOT EXECUTED
126a2f: 6a 00 push $0x0 <== NOT EXECUTED
126a31: ff 33 pushl (%ebx) <== NOT EXECUTED
126a33: e8 c0 c4 fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
126a38: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126a3b: 85 c0 test %eax,%eax <== NOT EXECUTED
126a3d: 75 50 jne 126a8f <rtems_rfs_rtems_initialise+0x16b><== 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);
126a3f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126a42: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
126a45: 50 push %eax <== NOT EXECUTED
126a46: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
126a49: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
126a4c: 53 push %ebx <== NOT EXECUTED
126a4d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
126a50: ff 70 70 pushl 0x70(%eax) <== NOT EXECUTED
126a53: e8 dc 88 01 00 call 13f334 <rtems_rfs_fs_open> <== NOT EXECUTED
126a58: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
126a5a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
126a5d: 85 c0 test %eax,%eax <== NOT EXECUTED
126a5f: 0f 85 5a ff ff ff jne 1269bf <rtems_rfs_rtems_initialise+0x9b><== NOT EXECUTED
{
free (rtems);
return rtems_rfs_rtems_error ("initialise: open", rc);
}
mt_entry->fs_info = fs;
126a65: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
126a68: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
126a6b: 89 42 34 mov %eax,0x34(%edx) <== NOT EXECUTED
mt_entry->mt_fs_root.node_access = (void*) RTEMS_RFS_ROOT_INO;
126a6e: c7 42 1c 01 00 00 00 movl $0x1,0x1c(%edx) <== NOT EXECUTED
mt_entry->mt_fs_root.handlers = &rtems_rfs_rtems_dir_handlers;
126a75: c7 42 24 40 83 16 00 movl $0x168340,0x24(%edx) <== NOT EXECUTED
mt_entry->mt_fs_root.ops = &rtems_rfs_ops;
126a7c: c7 42 28 20 35 16 00 movl $0x163520,0x28(%edx) <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
126a83: e8 38 fe ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
126a88: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
126a8a: e9 48 ff ff ff jmp 1269d7 <rtems_rfs_rtems_initialise+0xb3><== NOT EXECUTED
}
rc = rtems_rfs_mutex_lock (&rtems->access);
if (rc > 0)
{
rtems_rfs_mutex_destroy (&rtems->access);
126a8f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126a92: 53 push %ebx <== NOT EXECUTED
126a93: e8 ec af 01 00 call 141a84 <rtems_rfs_mutex_destroy><== NOT EXECUTED
free (rtems);
126a98: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
126a9b: e8 c8 7d fe ff call 10e868 <free> <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: cannot lock access mutex", rc);
126aa0: e8 e7 fc 01 00 call 14678c <__errno> <== NOT EXECUTED
126aa5: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
126aab: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
126ab0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
mt_entry->mt_fs_root.ops = &rtems_rfs_ops;
rtems_rfs_rtems_unlock (fs);
return 0;
}
126ab3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
126ab6: 5b pop %ebx <== NOT EXECUTED
126ab7: 5e pop %esi <== NOT EXECUTED
126ab8: 5f pop %edi <== NOT EXECUTED
126ab9: c9 leave <== NOT EXECUTED
126aba: c3 ret <== NOT EXECUTED
126abb: 90 nop <== NOT EXECUTED
sizeof ("max-held-bufs") - 1) == 0)
{
max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
}
else
return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
126abc: e8 cb fc 01 00 call 14678c <__errno> <== NOT EXECUTED
126ac1: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
126ac7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
mt_entry->mt_fs_root.ops = &rtems_rfs_ops;
rtems_rfs_rtems_unlock (fs);
return 0;
}
126acc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
126acf: 5b pop %ebx <== NOT EXECUTED
126ad0: 5e pop %esi <== NOT EXECUTED
126ad1: 5f pop %edi <== NOT EXECUTED
126ad2: c9 leave <== NOT EXECUTED
126ad3: c3 ret <== NOT EXECUTED
int rc;
/*
* Parse the options the user specifiies.
*/
while (options)
126ad4: c7 45 d0 05 00 00 00 movl $0x5,-0x30(%ebp) <== NOT EXECUTED
126adb: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED
126ae2: e9 a9 fe ff ff jmp 126990 <rtems_rfs_rtems_initialise+0x6c><== NOT EXECUTED
}
}
rtems = malloc (sizeof (rtems_rfs_rtems_private));
if (!rtems)
return rtems_rfs_rtems_error ("initialise: local data", ENOMEM);
126ae7: e8 a0 fc 01 00 call 14678c <__errno> <== NOT EXECUTED
126aec: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED
126af2: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
126af5: e9 dd fe ff ff jmp 1269d7 <rtems_rfs_rtems_initialise+0xb3><== NOT EXECUTED
0012718c <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)
{
12718c: 55 push %ebp <== NOT EXECUTED
12718d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12718f: 57 push %edi <== NOT EXECUTED
127190: 56 push %esi <== NOT EXECUTED
127191: 53 push %ebx <== NOT EXECUTED
127192: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
127195: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (to_loc);
127198: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
12719b: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino target = rtems_rfs_rtems_get_pathloc_ino (to_loc);
12719e: 8b 30 mov (%eax),%esi <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
1271a0: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1271a3: 8b 10 mov (%eax),%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);
1271a5: 6a 00 push $0x0 <== NOT EXECUTED
1271a7: 6a 00 push $0x0 <== NOT EXECUTED
1271a9: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
1271ac: ff 30 pushl (%eax) <== NOT EXECUTED
1271ae: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
1271b1: e8 42 bd fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
printf ("rtems-rfs-rtems: link: in: parent:%" PRId32 " target:%" PRId32 "\n",
parent, target);
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_link (fs, name, strlen (name), parent, target, false);
1271b6: 31 c0 xor %eax,%eax <== NOT EXECUTED
1271b8: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
1271bd: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
1271c0: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
1271c2: f7 d1 not %ecx <== NOT EXECUTED
1271c4: 49 dec %ecx <== NOT EXECUTED
1271c5: 5a pop %edx <== NOT EXECUTED
1271c6: 5f pop %edi <== NOT EXECUTED
1271c7: 6a 00 push $0x0 <== NOT EXECUTED
1271c9: 56 push %esi <== NOT EXECUTED
1271ca: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
1271cd: 52 push %edx <== NOT EXECUTED
1271ce: 51 push %ecx <== NOT EXECUTED
1271cf: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1271d2: 53 push %ebx <== NOT EXECUTED
1271d3: e8 54 a7 01 00 call 14192c <rtems_rfs_link> <== NOT EXECUTED
1271d8: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
1271da: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1271dd: 85 c0 test %eax,%eax <== NOT EXECUTED
1271df: 74 2b je 12720c <rtems_rfs_rtems_link+0x80><== 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);
1271e1: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1271e4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1271e7: 53 push %ebx <== NOT EXECUTED
1271e8: e8 b7 61 01 00 call 13d3a4 <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);
1271ed: 58 pop %eax <== NOT EXECUTED
1271ee: ff 37 pushl (%edi) <== NOT EXECUTED
1271f0: e8 ff bd fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("link: linking", rc);
1271f5: e8 92 f5 01 00 call 14678c <__errno> <== NOT EXECUTED
1271fa: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1271fc: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
127201: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
127204: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127207: 5b pop %ebx <== NOT EXECUTED
127208: 5e pop %esi <== NOT EXECUTED
127209: 5f pop %edi <== NOT EXECUTED
12720a: c9 leave <== NOT EXECUTED
12720b: c3 ret <== 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);
12720c: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
12720f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127212: 53 push %ebx <== NOT EXECUTED
127213: e8 8c 61 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
127218: 5b pop %ebx <== NOT EXECUTED
127219: ff 36 pushl (%esi) <== NOT EXECUTED
12721b: e8 d4 bd fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
127220: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rtems_rfs_rtems_error ("link: linking", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
127222: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
127225: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127228: 5b pop %ebx <== NOT EXECUTED
127229: 5e pop %esi <== NOT EXECUTED
12722a: 5f pop %edi <== NOT EXECUTED
12722b: c9 leave <== NOT EXECUTED
12722c: c3 ret <== NOT EXECUTED
00127c40 <rtems_rfs_rtems_mknod>:
int
rtems_rfs_rtems_mknod (const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc)
{
127c40: 55 push %ebp <== NOT EXECUTED
127c41: 89 e5 mov %esp,%ebp <== NOT EXECUTED
127c43: 57 push %edi <== NOT EXECUTED
127c44: 56 push %esi <== NOT EXECUTED
127c45: 53 push %ebx <== NOT EXECUTED
127c46: 83 ec 50 sub $0x50,%esp <== NOT EXECUTED
127c49: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
127c4c: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
127c4f: 89 45 b0 mov %eax,-0x50(%ebp) <== NOT EXECUTED
127c52: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED
127c55: 89 4d ac mov %ecx,-0x54(%ebp) <== NOT EXECUTED
127c58: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
127c5b: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
127c5e: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (pathloc);
127c61: 8b 00 mov (%eax),%eax <== NOT EXECUTED
127c63: 89 45 b4 mov %eax,-0x4c(%ebp) <== 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);
127c66: 6a 00 push $0x0 <== NOT EXECUTED
127c68: 6a 00 push $0x0 <== NOT EXECUTED
127c6a: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
127c6d: ff 30 pushl (%eax) <== NOT EXECUTED
127c6f: e8 84 b2 fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
#endif
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
rtems_rfs_rtems_imode (mode),
127c74: 59 pop %ecx <== NOT EXECUTED
127c75: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
127c78: e8 87 04 00 00 call 128104 <rtems_rfs_rtems_imode> <== NOT EXECUTED
127c7d: 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),
127c7f: 31 c0 xor %eax,%eax <== NOT EXECUTED
127c81: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
127c86: 89 f7 mov %esi,%edi <== NOT EXECUTED
127c88: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
127c8a: f7 d1 not %ecx <== NOT EXECUTED
127c8c: 49 dec %ecx <== NOT EXECUTED
127c8d: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
127c90: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
127c93: 6a 00 push $0x0 <== NOT EXECUTED
127c95: 6a 00 push $0x0 <== NOT EXECUTED
127c97: 6a 01 push $0x1 <== NOT EXECUTED
127c99: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
127c9c: 52 push %edx <== NOT EXECUTED
127c9d: 51 push %ecx <== NOT EXECUTED
127c9e: 56 push %esi <== NOT EXECUTED
127c9f: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
127ca2: 53 push %ebx <== NOT EXECUTED
127ca3: e8 74 94 01 00 call 14111c <rtems_rfs_inode_create><== NOT EXECUTED
127ca8: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_rfs_rtems_imode (mode),
1, uid, gid, &ino);
if (rc > 0)
127caa: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
127cad: 85 c0 test %eax,%eax <== NOT EXECUTED
127caf: 7e 2b jle 127cdc <rtems_rfs_rtems_mknod+0x9c><== 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);
127cb1: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
127cb4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127cb7: 53 push %ebx <== NOT EXECUTED
127cb8: e8 e7 56 01 00 call 13d3a4 <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);
127cbd: 5a pop %edx <== NOT EXECUTED
127cbe: ff 37 pushl (%edi) <== NOT EXECUTED
127cc0: e8 2f b3 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc > 0)
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("mknod: inode open", rc);
127cc5: e8 c2 ea 01 00 call 14678c <__errno> <== NOT EXECUTED
127cca: 89 30 mov %esi,(%eax) <== NOT EXECUTED
127ccc: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
127cd1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: closing inode", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
127cd4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127cd7: 5b pop %ebx <== NOT EXECUTED
127cd8: 5e pop %esi <== NOT EXECUTED
127cd9: 5f pop %edi <== NOT EXECUTED
127cda: c9 leave <== NOT EXECUTED
127cdb: c3 ret <== 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);
127cdc: 6a 01 push $0x1 <== NOT EXECUTED
127cde: 8d 7d bc lea -0x44(%ebp),%edi <== NOT EXECUTED
127ce1: 57 push %edi <== NOT EXECUTED
127ce2: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
127ce5: 53 push %ebx <== NOT EXECUTED
127ce6: e8 c1 92 01 00 call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
127ceb: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
127ced: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127cf0: 85 c0 test %eax,%eax <== NOT EXECUTED
127cf2: 7f bd jg 127cb1 <rtems_rfs_rtems_mknod+0x71><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("mknod: inode open", rc);
}
if (S_ISDIR(mode) || S_ISREG(mode))
127cf4: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
127cf7: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
127cfc: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
127d01: 74 77 je 127d7a <rtems_rfs_rtems_mknod+0x13a><== NOT EXECUTED
127d03: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
127d08: 74 70 je 127d7a <rtems_rfs_rtems_mknod+0x13a><== NOT EXECUTED
{
}
else if (S_ISCHR (mode) || S_ISBLK (mode))
127d0a: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
127d0f: 74 0b je 127d1c <rtems_rfs_rtems_mknod+0xdc><== NOT EXECUTED
127d11: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
127d16: 0f 85 9a 00 00 00 jne 127db6 <rtems_rfs_rtems_mknod+0x176><== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
127d1c: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
127d1f: 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);
127d22: 89 d6 mov %edx,%esi <== NOT EXECUTED
127d24: c1 ee 18 shr $0x18,%esi <== NOT EXECUTED
127d27: 89 75 b4 mov %esi,-0x4c(%ebp) <== NOT EXECUTED
127d2a: 8a 4d b4 mov -0x4c(%ebp),%cl <== NOT EXECUTED
127d2d: 8b 75 c8 mov -0x38(%ebp),%esi <== NOT EXECUTED
127d30: 88 4e 1c mov %cl,0x1c(%esi) <== NOT EXECUTED
127d33: 89 d1 mov %edx,%ecx <== NOT EXECUTED
127d35: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
127d38: 8b 75 c8 mov -0x38(%ebp),%esi <== NOT EXECUTED
127d3b: 88 4e 1d mov %cl,0x1d(%esi) <== NOT EXECUTED
127d3e: 89 d1 mov %edx,%ecx <== NOT EXECUTED
127d40: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
127d43: 8b 75 c8 mov -0x38(%ebp),%esi <== NOT EXECUTED
127d46: 88 4e 1e mov %cl,0x1e(%esi) <== NOT EXECUTED
127d49: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
127d4c: 88 51 1f mov %dl,0x1f(%ecx) <== NOT EXECUTED
127d4f: 89 c1 mov %eax,%ecx <== NOT EXECUTED
127d51: c1 e9 18 shr $0x18,%ecx <== NOT EXECUTED
127d54: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
127d57: 88 4a 20 mov %cl,0x20(%edx) <== NOT EXECUTED
127d5a: 89 c1 mov %eax,%ecx <== NOT EXECUTED
127d5c: c1 e9 10 shr $0x10,%ecx <== NOT EXECUTED
127d5f: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
127d62: 88 4a 21 mov %cl,0x21(%edx) <== NOT EXECUTED
127d65: 89 c1 mov %eax,%ecx <== NOT EXECUTED
127d67: c1 e9 08 shr $0x8,%ecx <== NOT EXECUTED
127d6a: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
127d6d: 88 4a 22 mov %cl,0x22(%edx) <== NOT EXECUTED
127d70: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
127d73: 88 42 23 mov %al,0x23(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
127d76: c6 45 cc 01 movb $0x1,-0x34(%ebp) <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);
}
rc = rtems_rfs_inode_close (fs, &inode);
127d7a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127d7d: 57 push %edi <== NOT EXECUTED
127d7e: 53 push %ebx <== NOT EXECUTED
127d7f: e8 a4 91 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
127d84: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
127d86: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127d89: 85 c0 test %eax,%eax <== NOT EXECUTED
127d8b: 7e 1b jle 127da8 <rtems_rfs_rtems_mknod+0x168><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
127d8d: 89 d8 mov %ebx,%eax <== NOT EXECUTED
127d8f: e8 2c eb ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: closing inode", rc);
127d94: e8 f3 e9 01 00 call 14678c <__errno> <== NOT EXECUTED
127d99: 89 30 mov %esi,(%eax) <== NOT EXECUTED
127d9b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
127da0: e9 2f ff ff ff jmp 127cd4 <rtems_rfs_rtems_mknod+0x94><== NOT EXECUTED
127da5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
127da8: 89 d8 mov %ebx,%eax <== NOT EXECUTED
127daa: e8 11 eb ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
127daf: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
127db1: e9 1e ff ff ff jmp 127cd4 <rtems_rfs_rtems_mknod+0x94><== 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);
127db6: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127db9: 57 push %edi <== NOT EXECUTED
127dba: 53 push %ebx <== NOT EXECUTED
127dbb: e8 68 91 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
127dc0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
127dc2: e8 f9 ea ff ff call 1268c0 <rtems_rfs_rtems_unlock><== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);
127dc7: e8 c0 e9 01 00 call 14678c <__errno> <== NOT EXECUTED
127dcc: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
127dd2: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
127dd7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127dda: e9 f5 fe ff ff jmp 127cd4 <rtems_rfs_rtems_mknod+0x94><== NOT EXECUTED
0012810c <rtems_rfs_rtems_mode>:
mode_t
rtems_rfs_rtems_mode (int imode)
{
12810c: 55 push %ebp <== NOT EXECUTED
12810d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/*
* Mapping matches RTEMS so no need to change.
*/
return imode;
}
12810f: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
128112: c9 leave <== NOT EXECUTED
128113: c3 ret <== NOT EXECUTED
00127fb4 <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)
{
127fb4: 55 push %ebp <== NOT EXECUTED
127fb5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
127fb7: 57 push %edi <== NOT EXECUTED
127fb8: 56 push %esi <== NOT EXECUTED
127fb9: 53 push %ebx <== NOT EXECUTED
127fba: 83 ec 40 sub $0x40,%esp <== NOT EXECUTED
127fbd: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
127fc0: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
127fc3: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
127fc6: 8b 30 mov (%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);
127fc8: 6a 00 push $0x0 <== NOT EXECUTED
127fca: 6a 00 push $0x0 <== NOT EXECUTED
127fcc: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
127fcf: ff 30 pushl (%eax) <== NOT EXECUTED
127fd1: e8 22 af fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
uint16_t mode;
int rc;
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
127fd6: 6a 01 push $0x1 <== NOT EXECUTED
127fd8: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
127fdb: 57 push %edi <== NOT EXECUTED
127fdc: 56 push %esi <== NOT EXECUTED
127fdd: 53 push %ebx <== NOT EXECUTED
127fde: e8 c9 8f 01 00 call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
127fe3: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
127fe5: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
127fe8: 85 c0 test %eax,%eax <== NOT EXECUTED
127fea: 7e 30 jle 12801c <rtems_rfs_rtems_node_type+0x68><== 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);
127fec: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
127fef: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127ff2: 53 push %ebx <== NOT EXECUTED
127ff3: e8 ac 53 01 00 call 13d3a4 <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);
127ff8: 59 pop %ecx <== NOT EXECUTED
127ff9: ff 37 pushl (%edi) <== NOT EXECUTED
127ffb: e8 f4 af fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("node_type: opening inode", rc);
128000: e8 87 e7 01 00 call 14678c <__errno> <== NOT EXECUTED
128005: 89 30 mov %esi,(%eax) <== NOT EXECUTED
128007: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
12800c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return type;
}
12800f: 89 f0 mov %esi,%eax <== NOT EXECUTED
128011: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128014: 5b pop %ebx <== NOT EXECUTED
128015: 5e pop %esi <== NOT EXECUTED
128016: 5f pop %edi <== NOT EXECUTED
128017: c9 leave <== NOT EXECUTED
128018: c3 ret <== NOT EXECUTED
128019: 8d 76 00 lea 0x0(%esi),%esi <== 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))
12801c: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
12801f: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
128023: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
128026: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
12802b: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
128030: 74 66 je 128098 <rtems_rfs_rtems_node_type+0xe4><== NOT EXECUTED
type = RTEMS_FILESYSTEM_DIRECTORY;
else if (RTEMS_RFS_S_ISLNK (mode))
128032: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
128037: 0f 84 87 00 00 00 je 1280c4 <rtems_rfs_rtems_node_type+0x110><== NOT EXECUTED
type = RTEMS_FILESYSTEM_SYM_LINK;
else if (RTEMS_RFS_S_ISBLK (mode) || RTEMS_RFS_S_ISCHR (mode))
12803d: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
128042: 74 4c je 128090 <rtems_rfs_rtems_node_type+0xdc><== NOT EXECUTED
128044: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
128049: 74 45 je 128090 <rtems_rfs_rtems_node_type+0xdc><== NOT EXECUTED
12804b: be 05 00 00 00 mov $0x5,%esi <== NOT EXECUTED
type = RTEMS_FILESYSTEM_DEVICE;
else
type = RTEMS_FILESYSTEM_MEMORY_FILE;
rc = rtems_rfs_inode_close (fs, &inode);
128050: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128053: 57 push %edi <== NOT EXECUTED
128054: 53 push %ebx <== NOT EXECUTED
128055: e8 ce 8e 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
12805a: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
12805c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12805f: 85 c0 test %eax,%eax <== NOT EXECUTED
128061: 7e 3d jle 1280a0 <rtems_rfs_rtems_node_type+0xec><== 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);
128063: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
128066: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128069: 53 push %ebx <== NOT EXECUTED
12806a: e8 35 53 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
12806f: 5a pop %edx <== NOT EXECUTED
128070: ff 36 pushl (%esi) <== NOT EXECUTED
128072: e8 7d af fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("node_type: closing inode", rc);
128077: e8 10 e7 01 00 call 14678c <__errno> <== NOT EXECUTED
12807c: 89 38 mov %edi,(%eax) <== NOT EXECUTED
12807e: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
128083: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return type;
}
128086: 89 f0 mov %esi,%eax <== NOT EXECUTED
128088: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12808b: 5b pop %ebx <== NOT EXECUTED
12808c: 5e pop %esi <== NOT EXECUTED
12808d: 5f pop %edi <== NOT EXECUTED
12808e: c9 leave <== NOT EXECUTED
12808f: c3 ret <== NOT EXECUTED
mode = rtems_rfs_inode_get_mode (&inode);
if (RTEMS_RFS_S_ISDIR (mode))
type = RTEMS_FILESYSTEM_DIRECTORY;
else if (RTEMS_RFS_S_ISLNK (mode))
type = RTEMS_FILESYSTEM_SYM_LINK;
else if (RTEMS_RFS_S_ISBLK (mode) || RTEMS_RFS_S_ISCHR (mode))
128090: be 02 00 00 00 mov $0x2,%esi <== NOT EXECUTED
128095: eb b9 jmp 128050 <rtems_rfs_rtems_node_type+0x9c><== NOT EXECUTED
128097: 90 nop <== 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))
128098: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
12809d: eb b1 jmp 128050 <rtems_rfs_rtems_node_type+0x9c><== NOT EXECUTED
12809f: 90 nop <== 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);
1280a0: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1280a3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1280a6: 53 push %ebx <== NOT EXECUTED
1280a7: e8 f8 52 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
1280ac: 58 pop %eax <== NOT EXECUTED
1280ad: ff 37 pushl (%edi) <== NOT EXECUTED
1280af: e8 40 af fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rtems_rfs_rtems_error ("node_type: closing inode", rc);
}
rtems_rfs_rtems_unlock (fs);
return type;
1280b4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1280b7: 89 f0 mov %esi,%eax <== NOT EXECUTED
1280b9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1280bc: 5b pop %ebx <== NOT EXECUTED
1280bd: 5e pop %esi <== NOT EXECUTED
1280be: 5f pop %edi <== NOT EXECUTED
1280bf: c9 leave <== NOT EXECUTED
1280c0: c3 ret <== NOT EXECUTED
1280c1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* are all links.
*/
mode = rtems_rfs_inode_get_mode (&inode);
if (RTEMS_RFS_S_ISDIR (mode))
type = RTEMS_FILESYSTEM_DIRECTORY;
else if (RTEMS_RFS_S_ISLNK (mode))
1280c4: be 04 00 00 00 mov $0x4,%esi <== NOT EXECUTED
1280c9: eb 85 jmp 128050 <rtems_rfs_rtems_node_type+0x9c><== NOT EXECUTED
00126f1c <rtems_rfs_rtems_readlink>:
int
rtems_rfs_rtems_readlink (rtems_filesystem_location_info_t* pathloc,
char* buf,
size_t bufsize)
{
126f1c: 55 push %ebp <== NOT EXECUTED
126f1d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
126f1f: 57 push %edi <== NOT EXECUTED
126f20: 56 push %esi <== NOT EXECUTED
126f21: 53 push %ebx <== NOT EXECUTED
126f22: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
126f25: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
126f28: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
126f2b: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
126f2e: 8b 30 mov (%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);
126f30: 6a 00 push $0x0 <== NOT EXECUTED
126f32: 6a 00 push $0x0 <== NOT EXECUTED
126f34: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
126f37: ff 30 pushl (%eax) <== NOT EXECUTED
126f39: e8 ba bf fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
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);
rc = rtems_rfs_symlink_read (fs, ino, buf, bufsize, &length);
126f3e: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
126f41: 89 04 24 mov %eax,(%esp) <== NOT EXECUTED
126f44: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
126f47: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
126f4a: 56 push %esi <== NOT EXECUTED
126f4b: 53 push %ebx <== NOT EXECUTED
126f4c: e8 3f a4 01 00 call 141390 <rtems_rfs_symlink_read><== NOT EXECUTED
126f51: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
126f53: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
126f56: 85 c0 test %eax,%eax <== NOT EXECUTED
126f58: 74 2e je 126f88 <rtems_rfs_rtems_readlink+0x6c><== 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);
126f5a: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
126f5d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126f60: 53 push %ebx <== NOT EXECUTED
126f61: e8 3e 64 01 00 call 13d3a4 <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);
126f66: 5a pop %edx <== NOT EXECUTED
126f67: ff 37 pushl (%edi) <== NOT EXECUTED
126f69: e8 86 c0 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("readlink: reading link", rc);
126f6e: e8 19 f8 01 00 call 14678c <__errno> <== NOT EXECUTED
126f73: 89 30 mov %esi,(%eax) <== NOT EXECUTED
126f75: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
126f7a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return (int) length;
}
126f7d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
126f80: 5b pop %ebx <== NOT EXECUTED
126f81: 5e pop %esi <== NOT EXECUTED
126f82: 5f pop %edi <== NOT EXECUTED
126f83: c9 leave <== NOT EXECUTED
126f84: c3 ret <== NOT EXECUTED
126f85: 8d 76 00 lea 0x0(%esi),%esi <== 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);
126f88: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
126f8b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
126f8e: 53 push %ebx <== NOT EXECUTED
126f8f: e8 10 64 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
126f94: 58 pop %eax <== NOT EXECUTED
126f95: ff 36 pushl (%esi) <== NOT EXECUTED
126f97: e8 58 c0 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
return rtems_rfs_rtems_error ("readlink: reading link", rc);
}
rtems_rfs_rtems_unlock (fs);
return (int) length;
126f9c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
126f9f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
126fa2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
126fa5: 5b pop %ebx <== NOT EXECUTED
126fa6: 5e pop %esi <== NOT EXECUTED
126fa7: 5f pop %edi <== NOT EXECUTED
126fa8: c9 leave <== NOT EXECUTED
126fa9: c3 ret <== NOT EXECUTED
00127230 <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)
{
127230: 55 push %ebp <== NOT EXECUTED
127231: 89 e5 mov %esp,%ebp <== NOT EXECUTED
127233: 57 push %edi <== NOT EXECUTED
127234: 56 push %esi <== NOT EXECUTED
127235: 53 push %ebx <== NOT EXECUTED
127236: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
127239: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (old_loc);
12723c: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
12723f: 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);
127242: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
127245: 8b 12 mov (%edx),%edx <== NOT EXECUTED
127247: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED
new_parent = rtems_rfs_rtems_get_pathloc_ino (new_parent_loc);
12724a: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
12724d: 8b 12 mov (%edx),%edx <== NOT EXECUTED
ino = rtems_rfs_rtems_get_pathloc_ino (old_loc);
12724f: 8b 30 mov (%eax),%esi <== NOT EXECUTED
doff = rtems_rfs_rtems_get_pathloc_doff (old_loc);
127251: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED
127254: 89 45 e4 mov %eax,-0x1c(%ebp) <== 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);
127257: 6a 00 push $0x0 <== NOT EXECUTED
127259: 6a 00 push $0x0 <== NOT EXECUTED
12725b: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
12725e: ff 30 pushl (%eax) <== NOT EXECUTED
127260: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
127263: e8 90 bc fe ff call 112ef8 <rtems_semaphore_obtain><== 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);
127268: 31 c0 xor %eax,%eax <== NOT EXECUTED
12726a: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
12726f: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED
127272: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
127274: f7 d1 not %ecx <== NOT EXECUTED
127276: 49 dec %ecx <== NOT EXECUTED
127277: 5f pop %edi <== NOT EXECUTED
127278: 58 pop %eax <== NOT EXECUTED
127279: 6a 01 push $0x1 <== NOT EXECUTED
12727b: 56 push %esi <== NOT EXECUTED
12727c: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
12727f: 52 push %edx <== NOT EXECUTED
127280: 51 push %ecx <== NOT EXECUTED
127281: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
127284: 53 push %ebx <== NOT EXECUTED
127285: e8 a2 a6 01 00 call 14192c <rtems_rfs_link> <== NOT EXECUTED
12728a: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc)
12728c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12728f: 85 c0 test %eax,%eax <== NOT EXECUTED
127291: 74 2d je 1272c0 <rtems_rfs_rtems_rename+0x90><== 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);
127293: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
127296: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127299: 53 push %ebx <== NOT EXECUTED
12729a: e8 05 61 01 00 call 13d3a4 <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);
12729f: 59 pop %ecx <== NOT EXECUTED
1272a0: ff 36 pushl (%esi) <== NOT EXECUTED
1272a2: e8 4d bd fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("rename: linking", rc);
1272a7: e8 e0 f4 01 00 call 14678c <__errno> <== NOT EXECUTED
1272ac: 89 38 mov %edi,(%eax) <== NOT EXECUTED
1272ae: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1272b3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
1272b6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1272b9: 5b pop %ebx <== NOT EXECUTED
1272ba: 5e pop %esi <== NOT EXECUTED
1272bb: 5f pop %edi <== NOT EXECUTED
1272bc: c9 leave <== NOT EXECUTED
1272bd: c3 ret <== NOT EXECUTED
1272be: 66 90 xchg %ax,%ax <== 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,
1272c0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1272c3: 6a 02 push $0x2 <== NOT EXECUTED
1272c5: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1272c8: 56 push %esi <== NOT EXECUTED
1272c9: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1272cc: 53 push %ebx <== NOT EXECUTED
1272cd: e8 86 a4 01 00 call 141758 <rtems_rfs_unlink> <== NOT EXECUTED
1272d2: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_rfs_unlink_dir_allowed);
if (rc)
1272d4: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1272d7: 85 c0 test %eax,%eax <== NOT EXECUTED
1272d9: 74 2d je 127308 <rtems_rfs_rtems_rename+0xd8><== 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);
1272db: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1272de: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1272e1: 53 push %ebx <== NOT EXECUTED
1272e2: e8 bd 60 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
1272e7: 5a pop %edx <== NOT EXECUTED
1272e8: ff 37 pushl (%edi) <== NOT EXECUTED
1272ea: e8 05 bd fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("rename: unlinking", rc);
1272ef: e8 98 f4 01 00 call 14678c <__errno> <== NOT EXECUTED
1272f4: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1272f6: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1272fb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
1272fe: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127301: 5b pop %ebx <== NOT EXECUTED
127302: 5e pop %esi <== NOT EXECUTED
127303: 5f pop %edi <== NOT EXECUTED
127304: c9 leave <== NOT EXECUTED
127305: c3 ret <== NOT EXECUTED
127306: 66 90 xchg %ax,%ax <== 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);
127308: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
12730b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12730e: 53 push %ebx <== NOT EXECUTED
12730f: e8 90 60 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
127314: 58 pop %eax <== NOT EXECUTED
127315: ff 36 pushl (%esi) <== NOT EXECUTED
127317: e8 d8 bc fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
12731c: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rtems_rfs_rtems_error ("rename: unlinking", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
12731e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
127321: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127324: 5b pop %ebx <== NOT EXECUTED
127325: 5e pop %esi <== NOT EXECUTED
127326: 5f pop %edi <== NOT EXECUTED
127327: c9 leave <== NOT EXECUTED
127328: c3 ret <== NOT EXECUTED
0012705c <rtems_rfs_rtems_rmnod>:
* @return int
*/
int
rtems_rfs_rtems_rmnod (rtems_filesystem_location_info_t* parent_pathloc,
rtems_filesystem_location_info_t* pathloc)
{
12705c: 55 push %ebp <== NOT EXECUTED
12705d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12705f: 57 push %edi <== NOT EXECUTED
127060: 56 push %esi <== NOT EXECUTED
127061: 53 push %ebx <== NOT EXECUTED
127062: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
127065: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
127068: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
12706b: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
12706e: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
127071: 8b 32 mov (%edx),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
127073: 8b 38 mov (%eax),%edi <== NOT EXECUTED
uint32_t doff = rtems_rfs_rtems_get_pathloc_doff (pathloc);
127075: 8b 50 04 mov 0x4(%eax),%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);
127078: 6a 00 push $0x0 <== NOT EXECUTED
12707a: 6a 00 push $0x0 <== NOT EXECUTED
12707c: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
12707f: ff 30 pushl (%eax) <== NOT EXECUTED
127081: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
127084: e8 6f be fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
printf ("rtems-rfs: rmnod: parent:%" PRId32 " doff:%" PRIu32 ", ino:%" PRId32 "\n",
parent, doff, ino);
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_denied);
127089: c7 04 24 00 00 00 00 movl $0x0,(%esp) <== NOT EXECUTED
127090: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
127093: 52 push %edx <== NOT EXECUTED
127094: 57 push %edi <== NOT EXECUTED
127095: 56 push %esi <== NOT EXECUTED
127096: 53 push %ebx <== NOT EXECUTED
127097: e8 bc a6 01 00 call 141758 <rtems_rfs_unlink> <== NOT EXECUTED
12709c: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
12709e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1270a1: 85 c0 test %eax,%eax <== NOT EXECUTED
1270a3: 74 2b je 1270d0 <rtems_rfs_rtems_rmnod+0x74><== 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);
1270a5: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1270a8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1270ab: 53 push %ebx <== NOT EXECUTED
1270ac: e8 f3 62 01 00 call 13d3a4 <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);
1270b1: 58 pop %eax <== NOT EXECUTED
1270b2: ff 37 pushl (%edi) <== NOT EXECUTED
1270b4: e8 3b bf fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("rmnod: unlinking", rc);
1270b9: e8 ce f6 01 00 call 14678c <__errno> <== NOT EXECUTED
1270be: 89 30 mov %esi,(%eax) <== NOT EXECUTED
1270c0: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1270c5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
1270c8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1270cb: 5b pop %ebx <== NOT EXECUTED
1270cc: 5e pop %esi <== NOT EXECUTED
1270cd: 5f pop %edi <== NOT EXECUTED
1270ce: c9 leave <== NOT EXECUTED
1270cf: c3 ret <== 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);
1270d0: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1270d3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1270d6: 53 push %ebx <== NOT EXECUTED
1270d7: e8 c8 62 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
1270dc: 5f pop %edi <== NOT EXECUTED
1270dd: ff 36 pushl (%esi) <== NOT EXECUTED
1270df: e8 10 bf fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
1270e4: 31 c0 xor %eax,%eax <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("rmnod: unlinking", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
1270e6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
1270e9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1270ec: 5b pop %ebx <== NOT EXECUTED
1270ed: 5e pop %esi <== NOT EXECUTED
1270ee: 5f pop %edi <== NOT EXECUTED
1270ef: c9 leave <== NOT EXECUTED
1270f0: c3 ret <== NOT EXECUTED
00128114 <rtems_rfs_rtems_set_handlers>:
*/
bool
rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t* loc,
rtems_rfs_inode_handle* inode)
{
128114: 55 push %ebp <== NOT EXECUTED
128115: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128117: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12811a: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
12811d: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
128120: 8b 40 0c mov 0xc(%eax),%eax <== NOT EXECUTED
128123: 0f b6 50 02 movzbl 0x2(%eax),%edx <== NOT EXECUTED
128127: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12812a: 0f b6 40 03 movzbl 0x3(%eax),%eax <== NOT EXECUTED
12812e: 09 d0 or %edx,%eax <== NOT EXECUTED
uint16_t mode = rtems_rfs_inode_get_mode (inode);
loc->handlers = NULL;
128130: c7 41 08 00 00 00 00 movl $0x0,0x8(%ecx) <== NOT EXECUTED
if (RTEMS_RFS_S_ISDIR (mode))
128137: 0f b7 d0 movzwl %ax,%edx <== NOT EXECUTED
12813a: 89 d0 mov %edx,%eax <== NOT EXECUTED
12813c: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
128141: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
128146: 74 4c je 128194 <rtems_rfs_rtems_set_handlers+0x80><== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (dir);
else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))
128148: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
12814d: 74 2d je 12817c <rtems_rfs_rtems_set_handlers+0x68><== NOT EXECUTED
12814f: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
128154: 74 26 je 12817c <rtems_rfs_rtems_set_handlers+0x68><== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (device);
else if (RTEMS_RFS_S_ISLNK (mode))
128156: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
12815b: 74 2b je 128188 <rtems_rfs_rtems_set_handlers+0x74><== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (link);
else if (RTEMS_RFS_S_ISREG (mode))
12815d: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
128162: 74 3c je 1281a0 <rtems_rfs_rtems_set_handlers+0x8c><== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (file);
else
{
printf ("rtems-rfs: mode type unknown: %04x\n", mode);
128164: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128167: 52 push %edx <== NOT EXECUTED
128168: 68 68 35 16 00 push $0x163568 <== NOT EXECUTED
12816d: e8 42 25 02 00 call 14a6b4 <printf> <== NOT EXECUTED
128172: 31 c0 xor %eax,%eax <== NOT EXECUTED
return false;
128174: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
return true;
}
128177: c9 leave <== NOT EXECUTED
128178: c3 ret <== NOT EXECUTED
128179: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
uint16_t mode = rtems_rfs_inode_get_mode (inode);
loc->handlers = NULL;
if (RTEMS_RFS_S_ISDIR (mode))
loc->handlers = rtems_rfs_rtems_handlers (dir);
else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))
loc->handlers = rtems_rfs_rtems_handlers (device);
12817c: c7 41 08 00 83 16 00 movl $0x168300,0x8(%ecx) <== NOT EXECUTED
128183: b0 01 mov $0x1,%al <== NOT EXECUTED
{
printf ("rtems-rfs: mode type unknown: %04x\n", mode);
return false;
}
return true;
}
128185: c9 leave <== NOT EXECUTED
128186: c3 ret <== NOT EXECUTED
128187: 90 nop <== NOT EXECUTED
if (RTEMS_RFS_S_ISDIR (mode))
loc->handlers = rtems_rfs_rtems_handlers (dir);
else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))
loc->handlers = rtems_rfs_rtems_handlers (device);
else if (RTEMS_RFS_S_ISLNK (mode))
loc->handlers = rtems_rfs_rtems_handlers (link);
128188: c7 41 08 e0 34 16 00 movl $0x1634e0,0x8(%ecx) <== NOT EXECUTED
12818f: b0 01 mov $0x1,%al <== NOT EXECUTED
{
printf ("rtems-rfs: mode type unknown: %04x\n", mode);
return false;
}
return true;
}
128191: c9 leave <== NOT EXECUTED
128192: c3 ret <== NOT EXECUTED
128193: 90 nop <== NOT EXECUTED
rtems_rfs_inode_handle* inode)
{
uint16_t mode = rtems_rfs_inode_get_mode (inode);
loc->handlers = NULL;
if (RTEMS_RFS_S_ISDIR (mode))
loc->handlers = rtems_rfs_rtems_handlers (dir);
128194: c7 41 08 40 83 16 00 movl $0x168340,0x8(%ecx) <== NOT EXECUTED
12819b: b0 01 mov $0x1,%al <== NOT EXECUTED
{
printf ("rtems-rfs: mode type unknown: %04x\n", mode);
return false;
}
return true;
}
12819d: c9 leave <== NOT EXECUTED
12819e: c3 ret <== NOT EXECUTED
12819f: 90 nop <== NOT EXECUTED
else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))
loc->handlers = rtems_rfs_rtems_handlers (device);
else if (RTEMS_RFS_S_ISLNK (mode))
loc->handlers = rtems_rfs_rtems_handlers (link);
else if (RTEMS_RFS_S_ISREG (mode))
loc->handlers = rtems_rfs_rtems_handlers (file);
1281a0: c7 41 08 80 83 16 00 movl $0x168380,0x8(%ecx) <== NOT EXECUTED
1281a7: b0 01 mov $0x1,%al <== NOT EXECUTED
{
printf ("rtems-rfs: mode type unknown: %04x\n", mode);
return false;
}
return true;
}
1281a9: c9 leave <== NOT EXECUTED
1281aa: c3 ret <== NOT EXECUTED
001268e0 <rtems_rfs_rtems_shutdown>:
/**
* Shutdown the file system.
*/
int
rtems_rfs_rtems_shutdown (rtems_filesystem_mount_table_entry_t* mt_entry)
{
1268e0: 55 push %ebp <== NOT EXECUTED
1268e1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1268e3: 56 push %esi <== NOT EXECUTED
1268e4: 53 push %ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = mt_entry->fs_info;
1268e5: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
1268e8: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
rtems_rfs_rtems_private* rtems;
int rc;
rtems = rtems_rfs_fs_user (fs);
1268eb: 8b 70 7c mov 0x7c(%eax),%esi <== NOT EXECUTED
rc = rtems_rfs_fs_close(fs);
1268ee: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1268f1: 50 push %eax <== NOT EXECUTED
1268f2: e8 c5 89 01 00 call 13f2bc <rtems_rfs_fs_close> <== NOT EXECUTED
1268f7: 89 c3 mov %eax,%ebx <== NOT EXECUTED
rtems_rfs_mutex_destroy (&rtems->access);
1268f9: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
1268fc: e8 83 b1 01 00 call 141a84 <rtems_rfs_mutex_destroy><== NOT EXECUTED
free (rtems);
126901: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
126904: e8 5f 7f fe ff call 10e868 <free> <== NOT EXECUTED
return rtems_rfs_rtems_error ("shutdown: close", rc);
126909: e8 7e fe 01 00 call 14678c <__errno> <== NOT EXECUTED
12690e: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
126910: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
126913: 83 fb 01 cmp $0x1,%ebx <== NOT EXECUTED
126916: 19 c0 sbb %eax,%eax <== NOT EXECUTED
126918: f7 d0 not %eax <== NOT EXECUTED
}
12691a: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
12691d: 5b pop %ebx <== NOT EXECUTED
12691e: 5e pop %esi <== NOT EXECUTED
12691f: c9 leave <== NOT EXECUTED
126920: c3 ret <== NOT EXECUTED
00127458 <rtems_rfs_rtems_stat>:
*/
int
rtems_rfs_rtems_stat (rtems_filesystem_location_info_t* pathloc,
struct stat* buf)
{
127458: 55 push %ebp <== NOT EXECUTED
127459: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12745b: 57 push %edi <== NOT EXECUTED
12745c: 56 push %esi <== NOT EXECUTED
12745d: 53 push %ebx <== NOT EXECUTED
12745e: 83 ec 50 sub $0x50,%esp <== NOT EXECUTED
127461: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
127464: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
127467: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
12746a: 8b 72 34 mov 0x34(%edx),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
12746d: 8b 38 mov (%eax),%edi <== 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);
12746f: 6a 00 push $0x0 <== NOT EXECUTED
127471: 6a 00 push $0x0 <== NOT EXECUTED
127473: 8b 46 7c mov 0x7c(%esi),%eax <== NOT EXECUTED
127476: ff 30 pushl (%eax) <== NOT EXECUTED
127478: e8 7b ba fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
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);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
12747d: 6a 01 push $0x1 <== NOT EXECUTED
12747f: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
127482: 50 push %eax <== NOT EXECUTED
127483: 57 push %edi <== NOT EXECUTED
127484: 56 push %esi <== NOT EXECUTED
127485: e8 22 9b 01 00 call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
if (rc)
12748a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12748d: 85 c0 test %eax,%eax <== NOT EXECUTED
12748f: 0f 85 b3 01 00 00 jne 127648 <rtems_rfs_rtems_stat+0x1f0><== 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);
127495: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: opening inode", rc);
}
mode = rtems_rfs_inode_get_mode (&inode);
if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))
127498: 0f b6 48 02 movzbl 0x2(%eax),%ecx <== NOT EXECUTED
12749c: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
12749f: 0f b6 50 03 movzbl 0x3(%eax),%edx <== NOT EXECUTED
1274a3: 09 ca or %ecx,%edx <== NOT EXECUTED
1274a5: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
1274a8: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED
1274ab: 81 e2 00 f0 00 00 and $0xf000,%edx <== NOT EXECUTED
1274b1: 81 fa 00 20 00 00 cmp $0x2000,%edx <== NOT EXECUTED
1274b7: 0f 84 33 01 00 00 je 1275f0 <rtems_rfs_rtems_stat+0x198><== NOT EXECUTED
1274bd: 81 fa 00 60 00 00 cmp $0x6000,%edx <== NOT EXECUTED
1274c3: 0f 84 27 01 00 00 je 1275f0 <rtems_rfs_rtems_stat+0x198><== NOT EXECUTED
buf->st_rdev =
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);
1274c9: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
1274cc: 8b 50 04 mov 0x4(%eax),%edx <== NOT EXECUTED
1274cf: 8b 00 mov (%eax),%eax <== NOT EXECUTED
1274d1: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
1274d3: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
buf->st_ino = ino;
1274d6: 89 7b 08 mov %edi,0x8(%ebx) <== NOT EXECUTED
buf->st_mode = rtems_rfs_rtems_mode (mode);
1274d9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1274dc: ff 75 b0 pushl -0x50(%ebp) <== NOT EXECUTED
1274df: e8 28 0c 00 00 call 12810c <rtems_rfs_rtems_mode> <== NOT EXECUTED
1274e4: 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);
1274e7: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1274ea: 0f b6 08 movzbl (%eax),%ecx <== NOT EXECUTED
1274ed: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1274f0: 0f b6 50 01 movzbl 0x1(%eax),%edx <== NOT EXECUTED
1274f4: 09 ca or %ecx,%edx <== NOT EXECUTED
if (links == 0xffff)
1274f6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1274f9: 66 83 fa ff cmp $0xffffffff,%dx <== NOT EXECUTED
1274fd: 0f 84 79 01 00 00 je 12767c <rtems_rfs_rtems_stat+0x224><== NOT EXECUTED
buf->st_nlink = rtems_rfs_inode_get_links (&inode);
127503: 66 89 53 10 mov %dx,0x10(%ebx) <== NOT EXECUTED
buf->st_uid = rtems_rfs_inode_get_uid (&inode);
127507: 0f b6 50 06 movzbl 0x6(%eax),%edx <== NOT EXECUTED
12750b: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12750e: 0f b6 48 07 movzbl 0x7(%eax),%ecx <== NOT EXECUTED
127512: 09 ca or %ecx,%edx <== NOT EXECUTED
127514: 66 89 53 12 mov %dx,0x12(%ebx) <== NOT EXECUTED
buf->st_gid = rtems_rfs_inode_get_gid (&inode);
127518: 0f b6 50 04 movzbl 0x4(%eax),%edx <== NOT EXECUTED
12751c: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
12751f: 0f b6 40 05 movzbl 0x5(%eax),%eax <== NOT EXECUTED
127523: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
127526: 09 c2 or %eax,%edx <== NOT EXECUTED
127528: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
12752b: 66 89 53 14 mov %dx,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);
12752f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127532: 57 push %edi <== NOT EXECUTED
127533: 56 push %esi <== NOT EXECUTED
127534: e8 d3 71 01 00 call 13e70c <rtems_rfs_file_get_shared><== NOT EXECUTED
if (shared)
127539: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12753c: 85 c0 test %eax,%eax <== NOT EXECUTED
12753e: 0f 84 64 01 00 00 je 1276a8 <rtems_rfs_rtems_stat+0x250><== NOT EXECUTED
{
buf->st_atime = rtems_rfs_file_shared_get_atime (shared);
127544: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx <== NOT EXECUTED
12754a: 89 53 28 mov %edx,0x28(%ebx) <== NOT EXECUTED
buf->st_mtime = rtems_rfs_file_shared_get_mtime (shared);
12754d: 8b 90 90 00 00 00 mov 0x90(%eax),%edx <== NOT EXECUTED
127553: 89 53 30 mov %edx,0x30(%ebx) <== NOT EXECUTED
buf->st_ctime = rtems_rfs_file_shared_get_ctime (shared);
127556: 8b 90 94 00 00 00 mov 0x94(%eax),%edx <== NOT EXECUTED
12755c: 89 53 38 mov %edx,0x38(%ebx) <== NOT EXECUTED
buf->st_blocks = rtems_rfs_file_shared_get_block_count (shared);
12755f: 8b 90 84 00 00 00 mov 0x84(%eax),%edx <== NOT EXECUTED
127565: 89 53 44 mov %edx,0x44(%ebx) <== NOT EXECUTED
if (S_ISLNK (buf->st_mode))
127568: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
12756b: 81 e2 00 f0 00 00 and $0xf000,%edx <== NOT EXECUTED
127571: 81 fa 00 a0 00 00 cmp $0xa000,%edx <== NOT EXECUTED
127577: 74 63 je 1275dc <rtems_rfs_rtems_stat+0x184><== 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);
127579: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12757c: 05 84 00 00 00 add $0x84,%eax <== NOT EXECUTED
127581: 50 push %eax <== NOT EXECUTED
127582: 56 push %esi <== NOT EXECUTED
127583: e8 8c 50 01 00 call 13c614 <rtems_rfs_block_get_size><== NOT EXECUTED
buf->st_size = rtems_rfs_file_shared_get_block_offset (shared);
else
buf->st_size = rtems_rfs_file_shared_get_size (fs, shared);
127588: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
12758b: 89 53 24 mov %edx,0x24(%ebx) <== NOT EXECUTED
12758e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
buf->st_size = rtems_rfs_inode_get_block_offset (&inode);
else
buf->st_size = rtems_rfs_inode_get_size (fs, &inode);
}
buf->st_blksize = rtems_rfs_fs_block_size (fs);
127591: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
127594: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
127597: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12759a: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
12759d: 50 push %eax <== NOT EXECUTED
12759e: 56 push %esi <== NOT EXECUTED
12759f: e8 84 99 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
1275a4: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1275a6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1275a9: 85 c0 test %eax,%eax <== NOT EXECUTED
1275ab: 0f 8e d3 00 00 00 jle 127684 <rtems_rfs_rtems_stat+0x22c><== 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);
1275b1: 8b 7e 7c mov 0x7c(%esi),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1275b4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1275b7: 56 push %esi <== NOT EXECUTED
1275b8: e8 e7 5d 01 00 call 13d3a4 <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);
1275bd: 58 pop %eax <== NOT EXECUTED
1275be: ff 37 pushl (%edi) <== NOT EXECUTED
1275c0: e8 2f ba fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("stat: closing inode", rc);
1275c5: e8 c2 f1 01 00 call 14678c <__errno> <== NOT EXECUTED
1275ca: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
1275cc: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
1275d1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
1275d4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1275d7: 5b pop %ebx <== NOT EXECUTED
1275d8: 5e pop %esi <== NOT EXECUTED
1275d9: 5f pop %edi <== NOT EXECUTED
1275da: c9 leave <== NOT EXECUTED
1275db: c3 ret <== NOT EXECUTED
buf->st_mtime = rtems_rfs_file_shared_get_mtime (shared);
buf->st_ctime = rtems_rfs_file_shared_get_ctime (shared);
buf->st_blocks = rtems_rfs_file_shared_get_block_count (shared);
if (S_ISLNK (buf->st_mode))
buf->st_size = rtems_rfs_file_shared_get_block_offset (shared);
1275dc: 0f b7 80 88 00 00 00 movzwl 0x88(%eax),%eax <== NOT EXECUTED
1275e3: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
1275e6: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
1275ed: eb a2 jmp 127591 <rtems_rfs_rtems_stat+0x139><== NOT EXECUTED
1275ef: 90 nop <== 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]);
1275f0: 8d 48 1c lea 0x1c(%eax),%ecx <== NOT EXECUTED
1275f3: 0f b6 51 04 movzbl 0x4(%ecx),%edx <== NOT EXECUTED
1275f7: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
1275fa: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
1275fd: 0f b6 51 05 movzbl 0x5(%ecx),%edx <== NOT EXECUTED
127601: c1 e2 10 shl $0x10,%edx <== NOT EXECUTED
127604: 09 55 b4 or %edx,-0x4c(%ebp) <== NOT EXECUTED
127607: 0f b6 51 07 movzbl 0x7(%ecx),%edx <== NOT EXECUTED
12760b: 09 55 b4 or %edx,-0x4c(%ebp) <== NOT EXECUTED
12760e: 0f b6 51 06 movzbl 0x6(%ecx),%edx <== NOT EXECUTED
127612: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
127615: 09 55 b4 or %edx,-0x4c(%ebp) <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
127618: 0f b6 51 03 movzbl 0x3(%ecx),%edx <== NOT EXECUTED
12761c: 0f b6 40 1c movzbl 0x1c(%eax),%eax <== NOT EXECUTED
127620: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
127623: 09 c2 or %eax,%edx <== NOT EXECUTED
127625: 0f b6 41 01 movzbl 0x1(%ecx),%eax <== NOT EXECUTED
127629: c1 e0 10 shl $0x10,%eax <== NOT EXECUTED
12762c: 09 c2 or %eax,%edx <== NOT EXECUTED
12762e: 0f b6 41 02 movzbl 0x2(%ecx),%eax <== NOT EXECUTED
127632: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
127635: 09 c2 or %eax,%edx <== NOT EXECUTED
mode = rtems_rfs_inode_get_mode (&inode);
if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))
{
buf->st_rdev =
127637: 89 53 18 mov %edx,0x18(%ebx) <== NOT EXECUTED
12763a: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED
12763d: 89 43 1c mov %eax,0x1c(%ebx) <== NOT EXECUTED
127640: e9 84 fe ff ff jmp 1274c9 <rtems_rfs_rtems_stat+0x71><== NOT EXECUTED
127645: 8d 76 00 lea 0x0(%esi),%esi <== 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);
127648: 8b 5e 7c mov 0x7c(%esi),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
12764b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12764e: 56 push %esi <== NOT EXECUTED
12764f: 89 45 ac mov %eax,-0x54(%ebp) <== NOT EXECUTED
127652: e8 4d 5d 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
127657: 5a pop %edx <== NOT EXECUTED
127658: ff 33 pushl (%ebx) <== NOT EXECUTED
12765a: e8 95 b9 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc)
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("stat: opening inode", rc);
12765f: e8 28 f1 01 00 call 14678c <__errno> <== NOT EXECUTED
127664: 8b 55 ac mov -0x54(%ebp),%edx <== NOT EXECUTED
127667: 89 10 mov %edx,(%eax) <== NOT EXECUTED
127669: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12766e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: closing inode", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
127671: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127674: 5b pop %ebx <== NOT EXECUTED
127675: 5e pop %esi <== NOT EXECUTED
127676: 5f pop %edi <== NOT EXECUTED
127677: c9 leave <== NOT EXECUTED
127678: c3 ret <== NOT EXECUTED
127679: 8d 76 00 lea 0x0(%esi),%esi <== 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);
if (links == 0xffff)
12767c: 31 d2 xor %edx,%edx <== NOT EXECUTED
12767e: e9 80 fe ff ff jmp 127503 <rtems_rfs_rtems_stat+0xab><== NOT EXECUTED
127683: 90 nop <== 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);
127684: 8b 5e 7c mov 0x7c(%esi),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
127687: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12768a: 56 push %esi <== NOT EXECUTED
12768b: e8 14 5d 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
127690: 5e pop %esi <== NOT EXECUTED
127691: ff 33 pushl (%ebx) <== NOT EXECUTED
127693: e8 5c b9 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
127698: 31 c0 xor %eax,%eax <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("stat: closing inode", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
12769a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12769d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1276a0: 5b pop %ebx <== NOT EXECUTED
1276a1: 5e pop %esi <== NOT EXECUTED
1276a2: 5f pop %edi <== NOT EXECUTED
1276a3: c9 leave <== NOT EXECUTED
1276a4: c3 ret <== NOT EXECUTED
1276a5: 8d 76 00 lea 0x0(%esi),%esi <== 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);
1276a8: 8b 7d cc mov -0x34(%ebp),%edi <== NOT EXECUTED
1276ab: 8d 57 10 lea 0x10(%edi),%edx <== NOT EXECUTED
else
buf->st_size = rtems_rfs_file_shared_get_size (fs, shared);
}
else
{
buf->st_atime = rtems_rfs_inode_get_atime (&inode);
1276ae: 0f b6 42 03 movzbl 0x3(%edx),%eax <== NOT EXECUTED
1276b2: 0f b6 4f 10 movzbl 0x10(%edi),%ecx <== NOT EXECUTED
1276b6: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
1276b9: 09 c8 or %ecx,%eax <== NOT EXECUTED
1276bb: 0f b6 4a 01 movzbl 0x1(%edx),%ecx <== NOT EXECUTED
1276bf: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1276c2: 09 c8 or %ecx,%eax <== NOT EXECUTED
1276c4: 0f b6 52 02 movzbl 0x2(%edx),%edx <== NOT EXECUTED
1276c8: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1276cb: 09 d0 or %edx,%eax <== NOT EXECUTED
1276cd: 89 43 28 mov %eax,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);
1276d0: 8d 57 14 lea 0x14(%edi),%edx <== NOT EXECUTED
buf->st_mtime = rtems_rfs_inode_get_mtime (&inode);
1276d3: 0f b6 42 03 movzbl 0x3(%edx),%eax <== NOT EXECUTED
1276d7: 0f b6 4f 14 movzbl 0x14(%edi),%ecx <== NOT EXECUTED
1276db: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
1276de: 09 c8 or %ecx,%eax <== NOT EXECUTED
1276e0: 0f b6 4a 01 movzbl 0x1(%edx),%ecx <== NOT EXECUTED
1276e4: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1276e7: 09 c8 or %ecx,%eax <== NOT EXECUTED
1276e9: 0f b6 52 02 movzbl 0x2(%edx),%edx <== NOT EXECUTED
1276ed: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1276f0: 09 d0 or %edx,%eax <== NOT EXECUTED
1276f2: 89 43 30 mov %eax,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);
1276f5: 8d 57 18 lea 0x18(%edi),%edx <== NOT EXECUTED
buf->st_ctime = rtems_rfs_inode_get_ctime (&inode);
1276f8: 0f b6 42 03 movzbl 0x3(%edx),%eax <== NOT EXECUTED
1276fc: 0f b6 4f 18 movzbl 0x18(%edi),%ecx <== NOT EXECUTED
127700: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
127703: 09 c8 or %ecx,%eax <== NOT EXECUTED
127705: 0f b6 4a 01 movzbl 0x1(%edx),%ecx <== NOT EXECUTED
127709: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
12770c: 09 c8 or %ecx,%eax <== NOT EXECUTED
12770e: 0f b6 52 02 movzbl 0x2(%edx),%edx <== NOT EXECUTED
127712: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
127715: 09 d0 or %edx,%eax <== NOT EXECUTED
127717: 89 43 38 mov %eax,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);
12771a: 8d 57 0c lea 0xc(%edi),%edx <== NOT EXECUTED
buf->st_blocks = rtems_rfs_inode_get_block_count (&inode);
12771d: 0f b6 42 03 movzbl 0x3(%edx),%eax <== NOT EXECUTED
127721: 0f b6 4f 0c movzbl 0xc(%edi),%ecx <== NOT EXECUTED
127725: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
127728: 09 c8 or %ecx,%eax <== NOT EXECUTED
12772a: 0f b6 4a 01 movzbl 0x1(%edx),%ecx <== NOT EXECUTED
12772e: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
127731: 09 c8 or %ecx,%eax <== NOT EXECUTED
127733: 0f b6 52 02 movzbl 0x2(%edx),%edx <== NOT EXECUTED
127737: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
12773a: 09 d0 or %edx,%eax <== NOT EXECUTED
12773c: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED
if (S_ISLNK (buf->st_mode))
12773f: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
127742: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
127747: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
12774c: 75 22 jne 127770 <rtems_rfs_rtems_stat+0x318><== NOT EXECUTED
buf->st_size = rtems_rfs_inode_get_block_offset (&inode);
12774e: 0f b6 57 0a movzbl 0xa(%edi),%edx <== NOT EXECUTED
127752: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
127755: 0f b6 47 0b movzbl 0xb(%edi),%eax <== NOT EXECUTED
127759: 09 d0 or %edx,%eax <== NOT EXECUTED
12775b: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
12775e: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
127761: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
127768: e9 24 fe ff ff jmp 127591 <rtems_rfs_rtems_stat+0x139><== NOT EXECUTED
12776d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
else
buf->st_size = rtems_rfs_inode_get_size (fs, &inode);
127770: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
127773: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED
127776: 52 push %edx <== NOT EXECUTED
127777: 56 push %esi <== NOT EXECUTED
127778: e8 c7 94 01 00 call 140c44 <rtems_rfs_inode_get_size><== NOT EXECUTED
12777d: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
127780: 89 53 24 mov %edx,0x24(%ebx) <== NOT EXECUTED
127783: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127786: e9 06 fe ff ff jmp 127591 <rtems_rfs_rtems_stat+0x139><== NOT EXECUTED
00126afc <rtems_rfs_rtems_statvfs>:
* @return int
*/
int
rtems_rfs_rtems_statvfs (rtems_filesystem_location_info_t* pathloc,
struct statvfs* sb)
{
126afc: 55 push %ebp <== NOT EXECUTED
126afd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
126aff: 56 push %esi <== NOT EXECUTED
126b00: 53 push %ebx <== NOT EXECUTED
126b01: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED
126b04: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
126b07: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
126b0a: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED
126b0d: 8b 70 34 mov 0x34(%eax),%esi <== NOT EXECUTED
size_t blocks;
size_t inodes;
rtems_rfs_group_usage (fs, &blocks, &inodes);
126b10: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED
126b13: 50 push %eax <== NOT EXECUTED
126b14: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED
126b17: 50 push %eax <== NOT EXECUTED
126b18: 56 push %esi <== NOT EXECUTED
126b19: e8 aa 9c 01 00 call 1407c8 <rtems_rfs_group_usage> <== NOT EXECUTED
sb->f_bsize = rtems_rfs_fs_block_size (fs);
126b1e: 8b 46 08 mov 0x8(%esi),%eax <== NOT EXECUTED
126b21: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
126b23: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED
126b26: 8b 50 24 mov 0x24(%eax),%edx <== NOT EXECUTED
126b29: 89 53 04 mov %edx,0x4(%ebx) <== NOT EXECUTED
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
126b2c: 8b 50 1c mov 0x1c(%eax),%edx <== NOT EXECUTED
126b2f: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
126b32: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) <== NOT EXECUTED
sb->f_bfree = rtems_rfs_fs_blocks (fs) - blocks;
126b39: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED
126b3c: 2b 45 f4 sub -0xc(%ebp),%eax <== NOT EXECUTED
126b3f: 89 43 10 mov %eax,0x10(%ebx) <== NOT EXECUTED
126b42: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) <== NOT EXECUTED
sb->f_bavail = sb->f_bfree;
126b49: 89 43 18 mov %eax,0x18(%ebx) <== NOT EXECUTED
126b4c: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) <== NOT EXECUTED
sb->f_files = rtems_rfs_fs_inodes (fs);
126b53: 8b 46 10 mov 0x10(%esi),%eax <== NOT EXECUTED
126b56: 89 43 20 mov %eax,0x20(%ebx) <== NOT EXECUTED
sb->f_ffree = rtems_rfs_fs_inodes (fs) - inodes;
126b59: 2b 45 f0 sub -0x10(%ebp),%eax <== NOT EXECUTED
126b5c: 89 43 24 mov %eax,0x24(%ebx) <== NOT EXECUTED
sb->f_favail = sb->f_ffree;
126b5f: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
sb->f_fsid = RTEMS_RFS_SB_MAGIC;
126b62: c7 43 2c 01 20 09 28 movl $0x28092001,0x2c(%ebx) <== NOT EXECUTED
sb->f_flag = rtems_rfs_fs_flags (fs);
126b69: 8b 06 mov (%esi),%eax <== NOT EXECUTED
126b6b: 89 43 30 mov %eax,0x30(%ebx) <== NOT EXECUTED
sb->f_namemax = rtems_rfs_fs_max_name (fs);
126b6e: 8b 46 18 mov 0x18(%esi),%eax <== NOT EXECUTED
126b71: 89 43 34 mov %eax,0x34(%ebx) <== NOT EXECUTED
return 0;
}
126b74: 31 c0 xor %eax,%eax <== NOT EXECUTED
126b76: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
126b79: 5b pop %ebx <== NOT EXECUTED
126b7a: 5e pop %esi <== NOT EXECUTED
126b7b: c9 leave <== NOT EXECUTED
126b7c: c3 ret <== NOT EXECUTED
00126fac <rtems_rfs_rtems_symlink>:
int
rtems_rfs_rtems_symlink (rtems_filesystem_location_info_t* parent_loc,
const char* link_name,
const char* node_name)
{
126fac: 55 push %ebp <== NOT EXECUTED
126fad: 89 e5 mov %esp,%ebp <== NOT EXECUTED
126faf: 57 push %edi <== NOT EXECUTED
126fb0: 56 push %esi <== NOT EXECUTED
126fb1: 53 push %ebx <== NOT EXECUTED
126fb2: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
126fb5: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
126fb8: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
126fbb: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
126fbe: 8b 30 mov (%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);
126fc0: 6a 00 push $0x0 <== NOT EXECUTED
126fc2: 6a 00 push $0x0 <== NOT EXECUTED
126fc4: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
126fc7: ff 30 pushl (%eax) <== NOT EXECUTED
126fc9: e8 2a bf fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
#endif
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_symlink (fs, node_name, strlen (node_name),
link_name, strlen (link_name),
126fce: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED
126fd3: 31 c0 xor %eax,%eax <== NOT EXECUTED
126fd5: 89 d1 mov %edx,%ecx <== NOT EXECUTED
126fd7: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
126fda: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
126fdc: f7 d1 not %ecx <== NOT EXECUTED
126fde: 49 dec %ecx <== NOT EXECUTED
126fdf: 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),
126fe2: 89 d1 mov %edx,%ecx <== NOT EXECUTED
126fe4: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
126fe7: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
126fe9: 89 ca mov %ecx,%edx <== NOT EXECUTED
126feb: f7 d2 not %edx <== NOT EXECUTED
126fed: 4a dec %edx <== NOT EXECUTED
126fee: 56 push %esi <== NOT EXECUTED
126fef: 6a 00 push $0x0 <== NOT EXECUTED
126ff1: 6a 00 push $0x0 <== NOT EXECUTED
126ff3: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
126ff6: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
126ff9: 52 push %edx <== NOT EXECUTED
126ffa: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
126ffd: 53 push %ebx <== NOT EXECUTED
126ffe: e8 55 a5 01 00 call 141558 <rtems_rfs_symlink> <== NOT EXECUTED
127003: 89 c6 mov %eax,%esi <== NOT EXECUTED
link_name, strlen (link_name),
uid, gid, parent);
if (rc)
127005: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
127008: 85 c0 test %eax,%eax <== NOT EXECUTED
12700a: 74 2c je 127038 <rtems_rfs_rtems_symlink+0x8c><== 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);
12700c: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
12700f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127012: 53 push %ebx <== NOT EXECUTED
127013: e8 8c 63 01 00 call 13d3a4 <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);
127018: 5b pop %ebx <== NOT EXECUTED
127019: ff 37 pushl (%edi) <== NOT EXECUTED
12701b: e8 d4 bf fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("symlink: linking", rc);
127020: e8 67 f7 01 00 call 14678c <__errno> <== NOT EXECUTED
127025: 89 30 mov %esi,(%eax) <== NOT EXECUTED
127027: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12702c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
12702f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127032: 5b pop %ebx <== NOT EXECUTED
127033: 5e pop %esi <== NOT EXECUTED
127034: 5f pop %edi <== NOT EXECUTED
127035: c9 leave <== NOT EXECUTED
127036: c3 ret <== NOT EXECUTED
127037: 90 nop <== 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);
127038: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
12703b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12703e: 53 push %ebx <== NOT EXECUTED
12703f: e8 60 63 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
127044: 59 pop %ecx <== NOT EXECUTED
127045: ff 36 pushl (%esi) <== NOT EXECUTED
127047: e8 a8 bf fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
12704c: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rtems_rfs_rtems_error ("symlink: linking", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
12704e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
127051: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127054: 5b pop %ebx <== NOT EXECUTED
127055: 5e pop %esi <== NOT EXECUTED
127056: 5f pop %edi <== NOT EXECUTED
127057: c9 leave <== NOT EXECUTED
127058: c3 ret <== NOT EXECUTED
001270f4 <rtems_rfs_rtems_unlink>:
*/
int
rtems_rfs_rtems_unlink (rtems_filesystem_location_info_t* parent_loc,
rtems_filesystem_location_info_t* loc)
{
1270f4: 55 push %ebp <== NOT EXECUTED
1270f5: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1270f7: 57 push %edi <== NOT EXECUTED
1270f8: 56 push %esi <== NOT EXECUTED
1270f9: 53 push %ebx <== NOT EXECUTED
1270fa: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED
1270fd: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
127100: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
127103: 8b 4a 10 mov 0x10(%edx),%ecx <== NOT EXECUTED
127106: 8b 59 34 mov 0x34(%ecx),%ebx <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
127109: 8b 32 mov (%edx),%esi <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (loc);
12710b: 8b 38 mov (%eax),%edi <== NOT EXECUTED
uint32_t doff = rtems_rfs_rtems_get_pathloc_doff (loc);
12710d: 8b 50 04 mov 0x4(%eax),%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);
127110: 6a 00 push $0x0 <== NOT EXECUTED
127112: 6a 00 push $0x0 <== NOT EXECUTED
127114: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
127117: ff 30 pushl (%eax) <== NOT EXECUTED
127119: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED
12711c: e8 d7 bd fe ff call 112ef8 <rtems_semaphore_obtain><== 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);
127121: c7 04 24 00 00 00 00 movl $0x0,(%esp) <== NOT EXECUTED
127128: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
12712b: 52 push %edx <== NOT EXECUTED
12712c: 57 push %edi <== NOT EXECUTED
12712d: 56 push %esi <== NOT EXECUTED
12712e: 53 push %ebx <== NOT EXECUTED
12712f: e8 24 a6 01 00 call 141758 <rtems_rfs_unlink> <== NOT EXECUTED
127134: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
127136: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
127139: 85 c0 test %eax,%eax <== NOT EXECUTED
12713b: 74 2b je 127168 <rtems_rfs_rtems_unlink+0x74><== 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);
12713d: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
127140: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127143: 53 push %ebx <== NOT EXECUTED
127144: e8 5b 62 01 00 call 13d3a4 <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);
127149: 59 pop %ecx <== NOT EXECUTED
12714a: ff 37 pushl (%edi) <== NOT EXECUTED
12714c: e8 a3 be fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("unlink: unlink inode", rc);
127151: e8 36 f6 01 00 call 14678c <__errno> <== NOT EXECUTED
127156: 89 30 mov %esi,(%eax) <== NOT EXECUTED
127158: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12715d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
127160: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127163: 5b pop %ebx <== NOT EXECUTED
127164: 5e pop %esi <== NOT EXECUTED
127165: 5f pop %edi <== NOT EXECUTED
127166: c9 leave <== NOT EXECUTED
127167: c3 ret <== 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);
127168: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
12716b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12716e: 53 push %ebx <== NOT EXECUTED
12716f: e8 30 62 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
127174: 5a pop %edx <== NOT EXECUTED
127175: ff 36 pushl (%esi) <== NOT EXECUTED
127177: e8 78 be fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
12717c: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rtems_rfs_rtems_error ("unlink: unlink inode", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
12717e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
127181: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127184: 5b pop %ebx <== NOT EXECUTED
127185: 5e pop %esi <== NOT EXECUTED
127186: 5f pop %edi <== NOT EXECUTED
127187: c9 leave <== NOT EXECUTED
127188: c3 ret <== NOT EXECUTED
001268c0 <rtems_rfs_rtems_unlock>:
/**
* Unlock the RFS file system.
*/
static inline void
rtems_rfs_rtems_unlock (rtems_rfs_file_system* fs)
{
1268c0: 55 push %ebp <== NOT EXECUTED
1268c1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1268c3: 53 push %ebx <== NOT EXECUTED
1268c4: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);
1268c7: 8b 58 7c mov 0x7c(%eax),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
1268ca: 50 push %eax <== NOT EXECUTED
1268cb: e8 d4 6a 01 00 call 13d3a4 <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);
1268d0: 58 pop %eax <== NOT EXECUTED
1268d1: ff 33 pushl (%ebx) <== NOT EXECUTED
1268d3: e8 1c c7 fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
1268d8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_rfs_mutex_unlock (&rtems->access);
}
1268db: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
1268de: c9 leave <== NOT EXECUTED
1268df: c3 ret <== NOT EXECUTED
0012732c <rtems_rfs_rtems_utime>:
int
rtems_rfs_rtems_utime(rtems_filesystem_location_info_t* pathloc,
time_t atime,
time_t mtime)
{
12732c: 55 push %ebp <== NOT EXECUTED
12732d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12732f: 57 push %edi <== NOT EXECUTED
127330: 56 push %esi <== NOT EXECUTED
127331: 53 push %ebx <== NOT EXECUTED
127332: 83 ec 50 sub $0x50,%esp <== NOT EXECUTED
127335: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
127338: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
12733b: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED
12733e: 8b 5a 34 mov 0x34(%edx),%ebx <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
127341: 8b 10 mov (%eax),%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);
127343: 6a 00 push $0x0 <== NOT EXECUTED
127345: 6a 00 push $0x0 <== NOT EXECUTED
127347: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
12734a: ff 30 pushl (%eax) <== NOT EXECUTED
12734c: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED
12734f: e8 a4 bb fe ff call 112ef8 <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);
127354: 6a 01 push $0x1 <== NOT EXECUTED
127356: 8d 7d c0 lea -0x40(%ebp),%edi <== NOT EXECUTED
127359: 57 push %edi <== NOT EXECUTED
12735a: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
12735d: 52 push %edx <== NOT EXECUTED
12735e: 53 push %ebx <== NOT EXECUTED
12735f: e8 48 9c 01 00 call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
if (rc)
127364: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
127367: 85 c0 test %eax,%eax <== NOT EXECUTED
127369: 74 31 je 12739c <rtems_rfs_rtems_utime+0x70><== 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);
12736b: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
12736e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
127371: 53 push %ebx <== NOT EXECUTED
127372: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
127375: e8 2a 60 01 00 call 13d3a4 <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);
12737a: 5b pop %ebx <== NOT EXECUTED
12737b: ff 36 pushl (%esi) <== NOT EXECUTED
12737d: e8 72 bc fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("utime: read inode", rc);
127382: e8 05 f4 01 00 call 14678c <__errno> <== NOT EXECUTED
127387: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED
12738a: 89 10 mov %edx,(%eax) <== NOT EXECUTED
12738c: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
127391: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
127394: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127397: 5b pop %ebx <== NOT EXECUTED
127398: 5e pop %esi <== NOT EXECUTED
127399: 5f pop %edi <== NOT EXECUTED
12739a: c9 leave <== NOT EXECUTED
12739b: c3 ret <== 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);
12739c: 89 f2 mov %esi,%edx <== NOT EXECUTED
12739e: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
1273a1: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1273a4: 88 50 10 mov %dl,0x10(%eax) <== NOT EXECUTED
1273a7: 89 f2 mov %esi,%edx <== NOT EXECUTED
1273a9: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
1273ac: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1273af: 88 50 11 mov %dl,0x11(%eax) <== NOT EXECUTED
1273b2: 89 f2 mov %esi,%edx <== NOT EXECUTED
1273b4: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
1273b7: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1273ba: 88 50 12 mov %dl,0x12(%eax) <== NOT EXECUTED
1273bd: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1273c0: 89 f2 mov %esi,%edx <== NOT EXECUTED
1273c2: 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);
1273c5: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1273c8: c1 ea 18 shr $0x18,%edx <== NOT EXECUTED
1273cb: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1273ce: 88 50 14 mov %dl,0x14(%eax) <== NOT EXECUTED
1273d1: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1273d4: c1 ea 10 shr $0x10,%edx <== NOT EXECUTED
1273d7: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1273da: 88 50 15 mov %dl,0x15(%eax) <== NOT EXECUTED
1273dd: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
1273e0: c1 ea 08 shr $0x8,%edx <== NOT EXECUTED
1273e3: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1273e6: 88 50 16 mov %dl,0x16(%eax) <== NOT EXECUTED
1273e9: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED
1273ec: 8a 55 10 mov 0x10(%ebp),%dl <== NOT EXECUTED
1273ef: 88 50 17 mov %dl,0x17(%eax) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
1273f2: 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);
1273f6: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1273f9: 57 push %edi <== NOT EXECUTED
1273fa: 53 push %ebx <== NOT EXECUTED
1273fb: e8 28 9b 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
127400: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
127402: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
127405: 85 c0 test %eax,%eax <== NOT EXECUTED
127407: 74 2b je 127434 <rtems_rfs_rtems_utime+0x108><== 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);
127409: 8b 7b 7c mov 0x7c(%ebx),%edi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
12740c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12740f: 53 push %ebx <== NOT EXECUTED
127410: e8 8f 5f 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
127415: 59 pop %ecx <== NOT EXECUTED
127416: ff 37 pushl (%edi) <== NOT EXECUTED
127418: e8 d7 bb fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("utime: closing inode", rc);
12741d: e8 6a f3 01 00 call 14678c <__errno> <== NOT EXECUTED
127422: 89 30 mov %esi,(%eax) <== NOT EXECUTED
127424: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
127429: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
return 0;
}
12742c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12742f: 5b pop %ebx <== NOT EXECUTED
127430: 5e pop %esi <== NOT EXECUTED
127431: 5f pop %edi <== NOT EXECUTED
127432: c9 leave <== NOT EXECUTED
127433: c3 ret <== 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);
127434: 8b 73 7c mov 0x7c(%ebx),%esi <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
127437: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12743a: 53 push %ebx <== NOT EXECUTED
12743b: e8 64 5f 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
127440: 5a pop %edx <== NOT EXECUTED
127441: ff 36 pushl (%esi) <== NOT EXECUTED
127443: e8 ac bb fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
127448: 31 c0 xor %eax,%eax <== NOT EXECUTED
return rtems_rfs_rtems_error ("utime: closing inode", rc);
}
rtems_rfs_rtems_unlock (fs);
return 0;
12744a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12744d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
127450: 5b pop %ebx <== NOT EXECUTED
127451: 5e pop %esi <== NOT EXECUTED
127452: 5f pop %edi <== NOT EXECUTED
127453: c9 leave <== NOT EXECUTED
127454: c3 ret <== NOT EXECUTED
0013f810 <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)
{
13f810: 55 push %ebp <== NOT EXECUTED
13f811: 89 e5 mov %esp,%ebp <== NOT EXECUTED
13f813: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
13f816: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
if (dividend == 0)
13f819: 85 c0 test %eax,%eax <== NOT EXECUTED
13f81b: 74 0b je 13f828 <rtems_rfs_rup_quotient+0x18><== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
13f81d: 48 dec %eax <== NOT EXECUTED
13f81e: 31 d2 xor %edx,%edx <== NOT EXECUTED
13f820: f7 f1 div %ecx <== NOT EXECUTED
13f822: 40 inc %eax <== NOT EXECUTED
}
13f823: c9 leave <== NOT EXECUTED
13f824: c3 ret <== NOT EXECUTED
13f825: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
13f828: b0 01 mov $0x1,%al <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
}
13f82a: c9 leave <== NOT EXECUTED
13f82b: c3 ret <== NOT EXECUTED
00128e2c <rtems_rfs_shell_block>:
return 0;
}
static int
rtems_rfs_shell_block (rtems_rfs_file_system* fs, int argc, char *argv[])
{
128e2c: 55 push %ebp <== NOT EXECUTED
128e2d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128e2f: 57 push %edi <== NOT EXECUTED
128e30: 56 push %esi <== NOT EXECUTED
128e31: 53 push %ebx <== NOT EXECUTED
128e32: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
128e35: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
uint8_t* data;
bool state;
int b;
int rc;
if (argc <= 1)
128e38: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
128e3c: 0f 8e be 01 00 00 jle 129000 <rtems_rfs_shell_block+0x1d4><== NOT EXECUTED
{
printf ("error: no block number provided\n");
return 1;
}
block = strtoul (argv[1], 0, 0);
128e42: 50 push %eax <== NOT EXECUTED
128e43: 6a 00 push $0x0 <== NOT EXECUTED
128e45: 6a 00 push $0x0 <== NOT EXECUTED
128e47: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
128e4a: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
128e4d: e8 f2 4c 02 00 call 14db44 <strtoul> <== NOT EXECUTED
128e52: 89 c3 mov %eax,%ebx <== NOT EXECUTED
128e54: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
128e57: 6a 00 push $0x0 <== NOT EXECUTED
128e59: 6a 00 push $0x0 <== NOT EXECUTED
128e5b: 8b 46 7c mov 0x7c(%esi),%eax <== NOT EXECUTED
128e5e: ff 30 pushl (%eax) <== NOT EXECUTED
128e60: e8 93 a0 fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
128e65: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
128e68: 50 push %eax <== NOT EXECUTED
128e69: 53 push %ebx <== NOT EXECUTED
128e6a: 6a 00 push $0x0 <== NOT EXECUTED
128e6c: 56 push %esi <== NOT EXECUTED
128e6d: e8 be 79 01 00 call 140830 <rtems_rfs_group_bitmap_test><== NOT EXECUTED
128e72: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
128e74: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
128e77: 85 c0 test %eax,%eax <== NOT EXECUTED
128e79: 0f 8f a9 00 00 00 jg 128f28 <rtems_rfs_shell_block+0xfc><== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
128e7f: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
128e83: 0f 85 1f 01 00 00 jne 128fa8 <rtems_rfs_shell_block+0x17c><== NOT EXECUTED
128e89: b8 99 11 16 00 mov $0x161199,%eax <== NOT EXECUTED
128e8e: 57 push %edi <== NOT EXECUTED
128e8f: 50 push %eax <== NOT EXECUTED
128e90: 53 push %ebx <== NOT EXECUTED
128e91: 68 61 36 16 00 push $0x163661 <== NOT EXECUTED
128e96: e8 19 18 02 00 call 14a6b4 <printf> <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
128e9b: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
128e9f: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
128ea6: 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);
128ead: 6a 01 push $0x1 <== NOT EXECUTED
128eaf: 53 push %ebx <== NOT EXECUTED
128eb0: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
128eb3: 50 push %eax <== NOT EXECUTED
128eb4: 56 push %esi <== NOT EXECUTED
128eb5: e8 2a 47 01 00 call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
128eba: 89 c7 mov %eax,%edi <== NOT EXECUTED
if (rc > 0)
128ebc: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
128ebf: 85 c0 test %eax,%eax <== NOT EXECUTED
128ec1: 0f 8f ed 00 00 00 jg 128fb4 <rtems_rfs_shell_block+0x188><== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
128ec7: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
128eca: 8b 78 20 mov 0x20(%eax),%edi <== NOT EXECUTED
b < rtems_rfs_fs_block_size (fs);
128ecd: 8b 5e 08 mov 0x8(%esi),%ebx <== NOT EXECUTED
128ed0: 85 db test %ebx,%ebx <== NOT EXECUTED
128ed2: 0f 84 94 00 00 00 je 128f6c <rtems_rfs_shell_block+0x140><== NOT EXECUTED
128ed8: 31 db xor %ebx,%ebx <== NOT EXECUTED
128eda: eb 30 jmp 128f0c <rtems_rfs_shell_block+0xe0><== NOT EXECUTED
b++, data++)
{
int mod = b % 16;
if (mod == 0)
{
if (b)
128edc: 85 db test %ebx,%ebx <== NOT EXECUTED
128ede: 75 78 jne 128f58 <rtems_rfs_shell_block+0x12c><== NOT EXECUTED
printf ("\n");
printf ("%04x ", b);
128ee0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128ee3: 53 push %ebx <== NOT EXECUTED
128ee4: 68 b1 e0 15 00 push $0x15e0b1 <== NOT EXECUTED
128ee9: e8 c6 17 02 00 call 14a6b4 <printf> <== NOT EXECUTED
128eee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
128ef1: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128ef4: 0f b6 04 1f movzbl (%edi,%ebx,1),%eax <== NOT EXECUTED
128ef8: 50 push %eax <== NOT EXECUTED
128ef9: 68 72 36 16 00 push $0x163672 <== NOT EXECUTED
128efe: e8 b1 17 02 00 call 14a6b4 <printf> <== NOT EXECUTED
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
b < rtems_rfs_fs_block_size (fs);
b++, data++)
128f03: 43 inc %ebx <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
b < rtems_rfs_fs_block_size (fs);
128f04: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128f07: 39 5e 08 cmp %ebx,0x8(%esi) <== NOT EXECUTED
128f0a: 76 60 jbe 128f6c <rtems_rfs_shell_block+0x140><== NOT EXECUTED
b++, data++)
{
int mod = b % 16;
if (mod == 0)
128f0c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
128f0e: 83 e0 0f and $0xf,%eax <== NOT EXECUTED
128f11: 74 c9 je 128edc <rtems_rfs_shell_block+0xb0><== NOT EXECUTED
{
if (b)
printf ("\n");
printf ("%04x ", b);
}
if (mod == 8)
128f13: 83 f8 08 cmp $0x8,%eax <== NOT EXECUTED
128f16: 75 d9 jne 128ef1 <rtems_rfs_shell_block+0xc5><== NOT EXECUTED
printf (" ");
128f18: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128f1b: 6a 20 push $0x20 <== NOT EXECUTED
128f1d: e8 f2 18 02 00 call 14a814 <putchar> <== NOT EXECUTED
128f22: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128f25: eb ca jmp 128ef1 <rtems_rfs_shell_block+0xc5><== NOT EXECUTED
128f27: 90 nop <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
if (rc > 0)
{
rtems_rfs_shell_unlock_rfs (fs);
128f28: 89 f0 mov %esi,%eax <== NOT EXECUTED
128f2a: e8 29 f5 ff ff call 128458 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
128f2f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128f32: 57 push %edi <== NOT EXECUTED
128f33: e8 c4 31 02 00 call 14c0fc <strerror> <== NOT EXECUTED
128f38: 50 push %eax <== NOT EXECUTED
128f39: 57 push %edi <== NOT EXECUTED
128f3a: 53 push %ebx <== NOT EXECUTED
128f3b: 68 9c 3b 16 00 push $0x163b9c <== NOT EXECUTED
128f40: e8 6f 17 02 00 call 14a6b4 <printf> <== NOT EXECUTED
128f45: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
128f4a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
}
rtems_rfs_shell_unlock_rfs (fs);
return 0;
}
128f4d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128f50: 5b pop %ebx <== NOT EXECUTED
128f51: 5e pop %esi <== NOT EXECUTED
128f52: 5f pop %edi <== NOT EXECUTED
128f53: c9 leave <== NOT EXECUTED
128f54: c3 ret <== NOT EXECUTED
128f55: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
int mod = b % 16;
if (mod == 0)
{
if (b)
printf ("\n");
128f58: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128f5b: 6a 0a push $0xa <== NOT EXECUTED
128f5d: e8 b2 18 02 00 call 14a814 <putchar> <== NOT EXECUTED
128f62: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128f65: e9 76 ff ff ff jmp 128ee0 <rtems_rfs_shell_block+0xb4><== NOT EXECUTED
128f6a: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
}
printf ("\n");
128f6c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128f6f: 6a 0a push $0xa <== NOT EXECUTED
128f71: e8 9e 18 02 00 call 14a814 <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);
128f76: 5a pop %edx <== NOT EXECUTED
128f77: 59 pop %ecx <== NOT EXECUTED
128f78: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
128f7b: 50 push %eax <== NOT EXECUTED
128f7c: 56 push %esi <== NOT EXECUTED
128f7d: e8 5e 45 01 00 call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
128f82: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
128f86: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
128f8d: 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);
128f94: 89 f0 mov %esi,%eax <== NOT EXECUTED
128f96: e8 bd f4 ff ff call 128458 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
128f9b: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
128f9d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
128fa0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128fa3: 5b pop %ebx <== NOT EXECUTED
128fa4: 5e pop %esi <== NOT EXECUTED
128fa5: 5f pop %edi <== NOT EXECUTED
128fa6: c9 leave <== NOT EXECUTED
128fa7: c3 ret <== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
128fa8: b8 57 36 16 00 mov $0x163657,%eax <== NOT EXECUTED
128fad: e9 dc fe ff ff jmp 128e8e <rtems_rfs_shell_block+0x62><== NOT EXECUTED
128fb2: 66 90 xchg %ax,%ax <== 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);
128fb4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128fb7: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
128fba: 50 push %eax <== NOT EXECUTED
128fbb: 56 push %esi <== NOT EXECUTED
128fbc: e8 1f 45 01 00 call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
128fc1: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
128fc5: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
128fcc: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_shell_unlock_rfs (fs);
128fd3: 89 f0 mov %esi,%eax <== NOT EXECUTED
128fd5: e8 7e f4 ff ff call 128458 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
128fda: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED
128fdd: e8 1a 31 02 00 call 14c0fc <strerror> <== NOT EXECUTED
128fe2: 50 push %eax <== NOT EXECUTED
128fe3: 57 push %edi <== NOT EXECUTED
128fe4: 53 push %ebx <== NOT EXECUTED
128fe5: 68 cc 3b 16 00 push $0x163bcc <== NOT EXECUTED
128fea: e8 c5 16 02 00 call 14a6b4 <printf> <== NOT EXECUTED
128fef: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
128ff4: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
}
rtems_rfs_shell_unlock_rfs (fs);
return 0;
}
128ff7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128ffa: 5b pop %ebx <== NOT EXECUTED
128ffb: 5e pop %esi <== NOT EXECUTED
128ffc: 5f pop %edi <== NOT EXECUTED
128ffd: c9 leave <== NOT EXECUTED
128ffe: c3 ret <== NOT EXECUTED
128fff: 90 nop <== NOT EXECUTED
int b;
int rc;
if (argc <= 1)
{
printf ("error: no block number provided\n");
129000: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129003: 68 7c 3b 16 00 push $0x163b7c <== NOT EXECUTED
129008: e8 bb 18 02 00 call 14a8c8 <puts> <== NOT EXECUTED
12900d: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
129012: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_shell_unlock_rfs (fs);
return 0;
}
129015: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129018: 5b pop %ebx <== NOT EXECUTED
129019: 5e pop %esi <== NOT EXECUTED
12901a: 5f pop %edi <== NOT EXECUTED
12901b: c9 leave <== NOT EXECUTED
12901c: c3 ret <== NOT EXECUTED
00129020 <rtems_rfs_shell_data>:
return rc;
}
static int
rtems_rfs_shell_data (rtems_rfs_file_system* fs, int argc, char *argv[])
{
129020: 55 push %ebp <== NOT EXECUTED
129021: 89 e5 mov %esp,%ebp <== NOT EXECUTED
129023: 57 push %edi <== NOT EXECUTED
129024: 56 push %esi <== NOT EXECUTED
129025: 53 push %ebx <== NOT EXECUTED
129026: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED
129029: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
size_t blocks;
size_t inodes;
int bpcent;
int ipcent;
printf ("RFS Filesystem Data\n");
12902c: 68 78 36 16 00 push $0x163678 <== NOT EXECUTED
129031: e8 92 18 02 00 call 14a8c8 <puts> <== NOT EXECUTED
printf (" flags: %08" PRIx32 "\n", fs->flags);
129036: 5f pop %edi <== NOT EXECUTED
129037: 58 pop %eax <== NOT EXECUTED
129038: ff 33 pushl (%ebx) <== NOT EXECUTED
12903a: 68 8c 36 16 00 push $0x16368c <== NOT EXECUTED
12903f: e8 70 16 02 00 call 14a6b4 <printf> <== NOT EXECUTED
#if 0
printf (" device: %08lx\n", rtems_rfs_fs_device (fs));
#endif
printf (" blocks: %zu\n", rtems_rfs_fs_blocks (fs));
129044: 59 pop %ecx <== NOT EXECUTED
129045: 5e pop %esi <== NOT EXECUTED
129046: ff 73 04 pushl 0x4(%ebx) <== NOT EXECUTED
129049: 68 a7 36 16 00 push $0x1636a7 <== NOT EXECUTED
12904e: e8 61 16 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" block size: %zu\n", rtems_rfs_fs_block_size (fs));
129053: 58 pop %eax <== NOT EXECUTED
129054: 5a pop %edx <== NOT EXECUTED
129055: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED
129058: 68 c0 36 16 00 push $0x1636c0 <== NOT EXECUTED
12905d: e8 52 16 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" size: %" PRIu64 "\n", rtems_rfs_fs_size (fs));
129062: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
129065: e8 2e 62 01 00 call 13f298 <rtems_rfs_fs_size> <== NOT EXECUTED
12906a: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
12906d: 52 push %edx <== NOT EXECUTED
12906e: 50 push %eax <== NOT EXECUTED
12906f: 68 d9 36 16 00 push $0x1636d9 <== NOT EXECUTED
129074: e8 3b 16 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" media block size: %" PRIu32 "\n", rtems_rfs_fs_media_block_size (fs));
129079: 5e pop %esi <== NOT EXECUTED
12907a: 5f pop %edi <== NOT EXECUTED
12907b: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED
12907e: ff 70 24 pushl 0x24(%eax) <== NOT EXECUTED
129081: 68 f3 36 16 00 push $0x1636f3 <== NOT EXECUTED
129086: e8 29 16 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" media size: %" PRIu64 "\n", rtems_rfs_fs_media_size (fs));
12908b: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED
12908e: e8 15 62 01 00 call 13f2a8 <rtems_rfs_fs_media_size><== NOT EXECUTED
129093: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
129096: 52 push %edx <== NOT EXECUTED
129097: 50 push %eax <== NOT EXECUTED
129098: 68 0c 37 16 00 push $0x16370c <== NOT EXECUTED
12909d: e8 12 16 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" inodes: %" PRIu32 "\n", rtems_rfs_fs_inodes (fs));
1290a2: 5a pop %edx <== NOT EXECUTED
1290a3: 59 pop %ecx <== NOT EXECUTED
1290a4: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
1290a7: 68 26 37 16 00 push $0x163726 <== NOT EXECUTED
1290ac: e8 03 16 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" bad blocks: %" PRIu32 "\n", fs->bad_blocks);
1290b1: 5f pop %edi <== NOT EXECUTED
1290b2: 58 pop %eax <== NOT EXECUTED
1290b3: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED
1290b6: 68 3f 37 16 00 push $0x16373f <== NOT EXECUTED
1290bb: e8 f4 15 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" max. name length: %" PRIu32 "\n", rtems_rfs_fs_max_name (fs));
1290c0: 59 pop %ecx <== NOT EXECUTED
1290c1: 5e pop %esi <== NOT EXECUTED
1290c2: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED
1290c5: 68 58 37 16 00 push $0x163758 <== NOT EXECUTED
1290ca: e8 e5 15 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" groups: %d\n", fs->group_count);
1290cf: 58 pop %eax <== NOT EXECUTED
1290d0: 5a pop %edx <== NOT EXECUTED
1290d1: ff 73 20 pushl 0x20(%ebx) <== NOT EXECUTED
1290d4: 68 71 37 16 00 push $0x163771 <== NOT EXECUTED
1290d9: e8 d6 15 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" group blocks: %zd\n", fs->group_blocks);
1290de: 5e pop %esi <== NOT EXECUTED
1290df: 5f pop %edi <== NOT EXECUTED
1290e0: ff 73 24 pushl 0x24(%ebx) <== NOT EXECUTED
1290e3: 68 89 37 16 00 push $0x163789 <== NOT EXECUTED
1290e8: e8 c7 15 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" group inodes: %zd\n", fs->group_inodes);
1290ed: 5a pop %edx <== NOT EXECUTED
1290ee: 59 pop %ecx <== NOT EXECUTED
1290ef: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED
1290f2: 68 a2 37 16 00 push $0x1637a2 <== NOT EXECUTED
1290f7: e8 b8 15 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" inodes per block: %zd\n", fs->inodes_per_block);
1290fc: 5f pop %edi <== NOT EXECUTED
1290fd: 58 pop %eax <== NOT EXECUTED
1290fe: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED
129101: 68 bb 37 16 00 push $0x1637bb <== NOT EXECUTED
129106: e8 a9 15 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" blocks per block: %zd\n", fs->blocks_per_block);
12910b: 59 pop %ecx <== NOT EXECUTED
12910c: 5e pop %esi <== NOT EXECUTED
12910d: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED
129110: 68 d4 37 16 00 push $0x1637d4 <== NOT EXECUTED
129115: e8 9a 15 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" singly blocks: %zd\n", fs->block_map_singly_blocks);
12911a: 58 pop %eax <== NOT EXECUTED
12911b: 5a pop %edx <== NOT EXECUTED
12911c: ff 73 34 pushl 0x34(%ebx) <== NOT EXECUTED
12911f: 68 ed 37 16 00 push $0x1637ed <== NOT EXECUTED
129124: e8 8b 15 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" doublly blocks: %zd\n", fs->block_map_doubly_blocks);
129129: 5e pop %esi <== NOT EXECUTED
12912a: 5f pop %edi <== NOT EXECUTED
12912b: ff 73 38 pushl 0x38(%ebx) <== NOT EXECUTED
12912e: 68 06 38 16 00 push $0x163806 <== NOT EXECUTED
129133: e8 7c 15 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" max. held buffers: %" PRId32 "\n", fs->max_held_buffers);
129138: 5a pop %edx <== NOT EXECUTED
129139: 59 pop %ecx <== NOT EXECUTED
12913a: ff 73 3c pushl 0x3c(%ebx) <== NOT EXECUTED
12913d: 68 1f 38 16 00 push $0x16381f <== NOT EXECUTED
129142: e8 6d 15 02 00 call 14a6b4 <printf> <== NOT EXECUTED
129147: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
12914a: 6a 00 push $0x0 <== NOT EXECUTED
12914c: 6a 00 push $0x0 <== NOT EXECUTED
12914e: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
129151: ff 30 pushl (%eax) <== NOT EXECUTED
129153: e8 a0 9d fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rtems_rfs_group_usage (fs, &blocks, &inodes);
129158: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
12915b: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
12915e: 50 push %eax <== NOT EXECUTED
12915f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
129162: 50 push %eax <== NOT EXECUTED
129163: 53 push %ebx <== NOT EXECUTED
129164: e8 5f 76 01 00 call 1407c8 <rtems_rfs_group_usage> <== NOT EXECUTED
rtems_rfs_shell_unlock_rfs (fs);
129169: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12916b: e8 e8 f2 ff ff call 128458 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
bpcent = (blocks * 1000) / rtems_rfs_fs_blocks (fs);
129170: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED
129173: 8d 04 b6 lea (%esi,%esi,4),%eax <== NOT EXECUTED
129176: 8d 04 80 lea (%eax,%eax,4),%eax <== NOT EXECUTED
129179: 8d 0c 80 lea (%eax,%eax,4),%ecx <== NOT EXECUTED
12917c: c1 e1 03 shl $0x3,%ecx <== NOT EXECUTED
12917f: 89 c8 mov %ecx,%eax <== NOT EXECUTED
129181: 31 d2 xor %edx,%edx <== NOT EXECUTED
129183: f7 73 04 divl 0x4(%ebx) <== NOT EXECUTED
129186: 89 c1 mov %eax,%ecx <== NOT EXECUTED
ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs);
129188: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12918b: 8d 04 80 lea (%eax,%eax,4),%eax <== NOT EXECUTED
12918e: 8d 04 80 lea (%eax,%eax,4),%eax <== NOT EXECUTED
129191: 8d 3c 80 lea (%eax,%eax,4),%edi <== NOT EXECUTED
129194: c1 e7 03 shl $0x3,%edi <== NOT EXECUTED
129197: 89 f8 mov %edi,%eax <== NOT EXECUTED
129199: 31 d2 xor %edx,%edx <== NOT EXECUTED
12919b: f7 73 10 divl 0x10(%ebx) <== NOT EXECUTED
12919e: 89 c7 mov %eax,%edi <== NOT EXECUTED
printf (" blocks used: %zd (%d.%d%%)\n",
1291a0: bb 0a 00 00 00 mov $0xa,%ebx <== NOT EXECUTED
1291a5: 89 c8 mov %ecx,%eax <== NOT EXECUTED
1291a7: 99 cltd <== NOT EXECUTED
1291a8: f7 fb idiv %ebx <== NOT EXECUTED
1291aa: 52 push %edx <== NOT EXECUTED
1291ab: bb 67 66 66 66 mov $0x66666667,%ebx <== NOT EXECUTED
1291b0: 89 c8 mov %ecx,%eax <== NOT EXECUTED
1291b2: f7 eb imul %ebx <== NOT EXECUTED
1291b4: c1 fa 02 sar $0x2,%edx <== NOT EXECUTED
1291b7: c1 f9 1f sar $0x1f,%ecx <== NOT EXECUTED
1291ba: 29 ca sub %ecx,%edx <== NOT EXECUTED
1291bc: 52 push %edx <== NOT EXECUTED
1291bd: 56 push %esi <== NOT EXECUTED
1291be: 68 88 3c 16 00 push $0x163c88 <== NOT EXECUTED
1291c3: e8 ec 14 02 00 call 14a6b4 <printf> <== NOT EXECUTED
blocks, bpcent / 10, bpcent % 10);
printf (" inodes used: %zd (%d.%d%%)\n",
1291c8: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1291cb: 89 f8 mov %edi,%eax <== NOT EXECUTED
1291cd: f7 eb imul %ebx <== NOT EXECUTED
1291cf: c1 fa 02 sar $0x2,%edx <== NOT EXECUTED
1291d2: 89 f8 mov %edi,%eax <== NOT EXECUTED
1291d4: c1 f8 1f sar $0x1f,%eax <== NOT EXECUTED
1291d7: 29 c2 sub %eax,%edx <== NOT EXECUTED
1291d9: 8d 04 92 lea (%edx,%edx,4),%eax <== NOT EXECUTED
1291dc: d1 e0 shl %eax <== NOT EXECUTED
1291de: 29 c7 sub %eax,%edi <== NOT EXECUTED
1291e0: 57 push %edi <== NOT EXECUTED
1291e1: 52 push %edx <== NOT EXECUTED
1291e2: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1291e5: 68 ac 3c 16 00 push $0x163cac <== NOT EXECUTED
1291ea: e8 c5 14 02 00 call 14a6b4 <printf> <== NOT EXECUTED
inodes, ipcent / 10, ipcent % 10);
return 0;
}
1291ef: 31 c0 xor %eax,%eax <== NOT EXECUTED
1291f1: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1291f4: 5b pop %ebx <== NOT EXECUTED
1291f5: 5e pop %esi <== NOT EXECUTED
1291f6: 5f pop %edi <== NOT EXECUTED
1291f7: c9 leave <== NOT EXECUTED
1291f8: c3 ret <== NOT EXECUTED
00128acc <rtems_rfs_shell_dir>:
return 0;
}
static int
rtems_rfs_shell_dir (rtems_rfs_file_system* fs, int argc, char *argv[])
{
128acc: 55 push %ebp <== NOT EXECUTED
128acd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128acf: 57 push %edi <== NOT EXECUTED
128ad0: 56 push %esi <== NOT EXECUTED
128ad1: 53 push %ebx <== NOT EXECUTED
128ad2: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
bool state;
int entry;
int b;
int rc;
if (argc <= 1)
128ad5: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
128ad9: 0f 8e 19 03 00 00 jle 128df8 <rtems_rfs_shell_dir+0x32c><== NOT EXECUTED
{
printf ("error: no block number provided\n");
return 1;
}
block = strtoul (argv[1], 0, 0);
128adf: 50 push %eax <== NOT EXECUTED
128ae0: 6a 00 push $0x0 <== NOT EXECUTED
128ae2: 6a 00 push $0x0 <== NOT EXECUTED
128ae4: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
128ae7: ff 70 04 pushl 0x4(%eax) <== NOT EXECUTED
128aea: e8 55 50 02 00 call 14db44 <strtoul> <== NOT EXECUTED
128aef: 89 c3 mov %eax,%ebx <== NOT EXECUTED
128af1: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
128af4: 6a 00 push $0x0 <== NOT EXECUTED
128af6: 6a 00 push $0x0 <== NOT EXECUTED
128af8: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
128afb: 8b 42 7c mov 0x7c(%edx),%eax <== NOT EXECUTED
128afe: ff 30 pushl (%eax) <== NOT EXECUTED
128b00: e8 f3 a3 fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
128b05: 8d 45 e7 lea -0x19(%ebp),%eax <== NOT EXECUTED
128b08: 50 push %eax <== NOT EXECUTED
128b09: 53 push %ebx <== NOT EXECUTED
128b0a: 6a 00 push $0x0 <== NOT EXECUTED
128b0c: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
128b0f: e8 1c 7d 01 00 call 140830 <rtems_rfs_group_bitmap_test><== NOT EXECUTED
128b14: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
128b16: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
128b19: 85 c0 test %eax,%eax <== NOT EXECUTED
128b1b: 0f 8f d3 01 00 00 jg 128cf4 <rtems_rfs_shell_dir+0x228><== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
128b21: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
128b25: 0f 85 75 02 00 00 jne 128da0 <rtems_rfs_shell_dir+0x2d4><== NOT EXECUTED
128b2b: b8 99 11 16 00 mov $0x161199,%eax <== NOT EXECUTED
128b30: 57 push %edi <== NOT EXECUTED
128b31: 50 push %eax <== NOT EXECUTED
128b32: 53 push %ebx <== NOT EXECUTED
128b33: 68 61 36 16 00 push $0x163661 <== NOT EXECUTED
128b38: e8 77 1b 02 00 call 14a6b4 <printf> <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
128b3d: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
128b41: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
128b48: 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);
128b4f: 6a 01 push $0x1 <== NOT EXECUTED
128b51: 53 push %ebx <== NOT EXECUTED
128b52: 8d 4d d8 lea -0x28(%ebp),%ecx <== NOT EXECUTED
128b55: 51 push %ecx <== NOT EXECUTED
128b56: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
128b59: e8 86 4a 01 00 call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
128b5e: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
128b60: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
128b63: 85 c0 test %eax,%eax <== NOT EXECUTED
128b65: 0f 8f 3f 02 00 00 jg 128daa <rtems_rfs_shell_dir+0x2de><== NOT EXECUTED
return 1;
}
b = 0;
entry = 1;
data = rtems_rfs_buffer_data (&buffer);
128b6b: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
128b6e: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
while (b < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE - 1))
128b71: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
128b74: 83 7a 08 0b cmpl $0xb,0x8(%edx) <== NOT EXECUTED
128b78: 0f 84 ea 01 00 00 je 128d68 <rtems_rfs_shell_dir+0x29c><== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
128b7e: 8a 0e mov (%esi),%cl <== NOT EXECUTED
128b80: 8a 5e 01 mov 0x1(%esi),%bl <== NOT EXECUTED
128b83: 0f b6 7e 02 movzbl 0x2(%esi),%edi <== NOT EXECUTED
128b87: 8a 46 03 mov 0x3(%esi),%al <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
128b8a: 0f b6 56 08 movzbl 0x8(%esi),%edx <== NOT EXECUTED
128b8e: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
128b91: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
128b94: 0f b6 56 09 movzbl 0x9(%esi),%edx <== NOT EXECUTED
128b98: 09 55 d4 or %edx,-0x2c(%ebp) <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
128b9b: 81 7d d4 ff ff 00 00 cmpl $0xffff,-0x2c(%ebp) <== NOT EXECUTED
128ba2: 0f 84 c0 01 00 00 je 128d68 <rtems_rfs_shell_dir+0x29c><== NOT EXECUTED
break;
if ((elength < RTEMS_RFS_DIR_ENTRY_SIZE) ||
128ba8: 83 7d d4 09 cmpl $0x9,-0x2c(%ebp) <== NOT EXECUTED
128bac: 0f 8e 9b 01 00 00 jle 128d4d <rtems_rfs_shell_dir+0x281><== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
128bb2: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
128bb5: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
128bb8: 09 c8 or %ecx,%eax <== NOT EXECUTED
128bba: 0f b6 db movzbl %bl,%ebx <== NOT EXECUTED
128bbd: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
128bc0: 09 d8 or %ebx,%eax <== NOT EXECUTED
128bc2: 81 e7 ff 00 00 00 and $0xff,%edi <== NOT EXECUTED
128bc8: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
128bcb: 09 f8 or %edi,%eax <== NOT EXECUTED
128bcd: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED
128bd4: c7 45 c8 01 00 00 00 movl $0x1,-0x38(%ebp) <== NOT EXECUTED
128bdb: 90 nop <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
break;
if ((elength < RTEMS_RFS_DIR_ENTRY_SIZE) ||
(elength >= rtems_rfs_fs_max_name (fs)))
128bdc: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
128bdf: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
128be2: 3b 51 18 cmp 0x18(%ecx),%edx <== NOT EXECUTED
128be5: 0f 83 69 01 00 00 jae 128d54 <rtems_rfs_shell_dir+0x288><== 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)))
128beb: 85 c0 test %eax,%eax <== NOT EXECUTED
128bed: 0f 84 22 02 00 00 je 128e15 <rtems_rfs_shell_dir+0x349><== NOT EXECUTED
128bf3: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED
128bf6: 39 41 10 cmp %eax,0x10(%ecx) <== NOT EXECUTED
128bf9: 0f 86 16 02 00 00 jbe 128e15 <rtems_rfs_shell_dir+0x349><== NOT EXECUTED
{
printf (" %5d: entry ino appears corrupt: ino=%" PRId32 "\n", entry, eino);
break;
}
length = elength - RTEMS_RFS_DIR_ENTRY_SIZE;
128bff: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
128c02: 83 ea 0a sub $0xa,%edx <== NOT EXECUTED
128c05: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
printf (" %5d: %04x inode=%-6" PRIu32 " hash=%08" PRIx32 " name[%03u]=",
128c08: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128c0b: 52 push %edx <== NOT EXECUTED
128c0c: 0f b6 56 04 movzbl 0x4(%esi),%edx <== NOT EXECUTED
128c10: c1 e2 18 shl $0x18,%edx <== NOT EXECUTED
128c13: 0f b6 4e 05 movzbl 0x5(%esi),%ecx <== NOT EXECUTED
128c17: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
128c1a: 09 ca or %ecx,%edx <== NOT EXECUTED
128c1c: 0f b6 4e 07 movzbl 0x7(%esi),%ecx <== NOT EXECUTED
128c20: 09 ca or %ecx,%edx <== NOT EXECUTED
128c22: 0f b6 4e 06 movzbl 0x6(%esi),%ecx <== NOT EXECUTED
128c26: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
128c29: 09 ca or %ecx,%edx <== NOT EXECUTED
128c2b: 52 push %edx <== NOT EXECUTED
128c2c: 50 push %eax <== NOT EXECUTED
128c2d: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
128c30: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
128c33: 68 58 3c 16 00 push $0x163c58 <== NOT EXECUTED
128c38: e8 77 1a 02 00 call 14a6b4 <printf> <== NOT EXECUTED
128c3d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
128c40: 8b 7d d0 mov -0x30(%ebp),%edi <== NOT EXECUTED
128c43: 83 ff 32 cmp $0x32,%edi <== NOT EXECUTED
128c46: 0f 8e d8 00 00 00 jle 128d24 <rtems_rfs_shell_dir+0x258><== NOT EXECUTED
128c4c: bf 32 00 00 00 mov $0x32,%edi <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
128c51: 31 db xor %ebx,%ebx <== NOT EXECUTED
128c53: 90 nop <== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
128c54: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128c57: 0f b6 44 1e 0a movzbl 0xa(%esi,%ebx,1),%eax <== NOT EXECUTED
128c5c: 50 push %eax <== NOT EXECUTED
128c5d: e8 b2 1b 02 00 call 14a814 <putchar> <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
128c62: 43 inc %ebx <== NOT EXECUTED
128c63: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128c66: 39 df cmp %ebx,%edi <== NOT EXECUTED
128c68: 7f ea jg 128c54 <rtems_rfs_shell_dir+0x188><== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
128c6a: 39 7d d0 cmp %edi,-0x30(%ebp) <== NOT EXECUTED
128c6d: 0f 8f c5 00 00 00 jg 128d38 <rtems_rfs_shell_dir+0x26c><== NOT EXECUTED
printf ("...");
printf ("\n");
128c73: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128c76: 6a 0a push $0xa <== NOT EXECUTED
128c78: e8 97 1b 02 00 call 14a814 <putchar> <== NOT EXECUTED
b += elength;
128c7d: 8b 4d d4 mov -0x2c(%ebp),%ecx <== NOT EXECUTED
128c80: 01 4d cc add %ecx,-0x34(%ebp) <== 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))
128c83: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
128c86: 8b 42 08 mov 0x8(%edx),%eax <== NOT EXECUTED
128c89: 83 e8 0b sub $0xb,%eax <== NOT EXECUTED
128c8c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128c8f: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED
128c92: 0f 83 d0 00 00 00 jae 128d68 <rtems_rfs_shell_dir+0x29c><== NOT EXECUTED
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
printf ("...");
printf ("\n");
b += elength;
data += elength;
128c98: 03 75 d4 add -0x2c(%ebp),%esi <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
128c9b: 8a 0e mov (%esi),%cl <== NOT EXECUTED
128c9d: 8a 5e 01 mov 0x1(%esi),%bl <== NOT EXECUTED
128ca0: 0f b6 7e 02 movzbl 0x2(%esi),%edi <== NOT EXECUTED
128ca4: 8a 46 03 mov 0x3(%esi),%al <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
128ca7: 0f b6 56 08 movzbl 0x8(%esi),%edx <== NOT EXECUTED
128cab: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
128cae: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
128cb1: 0f b6 56 09 movzbl 0x9(%esi),%edx <== NOT EXECUTED
128cb5: 09 55 d4 or %edx,-0x2c(%ebp) <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
128cb8: 81 7d d4 ff ff 00 00 cmpl $0xffff,-0x2c(%ebp) <== NOT EXECUTED
128cbf: 0f 84 a3 00 00 00 je 128d68 <rtems_rfs_shell_dir+0x29c><== NOT EXECUTED
printf ("...");
printf ("\n");
b += elength;
data += elength;
entry++;
128cc5: ff 45 c8 incl -0x38(%ebp) <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
break;
if ((elength < RTEMS_RFS_DIR_ENTRY_SIZE) ||
128cc8: 83 7d d4 09 cmpl $0x9,-0x2c(%ebp) <== NOT EXECUTED
128ccc: 0f 8e 82 00 00 00 jle 128d54 <rtems_rfs_shell_dir+0x288><== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
128cd2: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
128cd5: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
128cd8: 09 c8 or %ecx,%eax <== NOT EXECUTED
128cda: 0f b6 db movzbl %bl,%ebx <== NOT EXECUTED
128cdd: c1 e3 10 shl $0x10,%ebx <== NOT EXECUTED
128ce0: 09 d8 or %ebx,%eax <== NOT EXECUTED
128ce2: 81 e7 ff 00 00 00 and $0xff,%edi <== NOT EXECUTED
128ce8: c1 e7 08 shl $0x8,%edi <== NOT EXECUTED
128ceb: 09 f8 or %edi,%eax <== NOT EXECUTED
128ced: e9 ea fe ff ff jmp 128bdc <rtems_rfs_shell_dir+0x110><== NOT EXECUTED
128cf2: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
if (rc > 0)
{
rtems_rfs_shell_unlock_rfs (fs);
128cf4: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
128cf7: e8 5c f7 ff ff call 128458 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
128cfc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128cff: 56 push %esi <== NOT EXECUTED
128d00: e8 f7 33 02 00 call 14c0fc <strerror> <== NOT EXECUTED
128d05: 50 push %eax <== NOT EXECUTED
128d06: 56 push %esi <== NOT EXECUTED
128d07: 53 push %ebx <== NOT EXECUTED
128d08: 68 9c 3b 16 00 push $0x163b9c <== NOT EXECUTED
128d0d: e8 a2 19 02 00 call 14a6b4 <printf> <== NOT EXECUTED
128d12: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
128d17: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
}
rtems_rfs_shell_unlock_rfs (fs);
return 0;
}
128d1a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128d1d: 5b pop %ebx <== NOT EXECUTED
128d1e: 5e pop %esi <== NOT EXECUTED
128d1f: 5f pop %edi <== NOT EXECUTED
128d20: c9 leave <== NOT EXECUTED
128d21: c3 ret <== NOT EXECUTED
128d22: 66 90 xchg %ax,%ax <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
128d24: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED
128d27: 85 c9 test %ecx,%ecx <== NOT EXECUTED
128d29: 0f 8f 22 ff ff ff jg 128c51 <rtems_rfs_shell_dir+0x185><== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
128d2f: 39 7d d0 cmp %edi,-0x30(%ebp) <== NOT EXECUTED
128d32: 0f 8e 3b ff ff ff jle 128c73 <rtems_rfs_shell_dir+0x1a7><== NOT EXECUTED
printf ("...");
128d38: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128d3b: 68 e2 1e 16 00 push $0x161ee2 <== NOT EXECUTED
128d40: e8 6f 19 02 00 call 14a6b4 <printf> <== NOT EXECUTED
128d45: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128d48: e9 26 ff ff ff jmp 128c73 <rtems_rfs_shell_dir+0x1a7><== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
break;
if ((elength < RTEMS_RFS_DIR_ENTRY_SIZE) ||
128d4d: c7 45 c8 01 00 00 00 movl $0x1,-0x38(%ebp) <== NOT EXECUTED
(elength >= rtems_rfs_fs_max_name (fs)))
{
printf (" %5d: entry length appears corrupt: %d\n", entry, elength);
128d54: 56 push %esi <== NOT EXECUTED
128d55: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
128d58: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
128d5b: 68 04 3c 16 00 push $0x163c04 <== NOT EXECUTED
128d60: e8 4f 19 02 00 call 14a6b4 <printf> <== NOT EXECUTED
break;
128d65: 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);
128d68: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128d6b: 8d 4d d8 lea -0x28(%ebp),%ecx <== NOT EXECUTED
128d6e: 51 push %ecx <== NOT EXECUTED
128d6f: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
128d72: e8 69 47 01 00 call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
128d77: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
128d7b: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
128d82: 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);
128d89: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
128d8c: e8 c7 f6 ff ff call 128458 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
128d91: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
128d93: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
128d96: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128d99: 5b pop %ebx <== NOT EXECUTED
128d9a: 5e pop %esi <== NOT EXECUTED
128d9b: 5f pop %edi <== NOT EXECUTED
128d9c: c9 leave <== NOT EXECUTED
128d9d: c3 ret <== NOT EXECUTED
128d9e: 66 90 xchg %ax,%ax <== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
128da0: b8 57 36 16 00 mov $0x163657,%eax <== NOT EXECUTED
128da5: e9 86 fd ff ff jmp 128b30 <rtems_rfs_shell_dir+0x64><== 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);
128daa: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128dad: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED
128db0: 50 push %eax <== NOT EXECUTED
128db1: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
128db4: e8 27 47 01 00 call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
128db9: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
128dbd: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
128dc4: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_shell_unlock_rfs (fs);
128dcb: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
128dce: e8 85 f6 ff ff call 128458 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
128dd3: 89 34 24 mov %esi,(%esp) <== NOT EXECUTED
128dd6: e8 21 33 02 00 call 14c0fc <strerror> <== NOT EXECUTED
128ddb: 50 push %eax <== NOT EXECUTED
128ddc: 56 push %esi <== NOT EXECUTED
128ddd: 53 push %ebx <== NOT EXECUTED
128dde: 68 cc 3b 16 00 push $0x163bcc <== NOT EXECUTED
128de3: e8 cc 18 02 00 call 14a6b4 <printf> <== NOT EXECUTED
128de8: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
128ded: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
}
rtems_rfs_shell_unlock_rfs (fs);
return 0;
}
128df0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128df3: 5b pop %ebx <== NOT EXECUTED
128df4: 5e pop %esi <== NOT EXECUTED
128df5: 5f pop %edi <== NOT EXECUTED
128df6: c9 leave <== NOT EXECUTED
128df7: c3 ret <== NOT EXECUTED
int b;
int rc;
if (argc <= 1)
{
printf ("error: no block number provided\n");
128df8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128dfb: 68 7c 3b 16 00 push $0x163b7c <== NOT EXECUTED
128e00: e8 c3 1a 02 00 call 14a8c8 <puts> <== NOT EXECUTED
128e05: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
128e0a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_shell_unlock_rfs (fs);
return 0;
}
128e0d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128e10: 5b pop %ebx <== NOT EXECUTED
128e11: 5e pop %esi <== NOT EXECUTED
128e12: 5f pop %edi <== NOT EXECUTED
128e13: c9 leave <== NOT EXECUTED
128e14: c3 ret <== NOT EXECUTED
break;
}
if ((eino < RTEMS_RFS_ROOT_INO) || (eino >= rtems_rfs_fs_inodes (fs)))
{
printf (" %5d: entry ino appears corrupt: ino=%" PRId32 "\n", entry, eino);
128e15: 53 push %ebx <== NOT EXECUTED
128e16: 50 push %eax <== NOT EXECUTED
128e17: ff 75 c8 pushl -0x38(%ebp) <== NOT EXECUTED
128e1a: 68 2c 3c 16 00 push $0x163c2c <== NOT EXECUTED
128e1f: e8 90 18 02 00 call 14a6b4 <printf> <== NOT EXECUTED
break;
128e24: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128e27: e9 3c ff ff ff jmp 128d68 <rtems_rfs_shell_dir+0x29c><== NOT EXECUTED
00128954 <rtems_rfs_shell_group>:
return 0;
}
static int
rtems_rfs_shell_group (rtems_rfs_file_system* fs, int argc, char *argv[])
{
128954: 55 push %ebp <== NOT EXECUTED
128955: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128957: 57 push %edi <== NOT EXECUTED
128958: 56 push %esi <== NOT EXECUTED
128959: 53 push %ebx <== NOT EXECUTED
12895a: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
12895d: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
128960: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
128963: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
int start;
int end;
int g;
start = 0;
end = fs->group_count - 1;
128966: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
128969: 89 c2 mov %eax,%edx <== NOT EXECUTED
switch (argc)
12896b: 83 f9 02 cmp $0x2,%ecx <== NOT EXECUTED
12896e: 0f 84 9c 00 00 00 je 128a10 <rtems_rfs_shell_group+0xbc><== NOT EXECUTED
128974: 83 f9 03 cmp $0x3,%ecx <== NOT EXECUTED
128977: 74 5b je 1289d4 <rtems_rfs_shell_group+0x80><== NOT EXECUTED
128979: 49 dec %ecx <== NOT EXECUTED
12897a: 74 20 je 12899c <rtems_rfs_shell_group+0x48><== NOT EXECUTED
case 3:
start = strtoul (argv[1], 0, 0);
end = strtoul (argv[2], 0, 0);
break;
default:
printf ("error: too many arguments.\n");
12897c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12897f: 68 3c 36 16 00 push $0x16363c <== NOT EXECUTED
128984: e8 3f 1f 02 00 call 14a8c8 <puts> <== NOT EXECUTED
128989: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
12898e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_shell_unlock_rfs (fs);
return 0;
}
128991: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128994: 5b pop %ebx <== NOT EXECUTED
128995: 5e pop %esi <== NOT EXECUTED
128996: 5f pop %edi <== NOT EXECUTED
128997: c9 leave <== NOT EXECUTED
128998: c3 ret <== NOT EXECUTED
128999: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
int start;
int end;
int g;
start = 0;
end = fs->group_count - 1;
12899c: 8d 48 ff lea -0x1(%eax),%ecx <== NOT EXECUTED
12899f: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
1289a2: 31 f6 xor %esi,%esi <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
return 1;
}
if ((start < 0) || (end < 0) ||
1289a4: 8b 7d dc mov -0x24(%ebp),%edi <== NOT EXECUTED
1289a7: 85 ff test %edi,%edi <== NOT EXECUTED
1289a9: 78 61 js 128a0c <rtems_rfs_shell_group+0xb8><== NOT EXECUTED
1289ab: 39 c6 cmp %eax,%esi <== NOT EXECUTED
1289ad: 7d 05 jge 1289b4 <rtems_rfs_shell_group+0x60><== NOT EXECUTED
1289af: 39 45 dc cmp %eax,-0x24(%ebp) <== NOT EXECUTED
1289b2: 7c 74 jl 128a28 <rtems_rfs_shell_group+0xd4><== NOT EXECUTED
(start >= fs->group_count) || (end >= fs->group_count))
{
printf ("error: group out of range (0->%d).\n", fs->group_count);
1289b4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1289b7: 52 push %edx <== NOT EXECUTED
1289b8: 68 10 3b 16 00 push $0x163b10 <== NOT EXECUTED
1289bd: e8 f2 1c 02 00 call 14a6b4 <printf> <== NOT EXECUTED
1289c2: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
1289c7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_shell_unlock_rfs (fs);
return 0;
}
1289ca: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1289cd: 5b pop %ebx <== NOT EXECUTED
1289ce: 5e pop %esi <== NOT EXECUTED
1289cf: 5f pop %edi <== NOT EXECUTED
1289d0: c9 leave <== NOT EXECUTED
1289d1: c3 ret <== NOT EXECUTED
1289d2: 66 90 xchg %ax,%ax <== NOT EXECUTED
break;
case 2:
start = end = strtoul (argv[1], 0, 0);
break;
case 3:
start = strtoul (argv[1], 0, 0);
1289d4: 50 push %eax <== NOT EXECUTED
1289d5: 6a 00 push $0x0 <== NOT EXECUTED
1289d7: 6a 00 push $0x0 <== NOT EXECUTED
1289d9: ff 77 04 pushl 0x4(%edi) <== NOT EXECUTED
1289dc: e8 63 51 02 00 call 14db44 <strtoul> <== NOT EXECUTED
1289e1: 89 c6 mov %eax,%esi <== NOT EXECUTED
end = strtoul (argv[2], 0, 0);
1289e3: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1289e6: 6a 00 push $0x0 <== NOT EXECUTED
1289e8: 6a 00 push $0x0 <== NOT EXECUTED
1289ea: ff 77 08 pushl 0x8(%edi) <== NOT EXECUTED
1289ed: e8 52 51 02 00 call 14db44 <strtoul> <== NOT EXECUTED
1289f2: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
break;
1289f5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
return 1;
}
if ((start < 0) || (end < 0) ||
1289f8: 85 f6 test %esi,%esi <== NOT EXECUTED
1289fa: 0f 88 c4 00 00 00 js 128ac4 <rtems_rfs_shell_group+0x170><== NOT EXECUTED
128a00: 8b 43 20 mov 0x20(%ebx),%eax <== NOT EXECUTED
128a03: 89 c2 mov %eax,%edx <== NOT EXECUTED
128a05: 8b 7d dc mov -0x24(%ebp),%edi <== NOT EXECUTED
128a08: 85 ff test %edi,%edi <== NOT EXECUTED
128a0a: 79 9f jns 1289ab <rtems_rfs_shell_group+0x57><== NOT EXECUTED
128a0c: 89 c2 mov %eax,%edx <== NOT EXECUTED
128a0e: eb a4 jmp 1289b4 <rtems_rfs_shell_group+0x60><== NOT EXECUTED
switch (argc)
{
case 1:
break;
case 2:
start = end = strtoul (argv[1], 0, 0);
128a10: 52 push %edx <== NOT EXECUTED
128a11: 6a 00 push $0x0 <== NOT EXECUTED
128a13: 6a 00 push $0x0 <== NOT EXECUTED
128a15: ff 77 04 pushl 0x4(%edi) <== NOT EXECUTED
128a18: e8 27 51 02 00 call 14db44 <strtoul> <== NOT EXECUTED
128a1d: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
128a20: 89 c6 mov %eax,%esi <== NOT EXECUTED
break;
128a22: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128a25: eb d1 jmp 1289f8 <rtems_rfs_shell_group+0xa4><== NOT EXECUTED
128a27: 90 nop <== NOT EXECUTED
128a28: 51 push %ecx <== NOT EXECUTED
128a29: 6a 00 push $0x0 <== NOT EXECUTED
128a2b: 6a 00 push $0x0 <== NOT EXECUTED
128a2d: 8b 43 7c mov 0x7c(%ebx),%eax <== NOT EXECUTED
128a30: ff 30 pushl (%eax) <== NOT EXECUTED
128a32: e8 c1 a4 fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
128a37: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128a3a: 3b 75 dc cmp -0x24(%ebp),%esi <== NOT EXECUTED
128a3d: 7f 71 jg 128ab0 <rtems_rfs_shell_group+0x15c><== NOT EXECUTED
128a3f: 8d 04 b6 lea (%esi,%esi,4),%eax <== NOT EXECUTED
128a42: c1 e0 04 shl $0x4,%eax <== NOT EXECUTED
128a45: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
128a48: 89 75 e4 mov %esi,-0x1c(%ebp) <== NOT EXECUTED
128a4b: 89 5d d8 mov %ebx,-0x28(%ebp) <== NOT EXECUTED
128a4e: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
128a50: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED
128a53: 8b 45 d8 mov -0x28(%ebp),%eax <== NOT EXECUTED
128a56: 03 48 1c add 0x1c(%eax),%ecx <== NOT EXECUTED
size_t blocks;
size_t inodes;
blocks = group->size - rtems_rfs_bitmap_map_free (&group->block_bitmap);
128a59: 8b 79 04 mov 0x4(%ecx),%edi <== NOT EXECUTED
128a5c: 89 fe mov %edi,%esi <== NOT EXECUTED
128a5e: 2b 71 18 sub 0x18(%ecx),%esi <== NOT EXECUTED
inodes = fs->group_inodes - rtems_rfs_bitmap_map_free (&group->inode_bitmap);
128a61: 8b 40 28 mov 0x28(%eax),%eax <== NOT EXECUTED
128a64: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
128a67: 89 c3 mov %eax,%ebx <== NOT EXECUTED
128a69: 2b 59 3c sub 0x3c(%ecx),%ebx <== NOT EXECUTED
printf (" %4d: base=%-7" PRIu32 " size=%-6zu blocks=%-5zu (%3zu%%) inode=%-5zu (%3zu%%)\n",
128a6c: 8d 04 9b lea (%ebx,%ebx,4),%eax <== NOT EXECUTED
128a6f: 8d 04 80 lea (%eax,%eax,4),%eax <== NOT EXECUTED
128a72: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
128a75: 31 d2 xor %edx,%edx <== NOT EXECUTED
128a77: f7 75 d4 divl -0x2c(%ebp) <== NOT EXECUTED
128a7a: 50 push %eax <== NOT EXECUTED
128a7b: 53 push %ebx <== NOT EXECUTED
128a7c: 8d 04 b6 lea (%esi,%esi,4),%eax <== NOT EXECUTED
128a7f: 8d 04 80 lea (%eax,%eax,4),%eax <== NOT EXECUTED
128a82: c1 e0 02 shl $0x2,%eax <== NOT EXECUTED
128a85: 31 d2 xor %edx,%edx <== NOT EXECUTED
128a87: f7 f7 div %edi <== NOT EXECUTED
128a89: 50 push %eax <== NOT EXECUTED
128a8a: 56 push %esi <== NOT EXECUTED
128a8b: 57 push %edi <== NOT EXECUTED
128a8c: ff 31 pushl (%ecx) <== NOT EXECUTED
128a8e: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
128a91: 68 34 3b 16 00 push $0x163b34 <== NOT EXECUTED
128a96: e8 19 1c 02 00 call 14a6b4 <printf> <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
128a9b: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED
128a9e: 83 45 e0 50 addl $0x50,-0x20(%ebp) <== NOT EXECUTED
128aa2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
128aa5: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
128aa8: 39 4d e4 cmp %ecx,-0x1c(%ebp) <== NOT EXECUTED
128aab: 7e a3 jle 128a50 <rtems_rfs_shell_group+0xfc><== NOT EXECUTED
128aad: 8b 5d d8 mov -0x28(%ebp),%ebx <== NOT EXECUTED
g, group->base, group->size,
blocks, (blocks * 100) / group->size,
inodes, (inodes * 100) / fs->group_inodes);
}
rtems_rfs_shell_unlock_rfs (fs);
128ab0: 89 d8 mov %ebx,%eax <== NOT EXECUTED
128ab2: e8 a1 f9 ff ff call 128458 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
128ab7: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
}
128ab9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128abc: 5b pop %ebx <== NOT EXECUTED
128abd: 5e pop %esi <== NOT EXECUTED
128abe: 5f pop %edi <== NOT EXECUTED
128abf: c9 leave <== NOT EXECUTED
128ac0: c3 ret <== NOT EXECUTED
128ac1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
return 1;
}
if ((start < 0) || (end < 0) ||
128ac4: 8b 53 20 mov 0x20(%ebx),%edx <== NOT EXECUTED
128ac7: e9 e8 fe ff ff jmp 1289b4 <rtems_rfs_shell_group+0x60><== NOT EXECUTED
00128478 <rtems_rfs_shell_inode>:
return 0;
}
static int
rtems_rfs_shell_inode (rtems_rfs_file_system* fs, int argc, char *argv[])
{
128478: 55 push %ebp <== NOT EXECUTED
128479: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12847b: 57 push %edi <== NOT EXECUTED
12847c: 56 push %esi <== NOT EXECUTED
12847d: 53 push %ebx <== NOT EXECUTED
12847e: 81 ec 8c 00 00 00 sub $0x8c,%esp <== NOT EXECUTED
128484: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
bool have_end;
int arg;
int b;
int rc;
total = fs->group_inodes * fs->group_count;
128487: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED
12848a: 0f af 46 28 imul 0x28(%esi),%eax <== NOT EXECUTED
12848e: 89 45 94 mov %eax,-0x6c(%ebp) <== NOT EXECUTED
start = RTEMS_RFS_ROOT_INO;
end = total - 1;
128491: 48 dec %eax <== NOT EXECUTED
128492: 89 45 88 mov %eax,-0x78(%ebp) <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
128495: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) <== NOT EXECUTED
128499: 0f 8e 3c 04 00 00 jle 1288db <rtems_rfs_shell_inode+0x463><== NOT EXECUTED
12849f: 8b 55 88 mov -0x78(%ebp),%edx <== NOT EXECUTED
1284a2: 89 55 8c mov %edx,-0x74(%ebp) <== NOT EXECUTED
1284a5: bb 01 00 00 00 mov $0x1,%ebx <== NOT EXECUTED
1284aa: 31 ff xor %edi,%edi <== NOT EXECUTED
1284ac: 31 d2 xor %edx,%edx <== NOT EXECUTED
1284ae: c6 85 77 ff ff ff 00 movb $0x0,-0x89(%ebp) <== NOT EXECUTED
1284b5: c6 85 7f ff ff ff 00 movb $0x0,-0x81(%ebp) <== NOT EXECUTED
1284bc: c6 45 87 00 movb $0x0,-0x79(%ebp) <== NOT EXECUTED
1284c0: c7 45 90 01 00 00 00 movl $0x1,-0x70(%ebp) <== NOT EXECUTED
1284c7: 89 75 80 mov %esi,-0x80(%ebp) <== NOT EXECUTED
1284ca: 89 d6 mov %edx,%esi <== NOT EXECUTED
1284cc: 8b 55 8c mov -0x74(%ebp),%edx <== NOT EXECUTED
1284cf: eb 2b jmp 1284fc <rtems_rfs_shell_inode+0x84><== NOT EXECUTED
1284d1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break;
}
}
else
{
if (have_end && have_start)
1284d4: 89 f1 mov %esi,%ecx <== NOT EXECUTED
1284d6: 84 c9 test %cl,%cl <== NOT EXECUTED
1284d8: 0f 85 98 00 00 00 jne 128576 <rtems_rfs_shell_inode+0xfe><== NOT EXECUTED
printf ("warning: option ignored: %s\n", argv[arg]);
else if (!have_start)
{
start = end = strtoul (argv[arg], 0, 0);
1284de: 52 push %edx <== NOT EXECUTED
1284df: 6a 00 push $0x0 <== NOT EXECUTED
1284e1: 6a 00 push $0x0 <== NOT EXECUTED
1284e3: 50 push %eax <== NOT EXECUTED
1284e4: e8 5b 56 02 00 call 14db44 <strtoul> <== NOT EXECUTED
1284e9: 89 c2 mov %eax,%edx <== NOT EXECUTED
1284eb: 89 45 90 mov %eax,-0x70(%ebp) <== NOT EXECUTED
1284ee: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
1284f3: 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++)
1284f6: 43 inc %ebx <== NOT EXECUTED
1284f7: 39 5d 0c cmp %ebx,0xc(%ebp) <== NOT EXECUTED
1284fa: 7e 32 jle 12852e <rtems_rfs_shell_inode+0xb6><== NOT EXECUTED
{
if (argv[arg][0] == '-')
1284fc: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
1284ff: 8b 04 99 mov (%ecx,%ebx,4),%eax <== NOT EXECUTED
128502: 80 38 2d cmpb $0x2d,(%eax) <== NOT EXECUTED
128505: 74 5d je 128564 <rtems_rfs_shell_inode+0xec><== NOT EXECUTED
break;
}
}
else
{
if (have_end && have_start)
128507: 89 f9 mov %edi,%ecx <== NOT EXECUTED
128509: 84 c9 test %cl,%cl <== NOT EXECUTED
12850b: 75 c7 jne 1284d4 <rtems_rfs_shell_inode+0x5c><== NOT EXECUTED
printf ("warning: option ignored: %s\n", argv[arg]);
else if (!have_start)
12850d: 89 f2 mov %esi,%edx <== NOT EXECUTED
12850f: 84 d2 test %dl,%dl <== NOT EXECUTED
128511: 74 cb je 1284de <rtems_rfs_shell_inode+0x66><== NOT EXECUTED
start = end = strtoul (argv[arg], 0, 0);
have_start = true;
}
else
{
end = strtoul (argv[arg], 0, 0);
128513: 57 push %edi <== NOT EXECUTED
128514: 6a 00 push $0x0 <== NOT EXECUTED
128516: 6a 00 push $0x0 <== NOT EXECUTED
128518: 50 push %eax <== NOT EXECUTED
128519: e8 26 56 02 00 call 14db44 <strtoul> <== NOT EXECUTED
12851e: 89 c2 mov %eax,%edx <== NOT EXECUTED
128520: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
128525: 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++)
128528: 43 inc %ebx <== NOT EXECUTED
128529: 39 5d 0c cmp %ebx,0xc(%ebp) <== NOT EXECUTED
12852c: 7f ce jg 1284fc <rtems_rfs_shell_inode+0x84><== NOT EXECUTED
12852e: 89 55 8c mov %edx,-0x74(%ebp) <== NOT EXECUTED
128531: 8b 75 80 mov -0x80(%ebp),%esi <== NOT EXECUTED
have_end = true;
}
}
}
if ((start >= total) || (end >= total))
128534: 8b 4d 90 mov -0x70(%ebp),%ecx <== NOT EXECUTED
128537: 39 4d 94 cmp %ecx,-0x6c(%ebp) <== NOT EXECUTED
12853a: 76 08 jbe 128544 <rtems_rfs_shell_inode+0xcc><== NOT EXECUTED
12853c: 8b 5d 8c mov -0x74(%ebp),%ebx <== NOT EXECUTED
12853f: 39 5d 94 cmp %ebx,-0x6c(%ebp) <== NOT EXECUTED
128542: 77 78 ja 1285bc <rtems_rfs_shell_inode+0x144><== NOT EXECUTED
{
printf ("error: inode out of range (0->%" PRId32 ").\n", total - 1);
128544: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128547: ff 75 88 pushl -0x78(%ebp) <== NOT EXECUTED
12854a: 68 24 3a 16 00 push $0x163a24 <== NOT EXECUTED
12854f: e8 60 21 02 00 call 14a6b4 <printf> <== NOT EXECUTED
128554: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
128559: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
rtems_rfs_shell_unlock_rfs (fs);
return 0;
}
12855c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12855f: 5b pop %ebx <== NOT EXECUTED
128560: 5e pop %esi <== NOT EXECUTED
128561: 5f pop %edi <== NOT EXECUTED
128562: c9 leave <== NOT EXECUTED
128563: c3 ret <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
{
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
128564: 8a 48 01 mov 0x1(%eax),%cl <== NOT EXECUTED
128567: 80 f9 65 cmp $0x65,%cl <== NOT EXECUTED
12856a: 74 44 je 1285b0 <rtems_rfs_shell_inode+0x138><== NOT EXECUTED
12856c: 80 f9 66 cmp $0x66,%cl <== NOT EXECUTED
12856f: 74 33 je 1285a4 <rtems_rfs_shell_inode+0x12c><== NOT EXECUTED
128571: 80 f9 61 cmp $0x61,%cl <== NOT EXECUTED
128574: 74 22 je 128598 <rtems_rfs_shell_inode+0x120><== NOT EXECUTED
}
}
else
{
if (have_end && have_start)
printf ("warning: option ignored: %s\n", argv[arg]);
128576: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128579: 50 push %eax <== NOT EXECUTED
12857a: 68 dd 35 16 00 push $0x1635dd <== NOT EXECUTED
12857f: 89 95 70 ff ff ff mov %edx,-0x90(%ebp) <== NOT EXECUTED
128585: e8 2a 21 02 00 call 14a6b4 <printf> <== NOT EXECUTED
break;
}
}
else
{
if (have_end && have_start)
12858a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12858d: 8b 95 70 ff ff ff mov -0x90(%ebp),%edx <== NOT EXECUTED
128593: e9 5e ff ff ff jmp 1284f6 <rtems_rfs_shell_inode+0x7e><== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
{
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
128598: c6 45 87 01 movb $0x1,-0x79(%ebp) <== NOT EXECUTED
12859c: e9 55 ff ff ff jmp 1284f6 <rtems_rfs_shell_inode+0x7e><== NOT EXECUTED
1285a1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
1285a4: c6 85 77 ff ff ff 01 movb $0x1,-0x89(%ebp) <== NOT EXECUTED
case 'e':
error_check_only = true;
break;
case 'f':
forced = true;
break;
1285ab: e9 46 ff ff ff jmp 1284f6 <rtems_rfs_shell_inode+0x7e><== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
{
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
1285b0: c6 85 7f ff ff ff 01 movb $0x1,-0x81(%ebp) <== NOT EXECUTED
1285b7: e9 3a ff ff ff jmp 1284f6 <rtems_rfs_shell_inode+0x7e><== 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);
1285bc: 53 push %ebx <== NOT EXECUTED
1285bd: 6a 00 push $0x0 <== NOT EXECUTED
1285bf: 6a 00 push $0x0 <== NOT EXECUTED
1285c1: 8b 46 7c mov 0x7c(%esi),%eax <== NOT EXECUTED
1285c4: ff 30 pushl (%eax) <== NOT EXECUTED
1285c6: e8 2d a9 fe ff call 112ef8 <rtems_semaphore_obtain><== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (ino = start; ino <= end; ino++)
1285cb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1285ce: 8b 45 8c mov -0x74(%ebp),%eax <== NOT EXECUTED
1285d1: 39 45 90 cmp %eax,-0x70(%ebp) <== NOT EXECUTED
1285d4: 0f 87 58 02 00 00 ja 128832 <rtems_rfs_shell_inode+0x3ba><== NOT EXECUTED
1285da: 8b 7d 90 mov -0x70(%ebp),%edi <== NOT EXECUTED
1285dd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
rtems_rfs_inode_handle inode;
bool allocated;
rc = rtems_rfs_group_bitmap_test (fs, true, ino, &allocated);
1285e0: 8d 55 e7 lea -0x19(%ebp),%edx <== NOT EXECUTED
1285e3: 52 push %edx <== NOT EXECUTED
1285e4: 57 push %edi <== NOT EXECUTED
1285e5: 6a 01 push $0x1 <== NOT EXECUTED
1285e7: 56 push %esi <== NOT EXECUTED
1285e8: e8 43 82 01 00 call 140830 <rtems_rfs_group_bitmap_test><== NOT EXECUTED
if (rc > 0)
1285ed: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1285f0: 85 c0 test %eax,%eax <== NOT EXECUTED
1285f2: 0f 8f b7 02 00 00 jg 1288af <rtems_rfs_shell_inode+0x437><== NOT EXECUTED
printf ("error: testing inode state: ino=%" PRIu32 ": (%d) %s\n",
ino, rc, strerror (rc));
return 1;
}
if (show_all || allocated)
1285f8: 80 7d 87 00 cmpb $0x0,-0x79(%ebp) <== NOT EXECUTED
1285fc: 75 0a jne 128608 <rtems_rfs_shell_inode+0x190><== NOT EXECUTED
1285fe: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
128602: 0f 84 20 02 00 00 je 128828 <rtems_rfs_shell_inode+0x3b0><== NOT EXECUTED
{
uint16_t mode;
bool error;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
128608: 6a 01 push $0x1 <== NOT EXECUTED
12860a: 8d 4d bc lea -0x44(%ebp),%ecx <== NOT EXECUTED
12860d: 51 push %ecx <== NOT EXECUTED
12860e: 57 push %edi <== NOT EXECUTED
12860f: 56 push %esi <== NOT EXECUTED
128610: e8 97 89 01 00 call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
if (rc > 0)
128615: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128618: 85 c0 test %eax,%eax <== NOT EXECUTED
12861a: 0f 8f dc 02 00 00 jg 1288fc <rtems_rfs_shell_inode+0x484><== NOT EXECUTED
128620: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
128623: 0f b6 42 02 movzbl 0x2(%edx),%eax <== NOT EXECUTED
128627: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
12862a: 0f b6 5a 03 movzbl 0x3(%edx),%ebx <== NOT EXECUTED
12862e: 09 c3 or %eax,%ebx <== NOT EXECUTED
error = false;
mode = rtems_rfs_inode_get_mode (&inode);
if (error_check_only)
128630: 80 bd 7f ff ff ff 00 cmpb $0x0,-0x81(%ebp) <== NOT EXECUTED
128637: 74 3e je 128677 <rtems_rfs_shell_inode+0x1ff><== NOT EXECUTED
{
if (!RTEMS_RFS_S_ISDIR (mode) &&
128639: 89 d8 mov %ebx,%eax <== NOT EXECUTED
12863b: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
128640: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
128645: 0f 84 c5 01 00 00 je 128810 <rtems_rfs_shell_inode+0x398><== NOT EXECUTED
12864b: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
128650: 0f 84 ba 01 00 00 je 128810 <rtems_rfs_shell_inode+0x398><== NOT EXECUTED
128656: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
12865b: 0f 84 af 01 00 00 je 128810 <rtems_rfs_shell_inode+0x398><== NOT EXECUTED
128661: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
128666: 0f 84 a4 01 00 00 je 128810 <rtems_rfs_shell_inode+0x398><== NOT EXECUTED
}
#endif
}
}
if (!error_check_only || error)
12866c: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
128671: 0f 84 99 01 00 00 je 128810 <rtems_rfs_shell_inode+0x398><== NOT EXECUTED
{
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
128677: 80 7d e7 01 cmpb $0x1,-0x19(%ebp) <== NOT EXECUTED
12867b: 19 c0 sbb %eax,%eax <== NOT EXECUTED
12867d: 83 e0 05 and $0x5,%eax <== NOT EXECUTED
128680: 83 c0 41 add $0x41,%eax <== NOT EXECUTED
128683: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128686: 50 push %eax <== NOT EXECUTED
128687: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
12868a: c1 e2 03 shl $0x3,%edx <== NOT EXECUTED
12868d: 8d 04 d5 00 00 00 00 lea 0x0(,%edx,8),%eax <== NOT EXECUTED
128694: 29 d0 sub %edx,%eax <== NOT EXECUTED
128696: 50 push %eax <== NOT EXECUTED
128697: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
12869a: 57 push %edi <== NOT EXECUTED
12869b: 68 fa 35 16 00 push $0x1635fa <== NOT EXECUTED
1286a0: e8 0f 20 02 00 call 14a6b4 <printf> <== NOT EXECUTED
ino, rtems_rfs_buffer_bnum (&inode.buffer),
inode.offset * RTEMS_RFS_INODE_SIZE,
allocated ? 'A' : 'F');
if (!allocated && !forced)
1286a5: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1286a8: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) <== NOT EXECUTED
1286ac: 75 0d jne 1286bb <rtems_rfs_shell_inode+0x243><== NOT EXECUTED
1286ae: 80 bd 77 ff ff ff 00 cmpb $0x0,-0x89(%ebp) <== NOT EXECUTED
1286b5: 0f 84 b1 01 00 00 je 12886c <rtems_rfs_shell_inode+0x3f4><== NOT EXECUTED
printf (" --\n");
else
{
const char* type;
type = "UKN";
if (RTEMS_RFS_S_ISDIR (mode))
1286bb: 0f b7 d3 movzwl %bx,%edx <== NOT EXECUTED
1286be: 89 d0 mov %edx,%eax <== NOT EXECUTED
1286c0: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
1286c5: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
1286ca: 0f 84 7c 01 00 00 je 12884c <rtems_rfs_shell_inode+0x3d4><== NOT EXECUTED
type = "DIR";
else if (RTEMS_RFS_S_ISCHR (mode))
1286d0: 3d 00 20 00 00 cmp $0x2000,%eax <== NOT EXECUTED
1286d5: 0f 84 81 01 00 00 je 12885c <rtems_rfs_shell_inode+0x3e4><== NOT EXECUTED
type = "CHR";
else if (RTEMS_RFS_S_ISBLK (mode))
1286db: 3d 00 60 00 00 cmp $0x6000,%eax <== NOT EXECUTED
1286e0: 0f 84 9a 01 00 00 je 128880 <rtems_rfs_shell_inode+0x408><== NOT EXECUTED
type = "BLK";
else if (RTEMS_RFS_S_ISREG (mode))
1286e6: 3d 00 80 00 00 cmp $0x8000,%eax <== NOT EXECUTED
1286eb: 0f 84 9f 01 00 00 je 128890 <rtems_rfs_shell_inode+0x418><== NOT EXECUTED
type = "REG";
else if (RTEMS_RFS_S_ISLNK (mode))
1286f1: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
1286f6: 0f 84 a4 01 00 00 je 1288a0 <rtems_rfs_shell_inode+0x428><== NOT EXECUTED
1286fc: c7 85 78 ff ff ff 2d movl $0x16362d,-0x88(%ebp) <== NOT EXECUTED
128703: 36 16 00
128706: 66 90 xchg %ax,%ax <== 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);
128708: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED
12870b: 8d 48 0c lea 0xc(%eax),%ecx <== NOT EXECUTED
12870e: 8a 58 0c mov 0xc(%eax),%bl <== NOT EXECUTED
128711: 88 5d 98 mov %bl,-0x68(%ebp) <== NOT EXECUTED
128714: 8a 59 01 mov 0x1(%ecx),%bl <== NOT EXECUTED
128717: 88 5d 94 mov %bl,-0x6c(%ebp) <== NOT EXECUTED
12871a: 8a 59 02 mov 0x2(%ecx),%bl <== NOT EXECUTED
12871d: 88 5d 90 mov %bl,-0x70(%ebp) <== NOT EXECUTED
128720: 8a 49 03 mov 0x3(%ecx),%cl <== NOT EXECUTED
128723: 88 4d 88 mov %cl,-0x78(%ebp) <== NOT EXECUTED
* @return uint32_t The block offset.
*/
static inline uint16_t
rtems_rfs_inode_get_block_offset (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->block_offset);
128726: 8a 58 0a mov 0xa(%eax),%bl <== NOT EXECUTED
128729: 8a 48 0b mov 0xb(%eax),%cl <== NOT EXECUTED
12872c: 88 4d b7 mov %cl,-0x49(%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);
12872f: 0f b6 08 movzbl (%eax),%ecx <== NOT EXECUTED
128732: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
128735: 0f b6 40 01 movzbl 0x1(%eax),%eax <== NOT EXECUTED
128739: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
12873b: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
12873f: 0f 84 fb 00 00 00 je 128840 <rtems_rfs_shell_inode+0x3c8><== NOT EXECUTED
128745: 0f b7 c0 movzwl %ax,%eax <== NOT EXECUTED
128748: 89 45 80 mov %eax,-0x80(%ebp) <== NOT EXECUTED
type = "LNK";
printf ("links=%03i mode=%04x (%s/%03o) bo=%04u bc=%04" PRIu32 " b=[",
12874b: 51 push %ecx <== NOT EXECUTED
12874c: 0f b6 45 88 movzbl -0x78(%ebp),%eax <== NOT EXECUTED
128750: 8a 4d 98 mov -0x68(%ebp),%cl <== NOT EXECUTED
128753: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
128756: 09 c8 or %ecx,%eax <== NOT EXECUTED
128758: 0f b6 4d 94 movzbl -0x6c(%ebp),%ecx <== NOT EXECUTED
12875c: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
12875f: 09 c8 or %ecx,%eax <== NOT EXECUTED
128761: 0f b6 4d 90 movzbl -0x70(%ebp),%ecx <== NOT EXECUTED
128765: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
128768: 09 c8 or %ecx,%eax <== NOT EXECUTED
12876a: 50 push %eax <== NOT EXECUTED
12876b: c1 e3 08 shl $0x8,%ebx <== NOT EXECUTED
12876e: 0f b6 45 b7 movzbl -0x49(%ebp),%eax <== NOT EXECUTED
128772: 09 c3 or %eax,%ebx <== NOT EXECUTED
128774: 0f b7 db movzwl %bx,%ebx <== NOT EXECUTED
128777: 53 push %ebx <== NOT EXECUTED
128778: 89 d0 mov %edx,%eax <== NOT EXECUTED
12877a: 25 ff 03 00 00 and $0x3ff,%eax <== NOT EXECUTED
12877f: 50 push %eax <== NOT EXECUTED
128780: ff b5 78 ff ff ff pushl -0x88(%ebp) <== NOT EXECUTED
128786: 52 push %edx <== NOT EXECUTED
128787: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
12878a: 68 ac 3a 16 00 push $0x163aac <== NOT EXECUTED
12878f: e8 20 1f 02 00 call 14a6b4 <printf> <== NOT EXECUTED
128794: 31 db xor %ebx,%ebx <== NOT EXECUTED
128796: 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]);
128799: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
12879c: 83 c2 1c add $0x1c,%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));
12879f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1287a2: 0f b6 44 1a 03 movzbl 0x3(%edx,%ebx,1),%eax <== NOT EXECUTED
1287a7: 0f b6 0c 1a movzbl (%edx,%ebx,1),%ecx <== NOT EXECUTED
1287ab: c1 e1 18 shl $0x18,%ecx <== NOT EXECUTED
1287ae: 09 c8 or %ecx,%eax <== NOT EXECUTED
1287b0: 0f b6 4c 1a 01 movzbl 0x1(%edx,%ebx,1),%ecx <== NOT EXECUTED
1287b5: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1287b8: 09 c8 or %ecx,%eax <== NOT EXECUTED
1287ba: 0f b6 54 1a 02 movzbl 0x2(%edx,%ebx,1),%edx <== NOT EXECUTED
1287bf: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
1287c2: 09 d0 or %edx,%eax <== NOT EXECUTED
1287c4: 50 push %eax <== NOT EXECUTED
1287c5: 68 31 36 16 00 push $0x163631 <== NOT EXECUTED
1287ca: e8 e5 1e 02 00 call 14a6b4 <printf> <== NOT EXECUTED
1287cf: 83 c3 04 add $0x4,%ebx <== 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++)
1287d2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1287d5: 83 fb 10 cmp $0x10,%ebx <== NOT EXECUTED
1287d8: 75 bf jne 128799 <rtems_rfs_shell_inode+0x321><== NOT EXECUTED
1287da: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
1287dd: 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));
1287e0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1287e3: 0f b6 42 10 movzbl 0x10(%edx),%eax <== NOT EXECUTED
1287e7: c1 e0 18 shl $0x18,%eax <== NOT EXECUTED
1287ea: 0f b6 4a 11 movzbl 0x11(%edx),%ecx <== NOT EXECUTED
1287ee: c1 e1 10 shl $0x10,%ecx <== NOT EXECUTED
1287f1: 09 c8 or %ecx,%eax <== NOT EXECUTED
1287f3: 0f b6 4a 13 movzbl 0x13(%edx),%ecx <== NOT EXECUTED
1287f7: 09 c8 or %ecx,%eax <== NOT EXECUTED
1287f9: 0f b6 52 12 movzbl 0x12(%edx),%edx <== NOT EXECUTED
1287fd: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
128800: 09 d0 or %edx,%eax <== NOT EXECUTED
128802: 50 push %eax <== NOT EXECUTED
128803: 68 36 36 16 00 push $0x163636 <== NOT EXECUTED
128808: e8 a7 1e 02 00 call 14a6b4 <printf> <== NOT EXECUTED
12880d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
rc = rtems_rfs_inode_close (fs, &inode);
128810: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128813: 8d 5d bc lea -0x44(%ebp),%ebx <== NOT EXECUTED
128816: 53 push %ebx <== NOT EXECUTED
128817: 56 push %esi <== NOT EXECUTED
128818: e8 0b 87 01 00 call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
if (rc > 0)
12881d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128820: 85 c0 test %eax,%eax <== NOT EXECUTED
128822: 0f 8f 00 01 00 00 jg 128928 <rtems_rfs_shell_inode+0x4b0><== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (ino = start; ino <= end; ino++)
128828: 47 inc %edi <== NOT EXECUTED
128829: 3b 7d 8c cmp -0x74(%ebp),%edi <== NOT EXECUTED
12882c: 0f 86 ae fd ff ff jbe 1285e0 <rtems_rfs_shell_inode+0x168><== NOT EXECUTED
return 1;
}
}
}
rtems_rfs_shell_unlock_rfs (fs);
128832: 89 f0 mov %esi,%eax <== NOT EXECUTED
128834: e8 1f fc ff ff call 128458 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
128839: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
12883b: e9 1c fd ff ff jmp 12855c <rtems_rfs_shell_inode+0xe4><== 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);
if (links == 0xffff)
128840: c7 45 80 00 00 00 00 movl $0x0,-0x80(%ebp) <== NOT EXECUTED
128847: e9 ff fe ff ff jmp 12874b <rtems_rfs_shell_inode+0x2d3><== NOT EXECUTED
printf (" --\n");
else
{
const char* type;
type = "UKN";
if (RTEMS_RFS_S_ISDIR (mode))
12884c: c7 85 78 ff ff ff 19 movl $0x163619,-0x88(%ebp) <== NOT EXECUTED
128853: 36 16 00
128856: e9 ad fe ff ff jmp 128708 <rtems_rfs_shell_inode+0x290><== NOT EXECUTED
12885b: 90 nop <== NOT EXECUTED
type = "DIR";
else if (RTEMS_RFS_S_ISCHR (mode))
12885c: c7 85 78 ff ff ff 1d movl $0x16361d,-0x88(%ebp) <== NOT EXECUTED
128863: 36 16 00
128866: e9 9d fe ff ff jmp 128708 <rtems_rfs_shell_inode+0x290><== NOT EXECUTED
12886b: 90 nop <== NOT EXECUTED
ino, rtems_rfs_buffer_bnum (&inode.buffer),
inode.offset * RTEMS_RFS_INODE_SIZE,
allocated ? 'A' : 'F');
if (!allocated && !forced)
printf (" --\n");
12886c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12886f: 68 15 36 16 00 push $0x163615 <== NOT EXECUTED
128874: e8 4f 20 02 00 call 14a8c8 <puts> <== NOT EXECUTED
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
ino, rtems_rfs_buffer_bnum (&inode.buffer),
inode.offset * RTEMS_RFS_INODE_SIZE,
allocated ? 'A' : 'F');
if (!allocated && !forced)
128879: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12887c: eb 92 jmp 128810 <rtems_rfs_shell_inode+0x398><== NOT EXECUTED
12887e: 66 90 xchg %ax,%ax <== NOT EXECUTED
type = "UKN";
if (RTEMS_RFS_S_ISDIR (mode))
type = "DIR";
else if (RTEMS_RFS_S_ISCHR (mode))
type = "CHR";
else if (RTEMS_RFS_S_ISBLK (mode))
128880: c7 85 78 ff ff ff 21 movl $0x163621,-0x88(%ebp) <== NOT EXECUTED
128887: 36 16 00
12888a: e9 79 fe ff ff jmp 128708 <rtems_rfs_shell_inode+0x290><== NOT EXECUTED
12888f: 90 nop <== NOT EXECUTED
type = "BLK";
else if (RTEMS_RFS_S_ISREG (mode))
128890: c7 85 78 ff ff ff 25 movl $0x163625,-0x88(%ebp) <== NOT EXECUTED
128897: 36 16 00
12889a: e9 69 fe ff ff jmp 128708 <rtems_rfs_shell_inode+0x290><== NOT EXECUTED
12889f: 90 nop <== NOT EXECUTED
type = "REG";
else if (RTEMS_RFS_S_ISLNK (mode))
1288a0: c7 85 78 ff ff ff 29 movl $0x163629,-0x88(%ebp) <== NOT EXECUTED
1288a7: 36 16 00
1288aa: e9 59 fe ff ff jmp 128708 <rtems_rfs_shell_inode+0x290><== NOT EXECUTED
1288af: 89 c3 mov %eax,%ebx <== NOT EXECUTED
bool allocated;
rc = rtems_rfs_group_bitmap_test (fs, true, ino, &allocated);
if (rc > 0)
{
rtems_rfs_shell_unlock_rfs (fs);
1288b1: 89 f0 mov %esi,%eax <== NOT EXECUTED
1288b3: e8 a0 fb ff ff call 128458 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: testing inode state: ino=%" PRIu32 ": (%d) %s\n",
1288b8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1288bb: 53 push %ebx <== NOT EXECUTED
1288bc: e8 3b 38 02 00 call 14c0fc <strerror> <== NOT EXECUTED
1288c1: 50 push %eax <== NOT EXECUTED
1288c2: 53 push %ebx <== NOT EXECUTED
1288c3: 57 push %edi <== NOT EXECUTED
1288c4: 68 4c 3a 16 00 push $0x163a4c <== NOT EXECUTED
1288c9: e8 e6 1d 02 00 call 14a6b4 <printf> <== NOT EXECUTED
1288ce: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
1288d3: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
1288d6: e9 81 fc ff ff jmp 12855c <rtems_rfs_shell_inode+0xe4><== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
1288db: 89 45 8c mov %eax,-0x74(%ebp) <== NOT EXECUTED
1288de: c6 85 77 ff ff ff 00 movb $0x0,-0x89(%ebp) <== NOT EXECUTED
1288e5: c6 85 7f ff ff ff 00 movb $0x0,-0x81(%ebp) <== NOT EXECUTED
1288ec: c6 45 87 00 movb $0x0,-0x79(%ebp) <== NOT EXECUTED
1288f0: c7 45 90 01 00 00 00 movl $0x1,-0x70(%ebp) <== NOT EXECUTED
1288f7: e9 38 fc ff ff jmp 128534 <rtems_rfs_shell_inode+0xbc><== NOT EXECUTED
1288fc: 89 c3 mov %eax,%ebx <== NOT EXECUTED
bool error;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
if (rc > 0)
{
rtems_rfs_shell_unlock_rfs (fs);
1288fe: 89 f0 mov %esi,%eax <== NOT EXECUTED
128900: e8 53 fb ff ff call 128458 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: opening inode handle: ino=%" PRIu32 ": (%d) %s\n",
128905: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128908: 53 push %ebx <== NOT EXECUTED
128909: e8 ee 37 02 00 call 14c0fc <strerror> <== NOT EXECUTED
12890e: 50 push %eax <== NOT EXECUTED
12890f: 53 push %ebx <== NOT EXECUTED
128910: 57 push %edi <== NOT EXECUTED
128911: 68 7c 3a 16 00 push $0x163a7c <== NOT EXECUTED
128916: e8 99 1d 02 00 call 14a6b4 <printf> <== NOT EXECUTED
12891b: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
128920: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
128923: e9 34 fc ff ff jmp 12855c <rtems_rfs_shell_inode+0xe4><== NOT EXECUTED
128928: 89 c3 mov %eax,%ebx <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &inode);
if (rc > 0)
{
rtems_rfs_shell_unlock_rfs (fs);
12892a: 89 f0 mov %esi,%eax <== NOT EXECUTED
12892c: e8 27 fb ff ff call 128458 <rtems_rfs_shell_unlock_rfs><== NOT EXECUTED
printf ("error: closing inode handle: ino=%" PRIu32 ": (%d) %s\n",
128931: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128934: 53 push %ebx <== NOT EXECUTED
128935: e8 c2 37 02 00 call 14c0fc <strerror> <== NOT EXECUTED
12893a: 50 push %eax <== NOT EXECUTED
12893b: 53 push %ebx <== NOT EXECUTED
12893c: 57 push %edi <== NOT EXECUTED
12893d: 68 e0 3a 16 00 push $0x163ae0 <== NOT EXECUTED
128942: e8 6d 1d 02 00 call 14a6b4 <printf> <== NOT EXECUTED
128947: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
12894c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12894f: e9 08 fc ff ff jmp 12855c <rtems_rfs_shell_inode+0xe4><== NOT EXECUTED
00128458 <rtems_rfs_shell_unlock_rfs>:
/**
* Unlock the file system.
*/
static void
rtems_rfs_shell_unlock_rfs (rtems_rfs_file_system* fs)
{
128458: 55 push %ebp <== NOT EXECUTED
128459: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12845b: 53 push %ebx <== NOT EXECUTED
12845c: 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);
12845f: 8b 58 7c mov 0x7c(%eax),%ebx <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
128462: 50 push %eax <== NOT EXECUTED
128463: e8 3c 4f 01 00 call 13d3a4 <rtems_rfs_buffers_release><== NOT EXECUTED
128468: 5a pop %edx <== NOT EXECUTED
128469: ff 33 pushl (%ebx) <== NOT EXECUTED
12846b: e8 84 ab fe ff call 112ff4 <rtems_semaphore_release><== NOT EXECUTED
128470: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
#if __rtems__
rtems_rfs_rtems_unlock (fs);
#endif
}
128473: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
128476: c9 leave <== NOT EXECUTED
128477: c3 ret <== NOT EXECUTED
001281ac <rtems_rfs_shell_usage>:
}
void
rtems_rfs_shell_usage (const char* arg)
{
1281ac: 55 push %ebp <== NOT EXECUTED
1281ad: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1281af: 53 push %ebx <== NOT EXECUTED
1281b0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1281b3: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
printf ("%s: RFS debugger\n", arg);
1281b6: 53 push %ebx <== NOT EXECUTED
1281b7: 68 8c 35 16 00 push $0x16358c <== NOT EXECUTED
1281bc: e8 f3 24 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" %s [-hl] <path> <command>\n", arg);
1281c1: 58 pop %eax <== NOT EXECUTED
1281c2: 5a pop %edx <== NOT EXECUTED
1281c3: 53 push %ebx <== NOT EXECUTED
1281c4: 68 9e 35 16 00 push $0x16359e <== NOT EXECUTED
1281c9: e8 e6 24 02 00 call 14a6b4 <printf> <== NOT EXECUTED
printf (" where:\n");
1281ce: c7 04 24 bb 35 16 00 movl $0x1635bb,(%esp) <== NOT EXECUTED
1281d5: e8 ee 26 02 00 call 14a8c8 <puts> <== NOT EXECUTED
printf (" path: Path to the mounted RFS file system\n");
1281da: c7 04 24 94 38 16 00 movl $0x163894,(%esp) <== NOT EXECUTED
1281e1: e8 e2 26 02 00 call 14a8c8 <puts> <== NOT EXECUTED
printf (" command: A debugger command. See -l for a list plus help.\n");
1281e6: c7 04 24 c8 38 16 00 movl $0x1638c8,(%esp) <== NOT EXECUTED
1281ed: e8 d6 26 02 00 call 14a8c8 <puts> <== NOT EXECUTED
printf (" -h: This help\n");
1281f2: c7 04 24 c5 35 16 00 movl $0x1635c5,(%esp) <== NOT EXECUTED
1281f9: e8 ca 26 02 00 call 14a8c8 <puts> <== NOT EXECUTED
printf (" -l: The debugger command list.\n");
1281fe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128201: c7 45 08 08 39 16 00 movl $0x163908,0x8(%ebp) <== NOT EXECUTED
}
128208: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED
12820b: 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");
12820c: e9 b7 26 02 00 jmp 14a8c8 <puts> <== NOT EXECUTED
00141558 <rtems_rfs_symlink>:
const char* link,
int link_length,
uid_t uid,
gid_t gid,
rtems_rfs_ino parent)
{
141558: 55 push %ebp <== NOT EXECUTED
141559: 89 e5 mov %esp,%ebp <== NOT EXECUTED
14155b: 57 push %edi <== NOT EXECUTED
14155c: 56 push %esi <== NOT EXECUTED
14155d: 53 push %ebx <== NOT EXECUTED
14155e: 81 ec 9c 00 00 00 sub $0x9c,%esp <== NOT EXECUTED
141564: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
141567: 8b 75 1c mov 0x1c(%ebp),%esi <== NOT EXECUTED
14156a: 8b 55 20 mov 0x20(%ebp),%edx <== NOT EXECUTED
printf (" link:");
for (c = 0; c < link_length; c++)
printf ("%c", link[c]);
}
if (link_length >= rtems_rfs_fs_block_size (fs))
14156d: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
141570: 3b 43 08 cmp 0x8(%ebx),%eax <== NOT EXECUTED
141573: 72 0f jb 141584 <rtems_rfs_symlink+0x2c><== NOT EXECUTED
141575: be 5b 00 00 00 mov $0x5b,%esi <== NOT EXECUTED
rtems_rfs_inode_set_block_offset (&inode, link_length);
rc = rtems_rfs_inode_close (fs, &inode);
return rc;
}
14157a: 89 f0 mov %esi,%eax <== NOT EXECUTED
14157c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
14157f: 5b pop %ebx <== NOT EXECUTED
141580: 5e pop %esi <== NOT EXECUTED
141581: 5f pop %edi <== NOT EXECUTED
141582: c9 leave <== NOT EXECUTED
141583: c3 ret <== NOT EXECUTED
}
if (link_length >= rtems_rfs_fs_block_size (fs))
return ENAMETOOLONG;
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
141584: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
141589: 8b 7d 0c mov 0xc(%ebp),%edi <== NOT EXECUTED
14158c: 31 c0 xor %eax,%eax <== NOT EXECUTED
14158e: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
141590: f7 d1 not %ecx <== NOT EXECUTED
141592: 49 dec %ecx <== NOT EXECUTED
141593: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
141596: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
141599: 50 push %eax <== NOT EXECUTED
14159a: 0f b7 d2 movzwl %dx,%edx <== NOT EXECUTED
14159d: 52 push %edx <== NOT EXECUTED
14159e: 0f b7 f6 movzwl %si,%esi <== NOT EXECUTED
1415a1: 56 push %esi <== NOT EXECUTED
1415a2: 6a 01 push $0x1 <== NOT EXECUTED
1415a4: 68 ff a1 00 00 push $0xa1ff <== NOT EXECUTED
1415a9: 51 push %ecx <== NOT EXECUTED
1415aa: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1415ad: ff 75 24 pushl 0x24(%ebp) <== NOT EXECUTED
1415b0: 53 push %ebx <== NOT EXECUTED
1415b1: e8 66 fb ff ff call 14111c <rtems_rfs_inode_create><== NOT EXECUTED
1415b6: 89 c6 mov %eax,%esi <== NOT EXECUTED
RTEMS_RFS_S_SYMLINK,
1, uid, gid, &ino);
if (rc > 0)
1415b8: 83 c4 30 add $0x30,%esp <== NOT EXECUTED
1415bb: 85 c0 test %eax,%eax <== NOT EXECUTED
1415bd: 7f bb jg 14157a <rtems_rfs_symlink+0x22><== NOT EXECUTED
return rc;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
1415bf: 6a 01 push $0x1 <== NOT EXECUTED
1415c1: 8d 7d ac lea -0x54(%ebp),%edi <== NOT EXECUTED
1415c4: 57 push %edi <== NOT EXECUTED
1415c5: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1415c8: 53 push %ebx <== NOT EXECUTED
1415c9: e8 de f9 ff ff call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
1415ce: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1415d0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1415d3: 85 c0 test %eax,%eax <== NOT EXECUTED
1415d5: 7f a3 jg 14157a <rtems_rfs_symlink+0x22><== 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)
1415d7: 83 7d 18 13 cmpl $0x13,0x18(%ebp) <== NOT EXECUTED
1415db: 77 6f ja 14164c <rtems_rfs_symlink+0xf4><== NOT EXECUTED
{
memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
1415dd: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
1415e0: 83 c2 1c add $0x1c,%edx <== NOT EXECUTED
1415e3: b9 14 00 00 00 mov $0x14,%ecx <== NOT EXECUTED
1415e8: 89 d7 mov %edx,%edi <== NOT EXECUTED
1415ea: 31 c0 xor %eax,%eax <== NOT EXECUTED
1415ec: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
memcpy (inode.node->data.name, link, link_length);
1415ee: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
1415f1: 83 c0 1c add $0x1c,%eax <== NOT EXECUTED
1415f4: 89 c7 mov %eax,%edi <== NOT EXECUTED
1415f6: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
1415f9: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
1415fc: 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);
1415fe: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
141601: c6 40 0c 00 movb $0x0,0xc(%eax) <== NOT EXECUTED
141605: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
141608: c6 40 0d 00 movb $0x0,0xd(%eax) <== NOT EXECUTED
14160c: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
14160f: c6 40 0e 00 movb $0x0,0xe(%eax) <== NOT EXECUTED
141613: 8b 45 b8 mov -0x48(%ebp),%eax <== NOT EXECUTED
141616: c6 40 0f 00 movb $0x0,0xf(%eax) <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
}
rtems_rfs_inode_set_block_offset (&inode, link_length);
14161a: 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);
14161d: 89 c1 mov %eax,%ecx <== NOT EXECUTED
14161f: 66 c1 e9 08 shr $0x8,%cx <== NOT EXECUTED
141623: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
141626: 88 4a 0a mov %cl,0xa(%edx) <== NOT EXECUTED
141629: 8b 55 b8 mov -0x48(%ebp),%edx <== NOT EXECUTED
14162c: 88 42 0b mov %al,0xb(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
14162f: c6 45 bc 01 movb $0x1,-0x44(%ebp) <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
141633: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141636: 8d 7d ac lea -0x54(%ebp),%edi <== NOT EXECUTED
141639: 57 push %edi <== NOT EXECUTED
14163a: 53 push %ebx <== NOT EXECUTED
14163b: e8 e8 f8 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
141640: 89 c6 mov %eax,%esi <== NOT EXECUTED
return rc;
141642: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141645: e9 30 ff ff ff jmp 14157a <rtems_rfs_symlink+0x22><== NOT EXECUTED
14164a: 66 90 xchg %ax,%ax <== 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);
14164c: 50 push %eax <== NOT EXECUTED
14164d: 8d bd 5c ff ff ff lea -0xa4(%ebp),%edi <== NOT EXECUTED
141653: 57 push %edi <== NOT EXECUTED
141654: 8d 45 ac lea -0x54(%ebp),%eax <== NOT EXECUTED
141657: 50 push %eax <== NOT EXECUTED
141658: 53 push %ebx <== NOT EXECUTED
141659: e8 36 bb ff ff call 13d194 <rtems_rfs_block_map_open><== NOT EXECUTED
14165e: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
141660: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141663: 85 c0 test %eax,%eax <== NOT EXECUTED
141665: 7e 15 jle 14167c <rtems_rfs_symlink+0x124><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
141667: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false);
if (rc > 0)
{
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
14166a: 8d 7d ac lea -0x54(%ebp),%edi <== NOT EXECUTED
14166d: 57 push %edi <== NOT EXECUTED
14166e: 53 push %ebx <== NOT EXECUTED
14166f: e8 b4 f8 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
return rc;
141674: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141677: e9 fe fe ff ff jmp 14157a <rtems_rfs_symlink+0x22><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);
14167c: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED
14167f: 50 push %eax <== NOT EXECUTED
141680: 6a 01 push $0x1 <== NOT EXECUTED
141682: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax <== NOT EXECUTED
141688: 50 push %eax <== NOT EXECUTED
141689: 53 push %ebx <== NOT EXECUTED
14168a: e8 35 b6 ff ff call 13ccc4 <rtems_rfs_block_map_grow><== NOT EXECUTED
14168f: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
141691: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141694: 85 c0 test %eax,%eax <== NOT EXECUTED
141696: 7e 24 jle 1416bc <rtems_rfs_symlink+0x164><== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
141698: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
14169b: 8d bd 5c ff ff ff lea -0xa4(%ebp),%edi <== NOT EXECUTED
1416a1: 57 push %edi <== NOT EXECUTED
1416a2: 53 push %ebx <== NOT EXECUTED
1416a3: e8 40 b9 ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
1416a8: 59 pop %ecx <== NOT EXECUTED
1416a9: 5f pop %edi <== NOT EXECUTED
}
rc = rtems_rfs_block_map_close (fs, &map);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &inode);
1416aa: 8d 45 ac lea -0x54(%ebp),%eax <== NOT EXECUTED
1416ad: 50 push %eax <== NOT EXECUTED
1416ae: 53 push %ebx <== NOT EXECUTED
1416af: e8 74 f8 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
return rc;
1416b4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1416b7: e9 be fe ff ff jmp 14157a <rtems_rfs_symlink+0x22><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
1416bc: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1416c0: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1416c7: 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);
1416ce: 6a 00 push $0x0 <== NOT EXECUTED
1416d0: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED
1416d3: 8d 7d d4 lea -0x2c(%ebp),%edi <== NOT EXECUTED
1416d6: 57 push %edi <== NOT EXECUTED
1416d7: 53 push %ebx <== NOT EXECUTED
1416d8: e8 07 bf ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
1416dd: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1416df: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1416e2: 85 c0 test %eax,%eax <== NOT EXECUTED
1416e4: 7e 17 jle 1416fd <rtems_rfs_symlink+0x1a5><== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
1416e6: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1416e9: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax <== NOT EXECUTED
1416ef: 50 push %eax <== NOT EXECUTED
1416f0: 53 push %ebx <== NOT EXECUTED
1416f1: e8 f2 b8 ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
1416f6: 58 pop %eax <== NOT EXECUTED
1416f7: 5a pop %edx <== NOT EXECUTED
1416f8: e9 6d ff ff ff jmp 14166a <rtems_rfs_symlink+0x112><== NOT EXECUTED
return rc;
}
data = rtems_rfs_buffer_data (&buffer);
1416fd: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
141700: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED
memset (data, 0xff, rtems_rfs_fs_block_size (fs));
141703: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED
141706: b0 ff mov $0xff,%al <== NOT EXECUTED
141708: 89 d7 mov %edx,%edi <== NOT EXECUTED
14170a: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
memcpy (data, link, link_length);
14170c: 89 d7 mov %edx,%edi <== NOT EXECUTED
14170e: 8b 75 14 mov 0x14(%ebp),%esi <== NOT EXECUTED
141711: 8b 4d 18 mov 0x18(%ebp),%ecx <== NOT EXECUTED
141714: 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);
141716: 57 push %edi <== NOT EXECUTED
141717: 57 push %edi <== NOT EXECUTED
141718: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED
14171b: 50 push %eax <== NOT EXECUTED
14171c: 53 push %ebx <== NOT EXECUTED
14171d: e8 be bd ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
141722: c6 45 d4 00 movb $0x0,-0x2c(%ebp) <== NOT EXECUTED
handle->bnum = 0;
141726: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
14172d: 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);
141734: 59 pop %ecx <== NOT EXECUTED
141735: 5e pop %esi <== NOT EXECUTED
141736: 8d bd 5c ff ff ff lea -0xa4(%ebp),%edi <== NOT EXECUTED
14173c: 57 push %edi <== NOT EXECUTED
14173d: 53 push %ebx <== NOT EXECUTED
14173e: e8 a5 b8 ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
141743: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
141745: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141748: 85 c0 test %eax,%eax <== NOT EXECUTED
14174a: 0f 8e ca fe ff ff jle 14161a <rtems_rfs_symlink+0xc2><== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
141750: 52 push %edx <== NOT EXECUTED
141751: 52 push %edx <== NOT EXECUTED
141752: e9 53 ff ff ff jmp 1416aa <rtems_rfs_symlink+0x152><== NOT EXECUTED
00141390 <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)
{
141390: 55 push %ebp <== NOT EXECUTED
141391: 89 e5 mov %esp,%ebp <== NOT EXECUTED
141393: 57 push %edi <== NOT EXECUTED
141394: 56 push %esi <== NOT EXECUTED
141395: 53 push %ebx <== NOT EXECUTED
141396: 81 ec ac 00 00 00 sub $0xac,%esp <== 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);
14139c: 6a 01 push $0x1 <== NOT EXECUTED
14139e: 8d 5d b0 lea -0x50(%ebp),%ebx <== NOT EXECUTED
1413a1: 53 push %ebx <== NOT EXECUTED
1413a2: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1413a5: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1413a8: e8 ff fb ff ff call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
1413ad: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc)
1413af: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1413b2: 85 c0 test %eax,%eax <== NOT EXECUTED
1413b4: 75 2a jne 1413e0 <rtems_rfs_symlink_read+0x50><== 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);
1413b6: 8b 75 bc mov -0x44(%ebp),%esi <== NOT EXECUTED
return rc;
if (!RTEMS_RFS_S_ISLNK (rtems_rfs_inode_get_mode (&inode)))
1413b9: 0f b6 46 02 movzbl 0x2(%esi),%eax <== NOT EXECUTED
1413bd: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1413c0: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
1413c5: 3d 00 a0 00 00 cmp $0xa000,%eax <== NOT EXECUTED
1413ca: 74 20 je 1413ec <rtems_rfs_symlink_read+0x5c><== NOT EXECUTED
*length = rtems_rfs_inode_get_block_offset (&inode);
if (size < *length)
{
rtems_rfs_inode_close (fs, &inode);
1413cc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1413cf: 53 push %ebx <== NOT EXECUTED
1413d0: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1413d3: e8 50 fb ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
1413d8: be 16 00 00 00 mov $0x16,%esi <== NOT EXECUTED
return EINVAL;
1413dd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
path[*length] = '\0';
rc = rtems_rfs_inode_close (fs, &inode);
return rc;
}
1413e0: 89 f0 mov %esi,%eax <== NOT EXECUTED
1413e2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1413e5: 5b pop %ebx <== NOT EXECUTED
1413e6: 5e pop %esi <== NOT EXECUTED
1413e7: 5f pop %edi <== NOT EXECUTED
1413e8: c9 leave <== NOT EXECUTED
1413e9: c3 ret <== NOT EXECUTED
1413ea: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return EINVAL;
}
*length = rtems_rfs_inode_get_block_offset (&inode);
1413ec: 0f b6 46 0a movzbl 0xa(%esi),%eax <== NOT EXECUTED
1413f0: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
1413f3: 0f b6 4e 0b movzbl 0xb(%esi),%ecx <== NOT EXECUTED
1413f7: 09 c1 or %eax,%ecx <== NOT EXECUTED
1413f9: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED
1413fc: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
1413ff: 89 08 mov %ecx,(%eax) <== NOT EXECUTED
if (size < *length)
141401: 3b 4d 14 cmp 0x14(%ebp),%ecx <== NOT EXECUTED
141404: 77 c6 ja 1413cc <rtems_rfs_symlink_read+0x3c><== 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);
141406: 8d 46 0c lea 0xc(%esi),%eax <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return EINVAL;
}
if (rtems_rfs_inode_get_block_count (&inode) == 0)
141409: 80 78 03 00 cmpb $0x0,0x3(%eax) <== NOT EXECUTED
14140d: 75 39 jne 141448 <rtems_rfs_symlink_read+0xb8><== NOT EXECUTED
14140f: 80 7e 0c 00 cmpb $0x0,0xc(%esi) <== NOT EXECUTED
141413: 75 33 jne 141448 <rtems_rfs_symlink_read+0xb8><== NOT EXECUTED
141415: 80 78 01 00 cmpb $0x0,0x1(%eax) <== NOT EXECUTED
141419: 75 2d jne 141448 <rtems_rfs_symlink_read+0xb8><== NOT EXECUTED
14141b: 80 78 02 00 cmpb $0x0,0x2(%eax) <== NOT EXECUTED
14141f: 75 27 jne 141448 <rtems_rfs_symlink_read+0xb8><== NOT EXECUTED
{
memcpy (path, inode.node->data.name, *length);
141421: 83 c6 1c add $0x1c,%esi <== NOT EXECUTED
141424: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
141427: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
}
path[*length] = '\0';
141429: 8b 55 18 mov 0x18(%ebp),%edx <== NOT EXECUTED
14142c: 8b 02 mov (%edx),%eax <== NOT EXECUTED
14142e: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
141431: c6 04 02 00 movb $0x0,(%edx,%eax,1) <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
141435: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141438: 53 push %ebx <== NOT EXECUTED
141439: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
14143c: e8 e7 fa ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
141441: 89 c6 mov %eax,%esi <== NOT EXECUTED
return rc;
141443: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141446: eb 98 jmp 1413e0 <rtems_rfs_symlink_read+0x50><== 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);
141448: 50 push %eax <== NOT EXECUTED
141449: 8d 95 60 ff ff ff lea -0xa0(%ebp),%edx <== NOT EXECUTED
14144f: 52 push %edx <== NOT EXECUTED
141450: 53 push %ebx <== NOT EXECUTED
141451: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
141454: e8 3b bd ff ff call 13d194 <rtems_rfs_block_map_open><== NOT EXECUTED
141459: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
14145b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
14145e: 85 c0 test %eax,%eax <== NOT EXECUTED
141460: 7e 16 jle 141478 <rtems_rfs_symlink_read+0xe8><== NOT EXECUTED
}
rc = rtems_rfs_block_map_close (fs, &map);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &inode);
141462: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141465: 53 push %ebx <== NOT EXECUTED
141466: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
141469: e8 ba fa ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
return rc;
14146e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141471: e9 6a ff ff ff jmp 1413e0 <rtems_rfs_symlink_read+0x50><== NOT EXECUTED
141476: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
141478: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
14147b: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED
14147e: 50 push %eax <== NOT EXECUTED
14147f: 6a 00 push $0x0 <== NOT EXECUTED
141481: 6a 00 push $0x0 <== NOT EXECUTED
141483: 8d 85 60 ff ff ff lea -0xa0(%ebp),%eax <== NOT EXECUTED
141489: 50 push %eax <== NOT EXECUTED
14148a: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
14148d: e8 7e b3 ff ff call 13c810 <rtems_rfs_block_map_seek><== NOT EXECUTED
141492: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
141494: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
141497: 85 c0 test %eax,%eax <== NOT EXECUTED
141499: 7e 25 jle 1414c0 <rtems_rfs_symlink_read+0x130><== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
14149b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
14149e: 8d 95 60 ff ff ff lea -0xa0(%ebp),%edx <== NOT EXECUTED
1414a4: 52 push %edx <== NOT EXECUTED
}
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false);
if (rc > 0)
{
rtems_rfs_block_map_close (fs, &map);
1414a5: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1414a8: e8 3b bb ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
1414ad: 59 pop %ecx <== NOT EXECUTED
1414ae: 5f pop %edi <== NOT EXECUTED
1414af: 53 push %ebx <== NOT EXECUTED
1414b0: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1414b3: e8 70 fa ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
return rc;
1414b8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1414bb: e9 20 ff ff ff jmp 1413e0 <rtems_rfs_symlink_read+0x50><== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
1414c0: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
1414c4: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
1414cb: 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);
1414d2: 6a 00 push $0x0 <== NOT EXECUTED
1414d4: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
1414d7: 8d 55 d8 lea -0x28(%ebp),%edx <== NOT EXECUTED
1414da: 52 push %edx <== NOT EXECUTED
1414db: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
1414de: 89 95 54 ff ff ff mov %edx,-0xac(%ebp) <== NOT EXECUTED
1414e4: e8 fb c0 ff ff call 13d5e4 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
1414e9: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
1414eb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1414ee: 85 c0 test %eax,%eax <== NOT EXECUTED
1414f0: 8b 95 54 ff ff ff mov -0xac(%ebp),%edx <== NOT EXECUTED
1414f6: 7e 0c jle 141504 <rtems_rfs_symlink_read+0x174><== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
1414f8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1414fb: 8d 85 60 ff ff ff lea -0xa0(%ebp),%eax <== NOT EXECUTED
141501: 50 push %eax <== NOT EXECUTED
141502: eb a1 jmp 1414a5 <rtems_rfs_symlink_read+0x115><== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
data = rtems_rfs_buffer_data (&buffer);
memcpy (path, data, *length);
141504: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
141507: 8b 70 20 mov 0x20(%eax),%esi <== NOT EXECUTED
14150a: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
14150d: 8b 08 mov (%eax),%ecx <== NOT EXECUTED
14150f: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
141512: 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);
141514: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141517: 52 push %edx <== NOT EXECUTED
141518: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
14151b: e8 c0 bf ff ff call 13d4e0 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
handle->dirty = false;
141520: c6 45 d8 00 movb $0x0,-0x28(%ebp) <== NOT EXECUTED
handle->bnum = 0;
141524: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) <== NOT EXECUTED
handle->buffer = NULL;
14152b: 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);
141532: 58 pop %eax <== NOT EXECUTED
141533: 5a pop %edx <== NOT EXECUTED
141534: 8d 95 60 ff ff ff lea -0xa0(%ebp),%edx <== NOT EXECUTED
14153a: 52 push %edx <== NOT EXECUTED
14153b: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
14153e: e8 a5 ba ff ff call 13cfe8 <rtems_rfs_block_map_close><== NOT EXECUTED
141543: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (rc > 0)
141545: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141548: 85 c0 test %eax,%eax <== NOT EXECUTED
14154a: 0f 8e d9 fe ff ff jle 141429 <rtems_rfs_symlink_read+0x99><== NOT EXECUTED
141550: e9 0d ff ff ff jmp 141462 <rtems_rfs_symlink_read+0xd2><== NOT EXECUTED
00141758 <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)
{
141758: 55 push %ebp <== NOT EXECUTED
141759: 89 e5 mov %esp,%ebp <== NOT EXECUTED
14175b: 57 push %edi <== NOT EXECUTED
14175c: 56 push %esi <== NOT EXECUTED
14175d: 53 push %ebx <== NOT EXECUTED
14175e: 83 ec 6c sub $0x6c,%esp <== NOT EXECUTED
141761: 8b 75 08 mov 0x8(%ebp),%esi <== 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);
141764: 6a 01 push $0x1 <== NOT EXECUTED
141766: 8d 7d 98 lea -0x68(%ebp),%edi <== NOT EXECUTED
141769: 57 push %edi <== NOT EXECUTED
14176a: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
14176d: 56 push %esi <== NOT EXECUTED
14176e: e8 39 f8 ff ff call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
141773: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
141775: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141778: 85 c0 test %eax,%eax <== NOT EXECUTED
14177a: 75 33 jne 1417af <rtems_rfs_unlink+0x57> <== NOT EXECUTED
/*
* If a directory process the unlink mode.
*/
dir = RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&target_inode));
14177c: 8b 45 a4 mov -0x5c(%ebp),%eax <== NOT EXECUTED
14177f: 0f b6 40 02 movzbl 0x2(%eax),%eax <== NOT EXECUTED
141783: c1 e0 08 shl $0x8,%eax <== NOT EXECUTED
141786: 25 00 f0 00 00 and $0xf000,%eax <== NOT EXECUTED
14178b: 3d 00 40 00 00 cmp $0x4000,%eax <== NOT EXECUTED
if (dir)
141790: 0f 94 45 97 sete -0x69(%ebp) <== NOT EXECUTED
141794: 75 30 jne 1417c6 <rtems_rfs_unlink+0x6e> <== NOT EXECUTED
{
switch (dir_mode)
141796: 8b 45 18 mov 0x18(%ebp),%eax <== NOT EXECUTED
141799: 85 c0 test %eax,%eax <== NOT EXECUTED
14179b: 75 1f jne 1417bc <rtems_rfs_unlink+0x64> <== 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);
14179d: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1417a0: 57 push %edi <== NOT EXECUTED
1417a1: 56 push %esi <== NOT EXECUTED
1417a2: e8 81 f7 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
1417a7: bb 15 00 00 00 mov $0x15,%ebx <== NOT EXECUTED
return EISDIR;
1417ac: 83 c4 10 add $0x10,%esp <== 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;
}
1417af: 89 d8 mov %ebx,%eax <== NOT EXECUTED
1417b1: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1417b4: 5b pop %ebx <== NOT EXECUTED
1417b5: 5e pop %esi <== NOT EXECUTED
1417b6: 5f pop %edi <== NOT EXECUTED
1417b7: c9 leave <== NOT EXECUTED
1417b8: c3 ret <== NOT EXECUTED
1417b9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/
dir = RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&target_inode));
if (dir)
{
switch (dir_mode)
1417bc: 83 7d 18 01 cmpl $0x1,0x18(%ebp) <== NOT EXECUTED
1417c0: 0f 84 d6 00 00 00 je 14189c <rtems_rfs_unlink+0x144><== NOT EXECUTED
default:
break;
}
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
1417c6: 6a 01 push $0x1 <== NOT EXECUTED
1417c8: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
1417cb: 50 push %eax <== NOT EXECUTED
1417cc: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED
1417cf: 56 push %esi <== NOT EXECUTED
1417d0: e8 d7 f7 ff ff call 140fac <rtems_rfs_inode_open> <== NOT EXECUTED
1417d5: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc)
1417d7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1417da: 85 c0 test %eax,%eax <== NOT EXECUTED
1417dc: 0f 85 a2 00 00 00 jne 141884 <rtems_rfs_unlink+0x12c><== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
rc = rtems_rfs_dir_del_entry (fs, &parent_inode, target, doff);
1417e2: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED
1417e5: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED
1417e8: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
1417eb: 50 push %eax <== NOT EXECUTED
1417ec: 56 push %esi <== NOT EXECUTED
1417ed: e8 5a c3 ff ff call 13db4c <rtems_rfs_dir_del_entry><== NOT EXECUTED
1417f2: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1417f4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1417f7: 85 c0 test %eax,%eax <== NOT EXECUTED
1417f9: 7f 4d jg 141848 <rtems_rfs_unlink+0xf0> <== 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);
1417fb: 8b 4d a4 mov -0x5c(%ebp),%ecx <== NOT EXECUTED
1417fe: 0f b6 11 movzbl (%ecx),%edx <== NOT EXECUTED
141801: c1 e2 08 shl $0x8,%edx <== NOT EXECUTED
141804: 0f b6 41 01 movzbl 0x1(%ecx),%eax <== NOT EXECUTED
141808: 09 d0 or %edx,%eax <== NOT EXECUTED
if (links == 0xffff)
14180a: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
14180e: 0f 84 b8 00 00 00 je 1418cc <rtems_rfs_unlink+0x174><== 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)
141814: 66 83 f8 01 cmp $0x1,%ax <== NOT EXECUTED
141818: 0f 86 ae 00 00 00 jbe 1418cc <rtems_rfs_unlink+0x174><== NOT EXECUTED
{
links--;
14181e: 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);
14181f: 89 c2 mov %eax,%edx <== NOT EXECUTED
141821: 66 c1 ea 08 shr $0x8,%dx <== NOT EXECUTED
141825: 88 11 mov %dl,(%ecx) <== NOT EXECUTED
141827: 8b 55 a4 mov -0x5c(%ebp),%edx <== NOT EXECUTED
14182a: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
14182d: c6 45 a8 01 movb $0x1,-0x58(%ebp) <== NOT EXECUTED
links--;
rtems_rfs_inode_set_links (&parent_inode, links);
}
}
rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);
141831: 53 push %ebx <== NOT EXECUTED
141832: 6a 01 push $0x1 <== NOT EXECUTED
141834: 6a 01 push $0x1 <== NOT EXECUTED
141836: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
141839: 50 push %eax <== NOT EXECUTED
14183a: e8 5d f4 ff ff call 140c9c <rtems_rfs_inode_time_stamp_now><== NOT EXECUTED
14183f: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
141841: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
141844: 85 c0 test %eax,%eax <== NOT EXECUTED
141846: 7e 24 jle 14186c <rtems_rfs_unlink+0x114><== 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);
141848: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
14184b: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
14184e: 50 push %eax <== NOT EXECUTED
14184f: 56 push %esi <== NOT EXECUTED
141850: e8 d3 f6 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
141855: 5a pop %edx <== NOT EXECUTED
141856: 59 pop %ecx <== NOT EXECUTED
141857: 57 push %edi <== NOT EXECUTED
141858: 56 push %esi <== NOT EXECUTED
141859: e8 ca f6 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
return rc;
14185e: 83 c4 10 add $0x10,%esp <== 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;
}
141861: 89 d8 mov %ebx,%eax <== NOT EXECUTED
141863: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141866: 5b pop %ebx <== NOT EXECUTED
141867: 5e pop %esi <== NOT EXECUTED
141868: 5f pop %edi <== NOT EXECUTED
141869: c9 leave <== NOT EXECUTED
14186a: c3 ret <== NOT EXECUTED
14186b: 90 nop <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
rc = rtems_rfs_inode_close (fs, &parent_inode);
14186c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
14186f: 8d 45 c0 lea -0x40(%ebp),%eax <== NOT EXECUTED
141872: 50 push %eax <== NOT EXECUTED
141873: 56 push %esi <== NOT EXECUTED
141874: e8 af f6 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
141879: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
14187b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
14187e: 85 c0 test %eax,%eax <== NOT EXECUTED
141880: 7e 36 jle 1418b8 <rtems_rfs_unlink+0x160><== NOT EXECUTED
141882: 66 90 xchg %ax,%ax <== 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);
141884: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
141887: 57 push %edi <== NOT EXECUTED
141888: 56 push %esi <== NOT EXECUTED
141889: e8 9a f6 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
return rc;
14188e: 83 c4 10 add $0x10,%esp <== 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;
}
141891: 89 d8 mov %ebx,%eax <== NOT EXECUTED
141893: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
141896: 5b pop %ebx <== NOT EXECUTED
141897: 5e pop %esi <== NOT EXECUTED
141898: 5f pop %edi <== NOT EXECUTED
141899: c9 leave <== NOT EXECUTED
14189a: c3 ret <== NOT EXECUTED
14189b: 90 nop <== NOT EXECUTED
printf ("rtems-rfs: link is a directory\n");
rtems_rfs_inode_close (fs, &target_inode);
return EISDIR;
case rtems_rfs_unlink_dir_if_empty:
rc = rtems_rfs_dir_empty (fs, &target_inode);
14189c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
14189f: 57 push %edi <== NOT EXECUTED
1418a0: 56 push %esi <== NOT EXECUTED
1418a1: e8 3a cc ff ff call 13e4e0 <rtems_rfs_dir_empty> <== NOT EXECUTED
1418a6: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1418a8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1418ab: 85 c0 test %eax,%eax <== NOT EXECUTED
1418ad: 0f 8e 13 ff ff ff jle 1417c6 <rtems_rfs_unlink+0x6e> <== NOT EXECUTED
1418b3: eb cf jmp 141884 <rtems_rfs_unlink+0x12c><== NOT EXECUTED
1418b5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
rc = rtems_rfs_inode_close (fs, &target_inode);
1418b8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1418bb: 57 push %edi <== NOT EXECUTED
1418bc: 56 push %esi <== NOT EXECUTED
1418bd: e8 66 f6 ff ff call 140f28 <rtems_rfs_inode_close> <== NOT EXECUTED
1418c2: 89 c3 mov %eax,%ebx <== 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;
1418c4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1418c7: e9 e3 fe ff ff jmp 1417af <rtems_rfs_unlink+0x57> <== NOT EXECUTED
else
{
/*
* Erasing the inode releases all blocks attached to it.
*/
rc = rtems_rfs_inode_delete (fs, &target_inode);
1418cc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1418cf: 57 push %edi <== NOT EXECUTED
1418d0: 56 push %esi <== NOT EXECUTED
1418d1: e8 8a f7 ff ff call 141060 <rtems_rfs_inode_delete><== NOT EXECUTED
1418d6: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (rc > 0)
1418d8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1418db: 85 c0 test %eax,%eax <== NOT EXECUTED
1418dd: 0f 8f 65 ff ff ff jg 141848 <rtems_rfs_unlink+0xf0> <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
if (dir)
1418e3: 80 7d 97 00 cmpb $0x0,-0x69(%ebp) <== NOT EXECUTED
1418e7: 0f 84 44 ff ff ff je 141831 <rtems_rfs_unlink+0xd9> <== 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);
1418ed: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
1418f0: 0f b6 0a movzbl (%edx),%ecx <== NOT EXECUTED
1418f3: c1 e1 08 shl $0x8,%ecx <== NOT EXECUTED
1418f6: 0f b6 42 01 movzbl 0x1(%edx),%eax <== NOT EXECUTED
1418fa: 09 c8 or %ecx,%eax <== NOT EXECUTED
if (links == 0xffff)
1418fc: 66 83 f8 ff cmp $0xffffffff,%ax <== NOT EXECUTED
141900: 74 1e je 141920 <rtems_rfs_unlink+0x1c8><== NOT EXECUTED
{
links = rtems_rfs_inode_get_links (&parent_inode);
if (links > 1)
141902: 66 83 f8 01 cmp $0x1,%ax <== NOT EXECUTED
141906: 76 1e jbe 141926 <rtems_rfs_unlink+0x1ce><== NOT EXECUTED
links--;
141908: 48 dec %eax <== NOT EXECUTED
141909: 89 c1 mov %eax,%ecx <== NOT EXECUTED
14190b: 66 c1 e9 08 shr $0x8,%cx <== 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);
14190f: 88 0a mov %cl,(%edx) <== NOT EXECUTED
141911: 8b 55 cc mov -0x34(%ebp),%edx <== NOT EXECUTED
141914: 88 42 01 mov %al,0x1(%edx) <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
141917: c6 45 d0 01 movb $0x1,-0x30(%ebp) <== NOT EXECUTED
14191b: e9 11 ff ff ff jmp 141831 <rtems_rfs_unlink+0xd9> <== 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);
if (links == 0xffff)
141920: 31 c0 xor %eax,%eax <== NOT EXECUTED
141922: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
141924: eb e9 jmp 14190f <rtems_rfs_unlink+0x1b7><== NOT EXECUTED
}
if (dir)
{
links = rtems_rfs_inode_get_links (&parent_inode);
if (links > 1)
141926: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
141928: eb e5 jmp 14190f <rtems_rfs_unlink+0x1b7><== NOT EXECUTED
0010ba6c <rtems_semaphore_create>:
uint32_t count,
rtems_attribute attribute_set,
rtems_task_priority priority_ceiling,
rtems_id *id
)
{
10ba6c: 55 push %ebp
10ba6d: 89 e5 mov %esp,%ebp
10ba6f: 57 push %edi
10ba70: 56 push %esi
10ba71: 53 push %ebx
10ba72: 83 ec 3c sub $0x3c,%esp
10ba75: 8b 75 08 mov 0x8(%ebp),%esi
10ba78: 8b 5d 10 mov 0x10(%ebp),%ebx
10ba7b: 8b 7d 18 mov 0x18(%ebp),%edi
register Semaphore_Control *the_semaphore;
CORE_mutex_Attributes the_mutex_attr;
CORE_semaphore_Attributes the_semaphore_attr;
CORE_mutex_Status mutex_status;
if ( !rtems_is_name_valid( name ) )
10ba7e: 85 f6 test %esi,%esi
10ba80: 74 4a je 10bacc <rtems_semaphore_create+0x60>
return RTEMS_INVALID_NAME;
if ( !id )
10ba82: 85 ff test %edi,%edi
10ba84: 0f 84 f6 00 00 00 je 10bb80 <rtems_semaphore_create+0x114>
return RTEMS_NOT_DEFINED;
} else
#endif
if ( _Attributes_Is_inherit_priority( attribute_set ) ||
10ba8a: 89 da mov %ebx,%edx
10ba8c: 81 e2 c0 00 00 00 and $0xc0,%edx
10ba92: 74 48 je 10badc <rtems_semaphore_create+0x70>
_Attributes_Is_priority_ceiling( attribute_set ) ) {
if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&
10ba94: 89 d8 mov %ebx,%eax
10ba96: 83 e0 30 and $0x30,%eax
10ba99: 83 f8 10 cmp $0x10,%eax
10ba9c: 74 0e je 10baac <rtems_semaphore_create+0x40>
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
10ba9e: b8 0b 00 00 00 mov $0xb,%eax
}
10baa3: 8d 65 f4 lea -0xc(%ebp),%esp
10baa6: 5b pop %ebx
10baa7: 5e pop %esi
10baa8: 5f pop %edi
10baa9: c9 leave
10baaa: c3 ret
10baab: 90 nop
#endif
if ( _Attributes_Is_inherit_priority( attribute_set ) ||
_Attributes_Is_priority_ceiling( attribute_set ) ) {
if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&
10baac: f6 c3 04 test $0x4,%bl
10baaf: 74 ed je 10ba9e <rtems_semaphore_create+0x32>
_Attributes_Is_priority( attribute_set ) ) )
return RTEMS_NOT_DEFINED;
}
if ( _Attributes_Is_inherit_priority( attribute_set ) &&
10bab1: 81 fa c0 00 00 00 cmp $0xc0,%edx
10bab7: 74 e5 je 10ba9e <rtems_semaphore_create+0x32>
10bab9: b9 10 00 00 00 mov $0x10,%ecx
_Attributes_Is_priority_ceiling( attribute_set ) )
return RTEMS_NOT_DEFINED;
if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
10babe: 83 7d 0c 01 cmpl $0x1,0xc(%ebp)
10bac2: 76 1f jbe 10bae3 <rtems_semaphore_create+0x77>
10bac4: b8 0a 00 00 00 mov $0xa,%eax
10bac9: eb d8 jmp 10baa3 <rtems_semaphore_create+0x37>
10bacb: 90 nop
register Semaphore_Control *the_semaphore;
CORE_mutex_Attributes the_mutex_attr;
CORE_semaphore_Attributes the_semaphore_attr;
CORE_mutex_Status mutex_status;
if ( !rtems_is_name_valid( name ) )
10bacc: b8 03 00 00 00 mov $0x3,%eax
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
10bad1: 8d 65 f4 lea -0xc(%ebp),%esp
10bad4: 5b pop %ebx
10bad5: 5e pop %esi
10bad6: 5f pop %edi
10bad7: c9 leave
10bad8: c3 ret
10bad9: 8d 76 00 lea 0x0(%esi),%esi
if ( _Attributes_Is_inherit_priority( attribute_set ) &&
_Attributes_Is_priority_ceiling( attribute_set ) )
return RTEMS_NOT_DEFINED;
if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
10badc: 89 d9 mov %ebx,%ecx
10bade: 83 e1 30 and $0x30,%ecx
10bae1: 75 db jne 10babe <rtems_semaphore_create+0x52>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10bae3: a1 58 73 12 00 mov 0x127358,%eax
10bae8: 40 inc %eax
10bae9: a3 58 73 12 00 mov %eax,0x127358
* This function allocates a semaphore control block from
* the inactive chain of free semaphore control blocks.
*/
RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Allocate( void )
{
return (Semaphore_Control *) _Objects_Allocate( &_Semaphore_Information );
10baee: 83 ec 0c sub $0xc,%esp
10baf1: 68 a0 72 12 00 push $0x1272a0
10baf6: 89 4d c4 mov %ecx,-0x3c(%ebp)
10baf9: e8 96 13 00 00 call 10ce94 <_Objects_Allocate>
10bafe: 89 c2 mov %eax,%edx
_Thread_Disable_dispatch(); /* prevents deletion */
the_semaphore = _Semaphore_Allocate();
if ( !the_semaphore ) {
10bb00: 83 c4 10 add $0x10,%esp
10bb03: 85 c0 test %eax,%eax
10bb05: 8b 4d c4 mov -0x3c(%ebp),%ecx
10bb08: 0f 84 ba 00 00 00 je 10bbc8 <rtems_semaphore_create+0x15c>
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_semaphore->attribute_set = attribute_set;
10bb0e: 89 58 10 mov %ebx,0x10(%eax)
/*
* Initialize it as a counting semaphore.
*/
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
10bb11: 85 c9 test %ecx,%ecx
10bb13: 74 77 je 10bb8c <rtems_semaphore_create+0x120>
/*
* It is either simple binary semaphore or a more powerful mutex
* style binary semaphore. This is the mutex style.
*/
if ( _Attributes_Is_priority( attribute_set ) )
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;
10bb15: 31 c0 xor %eax,%eax
10bb17: f6 c3 04 test $0x4,%bl
10bb1a: 0f 95 c0 setne %al
10bb1d: 89 45 d8 mov %eax,-0x28(%ebp)
else
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;
if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {
10bb20: 83 f9 10 cmp $0x10,%ecx
10bb23: 0f 84 ae 00 00 00 je 10bbd7 <rtems_semaphore_create+0x16b>
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
the_mutex_attr.only_owner_release = true;
}
}
} else /* must be simple binary semaphore */ {
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS;
10bb29: c7 45 d0 02 00 00 00 movl $0x2,-0x30(%ebp)
the_mutex_attr.only_owner_release = false;
10bb30: c6 45 d4 00 movb $0x0,-0x2c(%ebp)
}
mutex_status = _CORE_mutex_Initialize(
10bb34: 50 push %eax
10bb35: 31 c0 xor %eax,%eax
10bb37: 83 7d 0c 01 cmpl $0x1,0xc(%ebp)
10bb3b: 0f 94 c0 sete %al
10bb3e: 50 push %eax
10bb3f: 8d 45 d0 lea -0x30(%ebp),%eax
10bb42: 50 push %eax
10bb43: 8d 42 14 lea 0x14(%edx),%eax
10bb46: 50 push %eax
10bb47: 89 55 c4 mov %edx,-0x3c(%ebp)
10bb4a: e8 55 0b 00 00 call 10c6a4 <_CORE_mutex_Initialize>
&the_semaphore->Core_control.mutex,
&the_mutex_attr,
(count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED
);
if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) {
10bb4f: 83 c4 10 add $0x10,%esp
10bb52: 83 f8 06 cmp $0x6,%eax
10bb55: 8b 55 c4 mov -0x3c(%ebp),%edx
10bb58: 0f 84 a9 00 00 00 je 10bc07 <rtems_semaphore_create+0x19b><== NEVER TAKEN
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
10bb5e: 8b 42 08 mov 0x8(%edx),%eax
10bb61: 0f b7 d8 movzwl %ax,%ebx
10bb64: 8b 0d bc 72 12 00 mov 0x1272bc,%ecx
10bb6a: 89 14 99 mov %edx,(%ecx,%ebx,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
10bb6d: 89 72 0c mov %esi,0xc(%edx)
&_Semaphore_Information,
&the_semaphore->Object,
(Objects_Name) name
);
*id = the_semaphore->Object.id;
10bb70: 89 07 mov %eax,(%edi)
the_semaphore->Object.id,
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
10bb72: e8 15 20 00 00 call 10db8c <_Thread_Enable_dispatch>
10bb77: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10bb79: e9 25 ff ff ff jmp 10baa3 <rtems_semaphore_create+0x37>
10bb7e: 66 90 xchg %ax,%ax
CORE_mutex_Status mutex_status;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
10bb80: b8 09 00 00 00 mov $0x9,%eax
10bb85: e9 19 ff ff ff jmp 10baa3 <rtems_semaphore_create+0x37>
10bb8a: 66 90 xchg %ax,%ax
*/
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
/*
* This effectively disables limit checking.
*/
the_semaphore_attr.maximum_count = 0xFFFFFFFF;
10bb8c: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp)
if ( _Attributes_Is_priority( attribute_set ) )
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
10bb93: 31 c0 xor %eax,%eax
10bb95: f6 c3 04 test $0x4,%bl
10bb98: 0f 95 c0 setne %al
10bb9b: 89 45 e4 mov %eax,-0x1c(%ebp)
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
/*
* The following are just to make Purify happy.
*/
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
10bb9e: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp)
the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;
10bba5: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
_CORE_semaphore_Initialize(
10bbac: 51 push %ecx
10bbad: ff 75 0c pushl 0xc(%ebp)
10bbb0: 8d 45 e0 lea -0x20(%ebp),%eax
10bbb3: 50 push %eax
10bbb4: 8d 42 14 lea 0x14(%edx),%eax
10bbb7: 50 push %eax
10bbb8: 89 55 c4 mov %edx,-0x3c(%ebp)
10bbbb: e8 88 0d 00 00 call 10c948 <_CORE_semaphore_Initialize>
10bbc0: 83 c4 10 add $0x10,%esp
10bbc3: 8b 55 c4 mov -0x3c(%ebp),%edx
10bbc6: eb 96 jmp 10bb5e <rtems_semaphore_create+0xf2>
_Thread_Disable_dispatch(); /* prevents deletion */
the_semaphore = _Semaphore_Allocate();
if ( !the_semaphore ) {
_Thread_Enable_dispatch();
10bbc8: e8 bf 1f 00 00 call 10db8c <_Thread_Enable_dispatch>
10bbcd: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
10bbd2: e9 cc fe ff ff jmp 10baa3 <rtems_semaphore_create+0x37>
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;
else
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;
if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {
the_mutex_attr.priority_ceiling = priority_ceiling;
10bbd7: 8b 45 14 mov 0x14(%ebp),%eax
10bbda: 89 45 dc mov %eax,-0x24(%ebp)
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
10bbdd: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp)
the_mutex_attr.only_owner_release = false;
10bbe4: c6 45 d4 00 movb $0x0,-0x2c(%ebp)
if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
10bbe8: 83 7d d8 01 cmpl $0x1,-0x28(%ebp)
10bbec: 0f 85 42 ff ff ff jne 10bb34 <rtems_semaphore_create+0xc8>
if ( _Attributes_Is_inherit_priority( attribute_set ) ) {
10bbf2: f6 c3 40 test $0x40,%bl
10bbf5: 74 30 je 10bc27 <rtems_semaphore_create+0x1bb>
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
10bbf7: c7 45 d8 02 00 00 00 movl $0x2,-0x28(%ebp)
the_mutex_attr.only_owner_release = true;
10bbfe: c6 45 d4 01 movb $0x1,-0x2c(%ebp)
10bc02: e9 2d ff ff ff jmp 10bb34 <rtems_semaphore_create+0xc8>
*/
RTEMS_INLINE_ROUTINE void _Semaphore_Free (
Semaphore_Control *the_semaphore
)
{
_Objects_Free( &_Semaphore_Information, &the_semaphore->Object );
10bc07: 83 ec 08 sub $0x8,%esp
10bc0a: 52 push %edx
10bc0b: 68 a0 72 12 00 push $0x1272a0
10bc10: e8 ff 15 00 00 call 10d214 <_Objects_Free>
(count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED
);
if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) {
_Semaphore_Free( the_semaphore );
_Thread_Enable_dispatch();
10bc15: e8 72 1f 00 00 call 10db8c <_Thread_Enable_dispatch>
10bc1a: b8 13 00 00 00 mov $0x13,%eax
return RTEMS_INVALID_PRIORITY;
10bc1f: 83 c4 10 add $0x10,%esp
10bc22: e9 7c fe ff ff jmp 10baa3 <rtems_semaphore_create+0x37>
if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
if ( _Attributes_Is_inherit_priority( attribute_set ) ) {
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
the_mutex_attr.only_owner_release = true;
} else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) {
10bc27: 84 db test %bl,%bl
10bc29: 0f 89 05 ff ff ff jns 10bb34 <rtems_semaphore_create+0xc8>
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
10bc2f: c7 45 d8 03 00 00 00 movl $0x3,-0x28(%ebp)
the_mutex_attr.only_owner_release = true;
10bc36: c6 45 d4 01 movb $0x1,-0x2c(%ebp)
10bc3a: e9 f5 fe ff ff jmp 10bb34 <rtems_semaphore_create+0xc8>
0010bc40 <rtems_semaphore_delete>:
#endif
rtems_status_code rtems_semaphore_delete(
rtems_id id
)
{
10bc40: 55 push %ebp
10bc41: 89 e5 mov %esp,%ebp
10bc43: 53 push %ebx
10bc44: 83 ec 18 sub $0x18,%esp
RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Semaphore_Control *)
10bc47: 8d 45 f4 lea -0xc(%ebp),%eax
10bc4a: 50 push %eax
10bc4b: ff 75 08 pushl 0x8(%ebp)
10bc4e: 68 a0 72 12 00 push $0x1272a0
10bc53: e8 ec 16 00 00 call 10d344 <_Objects_Get>
10bc58: 89 c3 mov %eax,%ebx
register Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
10bc5a: 83 c4 10 add $0x10,%esp
10bc5d: 8b 4d f4 mov -0xc(%ebp),%ecx
10bc60: 85 c9 test %ecx,%ecx
10bc62: 74 0c je 10bc70 <rtems_semaphore_delete+0x30>
10bc64: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10bc69: 8b 5d fc mov -0x4(%ebp),%ebx
10bc6c: c9 leave
10bc6d: c3 ret
10bc6e: 66 90 xchg %ax,%ax
*/
RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore(
rtems_attribute attribute_set
)
{
return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE);
10bc70: 8b 40 10 mov 0x10(%eax),%eax
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
10bc73: 83 e0 30 and $0x30,%eax
10bc76: 74 58 je 10bcd0 <rtems_semaphore_delete+0x90>
if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) &&
10bc78: 8b 53 64 mov 0x64(%ebx),%edx
10bc7b: 85 d2 test %edx,%edx
10bc7d: 75 15 jne 10bc94 <rtems_semaphore_delete+0x54>
10bc7f: 83 f8 20 cmp $0x20,%eax
10bc82: 74 10 je 10bc94 <rtems_semaphore_delete+0x54>
!_Attributes_Is_simple_binary_semaphore(
the_semaphore->attribute_set ) ) {
_Thread_Enable_dispatch();
10bc84: e8 03 1f 00 00 call 10db8c <_Thread_Enable_dispatch>
10bc89: b8 0c 00 00 00 mov $0xc,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10bc8e: 8b 5d fc mov -0x4(%ebp),%ebx
10bc91: c9 leave
10bc92: c3 ret
10bc93: 90 nop
!_Attributes_Is_simple_binary_semaphore(
the_semaphore->attribute_set ) ) {
_Thread_Enable_dispatch();
return RTEMS_RESOURCE_IN_USE;
}
_CORE_mutex_Flush(
10bc94: 50 push %eax
10bc95: 6a 04 push $0x4
10bc97: 6a 00 push $0x0
10bc99: 8d 43 14 lea 0x14(%ebx),%eax
10bc9c: 50 push %eax
10bc9d: e8 f6 09 00 00 call 10c698 <_CORE_mutex_Flush>
10bca2: 83 c4 10 add $0x10,%esp
SEMAPHORE_MP_OBJECT_WAS_DELETED,
CORE_SEMAPHORE_WAS_DELETED
);
}
_Objects_Close( &_Semaphore_Information, &the_semaphore->Object );
10bca5: 83 ec 08 sub $0x8,%esp
10bca8: 53 push %ebx
10bca9: 68 a0 72 12 00 push $0x1272a0
10bcae: e8 5d 12 00 00 call 10cf10 <_Objects_Close>
*/
RTEMS_INLINE_ROUTINE void _Semaphore_Free (
Semaphore_Control *the_semaphore
)
{
_Objects_Free( &_Semaphore_Information, &the_semaphore->Object );
10bcb3: 58 pop %eax
10bcb4: 5a pop %edx
10bcb5: 53 push %ebx
10bcb6: 68 a0 72 12 00 push $0x1272a0
10bcbb: e8 54 15 00 00 call 10d214 <_Objects_Free>
0, /* Not used */
0 /* Not used */
);
}
#endif
_Thread_Enable_dispatch();
10bcc0: e8 c7 1e 00 00 call 10db8c <_Thread_Enable_dispatch>
10bcc5: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10bcc7: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10bcca: 8b 5d fc mov -0x4(%ebp),%ebx
10bccd: c9 leave
10bcce: c3 ret
10bccf: 90 nop
&the_semaphore->Core_control.mutex,
SEMAPHORE_MP_OBJECT_WAS_DELETED,
CORE_MUTEX_WAS_DELETED
);
} else {
_CORE_semaphore_Flush(
10bcd0: 51 push %ecx
10bcd1: 6a 02 push $0x2
10bcd3: 6a 00 push $0x0
10bcd5: 8d 43 14 lea 0x14(%ebx),%eax
10bcd8: 50 push %eax
10bcd9: e8 5e 0c 00 00 call 10c93c <_CORE_semaphore_Flush>
10bcde: 83 c4 10 add $0x10,%esp
10bce1: eb c2 jmp 10bca5 <rtems_semaphore_delete+0x65>
0010bce4 <rtems_semaphore_obtain>:
rtems_status_code rtems_semaphore_obtain(
rtems_id id,
rtems_option option_set,
rtems_interval timeout
)
{
10bce4: 55 push %ebp
10bce5: 89 e5 mov %esp,%ebp
10bce7: 57 push %edi
10bce8: 56 push %esi
10bce9: 53 push %ebx
10bcea: 83 ec 1c sub $0x1c,%esp
10bced: 8b 5d 08 mov 0x8(%ebp),%ebx
10bcf0: 8b 75 0c mov 0xc(%ebp),%esi
10bcf3: 8b 7d 10 mov 0x10(%ebp),%edi
Objects_Id id,
Objects_Locations *location,
ISR_Level *level
)
{
return (Semaphore_Control *)
10bcf6: 8d 45 e0 lea -0x20(%ebp),%eax
10bcf9: 50 push %eax
10bcfa: 8d 45 e4 lea -0x1c(%ebp),%eax
10bcfd: 50 push %eax
10bcfe: 53 push %ebx
10bcff: 68 a0 72 12 00 push $0x1272a0
10bd04: e8 e3 15 00 00 call 10d2ec <_Objects_Get_isr_disable>
register Semaphore_Control *the_semaphore;
Objects_Locations location;
ISR_Level level;
the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level );
switch ( location ) {
10bd09: 83 c4 10 add $0x10,%esp
10bd0c: 8b 4d e4 mov -0x1c(%ebp),%ecx
10bd0f: 85 c9 test %ecx,%ecx
10bd11: 74 0d je 10bd20 <rtems_semaphore_obtain+0x3c>
10bd13: b8 04 00 00 00 mov $0x4,%eax
break;
}
return RTEMS_INVALID_ID;
}
10bd18: 8d 65 f4 lea -0xc(%ebp),%esp
10bd1b: 5b pop %ebx
10bd1c: 5e pop %esi
10bd1d: 5f pop %edi
10bd1e: c9 leave
10bd1f: c3 ret
the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
10bd20: f6 40 10 30 testb $0x30,0x10(%eax)
10bd24: 74 36 je 10bd5c <rtems_semaphore_obtain+0x78>
_CORE_mutex_Seize(
10bd26: 83 ec 0c sub $0xc,%esp
10bd29: ff 75 e0 pushl -0x20(%ebp)
10bd2c: 57 push %edi
10bd2d: 83 e6 01 and $0x1,%esi
10bd30: 83 f6 01 xor $0x1,%esi
10bd33: 56 push %esi
10bd34: 53 push %ebx
10bd35: 83 c0 14 add $0x14,%eax
10bd38: 50 push %eax
10bd39: e8 5e 0a 00 00 call 10c79c <_CORE_mutex_Seize>
id,
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
level
);
return _Semaphore_Translate_core_mutex_return_code(
10bd3e: 83 c4 14 add $0x14,%esp
10bd41: a1 18 74 12 00 mov 0x127418,%eax
10bd46: ff 70 34 pushl 0x34(%eax)
10bd49: e8 12 01 00 00 call 10be60 <_Semaphore_Translate_core_mutex_return_code>
10bd4e: 83 c4 10 add $0x10,%esp
break;
}
return RTEMS_INVALID_ID;
}
10bd51: 8d 65 f4 lea -0xc(%ebp),%esp
10bd54: 5b pop %ebx
10bd55: 5e pop %esi
10bd56: 5f pop %edi
10bd57: c9 leave
10bd58: c3 ret
10bd59: 8d 76 00 lea 0x0(%esi),%esi
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
10bd5c: 8b 15 18 74 12 00 mov 0x127418,%edx
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
10bd62: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx)
if ( the_semaphore->count != 0 ) {
10bd69: 8b 48 5c mov 0x5c(%eax),%ecx
10bd6c: 85 c9 test %ecx,%ecx
10bd6e: 75 2c jne 10bd9c <rtems_semaphore_obtain+0xb8>
the_semaphore->count -= 1;
_ISR_Enable( *level_p );
return;
}
if ( !wait ) {
10bd70: 83 e6 01 and $0x1,%esi
10bd73: 74 33 je 10bda8 <rtems_semaphore_obtain+0xc4>
_ISR_Enable( *level_p );
10bd75: ff 75 e0 pushl -0x20(%ebp)
10bd78: 9d popf
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT;
10bd79: c7 42 34 01 00 00 00 movl $0x1,0x34(%edx)
id,
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
&level
);
return _Semaphore_Translate_core_semaphore_return_code(
10bd80: 83 ec 0c sub $0xc,%esp
10bd83: a1 18 74 12 00 mov 0x127418,%eax
10bd88: ff 70 34 pushl 0x34(%eax)
10bd8b: e8 e0 00 00 00 call 10be70 <_Semaphore_Translate_core_semaphore_return_code>
10bd90: 83 c4 10 add $0x10,%esp
break;
}
return RTEMS_INVALID_ID;
}
10bd93: 8d 65 f4 lea -0xc(%ebp),%esp
10bd96: 5b pop %ebx
10bd97: 5e pop %esi
10bd98: 5f pop %edi
10bd99: c9 leave
10bd9a: c3 ret
10bd9b: 90 nop
/* disabled when you get here */
executing = _Thread_Executing;
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
if ( the_semaphore->count != 0 ) {
the_semaphore->count -= 1;
10bd9c: 49 dec %ecx
10bd9d: 89 48 5c mov %ecx,0x5c(%eax)
_ISR_Enable( *level_p );
10bda0: ff 75 e0 pushl -0x20(%ebp)
10bda3: 9d popf
10bda4: eb da jmp 10bd80 <rtems_semaphore_obtain+0x9c>
10bda6: 66 90 xchg %ax,%ax
10bda8: 8b 0d 58 73 12 00 mov 0x127358,%ecx
10bdae: 41 inc %ecx
10bdaf: 89 0d 58 73 12 00 mov %ecx,0x127358
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;
10bdb5: c7 40 44 01 00 00 00 movl $0x1,0x44(%eax)
return;
}
_Thread_Disable_dispatch();
_Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue );
executing->Wait.queue = &the_semaphore->Wait_queue;
10bdbc: 83 c0 14 add $0x14,%eax
10bdbf: 89 42 44 mov %eax,0x44(%edx)
executing->Wait.id = id;
10bdc2: 89 5a 20 mov %ebx,0x20(%edx)
_ISR_Enable( *level_p );
10bdc5: ff 75 e0 pushl -0x20(%ebp)
10bdc8: 9d popf
_Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout );
10bdc9: 52 push %edx
10bdca: 68 98 e3 10 00 push $0x10e398
10bdcf: 57 push %edi
10bdd0: 50 push %eax
10bdd1: e8 b2 22 00 00 call 10e088 <_Thread_queue_Enqueue_with_handler>
_Thread_Enable_dispatch();
10bdd6: e8 b1 1d 00 00 call 10db8c <_Thread_Enable_dispatch>
10bddb: 83 c4 10 add $0x10,%esp
10bdde: eb a0 jmp 10bd80 <rtems_semaphore_obtain+0x9c>
0010bde0 <rtems_semaphore_release>:
#endif
rtems_status_code rtems_semaphore_release(
rtems_id id
)
{
10bde0: 55 push %ebp
10bde1: 89 e5 mov %esp,%ebp
10bde3: 53 push %ebx
10bde4: 83 ec 18 sub $0x18,%esp
10bde7: 8b 5d 08 mov 0x8(%ebp),%ebx
RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Semaphore_Control *)
10bdea: 8d 45 f4 lea -0xc(%ebp),%eax
10bded: 50 push %eax
10bdee: 53 push %ebx
10bdef: 68 a0 72 12 00 push $0x1272a0
10bdf4: e8 4b 15 00 00 call 10d344 <_Objects_Get>
Objects_Locations location;
CORE_mutex_Status mutex_status;
CORE_semaphore_Status semaphore_status;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
10bdf9: 83 c4 10 add $0x10,%esp
10bdfc: 8b 55 f4 mov -0xc(%ebp),%edx
10bdff: 85 d2 test %edx,%edx
10be01: 74 0d je 10be10 <rtems_semaphore_release+0x30>
10be03: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10be08: 8b 5d fc mov -0x4(%ebp),%ebx
10be0b: c9 leave
10be0c: c3 ret
10be0d: 8d 76 00 lea 0x0(%esi),%esi
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
10be10: f6 40 10 30 testb $0x30,0x10(%eax)
10be14: 75 26 jne 10be3c <rtems_semaphore_release+0x5c>
MUTEX_MP_SUPPORT
);
_Thread_Enable_dispatch();
return _Semaphore_Translate_core_mutex_return_code( mutex_status );
} else {
semaphore_status = _CORE_semaphore_Surrender(
10be16: 52 push %edx
10be17: 6a 00 push $0x0
10be19: 53 push %ebx
10be1a: 83 c0 14 add $0x14,%eax
10be1d: 50 push %eax
10be1e: e8 65 0b 00 00 call 10c988 <_CORE_semaphore_Surrender>
10be23: 89 c3 mov %eax,%ebx
&the_semaphore->Core_control.semaphore,
id,
MUTEX_MP_SUPPORT
);
_Thread_Enable_dispatch();
10be25: e8 62 1d 00 00 call 10db8c <_Thread_Enable_dispatch>
return
_Semaphore_Translate_core_semaphore_return_code( semaphore_status );
10be2a: 89 1c 24 mov %ebx,(%esp)
10be2d: e8 3e 00 00 00 call 10be70 <_Semaphore_Translate_core_semaphore_return_code>
&the_semaphore->Core_control.semaphore,
id,
MUTEX_MP_SUPPORT
);
_Thread_Enable_dispatch();
return
10be32: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10be35: 8b 5d fc mov -0x4(%ebp),%ebx
10be38: c9 leave
10be39: c3 ret
10be3a: 66 90 xchg %ax,%ax
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
mutex_status = _CORE_mutex_Surrender(
10be3c: 51 push %ecx
10be3d: 6a 00 push $0x0
10be3f: 53 push %ebx
10be40: 83 c0 14 add $0x14,%eax
10be43: 50 push %eax
10be44: e8 f3 09 00 00 call 10c83c <_CORE_mutex_Surrender>
10be49: 89 c3 mov %eax,%ebx
&the_semaphore->Core_control.mutex,
id,
MUTEX_MP_SUPPORT
);
_Thread_Enable_dispatch();
10be4b: e8 3c 1d 00 00 call 10db8c <_Thread_Enable_dispatch>
return _Semaphore_Translate_core_mutex_return_code( mutex_status );
10be50: 89 1c 24 mov %ebx,(%esp)
10be53: e8 08 00 00 00 call 10be60 <_Semaphore_Translate_core_mutex_return_code>
10be58: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10be5b: 8b 5d fc mov -0x4(%ebp),%ebx
10be5e: c9 leave
10be5f: c3 ret
001291fc <rtems_shell_debugrfs>:
printf (" -l: The debugger command list.\n");
}
int
rtems_shell_debugrfs (int argc, char *argv[])
{
1291fc: 55 push %ebp <== NOT EXECUTED
1291fd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
1291ff: 57 push %edi <== NOT EXECUTED
129200: 56 push %esi <== NOT EXECUTED
129201: 53 push %ebx <== NOT EXECUTED
129202: 81 ec bc 00 00 00 sub $0xbc,%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>" }
};
129208: 8d 85 60 ff ff ff lea -0xa0(%ebp),%eax <== NOT EXECUTED
12920e: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp) <== NOT EXECUTED
129214: be 60 3f 16 00 mov $0x163f60,%esi <== NOT EXECUTED
129219: b9 0f 00 00 00 mov $0xf,%ecx <== NOT EXECUTED
12921e: 89 c7 mov %eax,%edi <== NOT EXECUTED
129220: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
int arg;
int t;
for (arg = 1; arg < argc; arg++)
129222: 83 7d 08 01 cmpl $0x1,0x8(%ebp) <== NOT EXECUTED
129226: 0f 8e ec 00 00 00 jle 129318 <rtems_shell_debugrfs+0x11c><== NOT EXECUTED
{
if (argv[arg][0] != '-')
12922c: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12922f: 8b 58 04 mov 0x4(%eax),%ebx <== NOT EXECUTED
129232: 80 3b 2d cmpb $0x2d,(%ebx) <== NOT EXECUTED
129235: 0f 84 01 01 00 00 je 12933c <rtems_shell_debugrfs+0x140><== NOT EXECUTED
printf ("error: unknown option: %s\n", argv[arg]);
return 1;
}
}
if ((argc - arg) < 2)
12923b: 83 7d 08 02 cmpl $0x2,0x8(%ebp) <== NOT EXECUTED
12923f: 0f 84 d3 00 00 00 je 129318 <rtems_shell_debugrfs+0x11c><== NOT EXECUTED
rtems_rfs_get_fs (const char* path, rtems_rfs_file_system** fs)
{
struct statvfs sb;
int rc;
rc = statvfs (path, &sb);
129245: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
129248: 8d 45 9c lea -0x64(%ebp),%eax <== NOT EXECUTED
12924b: 50 push %eax <== NOT EXECUTED
12924c: 53 push %ebx <== NOT EXECUTED
12924d: e8 e2 67 00 00 call 12fa34 <statvfs> <== NOT EXECUTED
if (rc < 0)
129252: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129255: 85 c0 test %eax,%eax <== NOT EXECUTED
129257: 0f 88 fa 01 00 00 js 129457 <rtems_shell_debugrfs+0x25b><== NOT EXECUTED
printf ("error: cannot statvfs path: %s: (%d) %s\n",
path, errno, strerror (errno));
return -1;
}
if (sb.f_fsid != RTEMS_RFS_SB_MAGIC)
12925d: 81 7d c8 01 20 09 28 cmpl $0x28092001,-0x38(%ebp) <== NOT EXECUTED
129264: 0f 85 d2 01 00 00 jne 12943c <rtems_shell_debugrfs+0x240><== 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);
12926a: 31 c0 xor %eax,%eax <== NOT EXECUTED
12926c: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
129271: 89 df mov %ebx,%edi <== NOT EXECUTED
129273: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
129275: f7 d1 not %ecx <== NOT EXECUTED
129277: 49 dec %ecx <== NOT EXECUTED
129278: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12927b: 6a 01 push $0x1 <== NOT EXECUTED
12927d: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED
129280: 56 push %esi <== NOT EXECUTED
129281: 6a 00 push $0x0 <== NOT EXECUTED
129283: 51 push %ecx <== NOT EXECUTED
129284: 53 push %ebx <== NOT EXECUTED
129285: e8 6e 55 fe ff call 10e7f8 <rtems_filesystem_evaluate_path><== NOT EXECUTED
12928a: 89 c3 mov %eax,%ebx <== NOT EXECUTED
*fs = rtems_rfs_rtems_pathloc_dev (&pathloc);
12928c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
12928f: 8b 78 34 mov 0x34(%eax),%edi <== NOT EXECUTED
rtems_filesystem_freenode (&pathloc);
129292: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
129295: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
129298: 85 c0 test %eax,%eax <== NOT EXECUTED
12929a: 74 10 je 1292ac <rtems_shell_debugrfs+0xb0><== NOT EXECUTED
12929c: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12929f: 85 c0 test %eax,%eax <== NOT EXECUTED
1292a1: 74 09 je 1292ac <rtems_shell_debugrfs+0xb0><== NOT EXECUTED
1292a3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1292a6: 56 push %esi <== NOT EXECUTED
1292a7: ff d0 call *%eax <== NOT EXECUTED
1292a9: 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)
1292ac: 85 db test %ebx,%ebx <== NOT EXECUTED
1292ae: 0f 85 c0 00 00 00 jne 129374 <rtems_shell_debugrfs+0x178><== NOT EXECUTED
1292b4: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1292b7: 83 c0 08 add $0x8,%eax <== NOT EXECUTED
1292ba: 89 85 50 ff ff ff mov %eax,-0xb0(%ebp) <== NOT EXECUTED
1292c0: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
1292c3: 8b 70 08 mov 0x8(%eax),%esi <== NOT EXECUTED
1292c6: 8d 95 60 ff ff ff lea -0xa0(%ebp),%edx <== NOT EXECUTED
1292cc: 31 db xor %ebx,%ebx <== NOT EXECUTED
1292ce: 89 bd 54 ff ff ff mov %edi,-0xac(%ebp) <== NOT EXECUTED
1292d4: 89 df mov %ebx,%edi <== NOT EXECUTED
1292d6: 89 d3 mov %edx,%ebx <== NOT EXECUTED
{
for (t = 0; t < (sizeof (table) / sizeof (const rtems_rfs_shell_cmd)); t++)
if (strcmp (argv[arg + 1], table[t].name) == 0)
1292d8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1292db: ff 33 pushl (%ebx) <== NOT EXECUTED
1292dd: 56 push %esi <== NOT EXECUTED
1292de: e8 19 2d 02 00 call 14bffc <strcmp> <== NOT EXECUTED
1292e3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1292e6: 85 c0 test %eax,%eax <== NOT EXECUTED
1292e8: 0f 84 22 01 00 00 je 129410 <rtems_shell_debugrfs+0x214><== 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++)
1292ee: 47 inc %edi <== NOT EXECUTED
1292ef: 83 c3 0c add $0xc,%ebx <== NOT EXECUTED
1292f2: 83 ff 05 cmp $0x5,%edi <== NOT EXECUTED
1292f5: 75 e1 jne 1292d8 <rtems_shell_debugrfs+0xdc><== 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]);
1292f7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1292fa: 56 push %esi <== NOT EXECUTED
1292fb: 68 70 38 16 00 push $0x163870 <== NOT EXECUTED
129300: e8 af 13 02 00 call 14a6b4 <printf> <== NOT EXECUTED
129305: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
12930a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
return 1;
}
12930d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129310: 5b pop %ebx <== NOT EXECUTED
129311: 5e pop %esi <== NOT EXECUTED
129312: 5f pop %edi <== NOT EXECUTED
129313: c9 leave <== NOT EXECUTED
129314: c3 ret <== NOT EXECUTED
129315: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return 1;
}
}
if ((argc - arg) < 2)
printf ("error: you need at least a path and command, try %s -h\n", argv[0]);
129318: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12931b: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12931e: ff 30 pushl (%eax) <== NOT EXECUTED
129320: 68 d0 3c 16 00 push $0x163cd0 <== NOT EXECUTED
129325: e8 8a 13 02 00 call 14a6b4 <printf> <== NOT EXECUTED
12932a: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
12932f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
printf ("error: command not found: %s\n", argv[arg + 1]);
}
}
return 1;
}
129332: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
129335: 5b pop %ebx <== NOT EXECUTED
129336: 5e pop %esi <== NOT EXECUTED
129337: 5f pop %edi <== NOT EXECUTED
129338: c9 leave <== NOT EXECUTED
129339: c3 ret <== NOT EXECUTED
12933a: 66 90 xchg %ax,%ax <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
{
if (argv[arg][0] != '-')
break;
switch (argv[arg][1])
12933c: 8a 43 01 mov 0x1(%ebx),%al <== NOT EXECUTED
12933f: 3c 68 cmp $0x68,%al <== NOT EXECUTED
129341: 74 1d je 129360 <rtems_shell_debugrfs+0x164><== NOT EXECUTED
129343: 3c 6c cmp $0x6c,%al <== NOT EXECUTED
129345: 74 3d je 129384 <rtems_shell_debugrfs+0x188><== NOT EXECUTED
printf ("%s: commands are:\n", argv[0]);
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);
return 0;
default:
printf ("error: unknown option: %s\n", argv[arg]);
129347: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12934a: 53 push %ebx <== NOT EXECUTED
12934b: 68 55 38 16 00 push $0x163855 <== NOT EXECUTED
129350: e8 5f 13 02 00 call 14a6b4 <printf> <== NOT EXECUTED
129355: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
12935a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12935d: eb ae jmp 12930d <rtems_shell_debugrfs+0x111><== NOT EXECUTED
12935f: 90 nop <== NOT EXECUTED
break;
switch (argv[arg][1])
{
case 'h':
rtems_rfs_shell_usage (argv[0]);
129360: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
129363: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
129366: ff 30 pushl (%eax) <== NOT EXECUTED
129368: e8 3f ee ff ff call 1281ac <rtems_rfs_shell_usage> <== NOT EXECUTED
12936d: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
12936f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129372: eb 99 jmp 12930d <rtems_shell_debugrfs+0x111><== 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)
129374: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
printf ("error: command not found: %s\n", argv[arg + 1]);
}
}
return 1;
}
129379: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12937c: 5b pop %ebx <== NOT EXECUTED
12937d: 5e pop %esi <== NOT EXECUTED
12937e: 5f pop %edi <== NOT EXECUTED
12937f: c9 leave <== NOT EXECUTED
129380: c3 ret <== NOT EXECUTED
129381: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{
case 'h':
rtems_rfs_shell_usage (argv[0]);
return 0;
case 'l':
printf ("%s: commands are:\n", argv[0]);
129384: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
129387: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
12938a: ff 30 pushl (%eax) <== NOT EXECUTED
12938c: 68 38 38 16 00 push $0x163838 <== NOT EXECUTED
129391: e8 1e 13 02 00 call 14a6b4 <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);
129396: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
129399: ff b5 68 ff ff ff pushl -0x98(%ebp) <== NOT EXECUTED
12939f: ff b5 60 ff ff ff pushl -0xa0(%ebp) <== NOT EXECUTED
1293a5: 68 4b 38 16 00 push $0x16384b <== NOT EXECUTED
1293aa: e8 05 13 02 00 call 14a6b4 <printf> <== NOT EXECUTED
1293af: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1293b2: ff b5 74 ff ff ff pushl -0x8c(%ebp) <== NOT EXECUTED
1293b8: ff b5 6c ff ff ff pushl -0x94(%ebp) <== NOT EXECUTED
1293be: 68 4b 38 16 00 push $0x16384b <== NOT EXECUTED
1293c3: e8 ec 12 02 00 call 14a6b4 <printf> <== NOT EXECUTED
1293c8: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1293cb: ff 75 80 pushl -0x80(%ebp) <== NOT EXECUTED
1293ce: ff b5 78 ff ff ff pushl -0x88(%ebp) <== NOT EXECUTED
1293d4: 68 4b 38 16 00 push $0x16384b <== NOT EXECUTED
1293d9: e8 d6 12 02 00 call 14a6b4 <printf> <== NOT EXECUTED
1293de: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1293e1: ff 75 8c pushl -0x74(%ebp) <== NOT EXECUTED
1293e4: ff 75 84 pushl -0x7c(%ebp) <== NOT EXECUTED
1293e7: 68 4b 38 16 00 push $0x16384b <== NOT EXECUTED
1293ec: e8 c3 12 02 00 call 14a6b4 <printf> <== NOT EXECUTED
1293f1: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1293f4: ff 75 98 pushl -0x68(%ebp) <== NOT EXECUTED
1293f7: ff 75 90 pushl -0x70(%ebp) <== NOT EXECUTED
1293fa: 68 4b 38 16 00 push $0x16384b <== NOT EXECUTED
1293ff: e8 b0 12 02 00 call 14a6b4 <printf> <== NOT EXECUTED
129404: 31 c0 xor %eax,%eax <== NOT EXECUTED
129406: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129409: e9 ff fe ff ff jmp 12930d <rtems_shell_debugrfs+0x111><== NOT EXECUTED
12940e: 66 90 xchg %ax,%ax <== NOT EXECUTED
129410: 89 fb mov %edi,%ebx <== NOT EXECUTED
129412: 8b bd 54 ff ff ff mov -0xac(%ebp),%edi <== NOT EXECUTED
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++)
if (strcmp (argv[arg + 1], table[t].name) == 0)
return table[t].handler (fs, argc - 2, argv + 2);
129418: 52 push %edx <== NOT EXECUTED
129419: 8d 04 5b lea (%ebx,%ebx,2),%eax <== NOT EXECUTED
12941c: ff b5 50 ff ff ff pushl -0xb0(%ebp) <== NOT EXECUTED
129422: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
129425: 83 ea 02 sub $0x2,%edx <== NOT EXECUTED
129428: 52 push %edx <== NOT EXECUTED
129429: 57 push %edi <== NOT EXECUTED
12942a: ff 94 85 64 ff ff ff call *-0x9c(%ebp,%eax,4) <== NOT EXECUTED
129431: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129434: e9 d4 fe ff ff jmp 12930d <rtems_shell_debugrfs+0x111><== NOT EXECUTED
129439: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return -1;
}
if (sb.f_fsid != RTEMS_RFS_SB_MAGIC)
{
printf ("error: path '%s' is not on an RFS file system\n", path);
12943c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12943f: 53 push %ebx <== NOT EXECUTED
129440: 68 34 3d 16 00 push $0x163d34 <== NOT EXECUTED
129445: e8 6a 12 02 00 call 14a6b4 <printf> <== NOT EXECUTED
12944a: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
12944f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
129452: e9 b6 fe ff ff jmp 12930d <rtems_shell_debugrfs+0x111><== NOT EXECUTED
int rc;
rc = statvfs (path, &sb);
if (rc < 0)
{
printf ("error: cannot statvfs path: %s: (%d) %s\n",
129457: e8 30 d3 01 00 call 14678c <__errno> <== NOT EXECUTED
12945c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12945f: ff 30 pushl (%eax) <== NOT EXECUTED
129461: e8 96 2c 02 00 call 14c0fc <strerror> <== NOT EXECUTED
129466: 89 c6 mov %eax,%esi <== NOT EXECUTED
129468: e8 1f d3 01 00 call 14678c <__errno> <== NOT EXECUTED
12946d: 56 push %esi <== NOT EXECUTED
12946e: ff 30 pushl (%eax) <== NOT EXECUTED
129470: 53 push %ebx <== NOT EXECUTED
129471: 68 08 3d 16 00 push $0x163d08 <== NOT EXECUTED
129476: e8 39 12 02 00 call 14a6b4 <printf> <== NOT EXECUTED
12947b: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
129480: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
129483: e9 85 fe ff ff jmp 12930d <rtems_shell_debugrfs+0x111><== NOT EXECUTED
00128214 <rtems_shell_rfs_format>:
return 1;
}
int
rtems_shell_rfs_format (int argc, char* argv[])
{
128214: 55 push %ebp <== NOT EXECUTED
128215: 89 e5 mov %esp,%ebp <== NOT EXECUTED
128217: 57 push %edi <== NOT EXECUTED
128218: 56 push %esi <== NOT EXECUTED
128219: 53 push %ebx <== NOT EXECUTED
12821a: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED
12821d: 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));
128220: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
128223: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED
128226: b9 18 00 00 00 mov $0x18,%ecx <== NOT EXECUTED
12822b: 31 c0 xor %eax,%eax <== NOT EXECUTED
12822d: 8b 7d b4 mov -0x4c(%ebp),%edi <== NOT EXECUTED
128230: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
128232: 83 7d 08 01 cmpl $0x1,0x8(%ebp) <== NOT EXECUTED
128236: 0f 8e 99 01 00 00 jle 1283d5 <rtems_shell_rfs_format+0x1c1><== NOT EXECUTED
12823c: be 01 00 00 00 mov $0x1,%esi <== NOT EXECUTED
128241: 31 d2 xor %edx,%edx <== NOT EXECUTED
128243: 89 df mov %ebx,%edi <== NOT EXECUTED
128245: 89 d3 mov %edx,%ebx <== NOT EXECUTED
128247: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
12824a: eb 0f jmp 12825b <rtems_shell_rfs_format+0x47><== NOT EXECUTED
return 1;
}
}
else
{
if (!driver)
12824c: 85 db test %ebx,%ebx <== NOT EXECUTED
12824e: 0f 85 38 01 00 00 jne 12838c <rtems_shell_rfs_format+0x178><== NOT EXECUTED
const char* driver = NULL;
int arg;
memset (&config, 0, sizeof (rtems_rfs_format_config));
for (arg = 1; arg < argc; arg++)
128254: 46 inc %esi <== NOT EXECUTED
128255: 39 f2 cmp %esi,%edx <== NOT EXECUTED
128257: 7e 4b jle 1282a4 <rtems_shell_rfs_format+0x90><== NOT EXECUTED
128259: 89 c3 mov %eax,%ebx <== NOT EXECUTED
{
if (argv[arg][0] == '-')
12825b: 8b 04 b7 mov (%edi,%esi,4),%eax <== NOT EXECUTED
12825e: 80 38 2d cmpb $0x2d,(%eax) <== NOT EXECUTED
128261: 75 e9 jne 12824c <rtems_shell_rfs_format+0x38><== NOT EXECUTED
{
switch (argv[arg][1])
128263: 8a 48 01 mov 0x1(%eax),%cl <== NOT EXECUTED
128266: 83 e9 49 sub $0x49,%ecx <== NOT EXECUTED
128269: 80 f9 2d cmp $0x2d,%cl <== NOT EXECUTED
12826c: 76 1e jbe 12828c <rtems_shell_rfs_format+0x78><== NOT EXECUTED
}
config.inode_overhead = strtoul (argv[arg], 0, 0);
break;
default:
printf ("error: invalid option: %s\n", argv[arg]);
12826e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
128271: 50 push %eax <== NOT EXECUTED
128272: 68 fd ce 15 00 push $0x15cefd <== NOT EXECUTED
128277: e8 38 24 02 00 call 14a6b4 <printf> <== NOT EXECUTED
12827c: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
128281: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
driver, strerror (errno));
return 1;
}
return 0;
}
128284: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
128287: 5b pop %ebx <== NOT EXECUTED
128288: 5e pop %esi <== NOT EXECUTED
128289: 5f pop %edi <== NOT EXECUTED
12828a: c9 leave <== NOT EXECUTED
12828b: c3 ret <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
{
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
12828c: 0f b6 c9 movzbl %cl,%ecx <== NOT EXECUTED
12828f: ff 24 8d a0 3e 16 00 jmp *0x163ea0(,%ecx,4) <== NOT EXECUTED
128296: 66 90 xchg %ax,%ax <== NOT EXECUTED
{
case 'v':
config.verbose = true;
128298: c6 45 e5 01 movb $0x1,-0x1b(%ebp) <== NOT EXECUTED
12829c: 89 d8 mov %ebx,%eax <== NOT EXECUTED
const char* driver = NULL;
int arg;
memset (&config, 0, sizeof (rtems_rfs_format_config));
for (arg = 1; arg < argc; arg++)
12829e: 46 inc %esi <== NOT EXECUTED
12829f: 39 f2 cmp %esi,%edx <== NOT EXECUTED
1282a1: 7f b6 jg 128259 <rtems_shell_rfs_format+0x45><== NOT EXECUTED
1282a3: 90 nop <== NOT EXECUTED
1282a4: 89 c7 mov %eax,%edi <== NOT EXECUTED
return 1;
}
}
}
if (!driver) {
1282a6: 85 c0 test %eax,%eax <== NOT EXECUTED
1282a8: 0f 84 27 01 00 00 je 1283d5 <rtems_shell_rfs_format+0x1c1><== NOT EXECUTED
printf ("error: no driver name provided\n");
return 1;
}
if (rtems_rfs_format (driver, &config) < 0)
1282ae: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1282b1: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED
1282b4: 50 push %eax <== NOT EXECUTED
1282b5: 57 push %edi <== NOT EXECUTED
1282b6: e8 e5 75 01 00 call 13f8a0 <rtems_rfs_format> <== NOT EXECUTED
1282bb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1282be: 85 c0 test %eax,%eax <== NOT EXECUTED
1282c0: 0f 88 e4 00 00 00 js 1283aa <rtems_shell_rfs_format+0x196><== NOT EXECUTED
1282c6: 31 c0 xor %eax,%eax <== NOT EXECUTED
driver, strerror (errno));
return 1;
}
return 0;
}
1282c8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1282cb: 5b pop %ebx <== NOT EXECUTED
1282cc: 5e pop %esi <== NOT EXECUTED
1282cd: 5f pop %edi <== NOT EXECUTED
1282ce: c9 leave <== NOT EXECUTED
1282cf: c3 ret <== NOT EXECUTED
case 'v':
config.verbose = true;
break;
case 's':
arg++;
1282d0: 46 inc %esi <== NOT EXECUTED
if (arg >= argc)
1282d1: 39 f2 cmp %esi,%edx <== NOT EXECUTED
1282d3: 0f 8e 30 01 00 00 jle 128409 <rtems_shell_rfs_format+0x1f5><== NOT EXECUTED
{
printf ("error: block size needs an argument\n");
return 1;
}
config.block_size = strtoul (argv[arg], 0, 0);
1282d9: 50 push %eax <== NOT EXECUTED
1282da: 6a 00 push $0x0 <== NOT EXECUTED
1282dc: 6a 00 push $0x0 <== NOT EXECUTED
1282de: ff 34 b7 pushl (%edi,%esi,4) <== NOT EXECUTED
1282e1: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
1282e4: e8 5b 58 02 00 call 14db44 <strtoul> <== NOT EXECUTED
1282e9: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED
1282ec: 89 d8 mov %ebx,%eax <== NOT EXECUTED
break;
1282ee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1282f1: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
1282f4: e9 5b ff ff ff jmp 128254 <rtems_shell_rfs_format+0x40><== NOT EXECUTED
1282f9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
case 'I':
config.initialise_inodes = true;
break;
case 'o':
arg++;
1282fc: 46 inc %esi <== NOT EXECUTED
if (arg >= argc)
1282fd: 39 f2 cmp %esi,%edx <== NOT EXECUTED
1282ff: 0f 8e 38 01 00 00 jle 12843d <rtems_shell_rfs_format+0x229><== NOT EXECUTED
{
printf ("error: inode percentage overhead needs an argument\n");
return 1;
}
config.inode_overhead = strtoul (argv[arg], 0, 0);
128305: 51 push %ecx <== NOT EXECUTED
128306: 6a 00 push $0x0 <== NOT EXECUTED
128308: 6a 00 push $0x0 <== NOT EXECUTED
12830a: ff 34 b7 pushl (%edi,%esi,4) <== NOT EXECUTED
12830d: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
128310: e8 2f 58 02 00 call 14db44 <strtoul> <== NOT EXECUTED
128315: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
128318: 89 d8 mov %ebx,%eax <== NOT EXECUTED
break;
12831a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12831d: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
128320: e9 2f ff ff ff jmp 128254 <rtems_shell_rfs_format+0x40><== NOT EXECUTED
128325: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
config.group_blocks = strtoul (argv[arg], 0, 0);
break;
case 'i':
arg++;
128328: 46 inc %esi <== NOT EXECUTED
if (arg >= argc)
128329: 39 f2 cmp %esi,%edx <== NOT EXECUTED
12832b: 0f 8e f2 00 00 00 jle 128423 <rtems_shell_rfs_format+0x20f><== NOT EXECUTED
{
printf ("error: group inode count needs an argument\n");
return 1;
}
config.group_inodes = strtoul (argv[arg], 0, 0);
128331: 50 push %eax <== NOT EXECUTED
128332: 6a 00 push $0x0 <== NOT EXECUTED
128334: 6a 00 push $0x0 <== NOT EXECUTED
128336: ff 34 b7 pushl (%edi,%esi,4) <== NOT EXECUTED
128339: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
12833c: e8 03 58 02 00 call 14db44 <strtoul> <== NOT EXECUTED
128341: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
128344: 89 d8 mov %ebx,%eax <== NOT EXECUTED
break;
128346: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128349: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
12834c: e9 03 ff ff ff jmp 128254 <rtems_shell_rfs_format+0x40><== NOT EXECUTED
128351: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
config.block_size = strtoul (argv[arg], 0, 0);
break;
case 'b':
arg++;
128354: 46 inc %esi <== NOT EXECUTED
if (arg >= argc)
128355: 39 f2 cmp %esi,%edx <== NOT EXECUTED
128357: 0f 8e 92 00 00 00 jle 1283ef <rtems_shell_rfs_format+0x1db><== NOT EXECUTED
{
printf ("error: group block count needs an argument\n");
return 1;
}
config.group_blocks = strtoul (argv[arg], 0, 0);
12835d: 51 push %ecx <== NOT EXECUTED
12835e: 6a 00 push $0x0 <== NOT EXECUTED
128360: 6a 00 push $0x0 <== NOT EXECUTED
128362: ff 34 b7 pushl (%edi,%esi,4) <== NOT EXECUTED
128365: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED
128368: e8 d7 57 02 00 call 14db44 <strtoul> <== NOT EXECUTED
12836d: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
128370: 89 d8 mov %ebx,%eax <== NOT EXECUTED
break;
128372: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128375: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED
128378: e9 d7 fe ff ff jmp 128254 <rtems_shell_rfs_format+0x40><== NOT EXECUTED
12837d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
config.group_inodes = strtoul (argv[arg], 0, 0);
break;
case 'I':
config.initialise_inodes = true;
128380: c6 45 e4 01 movb $0x1,-0x1c(%ebp) <== NOT EXECUTED
128384: 89 d8 mov %ebx,%eax <== NOT EXECUTED
break;
128386: e9 c9 fe ff ff jmp 128254 <rtems_shell_rfs_format+0x40><== NOT EXECUTED
12838b: 90 nop <== NOT EXECUTED
{
if (!driver)
driver = argv[arg];
else
{
printf ("error: only one driver name allowed: %s\n", argv[arg]);
12838c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12838f: 50 push %eax <== NOT EXECUTED
128390: 68 58 d8 15 00 push $0x15d858 <== NOT EXECUTED
128395: e8 1a 23 02 00 call 14a6b4 <printf> <== NOT EXECUTED
12839a: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
12839f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
driver, strerror (errno));
return 1;
}
return 0;
}
1283a2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1283a5: 5b pop %ebx <== NOT EXECUTED
1283a6: 5e pop %esi <== NOT EXECUTED
1283a7: 5f pop %edi <== NOT EXECUTED
1283a8: c9 leave <== NOT EXECUTED
1283a9: c3 ret <== NOT EXECUTED
return 1;
}
if (rtems_rfs_format (driver, &config) < 0)
{
printf ("error: format of %s failed: %s\n",
1283aa: e8 dd e3 01 00 call 14678c <__errno> <== NOT EXECUTED
1283af: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1283b2: ff 30 pushl (%eax) <== NOT EXECUTED
1283b4: e8 43 3d 02 00 call 14c0fc <strerror> <== NOT EXECUTED
1283b9: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
1283bc: 50 push %eax <== NOT EXECUTED
1283bd: 57 push %edi <== NOT EXECUTED
1283be: 68 04 3a 16 00 push $0x163a04 <== NOT EXECUTED
1283c3: e8 ec 22 02 00 call 14a6b4 <printf> <== NOT EXECUTED
1283c8: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
driver, strerror (errno));
return 1;
1283cd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1283d0: e9 af fe ff ff jmp 128284 <rtems_shell_rfs_format+0x70><== NOT EXECUTED
}
}
}
if (!driver) {
printf ("error: no driver name provided\n");
1283d5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1283d8: 68 e4 39 16 00 push $0x1639e4 <== NOT EXECUTED
1283dd: e8 e6 24 02 00 call 14a8c8 <puts> <== NOT EXECUTED
1283e2: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
1283e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1283ea: e9 95 fe ff ff jmp 128284 <rtems_shell_rfs_format+0x70><== NOT EXECUTED
case 'b':
arg++;
if (arg >= argc)
{
printf ("error: group block count needs an argument\n");
1283ef: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1283f2: 68 58 39 16 00 push $0x163958 <== NOT EXECUTED
1283f7: e8 cc 24 02 00 call 14a8c8 <puts> <== NOT EXECUTED
1283fc: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
128401: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128404: e9 7b fe ff ff jmp 128284 <rtems_shell_rfs_format+0x70><== NOT EXECUTED
case 's':
arg++;
if (arg >= argc)
{
printf ("error: block size needs an argument\n");
128409: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12840c: 68 34 39 16 00 push $0x163934 <== NOT EXECUTED
128411: e8 b2 24 02 00 call 14a8c8 <puts> <== NOT EXECUTED
128416: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
12841b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12841e: e9 61 fe ff ff jmp 128284 <rtems_shell_rfs_format+0x70><== NOT EXECUTED
case 'i':
arg++;
if (arg >= argc)
{
printf ("error: group inode count needs an argument\n");
128423: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128426: 68 84 39 16 00 push $0x163984 <== NOT EXECUTED
12842b: e8 98 24 02 00 call 14a8c8 <puts> <== NOT EXECUTED
128430: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
128435: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128438: e9 47 fe ff ff jmp 128284 <rtems_shell_rfs_format+0x70><== NOT EXECUTED
case 'o':
arg++;
if (arg >= argc)
{
printf ("error: inode percentage overhead needs an argument\n");
12843d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
128440: 68 b0 39 16 00 push $0x1639b0 <== NOT EXECUTED
128445: e8 7e 24 02 00 call 14a8c8 <puts> <== NOT EXECUTED
12844a: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
12844f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
128452: e9 2d fe ff ff jmp 128284 <rtems_shell_rfs_format+0x70><== NOT EXECUTED
0011866c <rtems_signal_send>:
rtems_status_code rtems_signal_send(
rtems_id id,
rtems_signal_set signal_set
)
{
11866c: 55 push %ebp
11866d: 89 e5 mov %esp,%ebp
11866f: 53 push %ebx
118670: 83 ec 14 sub $0x14,%esp
118673: 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 )
118676: 85 db test %ebx,%ebx
118678: 75 0a jne 118684 <rtems_signal_send+0x18>
11867a: b8 0a 00 00 00 mov $0xa,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
11867f: 8b 5d fc mov -0x4(%ebp),%ebx
118682: c9 leave
118683: c3 ret
ASR_Information *asr;
if ( !signal_set )
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
118684: 83 ec 08 sub $0x8,%esp
118687: 8d 45 f4 lea -0xc(%ebp),%eax
11868a: 50 push %eax
11868b: ff 75 08 pushl 0x8(%ebp)
11868e: e8 ed 3a 00 00 call 11c180 <_Thread_Get>
switch ( location ) {
118693: 83 c4 10 add $0x10,%esp
118696: 8b 55 f4 mov -0xc(%ebp),%edx
118699: 85 d2 test %edx,%edx
11869b: 74 0b je 1186a8 <rtems_signal_send+0x3c>
11869d: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1186a2: 8b 5d fc mov -0x4(%ebp),%ebx
1186a5: c9 leave
1186a6: c3 ret
1186a7: 90 nop
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
1186a8: 8b 90 f0 00 00 00 mov 0xf0(%eax),%edx
asr = &api->Signal;
1186ae: 8b 4a 0c mov 0xc(%edx),%ecx
1186b1: 85 c9 test %ecx,%ecx
1186b3: 74 43 je 1186f8 <rtems_signal_send+0x8c>
if ( ! _ASR_Is_null_handler( asr->handler ) ) {
if ( asr->is_enabled ) {
1186b5: 80 7a 08 00 cmpb $0x0,0x8(%edx)
1186b9: 74 29 je 1186e4 <rtems_signal_send+0x78>
rtems_signal_set *signal_set
)
{
ISR_Level _level;
_ISR_Disable( _level );
1186bb: 9c pushf
1186bc: fa cli
1186bd: 59 pop %ecx
*signal_set |= signals;
1186be: 09 5a 14 or %ebx,0x14(%edx)
_ISR_Enable( _level );
1186c1: 51 push %ecx
1186c2: 9d popf
_ASR_Post_signals( signal_set, &asr->signals_posted );
the_thread->do_post_task_switch_extension = true;
1186c3: c6 40 74 01 movb $0x1,0x74(%eax)
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
1186c7: 8b 15 14 28 14 00 mov 0x142814,%edx
1186cd: 85 d2 test %edx,%edx
1186cf: 74 1b je 1186ec <rtems_signal_send+0x80>
1186d1: 3b 05 38 28 14 00 cmp 0x142838,%eax
1186d7: 75 13 jne 1186ec <rtems_signal_send+0x80><== NEVER TAKEN
_ISR_Signals_to_thread_executing = true;
1186d9: c6 05 e8 28 14 00 01 movb $0x1,0x1428e8
1186e0: eb 0a jmp 1186ec <rtems_signal_send+0x80>
1186e2: 66 90 xchg %ax,%ax
rtems_signal_set *signal_set
)
{
ISR_Level _level;
_ISR_Disable( _level );
1186e4: 9c pushf
1186e5: fa cli
1186e6: 58 pop %eax
*signal_set |= signals;
1186e7: 09 5a 18 or %ebx,0x18(%edx)
_ISR_Enable( _level );
1186ea: 50 push %eax
1186eb: 9d popf
} else {
_ASR_Post_signals( signal_set, &asr->signals_pending );
}
_Thread_Enable_dispatch();
1186ec: e8 3f 3a 00 00 call 11c130 <_Thread_Enable_dispatch>
1186f1: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1186f3: 8b 5d fc mov -0x4(%ebp),%ebx
1186f6: c9 leave
1186f7: c3 ret
_ASR_Post_signals( signal_set, &asr->signals_pending );
}
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
1186f8: e8 33 3a 00 00 call 11c130 <_Thread_Enable_dispatch>
1186fd: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_NOT_DEFINED;
118702: e9 78 ff ff ff jmp 11867f <rtems_signal_send+0x13>
0010cd48 <rtems_stack_checker_begin_extension>:
* rtems_stack_checker_Begin_extension
*/
void rtems_stack_checker_begin_extension(
Thread_Control *the_thread
)
{
10cd48: 55 push %ebp
10cd49: 89 e5 mov %esp,%ebp
10cd4b: 57 push %edi
10cd4c: 56 push %esi
10cd4d: 8b 45 08 mov 0x8(%ebp),%eax
Stack_check_Control *the_pattern;
if ( the_thread->Object.id == 0 ) /* skip system tasks */
10cd50: 8b 50 08 mov 0x8(%eax),%edx
10cd53: 85 d2 test %edx,%edx
10cd55: 74 15 je 10cd6c <rtems_stack_checker_begin_extension+0x24><== NEVER TAKEN
return;
the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack);
*the_pattern = Stack_check_Pattern;
10cd57: 8b b8 c4 00 00 00 mov 0xc4(%eax),%edi
10cd5d: 83 c7 08 add $0x8,%edi
10cd60: be 20 2d 17 00 mov $0x172d20,%esi
10cd65: b9 04 00 00 00 mov $0x4,%ecx
10cd6a: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
}
10cd6c: 5e pop %esi
10cd6d: 5f pop %edi
10cd6e: c9 leave
10cd6f: c3 ret
0010d160 <rtems_stack_checker_create_extension>:
*/
bool rtems_stack_checker_create_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *the_thread
)
{
10d160: 55 push %ebp
10d161: 89 e5 mov %esp,%ebp
10d163: 57 push %edi
10d164: 8b 7d 0c mov 0xc(%ebp),%edi
Stack_check_Initialize();
10d167: e8 94 ff ff ff call 10d100 <Stack_check_Initialize>
if (the_thread)
10d16c: 85 ff test %edi,%edi
10d16e: 74 12 je 10d182 <rtems_stack_checker_create_extension+0x22><== NEVER TAKEN
Stack_check_Dope_stack(&the_thread->Start.Initial_stack);
10d170: 8b 8f c0 00 00 00 mov 0xc0(%edi),%ecx
10d176: 8b 97 c4 00 00 00 mov 0xc4(%edi),%edx
10d17c: b0 a5 mov $0xa5,%al
10d17e: 89 d7 mov %edx,%edi
10d180: f3 aa rep stos %al,%es:(%edi)
return true;
}
10d182: b0 01 mov $0x1,%al
10d184: 5f pop %edi
10d185: c9 leave
10d186: c3 ret
0010d030 <rtems_stack_checker_is_blown>:
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
10d030: 55 push %ebp
10d031: 89 e5 mov %esp,%ebp
10d033: 57 push %edi
10d034: 56 push %esi
Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
10d035: a1 78 2f 17 00 mov 0x172f78,%eax
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
10d03a: 8b b0 c4 00 00 00 mov 0xc4(%eax),%esi
10d040: 39 f5 cmp %esi,%ebp
10d042: 73 48 jae 10d08c <rtems_stack_checker_is_blown+0x5c><== ALWAYS TAKEN
10d044: 31 c0 xor %eax,%eax
/*
* The stack checker must be initialized before the pattern is there
* to check.
*/
if ( Stack_check_Initialized ) {
10d046: 8b 0d 2c 00 17 00 mov 0x17002c,%ecx
10d04c: 85 c9 test %ecx,%ecx
10d04e: 75 28 jne 10d078 <rtems_stack_checker_is_blown+0x48><== ALWAYS TAKEN
10d050: b2 01 mov $0x1,%dl <== NOT EXECUTED
}
/*
* The Stack Pointer and the Pattern Area are OK so return false.
*/
if ( sp_ok && pattern_ok )
10d052: 84 c0 test %al,%al
10d054: 74 04 je 10d05a <rtems_stack_checker_is_blown+0x2a><== NEVER TAKEN
10d056: 84 d2 test %dl,%dl
10d058: 75 42 jne 10d09c <rtems_stack_checker_is_blown+0x6c><== ALWAYS TAKEN
return false;
/*
* Let's report as much as we can.
*/
Stack_check_report_blown_task( _Thread_Executing, pattern_ok );
10d05a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10d05d: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
10d060: 52 push %edx <== NOT EXECUTED
10d061: ff 35 78 2f 17 00 pushl 0x172f78 <== NOT EXECUTED
10d067: e8 08 ff ff ff call 10cf74 <Stack_check_report_blown_task><== NOT EXECUTED
10d06c: b0 01 mov $0x1,%al <== NOT EXECUTED
return true;
10d06e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10d071: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10d074: 5e pop %esi <== NOT EXECUTED
10d075: 5f pop %edi <== NOT EXECUTED
10d076: c9 leave <== NOT EXECUTED
10d077: c3 ret <== NOT EXECUTED
/*
* The stack checker must be initialized before the pattern is there
* to check.
*/
if ( Stack_check_Initialized ) {
pattern_ok = (!memcmp(
10d078: 83 c6 08 add $0x8,%esi
10d07b: bf 20 2d 17 00 mov $0x172d20,%edi
10d080: b9 10 00 00 00 mov $0x10,%ecx
10d085: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
10d087: 0f 94 c2 sete %dl
10d08a: eb c6 jmp 10d052 <rtems_stack_checker_is_blown+0x22>
}
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
10d08c: 8b 90 c0 00 00 00 mov 0xc0(%eax),%edx
10d092: 8d 04 16 lea (%esi,%edx,1),%eax
10d095: 39 c5 cmp %eax,%ebp
10d097: 0f 96 c0 setbe %al
10d09a: eb aa jmp 10d046 <rtems_stack_checker_is_blown+0x16>
}
/*
* The Stack Pointer and the Pattern Area are OK so return false.
*/
if ( sp_ok && pattern_ok )
10d09c: 31 c0 xor %eax,%eax
/*
* Let's report as much as we can.
*/
Stack_check_report_blown_task( _Thread_Executing, pattern_ok );
return true;
}
10d09e: 8d 65 f8 lea -0x8(%ebp),%esp
10d0a1: 5e pop %esi
10d0a2: 5f pop %edi
10d0a3: c9 leave
10d0a4: c3 ret
0010cf5c <rtems_stack_checker_report_usage>:
void rtems_stack_checker_report_usage( void )
{
10cf5c: 55 push %ebp <== NOT EXECUTED
10cf5d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10cf5f: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin );
10cf62: 68 c4 fa 10 00 push $0x10fac4 <== NOT EXECUTED
10cf67: 6a 00 push $0x0 <== NOT EXECUTED
10cf69: e8 8a ff ff ff call 10cef8 <rtems_stack_checker_report_usage_with_plugin><== NOT EXECUTED
10cf6e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10cf71: c9 leave <== NOT EXECUTED
10cf72: c3 ret <== NOT EXECUTED
0010cef8 <rtems_stack_checker_report_usage_with_plugin>:
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
10cef8: 55 push %ebp <== NOT EXECUTED
10cef9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10cefb: 56 push %esi <== NOT EXECUTED
10cefc: 53 push %ebx <== NOT EXECUTED
10cefd: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED
10cf00: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
print_context = context;
10cf03: 89 35 30 00 17 00 mov %esi,0x170030 <== NOT EXECUTED
print_handler = print;
10cf09: 89 1d 34 00 17 00 mov %ebx,0x170034 <== NOT EXECUTED
(*print)( context, "Stack usage by thread\n");
10cf0f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10cf12: 68 58 f5 15 00 push $0x15f558 <== NOT EXECUTED
10cf17: 56 push %esi <== NOT EXECUTED
10cf18: ff d3 call *%ebx <== NOT EXECUTED
(*print)( context,
10cf1a: 58 pop %eax <== NOT EXECUTED
10cf1b: 5a pop %edx <== NOT EXECUTED
10cf1c: 68 d8 f5 15 00 push $0x15f5d8 <== NOT EXECUTED
10cf21: 56 push %esi <== NOT EXECUTED
10cf22: 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 );
10cf24: c7 04 24 a8 cd 10 00 movl $0x10cda8,(%esp) <== NOT EXECUTED
10cf2b: e8 18 76 00 00 call 114548 <rtems_iterate_over_all_threads><== NOT EXECUTED
/* dump interrupt stack info if any */
Stack_check_Dump_threads_usage((Thread_Control *) -1);
10cf30: c7 04 24 ff ff ff ff movl $0xffffffff,(%esp) <== NOT EXECUTED
10cf37: e8 6c fe ff ff call 10cda8 <Stack_check_Dump_threads_usage><== NOT EXECUTED
print_context = NULL;
10cf3c: c7 05 30 00 17 00 00 movl $0x0,0x170030 <== NOT EXECUTED
10cf43: 00 00 00
print_handler = NULL;
10cf46: c7 05 34 00 17 00 00 movl $0x0,0x170034 <== NOT EXECUTED
10cf4d: 00 00 00
10cf50: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10cf53: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10cf56: 5b pop %ebx <== NOT EXECUTED
10cf57: 5e pop %esi <== NOT EXECUTED
10cf58: c9 leave <== NOT EXECUTED
10cf59: c3 ret <== NOT EXECUTED
0010d0a8 <rtems_stack_checker_switch_extension>:
*/
void rtems_stack_checker_switch_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *heir __attribute__((unused))
)
{
10d0a8: 55 push %ebp
10d0a9: 89 e5 mov %esp,%ebp
10d0ab: 57 push %edi
10d0ac: 56 push %esi
10d0ad: 8b 45 08 mov 0x8(%ebp),%eax
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;
10d0b0: 8b 90 c4 00 00 00 mov 0xc4(%eax),%edx
10d0b6: 8d 72 08 lea 0x8(%edx),%esi
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
10d0b9: 39 d5 cmp %edx,%ebp
10d0bb: 72 0a jb 10d0c7 <rtems_stack_checker_switch_extension+0x1f><== NEVER TAKEN
void rtems_stack_checker_switch_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *heir __attribute__((unused))
)
{
Stack_Control *the_stack = &running->Start.Initial_stack;
10d0bd: 03 90 c0 00 00 00 add 0xc0(%eax),%edx
10d0c3: 39 d5 cmp %edx,%ebp
10d0c5: 76 21 jbe 10d0e8 <rtems_stack_checker_switch_extension+0x40><== ALWAYS TAKEN
/*
* 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,
10d0c7: bf 20 2d 17 00 mov $0x172d20,%edi <== NOT EXECUTED
10d0cc: b9 10 00 00 00 mov $0x10,%ecx <== NOT EXECUTED
10d0d1: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NOT EXECUTED
10d0d3: 0f 94 c2 sete %dl <== NOT EXECUTED
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
if ( !sp_ok || !pattern_ok ) {
Stack_check_report_blown_task( running, pattern_ok );
10d0d6: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED
10d0d9: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED
10d0dc: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
}
10d0df: 5e pop %esi <== NOT EXECUTED
10d0e0: 5f pop %edi <== NOT EXECUTED
10d0e1: 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 );
10d0e2: e9 8d fe ff ff jmp 10cf74 <Stack_check_report_blown_task><== NOT EXECUTED
10d0e7: 90 nop <== NOT EXECUTED
/*
* 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,
10d0e8: bf 20 2d 17 00 mov $0x172d20,%edi
10d0ed: b9 10 00 00 00 mov $0x10,%ecx
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
if ( !sp_ok || !pattern_ok ) {
10d0f2: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
10d0f4: 74 06 je 10d0fc <rtems_stack_checker_switch_extension+0x54><== ALWAYS TAKEN
10d0f6: 31 d2 xor %edx,%edx <== NOT EXECUTED
10d0f8: eb dc jmp 10d0d6 <rtems_stack_checker_switch_extension+0x2e><== NOT EXECUTED
10d0fa: 66 90 xchg %ax,%ax <== NOT EXECUTED
Stack_check_report_blown_task( running, pattern_ok );
}
}
10d0fc: 5e pop %esi
10d0fd: 5f pop %edi
10d0fe: c9 leave
10d0ff: c3 ret
00110cf0 <rtems_string_to_double>:
rtems_status_code rtems_string_to_double (
const char *s,
double *n,
char **endptr
)
{
110cf0: 55 push %ebp
110cf1: 89 e5 mov %esp,%ebp
110cf3: 57 push %edi
110cf4: 56 push %esi
110cf5: 53 push %ebx
110cf6: 83 ec 2c sub $0x2c,%esp
110cf9: 8b 75 08 mov 0x8(%ebp),%esi
110cfc: 8b 5d 0c mov 0xc(%ebp),%ebx
110cff: 8b 7d 10 mov 0x10(%ebp),%edi
double result;
char *end;
if ( !n )
110d02: 85 db test %ebx,%ebx
110d04: 0f 84 ae 00 00 00 je 110db8 <rtems_string_to_double+0xc8>
return RTEMS_INVALID_ADDRESS;
errno = 0;
110d0a: e8 dd 20 00 00 call 112dec <__errno>
110d0f: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
110d15: c7 03 00 00 00 00 movl $0x0,(%ebx)
110d1b: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
result = strtod( s, &end );
110d22: 83 ec 08 sub $0x8,%esp
110d25: 8d 45 e4 lea -0x1c(%ebp),%eax
110d28: 50 push %eax
110d29: 56 push %esi
110d2a: e8 49 4b 00 00 call 115878 <strtod>
if ( endptr )
110d2f: 83 c4 10 add $0x10,%esp
110d32: 85 ff test %edi,%edi
110d34: 74 05 je 110d3b <rtems_string_to_double+0x4b>
*endptr = end;
110d36: 8b 45 e4 mov -0x1c(%ebp),%eax
110d39: 89 07 mov %eax,(%edi)
if ( end == s )
110d3b: 39 75 e4 cmp %esi,-0x1c(%ebp)
110d3e: 74 68 je 110da8 <rtems_string_to_double+0xb8>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
110d40: dd 5d c8 fstpl -0x38(%ebp)
110d43: e8 a4 20 00 00 call 112dec <__errno>
110d48: 83 38 22 cmpl $0x22,(%eax)
110d4b: dd 45 c8 fldl -0x38(%ebp)
110d4e: 74 0c je 110d5c <rtems_string_to_double+0x6c>
(( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
return RTEMS_INVALID_NUMBER;
*n = result;
110d50: dd 1b fstpl (%ebx)
110d52: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
110d54: 8d 65 f4 lea -0xc(%ebp),%esp
110d57: 5b pop %ebx
110d58: 5e pop %esi
110d59: 5f pop %edi
110d5a: c9 leave
110d5b: c3 ret
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
110d5c: d9 ee fldz
110d5e: d9 c9 fxch %st(1)
110d60: dd e1 fucom %st(1)
110d62: df e0 fnstsw %ax
110d64: dd d9 fstp %st(1)
110d66: 80 e4 45 and $0x45,%ah
110d69: 80 fc 40 cmp $0x40,%ah
110d6c: 74 26 je 110d94 <rtems_string_to_double+0xa4><== NEVER TAKEN
110d6e: dd 05 90 48 12 00 fldl 0x124890
110d74: d9 c9 fxch %st(1)
110d76: dd e1 fucom %st(1)
110d78: df e0 fnstsw %ax
110d7a: dd d9 fstp %st(1)
110d7c: f6 c4 45 test $0x45,%ah
110d7f: 74 17 je 110d98 <rtems_string_to_double+0xa8><== ALWAYS TAKEN
110d81: dd 05 98 48 12 00 fldl 0x124898 <== NOT EXECUTED
110d87: dd e9 fucomp %st(1) <== NOT EXECUTED
110d89: df e0 fnstsw %ax <== NOT EXECUTED
110d8b: f6 c4 45 test $0x45,%ah <== NOT EXECUTED
110d8e: 75 c0 jne 110d50 <rtems_string_to_double+0x60><== NOT EXECUTED
110d90: dd d8 fstp %st(0) <== NOT EXECUTED
110d92: eb 06 jmp 110d9a <rtems_string_to_double+0xaa><== NOT EXECUTED
110d94: dd d8 fstp %st(0) <== NOT EXECUTED
110d96: eb 02 jmp 110d9a <rtems_string_to_double+0xaa><== NOT EXECUTED
110d98: dd d8 fstp %st(0)
(( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
110d9a: b8 0a 00 00 00 mov $0xa,%eax
}
110d9f: 8d 65 f4 lea -0xc(%ebp),%esp
110da2: 5b pop %ebx
110da3: 5e pop %esi
110da4: 5f pop %edi
110da5: c9 leave
110da6: c3 ret
110da7: 90 nop
110da8: dd d8 fstp %st(0)
result = strtod( s, &end );
if ( endptr )
*endptr = end;
if ( end == s )
110daa: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
110daf: 8d 65 f4 lea -0xc(%ebp),%esp
110db2: 5b pop %ebx
110db3: 5e pop %esi
110db4: 5f pop %edi
110db5: c9 leave
110db6: c3 ret
110db7: 90 nop
)
{
double result;
char *end;
if ( !n )
110db8: b8 09 00 00 00 mov $0x9,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
110dbd: 8d 65 f4 lea -0xc(%ebp),%esp
110dc0: 5b pop %ebx
110dc1: 5e pop %esi
110dc2: 5f pop %edi
110dc3: c9 leave
110dc4: c3 ret
00110dc8 <rtems_string_to_float>:
rtems_status_code rtems_string_to_float (
const char *s,
float *n,
char **endptr
)
{
110dc8: 55 push %ebp
110dc9: 89 e5 mov %esp,%ebp
110dcb: 57 push %edi
110dcc: 56 push %esi
110dcd: 53 push %ebx
110dce: 83 ec 2c sub $0x2c,%esp
110dd1: 8b 75 08 mov 0x8(%ebp),%esi
110dd4: 8b 5d 0c mov 0xc(%ebp),%ebx
110dd7: 8b 7d 10 mov 0x10(%ebp),%edi
float result;
char *end;
if ( !n )
110dda: 85 db test %ebx,%ebx
110ddc: 0f 84 aa 00 00 00 je 110e8c <rtems_string_to_float+0xc4>
return RTEMS_INVALID_ADDRESS;
errno = 0;
110de2: e8 05 20 00 00 call 112dec <__errno>
110de7: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
110ded: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtof( s, &end );
110df3: 83 ec 08 sub $0x8,%esp
110df6: 8d 45 e4 lea -0x1c(%ebp),%eax
110df9: 50 push %eax
110dfa: 56 push %esi
110dfb: e8 34 4a 00 00 call 115834 <strtof>
if ( endptr )
110e00: 83 c4 10 add $0x10,%esp
110e03: 85 ff test %edi,%edi
110e05: 74 05 je 110e0c <rtems_string_to_float+0x44>
*endptr = end;
110e07: 8b 45 e4 mov -0x1c(%ebp),%eax
110e0a: 89 07 mov %eax,(%edi)
if ( end == s )
110e0c: 39 75 e4 cmp %esi,-0x1c(%ebp)
110e0f: 74 6b je 110e7c <rtems_string_to_float+0xb4>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
110e11: d9 5d c8 fstps -0x38(%ebp)
110e14: e8 d3 1f 00 00 call 112dec <__errno>
110e19: 83 38 22 cmpl $0x22,(%eax)
110e1c: d9 45 c8 flds -0x38(%ebp)
110e1f: 74 0f je 110e30 <rtems_string_to_float+0x68>
(( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
return RTEMS_INVALID_NUMBER;
*n = result;
110e21: d9 1b fstps (%ebx)
110e23: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
110e25: 8d 65 f4 lea -0xc(%ebp),%esp
110e28: 5b pop %ebx
110e29: 5e pop %esi
110e2a: 5f pop %edi
110e2b: c9 leave
110e2c: c3 ret
110e2d: 8d 76 00 lea 0x0(%esi),%esi
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
110e30: d9 ee fldz
110e32: d9 c9 fxch %st(1)
110e34: dd e1 fucom %st(1)
110e36: df e0 fnstsw %ax
110e38: dd d9 fstp %st(1)
110e3a: 80 e4 45 and $0x45,%ah
110e3d: 80 fc 40 cmp $0x40,%ah
110e40: 74 26 je 110e68 <rtems_string_to_float+0xa0><== NEVER TAKEN
110e42: d9 05 a0 48 12 00 flds 0x1248a0
110e48: d9 c9 fxch %st(1)
110e4a: dd e1 fucom %st(1)
110e4c: df e0 fnstsw %ax
110e4e: dd d9 fstp %st(1)
110e50: f6 c4 45 test $0x45,%ah
110e53: 74 17 je 110e6c <rtems_string_to_float+0xa4><== ALWAYS TAKEN
110e55: d9 05 a4 48 12 00 flds 0x1248a4 <== NOT EXECUTED
110e5b: dd e9 fucomp %st(1) <== NOT EXECUTED
110e5d: df e0 fnstsw %ax <== NOT EXECUTED
110e5f: f6 c4 45 test $0x45,%ah <== NOT EXECUTED
110e62: 75 bd jne 110e21 <rtems_string_to_float+0x59><== NOT EXECUTED
110e64: dd d8 fstp %st(0) <== NOT EXECUTED
110e66: eb 06 jmp 110e6e <rtems_string_to_float+0xa6><== NOT EXECUTED
110e68: dd d8 fstp %st(0) <== NOT EXECUTED
110e6a: eb 02 jmp 110e6e <rtems_string_to_float+0xa6><== NOT EXECUTED
110e6c: dd d8 fstp %st(0)
(( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
110e6e: b8 0a 00 00 00 mov $0xa,%eax
}
110e73: 8d 65 f4 lea -0xc(%ebp),%esp
110e76: 5b pop %ebx
110e77: 5e pop %esi
110e78: 5f pop %edi
110e79: c9 leave
110e7a: c3 ret
110e7b: 90 nop
110e7c: dd d8 fstp %st(0)
result = strtof( s, &end );
if ( endptr )
*endptr = end;
if ( end == s )
110e7e: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
110e83: 8d 65 f4 lea -0xc(%ebp),%esp
110e86: 5b pop %ebx
110e87: 5e pop %esi
110e88: 5f pop %edi
110e89: c9 leave
110e8a: c3 ret
110e8b: 90 nop
)
{
float result;
char *end;
if ( !n )
110e8c: b8 09 00 00 00 mov $0x9,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
110e91: 8d 65 f4 lea -0xc(%ebp),%esp
110e94: 5b pop %ebx
110e95: 5e pop %esi
110e96: 5f pop %edi
110e97: c9 leave
110e98: c3 ret
0012468c <rtems_string_to_int>:
const char *s,
int *n,
char **endptr,
int base
)
{
12468c: 55 push %ebp
12468d: 89 e5 mov %esp,%ebp
12468f: 57 push %edi
124690: 56 push %esi
124691: 53 push %ebx
124692: 83 ec 2c sub $0x2c,%esp
124695: 8b 75 08 mov 0x8(%ebp),%esi
124698: 8b 5d 0c mov 0xc(%ebp),%ebx
12469b: 8b 7d 10 mov 0x10(%ebp),%edi
long result;
char *end;
if ( !n )
12469e: 85 db test %ebx,%ebx
1246a0: 0f 84 82 00 00 00 je 124728 <rtems_string_to_int+0x9c>
return RTEMS_INVALID_ADDRESS;
errno = 0;
1246a6: e8 e1 20 02 00 call 14678c <__errno>
1246ab: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
1246b1: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtol( s, &end, base );
1246b7: 50 push %eax
1246b8: ff 75 14 pushl 0x14(%ebp)
1246bb: 8d 45 e4 lea -0x1c(%ebp),%eax
1246be: 50 push %eax
1246bf: 56 push %esi
1246c0: e8 03 90 02 00 call 14d6c8 <strtol>
1246c5: 89 c2 mov %eax,%edx
if ( endptr )
1246c7: 83 c4 10 add $0x10,%esp
1246ca: 85 ff test %edi,%edi
1246cc: 74 05 je 1246d3 <rtems_string_to_int+0x47>
*endptr = end;
1246ce: 8b 45 e4 mov -0x1c(%ebp),%eax
1246d1: 89 07 mov %eax,(%edi)
if ( end == s )
1246d3: 39 75 e4 cmp %esi,-0x1c(%ebp)
1246d6: 74 40 je 124718 <rtems_string_to_int+0x8c>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
1246d8: 89 55 d4 mov %edx,-0x2c(%ebp)
1246db: e8 ac 20 02 00 call 14678c <__errno>
1246e0: 83 38 22 cmpl $0x22,(%eax)
1246e3: 8b 55 d4 mov -0x2c(%ebp),%edx
1246e6: 74 0c je 1246f4 <rtems_string_to_int+0x68>
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
1246e8: 89 13 mov %edx,(%ebx)
1246ea: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
1246ec: 8d 65 f4 lea -0xc(%ebp),%esp
1246ef: 5b pop %ebx
1246f0: 5e pop %esi
1246f1: 5f pop %edi
1246f2: c9 leave
1246f3: c3 ret
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
1246f4: 85 d2 test %edx,%edx
1246f6: 74 10 je 124708 <rtems_string_to_int+0x7c><== NEVER TAKEN
1246f8: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx
1246fe: 74 08 je 124708 <rtems_string_to_int+0x7c><== ALWAYS TAKEN
124700: 81 fa 00 00 00 80 cmp $0x80000000,%edx <== NOT EXECUTED
124706: 75 e0 jne 1246e8 <rtems_string_to_int+0x5c><== NOT EXECUTED
}
#endif
*n = result;
return RTEMS_SUCCESSFUL;
124708: b8 0a 00 00 00 mov $0xa,%eax
}
12470d: 8d 65 f4 lea -0xc(%ebp),%esp
124710: 5b pop %ebx
124711: 5e pop %esi
124712: 5f pop %edi
124713: c9 leave
124714: c3 ret
124715: 8d 76 00 lea 0x0(%esi),%esi
result = strtol( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
124718: b8 0b 00 00 00 mov $0xb,%eax
#endif
*n = result;
return RTEMS_SUCCESSFUL;
}
12471d: 8d 65 f4 lea -0xc(%ebp),%esp
124720: 5b pop %ebx
124721: 5e pop %esi
124722: 5f pop %edi
124723: c9 leave
124724: c3 ret
124725: 8d 76 00 lea 0x0(%esi),%esi
)
{
long result;
char *end;
if ( !n )
124728: b8 09 00 00 00 mov $0x9,%eax
#endif
*n = result;
return RTEMS_SUCCESSFUL;
}
12472d: 8d 65 f4 lea -0xc(%ebp),%esp
124730: 5b pop %ebx
124731: 5e pop %esi
124732: 5f pop %edi
124733: c9 leave
124734: c3 ret
00111010 <rtems_string_to_long>:
const char *s,
long *n,
char **endptr,
int base
)
{
111010: 55 push %ebp
111011: 89 e5 mov %esp,%ebp
111013: 57 push %edi
111014: 56 push %esi
111015: 53 push %ebx
111016: 83 ec 2c sub $0x2c,%esp
111019: 8b 75 08 mov 0x8(%ebp),%esi
11101c: 8b 5d 0c mov 0xc(%ebp),%ebx
11101f: 8b 7d 10 mov 0x10(%ebp),%edi
long result;
char *end;
if ( !n )
111022: 85 db test %ebx,%ebx
111024: 0f 84 82 00 00 00 je 1110ac <rtems_string_to_long+0x9c>
return RTEMS_INVALID_ADDRESS;
errno = 0;
11102a: e8 bd 1d 00 00 call 112dec <__errno>
11102f: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
111035: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtol( s, &end, base );
11103b: 50 push %eax
11103c: ff 75 14 pushl 0x14(%ebp)
11103f: 8d 45 e4 lea -0x1c(%ebp),%eax
111042: 50 push %eax
111043: 56 push %esi
111044: e8 cb 49 00 00 call 115a14 <strtol>
111049: 89 c2 mov %eax,%edx
if ( endptr )
11104b: 83 c4 10 add $0x10,%esp
11104e: 85 ff test %edi,%edi
111050: 74 05 je 111057 <rtems_string_to_long+0x47>
*endptr = end;
111052: 8b 45 e4 mov -0x1c(%ebp),%eax
111055: 89 07 mov %eax,(%edi)
if ( end == s )
111057: 39 75 e4 cmp %esi,-0x1c(%ebp)
11105a: 74 40 je 11109c <rtems_string_to_long+0x8c>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
11105c: 89 55 d4 mov %edx,-0x2c(%ebp)
11105f: e8 88 1d 00 00 call 112dec <__errno>
111064: 83 38 22 cmpl $0x22,(%eax)
111067: 8b 55 d4 mov -0x2c(%ebp),%edx
11106a: 74 0c je 111078 <rtems_string_to_long+0x68>
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
11106c: 89 13 mov %edx,(%ebx)
11106e: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
111070: 8d 65 f4 lea -0xc(%ebp),%esp
111073: 5b pop %ebx
111074: 5e pop %esi
111075: 5f pop %edi
111076: c9 leave
111077: c3 ret
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
111078: 85 d2 test %edx,%edx
11107a: 74 10 je 11108c <rtems_string_to_long+0x7c><== NEVER TAKEN
11107c: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx
111082: 74 08 je 11108c <rtems_string_to_long+0x7c>
111084: 81 fa 00 00 00 80 cmp $0x80000000,%edx
11108a: 75 e0 jne 11106c <rtems_string_to_long+0x5c><== NEVER TAKEN
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
11108c: b8 0a 00 00 00 mov $0xa,%eax
}
111091: 8d 65 f4 lea -0xc(%ebp),%esp
111094: 5b pop %ebx
111095: 5e pop %esi
111096: 5f pop %edi
111097: c9 leave
111098: c3 ret
111099: 8d 76 00 lea 0x0(%esi),%esi
result = strtol( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
11109c: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
1110a1: 8d 65 f4 lea -0xc(%ebp),%esp
1110a4: 5b pop %ebx
1110a5: 5e pop %esi
1110a6: 5f pop %edi
1110a7: c9 leave
1110a8: c3 ret
1110a9: 8d 76 00 lea 0x0(%esi),%esi
)
{
long result;
char *end;
if ( !n )
1110ac: b8 09 00 00 00 mov $0x9,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
1110b1: 8d 65 f4 lea -0xc(%ebp),%esp
1110b4: 5b pop %ebx
1110b5: 5e pop %esi
1110b6: 5f pop %edi
1110b7: c9 leave
1110b8: c3 ret
00110f48 <rtems_string_to_long_long>:
const char *s,
long long *n,
char **endptr,
int base
)
{
110f48: 55 push %ebp
110f49: 89 e5 mov %esp,%ebp
110f4b: 57 push %edi
110f4c: 56 push %esi
110f4d: 53 push %ebx
110f4e: 83 ec 2c sub $0x2c,%esp
110f51: 8b 75 08 mov 0x8(%ebp),%esi
110f54: 8b 5d 0c mov 0xc(%ebp),%ebx
long long result;
char *end;
if ( !n )
110f57: 85 db test %ebx,%ebx
110f59: 0f 84 a1 00 00 00 je 111000 <rtems_string_to_long_long+0xb8><== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
errno = 0;
110f5f: e8 88 1e 00 00 call 112dec <__errno>
110f64: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
110f6a: c7 03 00 00 00 00 movl $0x0,(%ebx)
110f70: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
result = strtoll( s, &end, base );
110f77: 52 push %edx
110f78: ff 75 14 pushl 0x14(%ebp)
110f7b: 8d 45 e4 lea -0x1c(%ebp),%eax
110f7e: 50 push %eax
110f7f: 56 push %esi
110f80: e8 ab 4a 00 00 call 115a30 <strtoll>
110f85: 89 c7 mov %eax,%edi
if ( endptr )
110f87: 83 c4 10 add $0x10,%esp
110f8a: 8b 45 10 mov 0x10(%ebp),%eax
110f8d: 85 c0 test %eax,%eax
110f8f: 74 08 je 110f99 <rtems_string_to_long_long+0x51>
*endptr = end;
110f91: 8b 45 e4 mov -0x1c(%ebp),%eax
110f94: 8b 4d 10 mov 0x10(%ebp),%ecx
110f97: 89 01 mov %eax,(%ecx)
if ( end == s )
110f99: 39 75 e4 cmp %esi,-0x1c(%ebp)
110f9c: 74 52 je 110ff0 <rtems_string_to_long_long+0xa8>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
110f9e: 89 55 d4 mov %edx,-0x2c(%ebp)
110fa1: e8 46 1e 00 00 call 112dec <__errno>
110fa6: 83 38 22 cmpl $0x22,(%eax)
110fa9: 8b 55 d4 mov -0x2c(%ebp),%edx
110fac: 74 12 je 110fc0 <rtems_string_to_long_long+0x78>
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
110fae: 89 3b mov %edi,(%ebx)
110fb0: 89 53 04 mov %edx,0x4(%ebx)
110fb3: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
110fb5: 8d 65 f4 lea -0xc(%ebp),%esp
110fb8: 5b pop %ebx
110fb9: 5e pop %esi
110fba: 5f pop %edi
110fbb: c9 leave
110fbc: c3 ret
110fbd: 8d 76 00 lea 0x0(%esi),%esi
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
110fc0: 89 d0 mov %edx,%eax
110fc2: 09 f8 or %edi,%eax
110fc4: 74 1a je 110fe0 <rtems_string_to_long_long+0x98><== NEVER TAKEN
110fc6: 89 d1 mov %edx,%ecx
110fc8: 81 f1 ff ff ff 7f xor $0x7fffffff,%ecx
110fce: 89 f8 mov %edi,%eax
110fd0: f7 d0 not %eax
110fd2: 09 c1 or %eax,%ecx
110fd4: 74 0a je 110fe0 <rtems_string_to_long_long+0x98>
110fd6: 8d 82 00 00 00 80 lea -0x80000000(%edx),%eax
110fdc: 09 f8 or %edi,%eax
110fde: 75 ce jne 110fae <rtems_string_to_long_long+0x66><== NEVER TAKEN
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
110fe0: b8 0a 00 00 00 mov $0xa,%eax
}
110fe5: 8d 65 f4 lea -0xc(%ebp),%esp
110fe8: 5b pop %ebx
110fe9: 5e pop %esi
110fea: 5f pop %edi
110feb: c9 leave
110fec: c3 ret
110fed: 8d 76 00 lea 0x0(%esi),%esi
result = strtoll( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
110ff0: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
110ff5: 8d 65 f4 lea -0xc(%ebp),%esp
110ff8: 5b pop %ebx
110ff9: 5e pop %esi
110ffa: 5f pop %edi
110ffb: c9 leave
110ffc: c3 ret
110ffd: 8d 76 00 lea 0x0(%esi),%esi
)
{
long long result;
char *end;
if ( !n )
111000: b8 09 00 00 00 mov $0x9,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
111005: 8d 65 f4 lea -0xc(%ebp),%esp
111008: 5b pop %ebx
111009: 5e pop %esi
11100a: 5f pop %edi
11100b: c9 leave
11100c: c3 ret
00124750 <rtems_string_to_unsigned_char>:
const char *s,
unsigned char *n,
char **endptr,
int base
)
{
124750: 55 push %ebp
124751: 89 e5 mov %esp,%ebp
124753: 57 push %edi
124754: 56 push %esi
124755: 53 push %ebx
124756: 83 ec 2c sub $0x2c,%esp
124759: 8b 75 08 mov 0x8(%ebp),%esi
12475c: 8b 5d 0c mov 0xc(%ebp),%ebx
12475f: 8b 7d 10 mov 0x10(%ebp),%edi
unsigned long result;
char *end;
if ( !n )
124762: 85 db test %ebx,%ebx
124764: 0f 84 8e 00 00 00 je 1247f8 <rtems_string_to_unsigned_char+0xa8>
return RTEMS_INVALID_ADDRESS;
errno = 0;
12476a: e8 1d 20 02 00 call 14678c <__errno>
12476f: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
124775: c6 03 00 movb $0x0,(%ebx)
result = strtoul( s, &end, base );
124778: 50 push %eax
124779: ff 75 14 pushl 0x14(%ebp)
12477c: 8d 45 e4 lea -0x1c(%ebp),%eax
12477f: 50 push %eax
124780: 56 push %esi
124781: e8 be 93 02 00 call 14db44 <strtoul>
124786: 89 c2 mov %eax,%edx
if ( endptr )
124788: 83 c4 10 add $0x10,%esp
12478b: 85 ff test %edi,%edi
12478d: 74 05 je 124794 <rtems_string_to_unsigned_char+0x44>
*endptr = end;
12478f: 8b 45 e4 mov -0x1c(%ebp),%eax
124792: 89 07 mov %eax,(%edi)
if ( end == s )
124794: 39 75 e4 cmp %esi,-0x1c(%ebp)
124797: 74 4f je 1247e8 <rtems_string_to_unsigned_char+0x98>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
124799: 89 55 d4 mov %edx,-0x2c(%ebp)
12479c: e8 eb 1f 02 00 call 14678c <__errno>
1247a1: 83 38 22 cmpl $0x22,(%eax)
1247a4: 8b 55 d4 mov -0x2c(%ebp),%edx
1247a7: 74 17 je 1247c0 <rtems_string_to_unsigned_char+0x70><== NEVER TAKEN
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
#if (UCHAR_MAX < ULONG_MAX)
if ( result > UCHAR_MAX ) {
1247a9: 81 fa ff 00 00 00 cmp $0xff,%edx
1247af: 77 1f ja 1247d0 <rtems_string_to_unsigned_char+0x80><== NEVER TAKEN
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
1247b1: 88 13 mov %dl,(%ebx)
1247b3: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
1247b5: 8d 65 f4 lea -0xc(%ebp),%esp
1247b8: 5b pop %ebx
1247b9: 5e pop %esi
1247ba: 5f pop %edi
1247bb: c9 leave
1247bc: c3 ret
1247bd: 8d 76 00 lea 0x0(%esi),%esi
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
1247c0: 8d 42 ff lea -0x1(%edx),%eax <== NOT EXECUTED
1247c3: 83 f8 fd cmp $0xfffffffd,%eax <== NOT EXECUTED
1247c6: 77 13 ja 1247db <rtems_string_to_unsigned_char+0x8b><== NOT EXECUTED
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
#if (UCHAR_MAX < ULONG_MAX)
if ( result > UCHAR_MAX ) {
1247c8: 81 fa ff 00 00 00 cmp $0xff,%edx <== NOT EXECUTED
1247ce: 76 e1 jbe 1247b1 <rtems_string_to_unsigned_char+0x61><== NOT EXECUTED
errno = ERANGE;
1247d0: e8 b7 1f 02 00 call 14678c <__errno> <== NOT EXECUTED
1247d5: c7 00 22 00 00 00 movl $0x22,(%eax) <== NOT EXECUTED
1247db: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED
#endif
*n = result;
return RTEMS_SUCCESSFUL;
}
1247e0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1247e3: 5b pop %ebx <== NOT EXECUTED
1247e4: 5e pop %esi <== NOT EXECUTED
1247e5: 5f pop %edi <== NOT EXECUTED
1247e6: c9 leave <== NOT EXECUTED
1247e7: c3 ret <== NOT EXECUTED
result = strtoul( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
1247e8: b8 0b 00 00 00 mov $0xb,%eax
#endif
*n = result;
return RTEMS_SUCCESSFUL;
}
1247ed: 8d 65 f4 lea -0xc(%ebp),%esp
1247f0: 5b pop %ebx
1247f1: 5e pop %esi
1247f2: 5f pop %edi
1247f3: c9 leave
1247f4: c3 ret
1247f5: 8d 76 00 lea 0x0(%esi),%esi
)
{
unsigned long result;
char *end;
if ( !n )
1247f8: b8 09 00 00 00 mov $0x9,%eax
#endif
*n = result;
return RTEMS_SUCCESSFUL;
}
1247fd: 8d 65 f4 lea -0xc(%ebp),%esp
124800: 5b pop %ebx
124801: 5e pop %esi
124802: 5f pop %edi
124803: c9 leave
124804: c3 ret
0011118c <rtems_string_to_unsigned_int>:
const char *s,
unsigned int *n,
char **endptr,
int base
)
{
11118c: 55 push %ebp
11118d: 89 e5 mov %esp,%ebp
11118f: 57 push %edi
111190: 56 push %esi
111191: 53 push %ebx
111192: 83 ec 2c sub $0x2c,%esp
111195: 8b 75 08 mov 0x8(%ebp),%esi
111198: 8b 5d 0c mov 0xc(%ebp),%ebx
11119b: 8b 7d 10 mov 0x10(%ebp),%edi
unsigned long result;
char *end;
if ( !n )
11119e: 85 db test %ebx,%ebx
1111a0: 74 76 je 111218 <rtems_string_to_unsigned_int+0x8c>
return RTEMS_INVALID_ADDRESS;
errno = 0;
1111a2: e8 45 1c 00 00 call 112dec <__errno>
1111a7: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
1111ad: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtoul( s, &end, base );
1111b3: 50 push %eax
1111b4: ff 75 14 pushl 0x14(%ebp)
1111b7: 8d 45 e4 lea -0x1c(%ebp),%eax
1111ba: 50 push %eax
1111bb: 56 push %esi
1111bc: e8 cf 4c 00 00 call 115e90 <strtoul>
1111c1: 89 c2 mov %eax,%edx
if ( endptr )
1111c3: 83 c4 10 add $0x10,%esp
1111c6: 85 ff test %edi,%edi
1111c8: 74 05 je 1111cf <rtems_string_to_unsigned_int+0x43>
*endptr = end;
1111ca: 8b 45 e4 mov -0x1c(%ebp),%eax
1111cd: 89 07 mov %eax,(%edi)
if ( end == s )
1111cf: 39 75 e4 cmp %esi,-0x1c(%ebp)
1111d2: 74 34 je 111208 <rtems_string_to_unsigned_int+0x7c>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
1111d4: 89 55 d4 mov %edx,-0x2c(%ebp)
1111d7: e8 10 1c 00 00 call 112dec <__errno>
1111dc: 83 38 22 cmpl $0x22,(%eax)
1111df: 8b 55 d4 mov -0x2c(%ebp),%edx
1111e2: 74 0c je 1111f0 <rtems_string_to_unsigned_int+0x64>
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
1111e4: 89 13 mov %edx,(%ebx)
1111e6: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
1111e8: 8d 65 f4 lea -0xc(%ebp),%esp
1111eb: 5b pop %ebx
1111ec: 5e pop %esi
1111ed: 5f pop %edi
1111ee: c9 leave
1111ef: c3 ret
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
1111f0: 8d 42 ff lea -0x1(%edx),%eax
1111f3: 83 f8 fd cmp $0xfffffffd,%eax
1111f6: 76 ec jbe 1111e4 <rtems_string_to_unsigned_int+0x58><== NEVER TAKEN
1111f8: b8 0a 00 00 00 mov $0xa,%eax
#endif
*n = result;
return RTEMS_SUCCESSFUL;
}
1111fd: 8d 65 f4 lea -0xc(%ebp),%esp
111200: 5b pop %ebx
111201: 5e pop %esi
111202: 5f pop %edi
111203: c9 leave
111204: c3 ret
111205: 8d 76 00 lea 0x0(%esi),%esi
result = strtoul( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
111208: b8 0b 00 00 00 mov $0xb,%eax
#endif
*n = result;
return RTEMS_SUCCESSFUL;
}
11120d: 8d 65 f4 lea -0xc(%ebp),%esp
111210: 5b pop %ebx
111211: 5e pop %esi
111212: 5f pop %edi
111213: c9 leave
111214: c3 ret
111215: 8d 76 00 lea 0x0(%esi),%esi
)
{
unsigned long result;
char *end;
if ( !n )
111218: b8 09 00 00 00 mov $0x9,%eax
#endif
*n = result;
return RTEMS_SUCCESSFUL;
}
11121d: 8d 65 f4 lea -0xc(%ebp),%esp
111220: 5b pop %ebx
111221: 5e pop %esi
111222: 5f pop %edi
111223: c9 leave
111224: c3 ret
00124808 <rtems_string_to_unsigned_long>:
const char *s,
unsigned long *n,
char **endptr,
int base
)
{
124808: 55 push %ebp
124809: 89 e5 mov %esp,%ebp
12480b: 57 push %edi
12480c: 56 push %esi
12480d: 53 push %ebx
12480e: 83 ec 2c sub $0x2c,%esp
124811: 8b 75 08 mov 0x8(%ebp),%esi
124814: 8b 5d 0c mov 0xc(%ebp),%ebx
124817: 8b 7d 10 mov 0x10(%ebp),%edi
unsigned long result;
char *end;
if ( !n )
12481a: 85 db test %ebx,%ebx
12481c: 74 76 je 124894 <rtems_string_to_unsigned_long+0x8c>
return RTEMS_INVALID_ADDRESS;
errno = 0;
12481e: e8 69 1f 02 00 call 14678c <__errno>
124823: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
124829: c7 03 00 00 00 00 movl $0x0,(%ebx)
result = strtoul( s, &end, base );
12482f: 50 push %eax
124830: ff 75 14 pushl 0x14(%ebp)
124833: 8d 45 e4 lea -0x1c(%ebp),%eax
124836: 50 push %eax
124837: 56 push %esi
124838: e8 07 93 02 00 call 14db44 <strtoul>
12483d: 89 c2 mov %eax,%edx
if ( endptr )
12483f: 83 c4 10 add $0x10,%esp
124842: 85 ff test %edi,%edi
124844: 74 05 je 12484b <rtems_string_to_unsigned_long+0x43>
*endptr = end;
124846: 8b 45 e4 mov -0x1c(%ebp),%eax
124849: 89 07 mov %eax,(%edi)
if ( end == s )
12484b: 39 75 e4 cmp %esi,-0x1c(%ebp)
12484e: 74 34 je 124884 <rtems_string_to_unsigned_long+0x7c>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
124850: 89 55 d4 mov %edx,-0x2c(%ebp)
124853: e8 34 1f 02 00 call 14678c <__errno>
124858: 83 38 22 cmpl $0x22,(%eax)
12485b: 8b 55 d4 mov -0x2c(%ebp),%edx
12485e: 74 0c je 12486c <rtems_string_to_unsigned_long+0x64>
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
124860: 89 13 mov %edx,(%ebx)
124862: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
124864: 8d 65 f4 lea -0xc(%ebp),%esp
124867: 5b pop %ebx
124868: 5e pop %esi
124869: 5f pop %edi
12486a: c9 leave
12486b: c3 ret
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
12486c: 8d 42 ff lea -0x1(%edx),%eax
12486f: 83 f8 fd cmp $0xfffffffd,%eax
124872: 76 ec jbe 124860 <rtems_string_to_unsigned_long+0x58><== NEVER TAKEN
124874: b8 0a 00 00 00 mov $0xa,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
124879: 8d 65 f4 lea -0xc(%ebp),%esp
12487c: 5b pop %ebx
12487d: 5e pop %esi
12487e: 5f pop %edi
12487f: c9 leave
124880: c3 ret
124881: 8d 76 00 lea 0x0(%esi),%esi
result = strtoul( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
124884: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
124889: 8d 65 f4 lea -0xc(%ebp),%esp
12488c: 5b pop %ebx
12488d: 5e pop %esi
12488e: 5f pop %edi
12488f: c9 leave
124890: c3 ret
124891: 8d 76 00 lea 0x0(%esi),%esi
)
{
unsigned long result;
char *end;
if ( !n )
124894: b8 09 00 00 00 mov $0x9,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
124899: 8d 65 f4 lea -0xc(%ebp),%esp
12489c: 5b pop %ebx
12489d: 5e pop %esi
12489e: 5f pop %edi
12489f: c9 leave
1248a0: c3 ret
00111228 <rtems_string_to_unsigned_long_long>:
const char *s,
unsigned long long *n,
char **endptr,
int base
)
{
111228: 55 push %ebp
111229: 89 e5 mov %esp,%ebp
11122b: 57 push %edi
11122c: 56 push %esi
11122d: 53 push %ebx
11122e: 83 ec 2c sub $0x2c,%esp
111231: 8b 75 08 mov 0x8(%ebp),%esi
111234: 8b 5d 0c mov 0xc(%ebp),%ebx
111237: 8b 7d 10 mov 0x10(%ebp),%edi
unsigned long long result;
char *end;
if ( !n )
11123a: 85 db test %ebx,%ebx
11123c: 0f 84 96 00 00 00 je 1112d8 <rtems_string_to_unsigned_long_long+0xb0>
return RTEMS_INVALID_ADDRESS;
errno = 0;
111242: e8 a5 1b 00 00 call 112dec <__errno>
111247: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
11124d: c7 03 00 00 00 00 movl $0x0,(%ebx)
111253: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
result = strtoull( s, &end, base );
11125a: 50 push %eax
11125b: ff 75 14 pushl 0x14(%ebp)
11125e: 8d 45 e4 lea -0x1c(%ebp),%eax
111261: 50 push %eax
111262: 56 push %esi
111263: e8 44 4c 00 00 call 115eac <strtoull>
111268: 89 d1 mov %edx,%ecx
11126a: 89 c2 mov %eax,%edx
if ( endptr )
11126c: 83 c4 10 add $0x10,%esp
11126f: 85 ff test %edi,%edi
111271: 74 05 je 111278 <rtems_string_to_unsigned_long_long+0x50>
*endptr = end;
111273: 8b 45 e4 mov -0x1c(%ebp),%eax
111276: 89 07 mov %eax,(%edi)
if ( end == s )
111278: 39 75 e4 cmp %esi,-0x1c(%ebp)
11127b: 74 4b je 1112c8 <rtems_string_to_unsigned_long_long+0xa0>
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
11127d: 89 55 d4 mov %edx,-0x2c(%ebp)
111280: 89 4d d0 mov %ecx,-0x30(%ebp)
111283: e8 64 1b 00 00 call 112dec <__errno>
111288: 83 38 22 cmpl $0x22,(%eax)
11128b: 8b 55 d4 mov -0x2c(%ebp),%edx
11128e: 8b 4d d0 mov -0x30(%ebp),%ecx
111291: 74 11 je 1112a4 <rtems_string_to_unsigned_long_long+0x7c>
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
111293: 89 13 mov %edx,(%ebx)
111295: 89 4b 04 mov %ecx,0x4(%ebx)
111298: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
11129a: 8d 65 f4 lea -0xc(%ebp),%esp
11129d: 5b pop %ebx
11129e: 5e pop %esi
11129f: 5f pop %edi
1112a0: c9 leave
1112a1: c3 ret
1112a2: 66 90 xchg %ax,%ax
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
1112a4: 89 d6 mov %edx,%esi
1112a6: 89 cf mov %ecx,%edi
1112a8: 83 c6 ff add $0xffffffff,%esi
1112ab: 83 d7 ff adc $0xffffffff,%edi
1112ae: 83 ff ff cmp $0xffffffff,%edi
1112b1: 72 e0 jb 111293 <rtems_string_to_unsigned_long_long+0x6b><== NEVER TAKEN
1112b3: 83 fe fd cmp $0xfffffffd,%esi
1112b6: 76 db jbe 111293 <rtems_string_to_unsigned_long_long+0x6b><== NEVER TAKEN
1112b8: b8 0a 00 00 00 mov $0xa,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
1112bd: 8d 65 f4 lea -0xc(%ebp),%esp
1112c0: 5b pop %ebx
1112c1: 5e pop %esi
1112c2: 5f pop %edi
1112c3: c9 leave
1112c4: c3 ret
1112c5: 8d 76 00 lea 0x0(%esi),%esi
result = strtoull( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
1112c8: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
1112cd: 8d 65 f4 lea -0xc(%ebp),%esp
1112d0: 5b pop %ebx
1112d1: 5e pop %esi
1112d2: 5f pop %edi
1112d3: c9 leave
1112d4: c3 ret
1112d5: 8d 76 00 lea 0x0(%esi),%esi
)
{
unsigned long long result;
char *end;
if ( !n )
1112d8: b8 09 00 00 00 mov $0x9,%eax
return RTEMS_INVALID_NUMBER;
*n = result;
return RTEMS_SUCCESSFUL;
}
1112dd: 8d 65 f4 lea -0xc(%ebp),%esp
1112e0: 5b pop %ebx
1112e1: 5e pop %esi
1112e2: 5f pop %edi
1112e3: c9 leave
1112e4: c3 ret
0010be80 <rtems_task_create>:
size_t stack_size,
rtems_mode initial_modes,
rtems_attribute attribute_set,
rtems_id *id
)
{
10be80: 55 push %ebp
10be81: 89 e5 mov %esp,%ebp
10be83: 57 push %edi
10be84: 56 push %esi
10be85: 53 push %ebx
10be86: 83 ec 1c sub $0x1c,%esp
10be89: 8b 5d 08 mov 0x8(%ebp),%ebx
10be8c: 8b 4d 0c mov 0xc(%ebp),%ecx
10be8f: 8b 7d 18 mov 0x18(%ebp),%edi
10be92: 8b 75 1c mov 0x1c(%ebp),%esi
Priority_Control core_priority;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !id )
10be95: 85 f6 test %esi,%esi
10be97: 0f 84 37 01 00 00 je 10bfd4 <rtems_task_create+0x154>
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
10be9d: 85 db test %ebx,%ebx
10be9f: 0f 84 cb 00 00 00 je 10bf70 <rtems_task_create+0xf0>
/*
* Validate the RTEMS API priority and convert it to the core priority range.
*/
if ( !_Attributes_Is_system_task( the_attribute_set ) ) {
10bea5: 66 85 ff test %di,%di
10bea8: 78 1d js 10bec7 <rtems_task_create+0x47>
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
10beaa: 85 c9 test %ecx,%ecx
10beac: 75 0e jne 10bebc <rtems_task_create+0x3c>
}
#endif
_RTEMS_Unlock_allocator();
return RTEMS_SUCCESSFUL;
10beae: b8 13 00 00 00 mov $0x13,%eax
}
10beb3: 8d 65 f4 lea -0xc(%ebp),%esp
10beb6: 5b pop %ebx
10beb7: 5e pop %esi
10beb8: 5f pop %edi
10beb9: c9 leave
10beba: c3 ret
10bebb: 90 nop
10bebc: 0f b6 05 14 32 12 00 movzbl 0x123214,%eax
10bec3: 39 c1 cmp %eax,%ecx
10bec5: 77 e7 ja 10beae <rtems_task_create+0x2e>
*/
/*
* Lock the allocator mutex for protection
*/
_RTEMS_Lock_allocator();
10bec7: 83 ec 0c sub $0xc,%esp
10beca: ff 35 10 74 12 00 pushl 0x127410
10bed0: 89 4d e4 mov %ecx,-0x1c(%ebp)
10bed3: e8 38 06 00 00 call 10c510 <_API_Mutex_Lock>
* This function allocates a task control block from
* the inactive chain of free task control blocks.
*/
RTEMS_INLINE_ROUTINE Thread_Control *_RTEMS_tasks_Allocate( void )
{
return (Thread_Control *) _Objects_Allocate( &_RTEMS_tasks_Information );
10bed8: c7 04 24 e0 72 12 00 movl $0x1272e0,(%esp)
10bedf: e8 b0 0f 00 00 call 10ce94 <_Objects_Allocate>
10bee4: 89 c2 mov %eax,%edx
* the event of an error.
*/
the_thread = _RTEMS_tasks_Allocate();
if ( !the_thread ) {
10bee6: 83 c4 10 add $0x10,%esp
10bee9: 85 c0 test %eax,%eax
10beeb: 8b 4d e4 mov -0x1c(%ebp),%ecx
10beee: 0f 84 c0 00 00 00 je 10bfb4 <rtems_task_create+0x134>
/*
* Initialize the core thread for this task.
*/
status = _Thread_Initialize(
10bef4: 50 push %eax
10bef5: 53 push %ebx
10bef6: 8b 45 14 mov 0x14(%ebp),%eax
10bef9: 83 e0 01 and $0x1,%eax
10befc: 50 push %eax
10befd: 6a 00 push $0x0
10beff: 8b 45 14 mov 0x14(%ebp),%eax
10bf02: c1 e8 09 shr $0x9,%eax
10bf05: 83 e0 01 and $0x1,%eax
10bf08: 50 push %eax
10bf09: 8b 45 14 mov 0x14(%ebp),%eax
10bf0c: c1 e8 08 shr $0x8,%eax
10bf0f: 83 f0 01 xor $0x1,%eax
10bf12: 83 e0 01 and $0x1,%eax
10bf15: 50 push %eax
10bf16: 51 push %ecx
10bf17: 83 e7 01 and $0x1,%edi
10bf1a: 57 push %edi
10bf1b: ff 75 10 pushl 0x10(%ebp)
10bf1e: 6a 00 push $0x0
10bf20: 52 push %edx
10bf21: 68 e0 72 12 00 push $0x1272e0
10bf26: 89 55 e4 mov %edx,-0x1c(%ebp)
10bf29: e8 fa 1c 00 00 call 10dc28 <_Thread_Initialize>
NULL, /* no budget algorithm callout */
_Modes_Get_interrupt_level(initial_modes),
(Objects_Name) name
);
if ( !status ) {
10bf2e: 83 c4 30 add $0x30,%esp
10bf31: 84 c0 test %al,%al
10bf33: 8b 55 e4 mov -0x1c(%ebp),%edx
10bf36: 74 48 je 10bf80 <rtems_task_create+0x100>
}
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true;
10bf38: 8b 8a f0 00 00 00 mov 0xf0(%edx),%ecx
10bf3e: 8b 45 14 mov 0x14(%ebp),%eax
10bf41: c1 e8 0a shr $0xa,%eax
10bf44: 83 f0 01 xor $0x1,%eax
10bf47: 83 e0 01 and $0x1,%eax
10bf4a: 88 41 08 mov %al,0x8(%ecx)
*id = the_thread->Object.id;
10bf4d: 8b 42 08 mov 0x8(%edx),%eax
10bf50: 89 06 mov %eax,(%esi)
);
}
#endif
_RTEMS_Unlock_allocator();
10bf52: 83 ec 0c sub $0xc,%esp
10bf55: ff 35 10 74 12 00 pushl 0x127410
10bf5b: e8 f8 05 00 00 call 10c558 <_API_Mutex_Unlock>
10bf60: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10bf62: 83 c4 10 add $0x10,%esp
}
10bf65: 8d 65 f4 lea -0xc(%ebp),%esp
10bf68: 5b pop %ebx
10bf69: 5e pop %esi
10bf6a: 5f pop %edi
10bf6b: c9 leave
10bf6c: c3 ret
10bf6d: 8d 76 00 lea 0x0(%esi),%esi
if ( !id )
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
10bf70: b8 03 00 00 00 mov $0x3,%eax
}
#endif
_RTEMS_Unlock_allocator();
return RTEMS_SUCCESSFUL;
}
10bf75: 8d 65 f4 lea -0xc(%ebp),%esp
10bf78: 5b pop %ebx
10bf79: 5e pop %esi
10bf7a: 5f pop %edi
10bf7b: c9 leave
10bf7c: c3 ret
10bf7d: 8d 76 00 lea 0x0(%esi),%esi
*/
RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free (
Thread_Control *the_task
)
{
_Objects_Free(
10bf80: 83 ec 0c sub $0xc,%esp
10bf83: ff 72 08 pushl 0x8(%edx)
10bf86: e8 f9 12 00 00 call 10d284 <_Objects_Get_information_id>
10bf8b: 5a pop %edx
10bf8c: 59 pop %ecx
10bf8d: 8b 55 e4 mov -0x1c(%ebp),%edx
10bf90: 52 push %edx
10bf91: 50 push %eax
10bf92: e8 7d 12 00 00 call 10d214 <_Objects_Free>
#if defined(RTEMS_MULTIPROCESSING)
if ( is_global )
_Objects_MP_Free_global_object( the_global_object );
#endif
_RTEMS_tasks_Free( the_thread );
_RTEMS_Unlock_allocator();
10bf97: 58 pop %eax
10bf98: ff 35 10 74 12 00 pushl 0x127410
10bf9e: e8 b5 05 00 00 call 10c558 <_API_Mutex_Unlock>
10bfa3: b8 0d 00 00 00 mov $0xd,%eax
return RTEMS_UNSATISFIED;
10bfa8: 83 c4 10 add $0x10,%esp
}
#endif
_RTEMS_Unlock_allocator();
return RTEMS_SUCCESSFUL;
}
10bfab: 8d 65 f4 lea -0xc(%ebp),%esp
10bfae: 5b pop %ebx
10bfaf: 5e pop %esi
10bfb0: 5f pop %edi
10bfb1: c9 leave
10bfb2: c3 ret
10bfb3: 90 nop
*/
the_thread = _RTEMS_tasks_Allocate();
if ( !the_thread ) {
_RTEMS_Unlock_allocator();
10bfb4: 83 ec 0c sub $0xc,%esp
10bfb7: ff 35 10 74 12 00 pushl 0x127410
10bfbd: e8 96 05 00 00 call 10c558 <_API_Mutex_Unlock>
10bfc2: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
10bfc7: 83 c4 10 add $0x10,%esp
}
#endif
_RTEMS_Unlock_allocator();
return RTEMS_SUCCESSFUL;
}
10bfca: 8d 65 f4 lea -0xc(%ebp),%esp
10bfcd: 5b pop %ebx
10bfce: 5e pop %esi
10bfcf: 5f pop %edi
10bfd0: c9 leave
10bfd1: c3 ret
10bfd2: 66 90 xchg %ax,%ax
Priority_Control core_priority;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !id )
10bfd4: b8 09 00 00 00 mov $0x9,%eax
10bfd9: e9 d5 fe ff ff jmp 10beb3 <rtems_task_create+0x33>
0010bfe0 <rtems_task_delete>:
*/
rtems_status_code rtems_task_delete(
rtems_id id
)
{
10bfe0: 55 push %ebp
10bfe1: 89 e5 mov %esp,%ebp
10bfe3: 53 push %ebx
10bfe4: 83 ec 20 sub $0x20,%esp
register Thread_Control *the_thread;
Objects_Locations location;
Objects_Information *the_information;
_RTEMS_Lock_allocator();
10bfe7: ff 35 10 74 12 00 pushl 0x127410
10bfed: e8 1e 05 00 00 call 10c510 <_API_Mutex_Lock>
the_thread = _Thread_Get( id, &location );
10bff2: 5a pop %edx
10bff3: 59 pop %ecx
10bff4: 8d 45 f4 lea -0xc(%ebp),%eax
10bff7: 50 push %eax
10bff8: ff 75 08 pushl 0x8(%ebp)
10bffb: e8 b0 1b 00 00 call 10dbb0 <_Thread_Get>
10c000: 89 c3 mov %eax,%ebx
switch ( location ) {
10c002: 83 c4 10 add $0x10,%esp
10c005: 8b 45 f4 mov -0xc(%ebp),%eax
10c008: 85 c0 test %eax,%eax
10c00a: 75 44 jne 10c050 <rtems_task_delete+0x70>
case OBJECTS_LOCAL:
the_information = _Objects_Get_information_id( the_thread->Object.id );
10c00c: 83 ec 0c sub $0xc,%esp
10c00f: ff 73 08 pushl 0x8(%ebx)
10c012: e8 6d 12 00 00 call 10d284 <_Objects_Get_information_id>
0 /* Not used */
);
}
#endif
_Thread_Close( the_information, the_thread );
10c017: 5a pop %edx
10c018: 59 pop %ecx
10c019: 53 push %ebx
10c01a: 50 push %eax
10c01b: e8 58 18 00 00 call 10d878 <_Thread_Close>
10c020: 58 pop %eax
10c021: ff 73 08 pushl 0x8(%ebx)
10c024: e8 5b 12 00 00 call 10d284 <_Objects_Get_information_id>
10c029: 5a pop %edx
10c02a: 59 pop %ecx
10c02b: 53 push %ebx
10c02c: 50 push %eax
10c02d: e8 e2 11 00 00 call 10d214 <_Objects_Free>
_RTEMS_tasks_Free( the_thread );
_RTEMS_Unlock_allocator();
10c032: 58 pop %eax
10c033: ff 35 10 74 12 00 pushl 0x127410
10c039: e8 1a 05 00 00 call 10c558 <_API_Mutex_Unlock>
_Thread_Enable_dispatch();
10c03e: e8 49 1b 00 00 call 10db8c <_Thread_Enable_dispatch>
10c043: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10c045: 83 c4 10 add $0x10,%esp
break;
}
_RTEMS_Unlock_allocator();
return RTEMS_INVALID_ID;
}
10c048: 8b 5d fc mov -0x4(%ebp),%ebx
10c04b: c9 leave
10c04c: c3 ret
10c04d: 8d 76 00 lea 0x0(%esi),%esi
case OBJECTS_ERROR:
break;
}
_RTEMS_Unlock_allocator();
10c050: 83 ec 0c sub $0xc,%esp
10c053: ff 35 10 74 12 00 pushl 0x127410
10c059: e8 fa 04 00 00 call 10c558 <_API_Mutex_Unlock>
10c05e: b8 04 00 00 00 mov $0x4,%eax
return RTEMS_INVALID_ID;
10c063: 83 c4 10 add $0x10,%esp
}
10c066: 8b 5d fc mov -0x4(%ebp),%ebx
10c069: c9 leave
10c06a: c3 ret
0010daec <rtems_task_get_note>:
rtems_status_code rtems_task_get_note(
rtems_id id,
uint32_t notepad,
uint32_t *note
)
{
10daec: 55 push %ebp
10daed: 89 e5 mov %esp,%ebp
10daef: 56 push %esi
10daf0: 53 push %ebx
10daf1: 83 ec 10 sub $0x10,%esp
10daf4: 8b 45 08 mov 0x8(%ebp),%eax
10daf7: 8b 75 0c mov 0xc(%ebp),%esi
10dafa: 8b 5d 10 mov 0x10(%ebp),%ebx
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
10dafd: 80 3d e4 71 12 00 00 cmpb $0x0,0x1271e4
10db04: 74 6e je 10db74 <rtems_task_get_note+0x88>
return RTEMS_NOT_CONFIGURED;
if ( !note )
10db06: 85 db test %ebx,%ebx
10db08: 74 7e je 10db88 <rtems_task_get_note+0x9c>
/*
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
*/
if ( notepad > RTEMS_NOTEPAD_LAST )
10db0a: 83 fe 0f cmp $0xf,%esi
10db0d: 77 3d ja 10db4c <rtems_task_get_note+0x60>
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
10db0f: 85 c0 test %eax,%eax
10db11: 74 45 je 10db58 <rtems_task_get_note+0x6c>
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
10db13: 8b 15 f8 b6 12 00 mov 0x12b6f8,%edx
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
10db19: 3b 42 08 cmp 0x8(%edx),%eax
10db1c: 74 40 je 10db5e <rtems_task_get_note+0x72>
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
*note = api->Notepads[ notepad ];
return RTEMS_SUCCESSFUL;
}
the_thread = _Thread_Get( id, &location );
10db1e: 83 ec 08 sub $0x8,%esp
10db21: 8d 55 f4 lea -0xc(%ebp),%edx
10db24: 52 push %edx
10db25: 50 push %eax
10db26: e8 c1 1e 00 00 call 10f9ec <_Thread_Get>
switch ( location ) {
10db2b: 83 c4 10 add $0x10,%esp
10db2e: 8b 55 f4 mov -0xc(%ebp),%edx
10db31: 85 d2 test %edx,%edx
10db33: 75 4b jne 10db80 <rtems_task_get_note+0x94>
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
*note = api->Notepads[ notepad ];
10db35: 8b 80 f0 00 00 00 mov 0xf0(%eax),%eax
10db3b: 8b 44 b0 20 mov 0x20(%eax,%esi,4),%eax
10db3f: 89 03 mov %eax,(%ebx)
_Thread_Enable_dispatch();
10db41: e8 82 1e 00 00 call 10f9c8 <_Thread_Enable_dispatch>
10db46: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10db48: eb 07 jmp 10db51 <rtems_task_get_note+0x65>
10db4a: 66 90 xchg %ax,%ax
/*
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
*/
if ( notepad > RTEMS_NOTEPAD_LAST )
10db4c: b8 0a 00 00 00 mov $0xa,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10db51: 8d 65 f8 lea -0x8(%ebp),%esp
10db54: 5b pop %ebx
10db55: 5e pop %esi
10db56: c9 leave
10db57: c3 ret
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
10db58: 8b 15 f8 b6 12 00 mov 0x12b6f8,%edx
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
*note = api->Notepads[ notepad ];
10db5e: 8b 82 f0 00 00 00 mov 0xf0(%edx),%eax
10db64: 8b 44 b0 20 mov 0x20(%eax,%esi,4),%eax
10db68: 89 03 mov %eax,(%ebx)
10db6a: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10db6c: 8d 65 f8 lea -0x8(%ebp),%esp
10db6f: 5b pop %ebx
10db70: 5e pop %esi
10db71: c9 leave
10db72: c3 ret
10db73: 90 nop
{
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
10db74: b8 16 00 00 00 mov $0x16,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10db79: 8d 65 f8 lea -0x8(%ebp),%esp
10db7c: 5b pop %ebx
10db7d: 5e pop %esi
10db7e: c9 leave
10db7f: c3 ret
*note = api->Notepads[ notepad ];
return RTEMS_SUCCESSFUL;
}
the_thread = _Thread_Get( id, &location );
switch ( location ) {
10db80: b8 04 00 00 00 mov $0x4,%eax
10db85: eb ca jmp 10db51 <rtems_task_get_note+0x65>
10db87: 90 nop
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
return RTEMS_NOT_CONFIGURED;
if ( !note )
10db88: b8 09 00 00 00 mov $0x9,%eax
10db8d: eb c2 jmp 10db51 <rtems_task_get_note+0x65>
00118a50 <rtems_task_is_suspended>:
*/
rtems_status_code rtems_task_is_suspended(
rtems_id id
)
{
118a50: 55 push %ebp
118a51: 89 e5 mov %esp,%ebp
118a53: 83 ec 20 sub $0x20,%esp
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
118a56: 8d 45 f4 lea -0xc(%ebp),%eax
118a59: 50 push %eax
118a5a: ff 75 08 pushl 0x8(%ebp)
118a5d: e8 1e 37 00 00 call 11c180 <_Thread_Get>
switch ( location ) {
118a62: 83 c4 10 add $0x10,%esp
118a65: 8b 55 f4 mov -0xc(%ebp),%edx
118a68: 85 d2 test %edx,%edx
118a6a: 74 08 je 118a74 <rtems_task_is_suspended+0x24>
118a6c: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
118a71: c9 leave
118a72: c3 ret
118a73: 90 nop
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
118a74: f6 40 10 02 testb $0x2,0x10(%eax)
118a78: 74 0e je 118a88 <rtems_task_is_suspended+0x38>
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
118a7a: e8 b1 36 00 00 call 11c130 <_Thread_Enable_dispatch>
118a7f: b8 0f 00 00 00 mov $0xf,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
118a84: c9 leave
118a85: c3 ret
118a86: 66 90 xchg %ax,%ax
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
_Thread_Enable_dispatch();
118a88: e8 a3 36 00 00 call 11c130 <_Thread_Enable_dispatch>
118a8d: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
118a8f: c9 leave
118a90: c3 ret
00113974 <rtems_task_mode>:
rtems_status_code rtems_task_mode(
rtems_mode mode_set,
rtems_mode mask,
rtems_mode *previous_mode_set
)
{
113974: 55 push %ebp
113975: 89 e5 mov %esp,%ebp
113977: 57 push %edi
113978: 56 push %esi
113979: 53 push %ebx
11397a: 83 ec 1c sub $0x1c,%esp
11397d: 8b 4d 10 mov 0x10(%ebp),%ecx
ASR_Information *asr;
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
113980: 85 c9 test %ecx,%ecx
113982: 0f 84 1c 01 00 00 je 113aa4 <rtems_task_mode+0x130>
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
113988: 8b 1d 18 74 12 00 mov 0x127418,%ebx
api = executing->API_Extensions[ THREAD_API_RTEMS ];
11398e: 8b bb f0 00 00 00 mov 0xf0(%ebx),%edi
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
113994: 80 7b 75 01 cmpb $0x1,0x75(%ebx)
113998: 19 f6 sbb %esi,%esi
11399a: 81 e6 00 01 00 00 and $0x100,%esi
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
1139a0: 8b 53 7c mov 0x7c(%ebx),%edx
1139a3: 85 d2 test %edx,%edx
1139a5: 0f 85 b5 00 00 00 jne 113a60 <rtems_task_mode+0xec>
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
1139ab: 80 7f 08 01 cmpb $0x1,0x8(%edi)
1139af: 19 d2 sbb %edx,%edx
1139b1: 81 e2 00 04 00 00 and $0x400,%edx
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
old_mode |= _ISR_Get_level();
1139b7: 89 55 e4 mov %edx,-0x1c(%ebp)
1139ba: 89 4d e0 mov %ecx,-0x20(%ebp)
1139bd: e8 6a b5 ff ff call 10ef2c <_CPU_ISR_Get_level>
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
1139c2: 8b 55 e4 mov -0x1c(%ebp),%edx
1139c5: 09 d0 or %edx,%eax
old_mode |= _ISR_Get_level();
*previous_mode_set = old_mode;
1139c7: 09 f0 or %esi,%eax
1139c9: 8b 4d e0 mov -0x20(%ebp),%ecx
1139cc: 89 01 mov %eax,(%ecx)
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
1139ce: f7 45 0c 00 01 00 00 testl $0x100,0xc(%ebp)
1139d5: 74 0f je 1139e6 <rtems_task_mode+0x72>
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
1139d7: 8b 45 08 mov 0x8(%ebp),%eax
1139da: c1 e8 08 shr $0x8,%eax
1139dd: 83 f0 01 xor $0x1,%eax
1139e0: 83 e0 01 and $0x1,%eax
1139e3: 88 43 75 mov %al,0x75(%ebx)
if ( mask & RTEMS_TIMESLICE_MASK ) {
1139e6: f7 45 0c 00 02 00 00 testl $0x200,0xc(%ebp)
1139ed: 74 18 je 113a07 <rtems_task_mode+0x93>
if ( _Modes_Is_timeslice(mode_set) ) {
1139ef: f7 45 08 00 02 00 00 testl $0x200,0x8(%ebp)
1139f6: 74 74 je 113a6c <rtems_task_mode+0xf8>
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
1139f8: c7 43 7c 01 00 00 00 movl $0x1,0x7c(%ebx)
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
1139ff: a1 24 73 12 00 mov 0x127324,%eax
113a04: 89 43 78 mov %eax,0x78(%ebx)
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
113a07: f6 45 0c 01 testb $0x1,0xc(%ebp)
113a0b: 74 07 je 113a14 <rtems_task_mode+0xa0>
*/
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (
Modes_Control mode_set
)
{
_ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );
113a0d: f6 45 08 01 testb $0x1,0x8(%ebp)
113a11: 74 69 je 113a7c <rtems_task_mode+0x108>
113a13: fa cli
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
113a14: f7 45 0c 00 04 00 00 testl $0x400,0xc(%ebp)
113a1b: 74 2c je 113a49 <rtems_task_mode+0xd5>
* Output:
* *previous_mode_set - previous mode set
* always return RTEMS_SUCCESSFUL;
*/
rtems_status_code rtems_task_mode(
113a1d: 8b 45 08 mov 0x8(%ebp),%eax
113a20: c1 e8 0a shr $0xa,%eax
113a23: 83 f0 01 xor $0x1,%eax
113a26: 83 e0 01 and $0x1,%eax
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
113a29: 38 47 08 cmp %al,0x8(%edi)
113a2c: 74 1b je 113a49 <rtems_task_mode+0xd5>
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
if ( is_asr_enabled != asr->is_enabled ) {
asr->is_enabled = is_asr_enabled;
113a2e: 88 47 08 mov %al,0x8(%edi)
)
{
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
113a31: 9c pushf
113a32: fa cli
113a33: 58 pop %eax
_signals = information->signals_pending;
113a34: 8b 57 18 mov 0x18(%edi),%edx
information->signals_pending = information->signals_posted;
113a37: 8b 4f 14 mov 0x14(%edi),%ecx
113a3a: 89 4f 18 mov %ecx,0x18(%edi)
information->signals_posted = _signals;
113a3d: 89 57 14 mov %edx,0x14(%edi)
_ISR_Enable( _level );
113a40: 50 push %eax
113a41: 9d popf
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
113a42: 8b 47 14 mov 0x14(%edi),%eax
113a45: 85 c0 test %eax,%eax
113a47: 75 53 jne 113a9c <rtems_task_mode+0x128>
if ( is_asr_enabled != asr->is_enabled ) {
asr->is_enabled = is_asr_enabled;
_ASR_Swap_signals( asr );
if ( _ASR_Are_signals_pending( asr ) ) {
needs_asr_dispatching = true;
executing->do_post_task_switch_extension = true;
113a49: 31 db xor %ebx,%ebx
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) )
113a4b: 83 3d 20 75 12 00 03 cmpl $0x3,0x127520
113a52: 74 2c je 113a80 <rtems_task_mode+0x10c>
if ( _Thread_Evaluate_mode() || needs_asr_dispatching )
_Thread_Dispatch();
113a54: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
113a56: 83 c4 1c add $0x1c,%esp
113a59: 5b pop %ebx
113a5a: 5e pop %esi
113a5b: 5f pop %edi
113a5c: c9 leave
113a5d: c3 ret
113a5e: 66 90 xchg %ax,%ax
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
113a60: 81 ce 00 02 00 00 or $0x200,%esi
113a66: e9 40 ff ff ff jmp 1139ab <rtems_task_mode+0x37>
113a6b: 90 nop
if ( mask & RTEMS_TIMESLICE_MASK ) {
if ( _Modes_Is_timeslice(mode_set) ) {
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
} else
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
113a6c: c7 43 7c 00 00 00 00 movl $0x0,0x7c(%ebx)
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
113a73: f6 45 0c 01 testb $0x1,0xc(%ebp)
113a77: 74 9b je 113a14 <rtems_task_mode+0xa0>
113a79: eb 92 jmp 113a0d <rtems_task_mode+0x99>
113a7b: 90 nop
113a7c: fb sti
113a7d: eb 95 jmp 113a14 <rtems_task_mode+0xa0>
113a7f: 90 nop
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) )
if ( _Thread_Evaluate_mode() || needs_asr_dispatching )
113a80: e8 ab 01 00 00 call 113c30 <_Thread_Evaluate_mode>
113a85: 84 c0 test %al,%al
113a87: 75 04 jne 113a8d <rtems_task_mode+0x119>
113a89: 84 db test %bl,%bl
113a8b: 74 c7 je 113a54 <rtems_task_mode+0xe0>
_Thread_Dispatch();
113a8d: e8 9e 9f ff ff call 10da30 <_Thread_Dispatch>
113a92: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
113a94: 83 c4 1c add $0x1c,%esp
113a97: 5b pop %ebx
113a98: 5e pop %esi
113a99: 5f pop %edi
113a9a: c9 leave
113a9b: c3 ret
if ( is_asr_enabled != asr->is_enabled ) {
asr->is_enabled = is_asr_enabled;
_ASR_Swap_signals( asr );
if ( _ASR_Are_signals_pending( asr ) ) {
needs_asr_dispatching = true;
executing->do_post_task_switch_extension = true;
113a9c: c6 43 74 01 movb $0x1,0x74(%ebx)
113aa0: b3 01 mov $0x1,%bl
113aa2: eb a7 jmp 113a4b <rtems_task_mode+0xd7>
ASR_Information *asr;
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
113aa4: b8 09 00 00 00 mov $0x9,%eax
if ( _System_state_Is_up( _System_state_Get() ) )
if ( _Thread_Evaluate_mode() || needs_asr_dispatching )
_Thread_Dispatch();
return RTEMS_SUCCESSFUL;
}
113aa9: 83 c4 1c add $0x1c,%esp
113aac: 5b pop %ebx
113aad: 5e pop %esi
113aae: 5f pop %edi
113aaf: c9 leave
113ab0: c3 ret
0010f32c <rtems_task_resume>:
*/
rtems_status_code rtems_task_resume(
rtems_id id
)
{
10f32c: 55 push %ebp
10f32d: 89 e5 mov %esp,%ebp
10f32f: 83 ec 20 sub $0x20,%esp
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
10f332: 8d 45 f4 lea -0xc(%ebp),%eax
10f335: 50 push %eax
10f336: ff 75 08 pushl 0x8(%ebp)
10f339: e8 f6 1b 00 00 call 110f34 <_Thread_Get>
switch ( location ) {
10f33e: 83 c4 10 add $0x10,%esp
10f341: 8b 55 f4 mov -0xc(%ebp),%edx
10f344: 85 d2 test %edx,%edx
10f346: 74 08 je 10f350 <rtems_task_resume+0x24>
10f348: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10f34d: c9 leave
10f34e: c3 ret
10f34f: 90 nop
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( _States_Is_suspended( the_thread->current_state ) ) {
10f350: f6 40 10 02 testb $0x2,0x10(%eax)
10f354: 75 0e jne 10f364 <rtems_task_resume+0x38>
_Thread_Resume( the_thread, true );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
10f356: e8 89 1b 00 00 call 110ee4 <_Thread_Enable_dispatch>
10f35b: b8 0e 00 00 00 mov $0xe,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10f360: c9 leave
10f361: c3 ret
10f362: 66 90 xchg %ax,%ax
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( _States_Is_suspended( the_thread->current_state ) ) {
_Thread_Resume( the_thread, true );
10f364: 83 ec 08 sub $0x8,%esp
10f367: 6a 01 push $0x1
10f369: 50 push %eax
10f36a: e8 e5 23 00 00 call 111754 <_Thread_Resume>
_Thread_Enable_dispatch();
10f36f: e8 70 1b 00 00 call 110ee4 <_Thread_Enable_dispatch>
10f374: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f376: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10f379: c9 leave
10f37a: c3 ret
0010dc64 <rtems_task_set_note>:
rtems_status_code rtems_task_set_note(
rtems_id id,
uint32_t notepad,
uint32_t note
)
{
10dc64: 55 push %ebp
10dc65: 89 e5 mov %esp,%ebp
10dc67: 56 push %esi
10dc68: 53 push %ebx
10dc69: 83 ec 10 sub $0x10,%esp
10dc6c: 8b 45 08 mov 0x8(%ebp),%eax
10dc6f: 8b 5d 0c mov 0xc(%ebp),%ebx
10dc72: 8b 75 10 mov 0x10(%ebp),%esi
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
10dc75: 80 3d e4 71 12 00 00 cmpb $0x0,0x1271e4
10dc7c: 74 66 je 10dce4 <rtems_task_set_note+0x80>
/*
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
*/
if ( notepad > RTEMS_NOTEPAD_LAST )
10dc7e: 83 fb 0f cmp $0xf,%ebx
10dc81: 77 39 ja 10dcbc <rtems_task_set_note+0x58>
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
10dc83: 85 c0 test %eax,%eax
10dc85: 74 41 je 10dcc8 <rtems_task_set_note+0x64>
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
10dc87: 8b 15 f8 b6 12 00 mov 0x12b6f8,%edx
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
10dc8d: 3b 42 08 cmp 0x8(%edx),%eax
10dc90: 74 3c je 10dcce <rtems_task_set_note+0x6a>
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
api->Notepads[ notepad ] = note;
return RTEMS_SUCCESSFUL;
}
the_thread = _Thread_Get( id, &location );
10dc92: 83 ec 08 sub $0x8,%esp
10dc95: 8d 55 f4 lea -0xc(%ebp),%edx
10dc98: 52 push %edx
10dc99: 50 push %eax
10dc9a: e8 4d 1d 00 00 call 10f9ec <_Thread_Get>
switch ( location ) {
10dc9f: 83 c4 10 add $0x10,%esp
10dca2: 8b 55 f4 mov -0xc(%ebp),%edx
10dca5: 85 d2 test %edx,%edx
10dca7: 75 47 jne 10dcf0 <rtems_task_set_note+0x8c>
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
api->Notepads[ notepad ] = note;
10dca9: 8b 80 f0 00 00 00 mov 0xf0(%eax),%eax
10dcaf: 89 74 98 20 mov %esi,0x20(%eax,%ebx,4)
_Thread_Enable_dispatch();
10dcb3: e8 10 1d 00 00 call 10f9c8 <_Thread_Enable_dispatch>
10dcb8: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10dcba: eb 05 jmp 10dcc1 <rtems_task_set_note+0x5d>
/*
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
*/
if ( notepad > RTEMS_NOTEPAD_LAST )
10dcbc: b8 0a 00 00 00 mov $0xa,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10dcc1: 8d 65 f8 lea -0x8(%ebp),%esp
10dcc4: 5b pop %ebx
10dcc5: 5e pop %esi
10dcc6: c9 leave
10dcc7: c3 ret
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
10dcc8: 8b 15 f8 b6 12 00 mov 0x12b6f8,%edx
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
api->Notepads[ notepad ] = note;
10dcce: 8b 82 f0 00 00 00 mov 0xf0(%edx),%eax
10dcd4: 89 74 98 20 mov %esi,0x20(%eax,%ebx,4)
10dcd8: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10dcda: 8d 65 f8 lea -0x8(%ebp),%esp
10dcdd: 5b pop %ebx
10dcde: 5e pop %esi
10dcdf: c9 leave
10dce0: c3 ret
10dce1: 8d 76 00 lea 0x0(%esi),%esi
{
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
10dce4: b8 16 00 00 00 mov $0x16,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10dce9: 8d 65 f8 lea -0x8(%ebp),%esp
10dcec: 5b pop %ebx
10dced: 5e pop %esi
10dcee: c9 leave
10dcef: c3 ret
api->Notepads[ notepad ] = note;
return RTEMS_SUCCESSFUL;
}
the_thread = _Thread_Get( id, &location );
switch ( location ) {
10dcf0: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10dcf5: 8d 65 f8 lea -0x8(%ebp),%esp
10dcf8: 5b pop %ebx
10dcf9: 5e pop %esi
10dcfa: c9 leave
10dcfb: c3 ret
0010ffe8 <rtems_task_set_priority>:
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
10ffe8: 55 push %ebp
10ffe9: 89 e5 mov %esp,%ebp
10ffeb: 56 push %esi
10ffec: 53 push %ebx
10ffed: 83 ec 10 sub $0x10,%esp
10fff0: 8b 5d 0c mov 0xc(%ebp),%ebx
10fff3: 8b 75 10 mov 0x10(%ebp),%esi
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
10fff6: 85 db test %ebx,%ebx
10fff8: 74 0b je 110005 <rtems_task_set_priority+0x1d>
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
10fffa: 0f b6 05 14 72 12 00 movzbl 0x127214,%eax
110001: 39 c3 cmp %eax,%ebx
110003: 77 5f ja 110064 <rtems_task_set_priority+0x7c>
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
110005: 85 f6 test %esi,%esi
110007: 74 67 je 110070 <rtems_task_set_priority+0x88>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
110009: 83 ec 08 sub $0x8,%esp
11000c: 8d 45 f4 lea -0xc(%ebp),%eax
11000f: 50 push %eax
110010: ff 75 08 pushl 0x8(%ebp)
110013: e8 4c 1d 00 00 call 111d64 <_Thread_Get>
switch ( location ) {
110018: 83 c4 10 add $0x10,%esp
11001b: 8b 55 f4 mov -0xc(%ebp),%edx
11001e: 85 d2 test %edx,%edx
110020: 75 36 jne 110058 <rtems_task_set_priority+0x70>
case OBJECTS_LOCAL:
/* XXX need helper to "convert" from core priority */
*old_priority = the_thread->current_priority;
110022: 8b 50 14 mov 0x14(%eax),%edx
110025: 89 16 mov %edx,(%esi)
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
110027: 85 db test %ebx,%ebx
110029: 74 1c je 110047 <rtems_task_set_priority+0x5f>
the_thread->real_priority = new_priority;
11002b: 89 58 18 mov %ebx,0x18(%eax)
if ( the_thread->resource_count == 0 ||
11002e: 8b 48 1c mov 0x1c(%eax),%ecx
110031: 85 c9 test %ecx,%ecx
110033: 74 05 je 11003a <rtems_task_set_priority+0x52>
the_thread->current_priority > new_priority )
110035: 3b 58 14 cmp 0x14(%eax),%ebx
110038: 73 0d jae 110047 <rtems_task_set_priority+0x5f><== ALWAYS TAKEN
_Thread_Change_priority( the_thread, new_priority, false );
11003a: 52 push %edx
11003b: 6a 00 push $0x0
11003d: 53 push %ebx
11003e: 50 push %eax
11003f: e8 e8 17 00 00 call 11182c <_Thread_Change_priority>
110044: 83 c4 10 add $0x10,%esp
}
_Thread_Enable_dispatch();
110047: e8 c8 1c 00 00 call 111d14 <_Thread_Enable_dispatch>
11004c: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
11004e: 8d 65 f8 lea -0x8(%ebp),%esp
110051: 5b pop %ebx
110052: 5e pop %esi
110053: c9 leave
110054: c3 ret
110055: 8d 76 00 lea 0x0(%esi),%esi
if ( !old_priority )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
110058: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
11005d: 8d 65 f8 lea -0x8(%ebp),%esp
110060: 5b pop %ebx
110061: 5e pop %esi
110062: c9 leave
110063: c3 ret
110064: b8 13 00 00 00 mov $0x13,%eax
110069: 8d 65 f8 lea -0x8(%ebp),%esp
11006c: 5b pop %ebx
11006d: 5e pop %esi
11006e: c9 leave
11006f: c3 ret
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
110070: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
110075: 8d 65 f8 lea -0x8(%ebp),%esp
110078: 5b pop %ebx
110079: 5e pop %esi
11007a: c9 leave
11007b: c3 ret
0010c124 <rtems_task_start>:
rtems_status_code rtems_task_start(
rtems_id id,
rtems_task_entry entry_point,
rtems_task_argument argument
)
{
10c124: 55 push %ebp
10c125: 89 e5 mov %esp,%ebp
10c127: 53 push %ebx
10c128: 83 ec 14 sub $0x14,%esp
10c12b: 8b 5d 0c mov 0xc(%ebp),%ebx
register Thread_Control *the_thread;
Objects_Locations location;
if ( entry_point == NULL )
10c12e: 85 db test %ebx,%ebx
10c130: 74 4e je 10c180 <rtems_task_start+0x5c>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
10c132: 83 ec 08 sub $0x8,%esp
10c135: 8d 45 f4 lea -0xc(%ebp),%eax
10c138: 50 push %eax
10c139: ff 75 08 pushl 0x8(%ebp)
10c13c: e8 6f 1a 00 00 call 10dbb0 <_Thread_Get>
switch ( location ) {
10c141: 83 c4 10 add $0x10,%esp
10c144: 8b 55 f4 mov -0xc(%ebp),%edx
10c147: 85 d2 test %edx,%edx
10c149: 75 29 jne 10c174 <rtems_task_start+0x50>
case OBJECTS_LOCAL:
if ( _Thread_Start(
10c14b: 83 ec 0c sub $0xc,%esp
10c14e: ff 75 10 pushl 0x10(%ebp)
10c151: 6a 00 push $0x0
10c153: 53 push %ebx
10c154: 6a 00 push $0x0
10c156: 50 push %eax
10c157: e8 20 25 00 00 call 10e67c <_Thread_Start>
10c15c: 83 c4 20 add $0x20,%esp
10c15f: 84 c0 test %al,%al
10c161: 75 29 jne 10c18c <rtems_task_start+0x68>
the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
10c163: e8 24 1a 00 00 call 10db8c <_Thread_Enable_dispatch>
10c168: b8 0e 00 00 00 mov $0xe,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10c16d: 8b 5d fc mov -0x4(%ebp),%ebx
10c170: c9 leave
10c171: c3 ret
10c172: 66 90 xchg %ax,%ax
if ( entry_point == NULL )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
10c174: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10c179: 8b 5d fc mov -0x4(%ebp),%ebx
10c17c: c9 leave
10c17d: c3 ret
10c17e: 66 90 xchg %ax,%ax
)
{
register Thread_Control *the_thread;
Objects_Locations location;
if ( entry_point == NULL )
10c180: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10c185: 8b 5d fc mov -0x4(%ebp),%ebx
10c188: c9 leave
10c189: c3 ret
10c18a: 66 90 xchg %ax,%ax
switch ( location ) {
case OBJECTS_LOCAL:
if ( _Thread_Start(
the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
_Thread_Enable_dispatch();
10c18c: e8 fb 19 00 00 call 10db8c <_Thread_Enable_dispatch>
10c191: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
10c193: 8b 5d fc mov -0x4(%ebp),%ebx
10c196: c9 leave
10c197: c3 ret
00111554 <rtems_task_suspend>:
*/
rtems_status_code rtems_task_suspend(
rtems_id id
)
{
111554: 55 push %ebp
111555: 89 e5 mov %esp,%ebp
111557: 83 ec 20 sub $0x20,%esp
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
11155a: 8d 45 f4 lea -0xc(%ebp),%eax
11155d: 50 push %eax
11155e: ff 75 08 pushl 0x8(%ebp)
111561: e8 4a c6 ff ff call 10dbb0 <_Thread_Get>
switch ( location ) {
111566: 83 c4 10 add $0x10,%esp
111569: 8b 55 f4 mov -0xc(%ebp),%edx
11156c: 85 d2 test %edx,%edx
11156e: 74 08 je 111578 <rtems_task_suspend+0x24>
111570: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
111575: c9 leave
111576: c3 ret
111577: 90 nop
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
111578: f6 40 10 02 testb $0x2,0x10(%eax)
11157c: 74 0e je 11158c <rtems_task_suspend+0x38>
_Thread_Suspend( the_thread );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
11157e: e8 09 c6 ff ff call 10db8c <_Thread_Enable_dispatch>
111583: b8 0f 00 00 00 mov $0xf,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
111588: c9 leave
111589: c3 ret
11158a: 66 90 xchg %ax,%ax
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
_Thread_Suspend( the_thread );
11158c: 83 ec 0c sub $0xc,%esp
11158f: 50 push %eax
111590: e8 43 0a 00 00 call 111fd8 <_Thread_Suspend>
_Thread_Enable_dispatch();
111595: e8 f2 c5 ff ff call 10db8c <_Thread_Enable_dispatch>
11159a: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
11159c: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
11159f: c9 leave
1115a0: c3 ret
00130998 <rtems_task_variable_add>:
rtems_status_code rtems_task_variable_add(
rtems_id tid,
void **ptr,
void (*dtor)(void *)
)
{
130998: 55 push %ebp
130999: 89 e5 mov %esp,%ebp
13099b: 57 push %edi
13099c: 56 push %esi
13099d: 53 push %ebx
13099e: 83 ec 1c sub $0x1c,%esp
1309a1: 8b 5d 0c mov 0xc(%ebp),%ebx
1309a4: 8b 7d 10 mov 0x10(%ebp),%edi
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *new;
if ( !ptr )
1309a7: 85 db test %ebx,%ebx
1309a9: 0f 84 9d 00 00 00 je 130a4c <rtems_task_variable_add+0xb4>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
1309af: 83 ec 08 sub $0x8,%esp
1309b2: 8d 45 e4 lea -0x1c(%ebp),%eax
1309b5: 50 push %eax
1309b6: ff 75 08 pushl 0x8(%ebp)
1309b9: e8 ae 4a fe ff call 11546c <_Thread_Get>
1309be: 89 c6 mov %eax,%esi
switch (location) {
1309c0: 83 c4 10 add $0x10,%esp
1309c3: 8b 45 e4 mov -0x1c(%ebp),%eax
1309c6: 85 c0 test %eax,%eax
1309c8: 74 0e je 1309d8 <rtems_task_variable_add+0x40>
1309ca: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1309cf: 8d 65 f4 lea -0xc(%ebp),%esp
1309d2: 5b pop %ebx
1309d3: 5e pop %esi
1309d4: 5f pop %edi
1309d5: c9 leave
1309d6: c3 ret
1309d7: 90 nop
case OBJECTS_LOCAL:
/*
* Figure out if the variable is already in this task's list.
*/
tvp = the_thread->task_variables;
1309d8: 8b 86 00 01 00 00 mov 0x100(%esi),%eax
while (tvp) {
1309de: 85 c0 test %eax,%eax
1309e0: 75 44 jne 130a26 <rtems_task_variable_add+0x8e>
1309e2: 66 90 xchg %ax,%ax
}
/*
* Now allocate memory for this task variable.
*/
new = (rtems_task_variable_t *)
1309e4: 83 ec 0c sub $0xc,%esp
1309e7: 6a 14 push $0x14
1309e9: e8 86 5b fe ff call 116574 <_Workspace_Allocate>
_Workspace_Allocate(sizeof(rtems_task_variable_t));
if (new == NULL) {
1309ee: 83 c4 10 add $0x10,%esp
1309f1: 85 c0 test %eax,%eax
1309f3: 74 4b je 130a40 <rtems_task_variable_add+0xa8>
_Thread_Enable_dispatch();
return RTEMS_NO_MEMORY;
}
new->gval = *ptr;
1309f5: 8b 13 mov (%ebx),%edx
1309f7: 89 50 08 mov %edx,0x8(%eax)
new->ptr = ptr;
1309fa: 89 58 04 mov %ebx,0x4(%eax)
new->dtor = dtor;
1309fd: 89 78 10 mov %edi,0x10(%eax)
new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
130a00: 8b 96 00 01 00 00 mov 0x100(%esi),%edx
130a06: 89 10 mov %edx,(%eax)
the_thread->task_variables = new;
130a08: 89 86 00 01 00 00 mov %eax,0x100(%esi)
_Thread_Enable_dispatch();
130a0e: e8 09 4a fe ff call 11541c <_Thread_Enable_dispatch>
130a13: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
130a15: 8d 65 f4 lea -0xc(%ebp),%esp
130a18: 5b pop %ebx
130a19: 5e pop %esi
130a1a: 5f pop %edi
130a1b: c9 leave
130a1c: c3 ret
130a1d: 8d 76 00 lea 0x0(%esi),%esi
if (tvp->ptr == ptr) {
tvp->dtor = dtor;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
130a20: 8b 00 mov (%eax),%eax
case OBJECTS_LOCAL:
/*
* Figure out if the variable is already in this task's list.
*/
tvp = the_thread->task_variables;
while (tvp) {
130a22: 85 c0 test %eax,%eax
130a24: 74 be je 1309e4 <rtems_task_variable_add+0x4c>
if (tvp->ptr == ptr) {
130a26: 39 58 04 cmp %ebx,0x4(%eax)
130a29: 75 f5 jne 130a20 <rtems_task_variable_add+0x88>
tvp->dtor = dtor;
130a2b: 89 78 10 mov %edi,0x10(%eax)
_Thread_Enable_dispatch();
130a2e: e8 e9 49 fe ff call 11541c <_Thread_Enable_dispatch>
130a33: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
130a35: 8d 65 f4 lea -0xc(%ebp),%esp
130a38: 5b pop %ebx
130a39: 5e pop %esi
130a3a: 5f pop %edi
130a3b: c9 leave
130a3c: c3 ret
130a3d: 8d 76 00 lea 0x0(%esi),%esi
* Now allocate memory for this task variable.
*/
new = (rtems_task_variable_t *)
_Workspace_Allocate(sizeof(rtems_task_variable_t));
if (new == NULL) {
_Thread_Enable_dispatch();
130a40: e8 d7 49 fe ff call 11541c <_Thread_Enable_dispatch>
130a45: b8 1a 00 00 00 mov $0x1a,%eax
return RTEMS_NO_MEMORY;
130a4a: eb 83 jmp 1309cf <rtems_task_variable_add+0x37>
{
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *new;
if ( !ptr )
130a4c: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
130a51: 8d 65 f4 lea -0xc(%ebp),%esp
130a54: 5b pop %ebx
130a55: 5e pop %esi
130a56: 5f pop %edi
130a57: c9 leave
130a58: c3 ret
00130a5c <rtems_task_variable_delete>:
rtems_status_code rtems_task_variable_delete(
rtems_id tid,
void **ptr
)
{
130a5c: 55 push %ebp
130a5d: 89 e5 mov %esp,%ebp
130a5f: 53 push %ebx
130a60: 83 ec 14 sub $0x14,%esp
130a63: 8b 5d 0c mov 0xc(%ebp),%ebx
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
130a66: 85 db test %ebx,%ebx
130a68: 74 4c je 130ab6 <rtems_task_variable_delete+0x5a>
return RTEMS_INVALID_ADDRESS;
prev = NULL;
the_thread = _Thread_Get (tid, &location);
130a6a: 83 ec 08 sub $0x8,%esp
130a6d: 8d 45 f4 lea -0xc(%ebp),%eax
130a70: 50 push %eax
130a71: ff 75 08 pushl 0x8(%ebp)
130a74: e8 f3 49 fe ff call 11546c <_Thread_Get>
switch (location) {
130a79: 83 c4 10 add $0x10,%esp
130a7c: 8b 55 f4 mov -0xc(%ebp),%edx
130a7f: 85 d2 test %edx,%edx
130a81: 74 0d je 130a90 <rtems_task_variable_delete+0x34>
130a83: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
130a88: 8b 5d fc mov -0x4(%ebp),%ebx
130a8b: c9 leave
130a8c: c3 ret
130a8d: 8d 76 00 lea 0x0(%esi),%esi
the_thread = _Thread_Get (tid, &location);
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
130a90: 8b 90 00 01 00 00 mov 0x100(%eax),%edx
while (tvp) {
130a96: 85 d2 test %edx,%edx
130a98: 74 17 je 130ab1 <rtems_task_variable_delete+0x55>
if (tvp->ptr == ptr) {
130a9a: 39 5a 04 cmp %ebx,0x4(%edx)
130a9d: 75 0a jne 130aa9 <rtems_task_variable_delete+0x4d>
130a9f: eb 3c jmp 130add <rtems_task_variable_delete+0x81>
130aa1: 8d 76 00 lea 0x0(%esi),%esi
130aa4: 39 5a 04 cmp %ebx,0x4(%edx)
130aa7: 74 17 je 130ac0 <rtems_task_variable_delete+0x64>
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
_RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
130aa9: 89 d1 mov %edx,%ecx
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
130aab: 8b 12 mov (%edx),%edx
the_thread = _Thread_Get (tid, &location);
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
130aad: 85 d2 test %edx,%edx
130aaf: 75 f3 jne 130aa4 <rtems_task_variable_delete+0x48><== ALWAYS TAKEN
return RTEMS_SUCCESSFUL;
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
130ab1: e8 66 49 fe ff call 11541c <_Thread_Enable_dispatch>
130ab6: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
130abb: 8b 5d fc mov -0x4(%ebp),%ebx
130abe: c9 leave
130abf: c3 ret
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
if (tvp->ptr == ptr) {
if (prev)
prev->next = tvp->next;
130ac0: 8b 1a mov (%edx),%ebx
130ac2: 89 19 mov %ebx,(%ecx)
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
_RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );
130ac4: 83 ec 08 sub $0x8,%esp
130ac7: 52 push %edx
130ac8: 50 push %eax
130ac9: e8 a2 00 00 00 call 130b70 <_RTEMS_Tasks_Invoke_task_variable_dtor>
_Thread_Enable_dispatch();
130ace: e8 49 49 fe ff call 11541c <_Thread_Enable_dispatch>
130ad3: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
130ad5: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
130ad8: 8b 5d fc mov -0x4(%ebp),%ebx
130adb: c9 leave
130adc: c3 ret
while (tvp) {
if (tvp->ptr == ptr) {
if (prev)
prev->next = tvp->next;
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
130add: 8b 0a mov (%edx),%ecx
130adf: 89 88 00 01 00 00 mov %ecx,0x100(%eax)
130ae5: eb dd jmp 130ac4 <rtems_task_variable_delete+0x68>
00130ae8 <rtems_task_variable_get>:
rtems_status_code rtems_task_variable_get(
rtems_id tid,
void **ptr,
void **result
)
{
130ae8: 55 push %ebp
130ae9: 89 e5 mov %esp,%ebp
130aeb: 56 push %esi
130aec: 53 push %ebx
130aed: 83 ec 10 sub $0x10,%esp
130af0: 8b 5d 0c mov 0xc(%ebp),%ebx
130af3: 8b 75 10 mov 0x10(%ebp),%esi
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp;
if ( !ptr )
130af6: 85 db test %ebx,%ebx
130af8: 74 56 je 130b50 <rtems_task_variable_get+0x68>
return RTEMS_INVALID_ADDRESS;
if ( !result )
130afa: 85 f6 test %esi,%esi
130afc: 74 52 je 130b50 <rtems_task_variable_get+0x68>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
130afe: 83 ec 08 sub $0x8,%esp
130b01: 8d 45 f4 lea -0xc(%ebp),%eax
130b04: 50 push %eax
130b05: ff 75 08 pushl 0x8(%ebp)
130b08: e8 5f 49 fe ff call 11546c <_Thread_Get>
switch (location) {
130b0d: 83 c4 10 add $0x10,%esp
130b10: 8b 55 f4 mov -0xc(%ebp),%edx
130b13: 85 d2 test %edx,%edx
130b15: 75 2d jne 130b44 <rtems_task_variable_get+0x5c>
case OBJECTS_LOCAL:
/*
* Figure out if the variable is in this task's list.
*/
tvp = the_thread->task_variables;
130b17: 8b 80 00 01 00 00 mov 0x100(%eax),%eax
while (tvp) {
130b1d: 85 c0 test %eax,%eax
130b1f: 75 09 jne 130b2a <rtems_task_variable_get+0x42>
130b21: eb 39 jmp 130b5c <rtems_task_variable_get+0x74>
130b23: 90 nop
*/
*result = tvp->tval;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
130b24: 8b 00 mov (%eax),%eax
case OBJECTS_LOCAL:
/*
* Figure out if the variable is in this task's list.
*/
tvp = the_thread->task_variables;
while (tvp) {
130b26: 85 c0 test %eax,%eax
130b28: 74 32 je 130b5c <rtems_task_variable_get+0x74><== NEVER TAKEN
if (tvp->ptr == ptr) {
130b2a: 39 58 04 cmp %ebx,0x4(%eax)
130b2d: 75 f5 jne 130b24 <rtems_task_variable_get+0x3c>
/*
* Should this return the current (i.e not the
* saved) value if `tid' is the current task?
*/
*result = tvp->tval;
130b2f: 8b 40 0c mov 0xc(%eax),%eax
130b32: 89 06 mov %eax,(%esi)
_Thread_Enable_dispatch();
130b34: e8 e3 48 fe ff call 11541c <_Thread_Enable_dispatch>
130b39: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
130b3b: 8d 65 f8 lea -0x8(%ebp),%esp
130b3e: 5b pop %ebx
130b3f: 5e pop %esi
130b40: c9 leave
130b41: c3 ret
130b42: 66 90 xchg %ax,%ax
if ( !result )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
switch (location) {
130b44: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
130b49: 8d 65 f8 lea -0x8(%ebp),%esp
130b4c: 5b pop %ebx
130b4d: 5e pop %esi
130b4e: c9 leave
130b4f: c3 ret
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
return RTEMS_INVALID_ADDRESS;
130b50: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
130b55: 8d 65 f8 lea -0x8(%ebp),%esp
130b58: 5b pop %ebx
130b59: 5e pop %esi
130b5a: c9 leave
130b5b: c3 ret
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
130b5c: e8 bb 48 fe ff call 11541c <_Thread_Enable_dispatch>
130b61: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
130b66: 8d 65 f8 lea -0x8(%ebp),%esp
130b69: 5b pop %ebx
130b6a: 5e pop %esi
130b6b: c9 leave
130b6c: c3 ret
0010cfc4 <rtems_task_wake_when>:
*/
rtems_status_code rtems_task_wake_when(
rtems_time_of_day *time_buffer
)
{
10cfc4: 55 push %ebp
10cfc5: 89 e5 mov %esp,%ebp
10cfc7: 53 push %ebx
10cfc8: 83 ec 14 sub $0x14,%esp
10cfcb: 8b 5d 08 mov 0x8(%ebp),%ebx
Watchdog_Interval seconds;
if ( !_TOD_Is_set )
10cfce: 80 3d 6c a9 12 00 00 cmpb $0x0,0x12a96c
10cfd5: 0f 84 a9 00 00 00 je 10d084 <rtems_task_wake_when+0xc0>
return RTEMS_NOT_DEFINED;
if ( !time_buffer )
10cfdb: 85 db test %ebx,%ebx
10cfdd: 0f 84 ad 00 00 00 je 10d090 <rtems_task_wake_when+0xcc>
return RTEMS_INVALID_ADDRESS;
time_buffer->ticks = 0;
10cfe3: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx)
if ( !_TOD_Validate( time_buffer ) )
10cfea: 83 ec 0c sub $0xc,%esp
10cfed: 53 push %ebx
10cfee: e8 ed f3 ff ff call 10c3e0 <_TOD_Validate>
10cff3: 83 c4 10 add $0x10,%esp
10cff6: 84 c0 test %al,%al
10cff8: 75 0a jne 10d004 <rtems_task_wake_when+0x40>
_Watchdog_Insert_seconds(
&_Thread_Executing->Timer,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
10cffa: b8 14 00 00 00 mov $0x14,%eax
}
10cfff: 8b 5d fc mov -0x4(%ebp),%ebx
10d002: c9 leave
10d003: c3 ret
time_buffer->ticks = 0;
if ( !_TOD_Validate( time_buffer ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( time_buffer );
10d004: 83 ec 0c sub $0xc,%esp
10d007: 53 push %ebx
10d008: e8 47 f3 ff ff call 10c354 <_TOD_To_seconds>
if ( seconds <= _TOD_Seconds_since_epoch() )
10d00d: 83 c4 10 add $0x10,%esp
10d010: 3b 05 ec a9 12 00 cmp 0x12a9ec,%eax
10d016: 76 e2 jbe 10cffa <rtems_task_wake_when+0x36>
10d018: 8b 15 58 a9 12 00 mov 0x12a958,%edx
10d01e: 42 inc %edx
10d01f: 89 15 58 a9 12 00 mov %edx,0x12a958
return RTEMS_INVALID_CLOCK;
_Thread_Disable_dispatch();
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME );
10d025: 83 ec 08 sub $0x8,%esp
10d028: 6a 10 push $0x10
10d02a: ff 35 18 aa 12 00 pushl 0x12aa18
10d030: 89 45 f4 mov %eax,-0xc(%ebp)
10d033: e8 1c 23 00 00 call 10f354 <_Thread_Set_state>
_Watchdog_Initialize(
&_Thread_Executing->Timer,
_Thread_Delay_ended,
_Thread_Executing->Object.id,
10d038: 8b 15 18 aa 12 00 mov 0x12aa18,%edx
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
_Thread_Disable_dispatch();
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME );
_Watchdog_Initialize(
10d03e: 8b 4a 08 mov 0x8(%edx),%ecx
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
10d041: c7 42 50 00 00 00 00 movl $0x0,0x50(%edx)
the_watchdog->routine = routine;
10d048: c7 42 64 0c e9 10 00 movl $0x10e90c,0x64(%edx)
the_watchdog->id = id;
10d04f: 89 4a 68 mov %ecx,0x68(%edx)
the_watchdog->user_data = user_data;
10d052: c7 42 6c 00 00 00 00 movl $0x0,0x6c(%edx)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
10d059: 8b 45 f4 mov -0xc(%ebp),%eax
10d05c: 2b 05 ec a9 12 00 sub 0x12a9ec,%eax
10d062: 89 42 54 mov %eax,0x54(%edx)
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
10d065: 58 pop %eax
10d066: 59 pop %ecx
10d067: 83 c2 48 add $0x48,%edx
10d06a: 52 push %edx
10d06b: 68 2c aa 12 00 push $0x12aa2c
10d070: e8 a7 29 00 00 call 10fa1c <_Watchdog_Insert>
);
_Watchdog_Insert_seconds(
&_Thread_Executing->Timer,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
10d075: e8 2a 1a 00 00 call 10eaa4 <_Thread_Enable_dispatch>
10d07a: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10d07c: 83 c4 10 add $0x10,%esp
10d07f: e9 7b ff ff ff jmp 10cfff <rtems_task_wake_when+0x3b>
rtems_time_of_day *time_buffer
)
{
Watchdog_Interval seconds;
if ( !_TOD_Is_set )
10d084: b8 0b 00 00 00 mov $0xb,%eax
&_Thread_Executing->Timer,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
10d089: 8b 5d fc mov -0x4(%ebp),%ebx
10d08c: c9 leave
10d08d: c3 ret
10d08e: 66 90 xchg %ax,%ax
Watchdog_Interval seconds;
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
if ( !time_buffer )
10d090: b8 09 00 00 00 mov $0x9,%eax
&_Thread_Executing->Timer,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
10d095: 8b 5d fc mov -0x4(%ebp),%ebx
10d098: c9 leave
10d099: c3 ret
0010a760 <rtems_termios_baud_to_index>:
#include <rtems/termiostypes.h>
int rtems_termios_baud_to_index(
rtems_termios_baud_t termios_baud
)
{
10a760: 55 push %ebp
10a761: 89 e5 mov %esp,%ebp
10a763: 8b 45 08 mov 0x8(%ebp),%eax
int baud_index;
switch (termios_baud) {
10a766: 83 f8 09 cmp $0x9,%eax
10a769: 0f 84 f1 00 00 00 je 10a860 <rtems_termios_baud_to_index+0x100><== NEVER TAKEN
10a76f: 7e 37 jle 10a7a8 <rtems_termios_baud_to_index+0x48><== ALWAYS TAKEN
10a771: 83 f8 0e cmp $0xe,%eax <== NOT EXECUTED
10a774: 0f 84 f6 00 00 00 je 10a870 <rtems_termios_baud_to_index+0x110><== NOT EXECUTED
10a77a: 7e 5c jle 10a7d8 <rtems_termios_baud_to_index+0x78><== NOT EXECUTED
10a77c: 3d 02 10 00 00 cmp $0x1002,%eax <== NOT EXECUTED
10a781: 0f 84 01 01 00 00 je 10a888 <rtems_termios_baud_to_index+0x128><== NOT EXECUTED
10a787: 0f 8e 97 00 00 00 jle 10a824 <rtems_termios_baud_to_index+0xc4><== NOT EXECUTED
10a78d: 3d 03 10 00 00 cmp $0x1003,%eax <== NOT EXECUTED
10a792: 0f 84 e0 00 00 00 je 10a878 <rtems_termios_baud_to_index+0x118><== NOT EXECUTED
10a798: 3d 04 10 00 00 cmp $0x1004,%eax <== NOT EXECUTED
10a79d: 75 51 jne 10a7f0 <rtems_termios_baud_to_index+0x90><== 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;
10a79f: b8 13 00 00 00 mov $0x13,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a7a4: c9 leave <== NOT EXECUTED
10a7a5: c3 ret <== NOT EXECUTED
10a7a6: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
10a7a8: 83 f8 04 cmp $0x4,%eax
10a7ab: 0f 84 b7 00 00 00 je 10a868 <rtems_termios_baud_to_index+0x108><== NEVER TAKEN
10a7b1: 7f 45 jg 10a7f8 <rtems_termios_baud_to_index+0x98><== NEVER TAKEN
10a7b3: 83 f8 01 cmp $0x1,%eax
10a7b6: 0f 84 8c 00 00 00 je 10a848 <rtems_termios_baud_to_index+0xe8><== NEVER TAKEN
10a7bc: 0f 8e de 00 00 00 jle 10a8a0 <rtems_termios_baud_to_index+0x140><== ALWAYS TAKEN
10a7c2: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
10a7c5: 0f 84 c5 00 00 00 je 10a890 <rtems_termios_baud_to_index+0x130><== NOT EXECUTED
10a7cb: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED
10a7ce: 75 20 jne 10a7f0 <rtems_termios_baud_to_index+0x90><== NOT EXECUTED
case B0: baud_index = 0; break;
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
10a7d0: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a7d5: c9 leave <== NOT EXECUTED
10a7d6: c3 ret <== NOT EXECUTED
10a7d7: 90 nop <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
10a7d8: 83 f8 0b cmp $0xb,%eax <== NOT EXECUTED
10a7db: 0f 84 9f 00 00 00 je 10a880 <rtems_termios_baud_to_index+0x120><== NOT EXECUTED
10a7e1: 7c 39 jl 10a81c <rtems_termios_baud_to_index+0xbc><== NOT EXECUTED
10a7e3: 83 f8 0c cmp $0xc,%eax <== NOT EXECUTED
10a7e6: 74 50 je 10a838 <rtems_termios_baud_to_index+0xd8><== NOT EXECUTED
10a7e8: 83 f8 0d cmp $0xd,%eax <== NOT EXECUTED
10a7eb: 74 62 je 10a84f <rtems_termios_baud_to_index+0xef><== NOT EXECUTED
10a7ed: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
10a7f0: b8 ff ff ff ff mov $0xffffffff,%eax
default: baud_index = -1; break;
}
return baud_index;
}
10a7f5: c9 leave
10a7f6: c3 ret
10a7f7: 90 nop
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
10a7f8: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED
10a7fb: 74 43 je 10a840 <rtems_termios_baud_to_index+0xe0><== NOT EXECUTED
10a7fd: 7c 15 jl 10a814 <rtems_termios_baud_to_index+0xb4><== NOT EXECUTED
10a7ff: 83 f8 07 cmp $0x7,%eax <== NOT EXECUTED
10a802: 0f 84 90 00 00 00 je 10a898 <rtems_termios_baud_to_index+0x138><== NOT EXECUTED
10a808: 83 f8 08 cmp $0x8,%eax <== NOT EXECUTED
10a80b: 75 e3 jne 10a7f0 <rtems_termios_baud_to_index+0x90><== 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;
10a80d: b8 08 00 00 00 mov $0x8,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a812: c9 leave <== NOT EXECUTED
10a813: c3 ret <== NOT EXECUTED
switch (termios_baud) {
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;
10a814: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a819: c9 leave <== NOT EXECUTED
10a81a: c3 ret <== NOT EXECUTED
10a81b: 90 nop <== 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;
10a81c: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a821: c9 leave <== NOT EXECUTED
10a822: c3 ret <== NOT EXECUTED
10a823: 90 nop <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
10a824: 83 f8 0f cmp $0xf,%eax <== NOT EXECUTED
10a827: 74 2f je 10a858 <rtems_termios_baud_to_index+0xf8><== NOT EXECUTED
10a829: 3d 01 10 00 00 cmp $0x1001,%eax <== NOT EXECUTED
10a82e: 75 c0 jne 10a7f0 <rtems_termios_baud_to_index+0x90><== 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;
10a830: b8 10 00 00 00 mov $0x10,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a835: c9 leave <== NOT EXECUTED
10a836: c3 ret <== NOT EXECUTED
10a837: 90 nop <== 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;
10a838: b8 0c 00 00 00 mov $0xc,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a83d: c9 leave <== NOT EXECUTED
10a83e: c3 ret <== NOT EXECUTED
10a83f: 90 nop <== 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;
10a840: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a845: c9 leave <== NOT EXECUTED
10a846: c3 ret <== NOT EXECUTED
10a847: 90 nop <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
10a848: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a84d: c9 leave <== NOT EXECUTED
10a84e: c3 ret <== 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;
10a84f: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a854: c9 leave <== NOT EXECUTED
10a855: c3 ret <== NOT EXECUTED
10a856: 66 90 xchg %ax,%ax <== 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;
10a858: b8 0f 00 00 00 mov $0xf,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a85d: c9 leave <== NOT EXECUTED
10a85e: c3 ret <== NOT EXECUTED
10a85f: 90 nop <== NOT EXECUTED
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;
10a860: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a865: c9 leave <== NOT EXECUTED
10a866: c3 ret <== NOT EXECUTED
10a867: 90 nop <== NOT EXECUTED
switch (termios_baud) {
case B0: baud_index = 0; break;
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
case B110: baud_index = 3; break;
10a868: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a86d: c9 leave <== NOT EXECUTED
10a86e: c3 ret <== NOT EXECUTED
10a86f: 90 nop <== 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;
10a870: b8 0e 00 00 00 mov $0xe,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a875: c9 leave <== NOT EXECUTED
10a876: c3 ret <== NOT EXECUTED
10a877: 90 nop <== 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;
10a878: b8 12 00 00 00 mov $0x12,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a87d: c9 leave <== NOT EXECUTED
10a87e: c3 ret <== NOT EXECUTED
10a87f: 90 nop <== 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;
10a880: b8 0b 00 00 00 mov $0xb,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a885: c9 leave <== NOT EXECUTED
10a886: c3 ret <== NOT EXECUTED
10a887: 90 nop <== 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;
10a888: b8 11 00 00 00 mov $0x11,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a88d: c9 leave <== NOT EXECUTED
10a88e: c3 ret <== NOT EXECUTED
10a88f: 90 nop <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
10a890: b8 02 00 00 00 mov $0x2,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a895: c9 leave <== NOT EXECUTED
10a896: c3 ret <== NOT EXECUTED
10a897: 90 nop <== 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;
10a898: b8 07 00 00 00 mov $0x7,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a89d: c9 leave <== NOT EXECUTED
10a89e: c3 ret <== NOT EXECUTED
10a89f: 90 nop <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
10a8a0: 85 c0 test %eax,%eax
10a8a2: 0f 85 48 ff ff ff jne 10a7f0 <rtems_termios_baud_to_index+0x90><== ALWAYS TAKEN
10a8a8: 31 c0 xor %eax,%eax
case B460800: baud_index = 19; break;
default: baud_index = -1; break;
}
return baud_index;
}
10a8aa: c9 leave <== NOT EXECUTED
10a8ab: c3 ret <== NOT EXECUTED
001094cc <rtems_termios_baud_to_number>:
#include <rtems/termiostypes.h>
int32_t rtems_termios_baud_to_number(
int termios_baud
)
{
1094cc: 55 push %ebp
1094cd: 89 e5 mov %esp,%ebp
1094cf: 8b 45 08 mov 0x8(%ebp),%eax
int32_t baud;
switch (termios_baud) {
1094d2: 83 f8 09 cmp $0x9,%eax
1094d5: 0f 84 f1 00 00 00 je 1095cc <rtems_termios_baud_to_number+0x100>
1094db: 7e 37 jle 109514 <rtems_termios_baud_to_number+0x48>
1094dd: 83 f8 0e cmp $0xe,%eax
1094e0: 0f 84 f6 00 00 00 je 1095dc <rtems_termios_baud_to_number+0x110>
1094e6: 7e 5c jle 109544 <rtems_termios_baud_to_number+0x78>
1094e8: 3d 02 10 00 00 cmp $0x1002,%eax
1094ed: 0f 84 01 01 00 00 je 1095f4 <rtems_termios_baud_to_number+0x128>
1094f3: 0f 8e 97 00 00 00 jle 109590 <rtems_termios_baud_to_number+0xc4>
1094f9: 3d 03 10 00 00 cmp $0x1003,%eax
1094fe: 0f 84 e0 00 00 00 je 1095e4 <rtems_termios_baud_to_number+0x118>
109504: 3d 04 10 00 00 cmp $0x1004,%eax
109509: 75 51 jne 10955c <rtems_termios_baud_to_number+0x90><== NEVER TAKEN
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
case B115200: baud = 115200; break;
case B230400: baud = 230400; break;
10950b: b8 00 08 07 00 mov $0x70800,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
109510: c9 leave
109511: c3 ret
109512: 66 90 xchg %ax,%ax
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
109514: 83 f8 04 cmp $0x4,%eax
109517: 0f 84 b7 00 00 00 je 1095d4 <rtems_termios_baud_to_number+0x108>
10951d: 7f 45 jg 109564 <rtems_termios_baud_to_number+0x98>
10951f: 83 f8 01 cmp $0x1,%eax
109522: 0f 84 8c 00 00 00 je 1095b4 <rtems_termios_baud_to_number+0xe8>
109528: 0f 8e de 00 00 00 jle 10960c <rtems_termios_baud_to_number+0x140>
10952e: 83 f8 02 cmp $0x2,%eax
109531: 0f 84 c5 00 00 00 je 1095fc <rtems_termios_baud_to_number+0x130>
109537: 83 f8 03 cmp $0x3,%eax
10953a: 75 20 jne 10955c <rtems_termios_baud_to_number+0x90><== NEVER TAKEN
case B0: baud = 0; break;
case B50: baud = 50; break;
case B75: baud = 75; break;
10953c: b8 6e 00 00 00 mov $0x6e,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
109541: c9 leave
109542: c3 ret
109543: 90 nop
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
109544: 83 f8 0b cmp $0xb,%eax
109547: 0f 84 9f 00 00 00 je 1095ec <rtems_termios_baud_to_number+0x120>
10954d: 7c 39 jl 109588 <rtems_termios_baud_to_number+0xbc>
10954f: 83 f8 0c cmp $0xc,%eax
109552: 74 50 je 1095a4 <rtems_termios_baud_to_number+0xd8>
109554: 83 f8 0d cmp $0xd,%eax
109557: 74 62 je 1095bb <rtems_termios_baud_to_number+0xef><== ALWAYS TAKEN
109559: 8d 76 00 lea 0x0(%esi),%esi
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
case B115200: baud = 115200; break;
case B230400: baud = 230400; break;
case B460800: baud = 460800; break;
10955c: b8 ff ff ff ff mov $0xffffffff,%eax
default: baud = -1; break;
}
return baud;
}
109561: c9 leave
109562: c3 ret
109563: 90 nop
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
109564: 83 f8 06 cmp $0x6,%eax
109567: 74 43 je 1095ac <rtems_termios_baud_to_number+0xe0>
109569: 7c 15 jl 109580 <rtems_termios_baud_to_number+0xb4>
10956b: 83 f8 07 cmp $0x7,%eax
10956e: 0f 84 90 00 00 00 je 109604 <rtems_termios_baud_to_number+0x138>
109574: 83 f8 08 cmp $0x8,%eax
109577: 75 e3 jne 10955c <rtems_termios_baud_to_number+0x90><== NEVER TAKEN
case B75: baud = 75; break;
case B110: baud = 110; break;
case B134: baud = 134; break;
case B150: baud = 150; break;
case B200: baud = 200; break;
case B300: baud = 300; break;
109579: b8 58 02 00 00 mov $0x258,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
10957e: c9 leave
10957f: c3 ret
switch (termios_baud) {
case B0: baud = 0; break;
case B50: baud = 50; break;
case B75: baud = 75; break;
case B110: baud = 110; break;
case B134: baud = 134; break;
109580: b8 96 00 00 00 mov $0x96,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
109585: c9 leave
109586: c3 ret
109587: 90 nop
case B134: baud = 134; break;
case B150: baud = 150; break;
case B200: baud = 200; break;
case B300: baud = 300; break;
case B600: baud = 600; break;
case B1200: baud = 1200; break;
109588: b8 08 07 00 00 mov $0x708,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
10958d: c9 leave
10958e: c3 ret
10958f: 90 nop
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
109590: 83 f8 0f cmp $0xf,%eax
109593: 74 2f je 1095c4 <rtems_termios_baud_to_number+0xf8>
109595: 3d 01 10 00 00 cmp $0x1001,%eax
10959a: 75 c0 jne 10955c <rtems_termios_baud_to_number+0x90><== NEVER TAKEN
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
10959c: b8 00 e1 00 00 mov $0xe100,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
1095a1: c9 leave
1095a2: c3 ret
1095a3: 90 nop
case B200: baud = 200; break;
case B300: baud = 300; break;
case B600: baud = 600; break;
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
1095a4: b8 c0 12 00 00 mov $0x12c0,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
1095a9: c9 leave
1095aa: c3 ret
1095ab: 90 nop
case B0: baud = 0; break;
case B50: baud = 50; break;
case B75: baud = 75; break;
case B110: baud = 110; break;
case B134: baud = 134; break;
case B150: baud = 150; break;
1095ac: b8 c8 00 00 00 mov $0xc8,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
1095b1: c9 leave
1095b2: c3 ret
1095b3: 90 nop
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
1095b4: b8 32 00 00 00 mov $0x32,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
1095b9: c9 leave
1095ba: c3 ret
case B300: baud = 300; break;
case B600: baud = 600; break;
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
1095bb: b8 80 25 00 00 mov $0x2580,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
1095c0: c9 leave
1095c1: c3 ret
1095c2: 66 90 xchg %ax,%ax
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
1095c4: b8 00 96 00 00 mov $0x9600,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
1095c9: c9 leave
1095ca: c3 ret
1095cb: 90 nop
case B110: baud = 110; break;
case B134: baud = 134; break;
case B150: baud = 150; break;
case B200: baud = 200; break;
case B300: baud = 300; break;
case B600: baud = 600; break;
1095cc: b8 b0 04 00 00 mov $0x4b0,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
1095d1: c9 leave
1095d2: c3 ret
1095d3: 90 nop
switch (termios_baud) {
case B0: baud = 0; break;
case B50: baud = 50; break;
case B75: baud = 75; break;
case B110: baud = 110; break;
1095d4: b8 86 00 00 00 mov $0x86,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
1095d9: c9 leave
1095da: c3 ret
1095db: 90 nop
case B600: baud = 600; break;
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
1095dc: b8 00 4b 00 00 mov $0x4b00,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
1095e1: c9 leave
1095e2: c3 ret
1095e3: 90 nop
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
case B115200: baud = 115200; break;
1095e4: b8 00 84 03 00 mov $0x38400,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
1095e9: c9 leave
1095ea: c3 ret
1095eb: 90 nop
case B150: baud = 150; break;
case B200: baud = 200; break;
case B300: baud = 300; break;
case B600: baud = 600; break;
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
1095ec: b8 60 09 00 00 mov $0x960,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
1095f1: c9 leave
1095f2: c3 ret
1095f3: 90 nop
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
1095f4: b8 00 c2 01 00 mov $0x1c200,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
1095f9: c9 leave
1095fa: c3 ret
1095fb: 90 nop
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
1095fc: b8 4b 00 00 00 mov $0x4b,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
109601: c9 leave
109602: c3 ret
109603: 90 nop
case B50: baud = 50; break;
case B75: baud = 75; break;
case B110: baud = 110; break;
case B134: baud = 134; break;
case B150: baud = 150; break;
case B200: baud = 200; break;
109604: b8 2c 01 00 00 mov $0x12c,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
109609: c9 leave
10960a: c3 ret
10960b: 90 nop
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
10960c: 85 c0 test %eax,%eax
10960e: 0f 85 48 ff ff ff jne 10955c <rtems_termios_baud_to_number+0x90>
109614: 31 c0 xor %eax,%eax
case B460800: baud = 460800; break;
default: baud = -1; break;
}
return baud;
}
109616: c9 leave
109617: c3 ret
00109654 <rtems_termios_bufsize>:
rtems_status_code rtems_termios_bufsize (
int cbufsize,
int raw_input,
int raw_output
)
{
109654: 55 push %ebp <== NOT EXECUTED
109655: 89 e5 mov %esp,%ebp <== NOT EXECUTED
rtems_termios_cbufsize = cbufsize;
109657: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10965a: a3 14 50 12 00 mov %eax,0x125014 <== NOT EXECUTED
rtems_termios_raw_input_size = raw_input;
10965f: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
109662: a3 18 50 12 00 mov %eax,0x125018 <== NOT EXECUTED
rtems_termios_raw_output_size = raw_output;
109667: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
10966a: a3 1c 50 12 00 mov %eax,0x12501c <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
10966f: 31 c0 xor %eax,%eax <== NOT EXECUTED
109671: c9 leave <== NOT EXECUTED
109672: c3 ret <== NOT EXECUTED
0010aae8 <rtems_termios_close>:
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
10aae8: 55 push %ebp
10aae9: 89 e5 mov %esp,%ebp
10aaeb: 56 push %esi
10aaec: 53 push %ebx
10aaed: 8b 75 08 mov 0x8(%ebp),%esi
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
10aaf0: 8b 06 mov (%esi),%eax
10aaf2: 8b 58 34 mov 0x34(%eax),%ebx
rtems_status_code sc;
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
10aaf5: 50 push %eax
10aaf6: 6a 00 push $0x0
10aaf8: 6a 00 push $0x0
10aafa: ff 35 2c 72 12 00 pushl 0x12722c
10ab00: e8 df 11 00 00 call 10bce4 <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL)
10ab05: 83 c4 10 add $0x10,%esp
10ab08: 85 c0 test %eax,%eax
10ab0a: 0f 85 92 01 00 00 jne 10aca2 <rtems_termios_close+0x1ba><== NEVER TAKEN
rtems_fatal_error_occurred (sc);
if (--tty->refcount == 0) {
10ab10: 8b 43 08 mov 0x8(%ebx),%eax
10ab13: 48 dec %eax
10ab14: 89 43 08 mov %eax,0x8(%ebx)
10ab17: 85 c0 test %eax,%eax
10ab19: 0f 85 bf 00 00 00 jne 10abde <rtems_termios_close+0xf6>
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
10ab1f: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax
10ab25: c1 e0 05 shl $0x5,%eax
10ab28: 8b 80 a4 6e 12 00 mov 0x126ea4(%eax),%eax
10ab2e: 85 c0 test %eax,%eax
10ab30: 0f 84 12 01 00 00 je 10ac48 <rtems_termios_close+0x160><== ALWAYS TAKEN
/*
* call discipline-specific close
*/
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
10ab36: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ab39: 53 push %ebx <== NOT EXECUTED
10ab3a: ff d0 call *%eax <== NOT EXECUTED
10ab3c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
drainOutput (tty);
}
if (tty->device.outputUsesInterrupts
10ab3f: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx) <== NOT EXECUTED
10ab46: 0f 84 24 01 00 00 je 10ac70 <rtems_termios_close+0x188><== NOT EXECUTED
tty->txTaskId,
TERMIOS_TX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
if (tty->device.lastClose)
10ab4c: 8b 83 9c 00 00 00 mov 0x9c(%ebx),%eax
10ab52: 85 c0 test %eax,%eax
10ab54: 74 0d je 10ab63 <rtems_termios_close+0x7b>
(*tty->device.lastClose)(tty->major, tty->minor, arg);
10ab56: 52 push %edx
10ab57: 56 push %esi
10ab58: ff 73 10 pushl 0x10(%ebx)
10ab5b: ff 73 0c pushl 0xc(%ebx)
10ab5e: ff d0 call *%eax
10ab60: 83 c4 10 add $0x10,%esp
if (tty->forw == NULL) {
10ab63: 8b 03 mov (%ebx),%eax
10ab65: 85 c0 test %eax,%eax
10ab67: 0f 84 9b 00 00 00 je 10ac08 <rtems_termios_close+0x120>
if ( rtems_termios_ttyTail != NULL ) {
rtems_termios_ttyTail->forw = NULL;
}
}
else {
tty->forw->back = tty->back;
10ab6d: 8b 53 04 mov 0x4(%ebx),%edx
10ab70: 89 50 04 mov %edx,0x4(%eax)
}
if (tty->back == NULL) {
10ab73: 8b 53 04 mov 0x4(%ebx),%edx
10ab76: 85 d2 test %edx,%edx
10ab78: 0f 84 ae 00 00 00 je 10ac2c <rtems_termios_close+0x144><== ALWAYS TAKEN
if ( rtems_termios_ttyHead != NULL ) {
rtems_termios_ttyHead->back = NULL;
}
}
else {
tty->back->forw = tty->forw;
10ab7e: 89 02 mov %eax,(%edx) <== NOT EXECUTED
}
rtems_semaphore_delete (tty->isem);
10ab80: 83 ec 0c sub $0xc,%esp
10ab83: ff 73 14 pushl 0x14(%ebx)
10ab86: e8 b5 10 00 00 call 10bc40 <rtems_semaphore_delete>
rtems_semaphore_delete (tty->osem);
10ab8b: 58 pop %eax
10ab8c: ff 73 18 pushl 0x18(%ebx)
10ab8f: e8 ac 10 00 00 call 10bc40 <rtems_semaphore_delete>
rtems_semaphore_delete (tty->rawOutBuf.Semaphore);
10ab94: 5e pop %esi
10ab95: ff b3 8c 00 00 00 pushl 0x8c(%ebx)
10ab9b: e8 a0 10 00 00 call 10bc40 <rtems_semaphore_delete>
if ((tty->device.pollRead == NULL) ||
10aba0: 83 c4 10 add $0x10,%esp
10aba3: 8b 8b a0 00 00 00 mov 0xa0(%ebx),%ecx
10aba9: 85 c9 test %ecx,%ecx
10abab: 74 4b je 10abf8 <rtems_termios_close+0x110>
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))
10abad: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx)
10abb4: 74 42 je 10abf8 <rtems_termios_close+0x110><== NEVER TAKEN
rtems_semaphore_delete (tty->rawInBuf.Semaphore);
free (tty->rawInBuf.theBuf);
10abb6: 83 ec 0c sub $0xc,%esp
10abb9: ff 73 58 pushl 0x58(%ebx)
10abbc: e8 23 da ff ff call 1085e4 <free>
free (tty->rawOutBuf.theBuf);
10abc1: 5a pop %edx
10abc2: ff 73 7c pushl 0x7c(%ebx)
10abc5: e8 1a da ff ff call 1085e4 <free>
free (tty->cbuf);
10abca: 58 pop %eax
10abcb: ff 73 1c pushl 0x1c(%ebx)
10abce: e8 11 da ff ff call 1085e4 <free>
free (tty);
10abd3: 89 1c 24 mov %ebx,(%esp)
10abd6: e8 09 da ff ff call 1085e4 <free>
10abdb: 83 c4 10 add $0x10,%esp
}
rtems_semaphore_release (rtems_termios_ttyMutex);
10abde: 83 ec 0c sub $0xc,%esp
10abe1: ff 35 2c 72 12 00 pushl 0x12722c
10abe7: e8 f4 11 00 00 call 10bde0 <rtems_semaphore_release>
return RTEMS_SUCCESSFUL;
}
10abec: 31 c0 xor %eax,%eax
10abee: 8d 65 f8 lea -0x8(%ebp),%esp
10abf1: 5b pop %ebx
10abf2: 5e pop %esi
10abf3: c9 leave
10abf4: c3 ret
10abf5: 8d 76 00 lea 0x0(%esi),%esi
rtems_semaphore_delete (tty->isem);
rtems_semaphore_delete (tty->osem);
rtems_semaphore_delete (tty->rawOutBuf.Semaphore);
if ((tty->device.pollRead == NULL) ||
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))
rtems_semaphore_delete (tty->rawInBuf.Semaphore);
10abf8: 83 ec 0c sub $0xc,%esp
10abfb: ff 73 68 pushl 0x68(%ebx)
10abfe: e8 3d 10 00 00 call 10bc40 <rtems_semaphore_delete>
10ac03: 83 c4 10 add $0x10,%esp
10ac06: eb ae jmp 10abb6 <rtems_termios_close+0xce>
rtems_fatal_error_occurred (sc);
}
if (tty->device.lastClose)
(*tty->device.lastClose)(tty->major, tty->minor, arg);
if (tty->forw == NULL) {
rtems_termios_ttyTail = tty->back;
10ac08: 8b 43 04 mov 0x4(%ebx),%eax
10ac0b: a3 30 72 12 00 mov %eax,0x127230
if ( rtems_termios_ttyTail != NULL ) {
10ac10: 85 c0 test %eax,%eax
10ac12: 0f 84 94 00 00 00 je 10acac <rtems_termios_close+0x1c4><== ALWAYS TAKEN
rtems_termios_ttyTail->forw = NULL;
10ac18: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
10ac1e: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
}
}
else {
tty->forw->back = tty->back;
}
if (tty->back == NULL) {
10ac20: 8b 53 04 mov 0x4(%ebx),%edx <== NOT EXECUTED
10ac23: 85 d2 test %edx,%edx <== NOT EXECUTED
10ac25: 0f 85 53 ff ff ff jne 10ab7e <rtems_termios_close+0x96><== NOT EXECUTED
10ac2b: 90 nop <== NOT EXECUTED
rtems_termios_ttyHead = tty->forw;
10ac2c: a3 34 72 12 00 mov %eax,0x127234
if ( rtems_termios_ttyHead != NULL ) {
10ac31: 85 c0 test %eax,%eax
10ac33: 0f 84 47 ff ff ff je 10ab80 <rtems_termios_close+0x98><== NEVER TAKEN
rtems_termios_ttyHead->back = NULL;
10ac39: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
10ac40: e9 3b ff ff ff jmp 10ab80 <rtems_termios_close+0x98>
10ac45: 8d 76 00 lea 0x0(%esi),%esi
}
else {
/*
* default: just flush output buffer
*/
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
10ac48: 51 push %ecx
10ac49: 6a 00 push $0x0
10ac4b: 6a 00 push $0x0
10ac4d: ff 73 18 pushl 0x18(%ebx)
10ac50: e8 8f 10 00 00 call 10bce4 <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL) {
10ac55: 83 c4 10 add $0x10,%esp
10ac58: 85 c0 test %eax,%eax
10ac5a: 75 46 jne 10aca2 <rtems_termios_close+0x1ba><== NEVER TAKEN
rtems_fatal_error_occurred (sc);
}
drainOutput (tty);
10ac5c: 89 d8 mov %ebx,%eax
10ac5e: e8 c1 f6 ff ff call 10a324 <drainOutput>
}
if (tty->device.outputUsesInterrupts
10ac63: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx)
10ac6a: 0f 85 dc fe ff ff jne 10ab4c <rtems_termios_close+0x64><== ALWAYS TAKEN
== TERMIOS_TASK_DRIVEN) {
/*
* send "terminate" to I/O tasks
*/
sc = rtems_event_send(
10ac70: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10ac73: 6a 01 push $0x1 <== NOT EXECUTED
10ac75: ff b3 c4 00 00 00 pushl 0xc4(%ebx) <== NOT EXECUTED
10ac7b: e8 68 0b 00 00 call 10b7e8 <rtems_event_send> <== NOT EXECUTED
tty->rxTaskId,
TERMIOS_RX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
10ac80: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ac83: 85 c0 test %eax,%eax <== NOT EXECUTED
10ac85: 75 1b jne 10aca2 <rtems_termios_close+0x1ba><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_event_send(
10ac87: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10ac8a: 6a 01 push $0x1 <== NOT EXECUTED
10ac8c: ff b3 c8 00 00 00 pushl 0xc8(%ebx) <== NOT EXECUTED
10ac92: e8 51 0b 00 00 call 10b7e8 <rtems_event_send> <== NOT EXECUTED
tty->txTaskId,
TERMIOS_TX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
10ac97: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ac9a: 85 c0 test %eax,%eax <== NOT EXECUTED
10ac9c: 0f 84 aa fe ff ff je 10ab4c <rtems_termios_close+0x64><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
10aca2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10aca5: 50 push %eax <== NOT EXECUTED
10aca6: e8 49 16 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
10acab: 90 nop <== NOT EXECUTED
}
else {
tty->forw->back = tty->back;
}
if (tty->back == NULL) {
rtems_termios_ttyHead = tty->forw;
10acac: c7 05 34 72 12 00 00 movl $0x0,0x127234
10acb3: 00 00 00
10acb6: e9 c5 fe ff ff jmp 10ab80 <rtems_termios_close+0x98>
001098b0 <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)
{
1098b0: 55 push %ebp
1098b1: 89 e5 mov %esp,%ebp
1098b3: 83 ec 08 sub $0x8,%esp
1098b6: 8b 45 08 mov 0x8(%ebp),%eax
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
1098b9: 8b 55 0c mov 0xc(%ebp),%edx
1098bc: 01 90 90 00 00 00 add %edx,0x90(%eax)
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
1098c2: 83 b8 b4 00 00 00 02 cmpl $0x2,0xb4(%eax)
1098c9: 74 2d je 1098f8 <rtems_termios_dequeue_characters+0x48><== NEVER TAKEN
TERMIOS_TX_START_EVENT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
return 0; /* nothing to output in IRQ... */
}
else if (tty->t_line == PPPDISC ) {
1098cb: 83 b8 cc 00 00 00 05 cmpl $0x5,0xcc(%eax)
1098d2: 74 0c je 1098e0 <rtems_termios_dequeue_characters+0x30><== NEVER TAKEN
rtems_termios_linesw[tty->t_line].l_start(tty);
}
return 0; /* nothing to output in IRQ... */
}
else {
return rtems_termios_refill_transmitter(tty);
1098d4: 89 45 08 mov %eax,0x8(%ebp)
}
}
1098d7: 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);
1098d8: e9 b3 fd ff ff jmp 109690 <rtems_termios_refill_transmitter>
1098dd: 8d 76 00 lea 0x0(%esi),%esi
}
else if (tty->t_line == PPPDISC ) {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
1098e0: 8b 15 54 6f 12 00 mov 0x126f54,%edx <== NOT EXECUTED
1098e6: 85 d2 test %edx,%edx <== NOT EXECUTED
1098e8: 74 09 je 1098f3 <rtems_termios_dequeue_characters+0x43><== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
1098ea: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1098ed: 50 push %eax <== NOT EXECUTED
1098ee: ff d2 call *%edx <== NOT EXECUTED
1098f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0; /* nothing to output in IRQ... */
}
else {
return rtems_termios_refill_transmitter(tty);
}
}
1098f3: 31 c0 xor %eax,%eax <== NOT EXECUTED
1098f5: c9 leave <== NOT EXECUTED
1098f6: c3 ret <== NOT EXECUTED
1098f7: 90 nop <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
/*
* send wake up to transmitter task
*/
sc = rtems_event_send(tty->txTaskId,
1098f8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1098fb: 6a 02 push $0x2 <== NOT EXECUTED
1098fd: ff b0 c8 00 00 00 pushl 0xc8(%eax) <== NOT EXECUTED
109903: e8 e0 1e 00 00 call 10b7e8 <rtems_event_send> <== NOT EXECUTED
TERMIOS_TX_START_EVENT);
if (sc != RTEMS_SUCCESSFUL)
109908: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10990b: 85 c0 test %eax,%eax <== NOT EXECUTED
10990d: 74 e4 je 1098f3 <rtems_termios_dequeue_characters+0x43><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
10990f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109912: 50 push %eax <== NOT EXECUTED
109913: e8 dc 29 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
00109918 <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)
{
109918: 55 push %ebp <== NOT EXECUTED
109919: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10991b: 57 push %edi <== NOT EXECUTED
10991c: 56 push %esi <== NOT EXECUTED
10991d: 53 push %ebx <== NOT EXECUTED
10991e: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED
109921: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
109924: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
109927: 8b 7d 10 mov 0x10(%ebp),%edi <== 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) {
10992a: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED
109930: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
109933: 8b 80 b0 6e 12 00 mov 0x126eb0(%eax),%eax <== NOT EXECUTED
109939: 85 c0 test %eax,%eax <== NOT EXECUTED
10993b: 0f 84 8b 00 00 00 je 1099cc <rtems_termios_enqueue_raw_characters+0xb4><== NOT EXECUTED
while (len--) {
109941: 85 ff test %edi,%edi <== NOT EXECUTED
109943: 74 2e je 109973 <rtems_termios_enqueue_raw_characters+0x5b><== NOT EXECUTED
109945: 31 d2 xor %edx,%edx <== NOT EXECUTED
109947: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED
10994a: 89 f7 mov %esi,%edi <== NOT EXECUTED
10994c: 89 d6 mov %edx,%esi <== NOT EXECUTED
10994e: eb 0f jmp 10995f <rtems_termios_enqueue_raw_characters+0x47><== NOT EXECUTED
109950: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED
109956: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
109959: 8b 80 b0 6e 12 00 mov 0x126eb0(%eax),%eax <== NOT EXECUTED
c = *buf++;
rtems_termios_linesw[tty->t_line].l_rint(c,tty);
10995f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
109962: 53 push %ebx <== NOT EXECUTED
109963: 0f be 14 37 movsbl (%edi,%esi,1),%edx <== NOT EXECUTED
109967: 52 push %edx <== NOT EXECUTED
109968: ff d0 call *%eax <== NOT EXECUTED
10996a: 46 inc %esi <== 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--) {
10996b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10996e: 39 75 e4 cmp %esi,-0x1c(%ebp) <== NOT EXECUTED
109971: 75 dd jne 109950 <rtems_termios_enqueue_raw_characters+0x38><== NOT EXECUTED
}
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
109973: 8b 93 e4 00 00 00 mov 0xe4(%ebx),%edx <== NOT EXECUTED
109979: 85 d2 test %edx,%edx <== NOT EXECUTED
10997b: 75 3b jne 1099b8 <rtems_termios_enqueue_raw_characters+0xa0><== NOT EXECUTED
10997d: 8b 83 dc 00 00 00 mov 0xdc(%ebx),%eax <== NOT EXECUTED
109983: 85 c0 test %eax,%eax <== NOT EXECUTED
109985: 74 31 je 1099b8 <rtems_termios_enqueue_raw_characters+0xa0><== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
109987: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10998a: ff b3 e0 00 00 00 pushl 0xe0(%ebx) <== NOT EXECUTED
109990: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED
109993: 52 push %edx <== NOT EXECUTED
109994: ff d0 call *%eax <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
109996: c7 83 e4 00 00 00 01 movl $0x1,0xe4(%ebx) <== NOT EXECUTED
10999d: 00 00 00
1099a0: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
1099a7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
}
1099aa: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1099ad: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1099b0: 5b pop %ebx <== NOT EXECUTED
1099b1: 5e pop %esi <== NOT EXECUTED
1099b2: 5f pop %edi <== NOT EXECUTED
1099b3: c9 leave <== NOT EXECUTED
1099b4: c3 ret <== NOT EXECUTED
1099b5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
1099b8: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
}
1099bf: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
1099c2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1099c5: 5b pop %ebx <== NOT EXECUTED
1099c6: 5e pop %esi <== NOT EXECUTED
1099c7: 5f pop %edi <== NOT EXECUTED
1099c8: c9 leave <== NOT EXECUTED
1099c9: c3 ret <== NOT EXECUTED
1099ca: 66 90 xchg %ax,%ax <== 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,
1099cc: 8d 43 4a lea 0x4a(%ebx),%eax <== NOT EXECUTED
1099cf: 89 45 cc mov %eax,-0x34(%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);
1099d2: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED
1099d5: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED
1099d8: c6 45 db 00 movb $0x0,-0x25(%ebp) <== NOT EXECUTED
1099dc: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
return 0;
}
while (len--) {
1099e3: 85 ff test %edi,%edi <== NOT EXECUTED
1099e5: 0f 84 0b 01 00 00 je 109af6 <rtems_termios_enqueue_raw_characters+0x1de><== NOT EXECUTED
1099eb: 90 nop <== NOT EXECUTED
c = *buf++;
1099ec: 8a 06 mov (%esi),%al <== NOT EXECUTED
1099ee: 88 45 e4 mov %al,-0x1c(%ebp) <== NOT EXECUTED
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
1099f1: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
1099f7: f6 c4 02 test $0x2,%ah <== NOT EXECUTED
1099fa: 74 1c je 109a18 <rtems_termios_enqueue_raw_characters+0x100><== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
1099fc: 0f be 45 e4 movsbl -0x1c(%ebp),%eax <== NOT EXECUTED
109a00: 0f b6 53 4a movzbl 0x4a(%ebx),%edx <== NOT EXECUTED
109a04: 39 d0 cmp %edx,%eax <== NOT EXECUTED
109a06: 0f 84 0c 01 00 00 je 109b18 <rtems_termios_enqueue_raw_characters+0x200><== NOT EXECUTED
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
}
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
109a0c: 0f b6 53 49 movzbl 0x49(%ebx),%edx <== NOT EXECUTED
109a10: 39 d0 cmp %edx,%eax <== NOT EXECUTED
109a12: 0f 84 54 01 00 00 je 109b6c <rtems_termios_enqueue_raw_characters+0x254><== NOT EXECUTED
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
flow_rcv = true;
}
}
if (flow_rcv) {
109a18: 80 7d db 00 cmpb $0x0,-0x25(%ebp) <== NOT EXECUTED
109a1c: 0f 85 11 01 00 00 jne 109b33 <rtems_termios_enqueue_raw_characters+0x21b><== NOT EXECUTED
/* reenable interrupts */
rtems_interrupt_enable(level);
}
}
else {
newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
109a22: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED
109a25: 8b 53 64 mov 0x64(%ebx),%edx <== NOT EXECUTED
109a28: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
109a2b: 40 inc %eax <== NOT EXECUTED
109a2c: 31 d2 xor %edx,%edx <== NOT EXECUTED
109a2e: f7 75 dc divl -0x24(%ebp) <== NOT EXECUTED
109a31: 89 d1 mov %edx,%ecx <== NOT EXECUTED
/* if chars_in_buffer > highwater */
rtems_interrupt_disable(level);
109a33: 9c pushf <== NOT EXECUTED
109a34: fa cli <== NOT EXECUTED
109a35: 8f 45 d4 popl -0x2c(%ebp) <== NOT EXECUTED
if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)
109a38: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED
109a3b: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED
109a3e: 8b 43 64 mov 0x64(%ebx),%eax <== NOT EXECUTED
109a41: 8b 53 64 mov 0x64(%ebx),%edx <== NOT EXECUTED
109a44: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
109a47: 2b 45 c4 sub -0x3c(%ebp),%eax <== NOT EXECUTED
109a4a: 01 c8 add %ecx,%eax <== NOT EXECUTED
109a4c: 31 d2 xor %edx,%edx <== NOT EXECUTED
109a4e: f7 75 dc divl -0x24(%ebp) <== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
109a51: 3b 93 c0 00 00 00 cmp 0xc0(%ebx),%edx <== NOT EXECUTED
109a57: 76 47 jbe 109aa0 <rtems_termios_enqueue_raw_characters+0x188><== NOT EXECUTED
!(tty->flow_ctrl & FL_IREQXOF)) {
109a59: 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)
109a5f: a8 01 test $0x1,%al <== NOT EXECUTED
109a61: 75 3d jne 109aa0 <rtems_termios_enqueue_raw_characters+0x188><== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
!(tty->flow_ctrl & FL_IREQXOF)) {
/* incoming data stream should be stopped */
tty->flow_ctrl |= FL_IREQXOF;
109a63: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109a69: 83 c8 01 or $0x1,%eax <== NOT EXECUTED
109a6c: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))
109a72: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109a78: 25 02 04 00 00 and $0x402,%eax <== NOT EXECUTED
109a7d: 3d 00 04 00 00 cmp $0x400,%eax <== NOT EXECUTED
109a82: 0f 84 27 01 00 00 je 109baf <rtems_termios_enqueue_raw_characters+0x297><== NOT EXECUTED
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTOP]),
1);
}
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
109a88: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109a8e: 25 04 01 00 00 and $0x104,%eax <== NOT EXECUTED
109a93: 3d 00 01 00 00 cmp $0x100,%eax <== NOT EXECUTED
109a98: 0f 84 55 01 00 00 je 109bf3 <rtems_termios_enqueue_raw_characters+0x2db><== NOT EXECUTED
109a9e: 66 90 xchg %ax,%ax <== NOT EXECUTED
tty->device.stopRemoteTx(tty->minor);
}
}
}
/* reenable interrupts */
rtems_interrupt_enable(level);
109aa0: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
109aa3: 9d popf <== NOT EXECUTED
if (newTail == tty->rawInBuf.Head) {
109aa4: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED
109aa7: 39 c8 cmp %ecx,%eax <== NOT EXECUTED
109aa9: 0f 84 b5 00 00 00 je 109b64 <rtems_termios_enqueue_raw_characters+0x24c><== NOT EXECUTED
dropped++;
}
else {
tty->rawInBuf.theBuf[newTail] = c;
109aaf: 8b 43 58 mov 0x58(%ebx),%eax <== NOT EXECUTED
109ab2: 8a 55 e4 mov -0x1c(%ebp),%dl <== NOT EXECUTED
109ab5: 88 14 08 mov %dl,(%eax,%ecx,1) <== NOT EXECUTED
tty->rawInBuf.Tail = newTail;
109ab8: 89 4b 60 mov %ecx,0x60(%ebx) <== NOT EXECUTED
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
109abb: 8b 83 e4 00 00 00 mov 0xe4(%ebx),%eax <== NOT EXECUTED
109ac1: 85 c0 test %eax,%eax <== NOT EXECUTED
109ac3: 75 27 jne 109aec <rtems_termios_enqueue_raw_characters+0x1d4><== NOT EXECUTED
109ac5: 8b 83 dc 00 00 00 mov 0xdc(%ebx),%eax <== NOT EXECUTED
109acb: 85 c0 test %eax,%eax <== NOT EXECUTED
109acd: 74 1d je 109aec <rtems_termios_enqueue_raw_characters+0x1d4><== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
109acf: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
109ad2: ff b3 e0 00 00 00 pushl 0xe0(%ebx) <== NOT EXECUTED
109ad8: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED
109adb: ff d0 call *%eax <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
109add: c7 83 e4 00 00 00 01 movl $0x1,0xe4(%ebx) <== NOT EXECUTED
109ae4: 00 00 00
109ae7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109aea: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
109aec: 46 inc %esi <== NOT EXECUTED
109aed: 4f dec %edi <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
return 0;
}
while (len--) {
109aee: 85 ff test %edi,%edi <== NOT EXECUTED
109af0: 0f 85 f6 fe ff ff jne 1099ec <rtems_termios_enqueue_raw_characters+0xd4><== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
}
}
}
tty->rawInBufDropped += dropped;
109af6: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
109af9: 01 43 78 add %eax,0x78(%ebx) <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
109afc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109aff: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED
109b02: e8 d9 22 00 00 call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
return dropped;
109b07: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
109b0a: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
109b0d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
109b10: 5b pop %ebx <== NOT EXECUTED
109b11: 5e pop %esi <== NOT EXECUTED
109b12: 5f pop %edi <== NOT EXECUTED
109b13: c9 leave <== NOT EXECUTED
109b14: c3 ret <== NOT EXECUTED
109b15: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
if (c == tty->termios.c_cc[VSTART]) {
109b18: 0f b6 53 49 movzbl 0x49(%ebx),%edx <== NOT EXECUTED
109b1c: 39 d0 cmp %edx,%eax <== NOT EXECUTED
109b1e: 74 7e je 109b9e <rtems_termios_enqueue_raw_characters+0x286><== NOT EXECUTED
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
}
else {
/* VSTOP received (other code than VSTART) */
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
109b20: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109b26: 83 c8 10 or $0x10,%eax <== NOT EXECUTED
109b29: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
}
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
109b2f: c6 45 db 01 movb $0x1,-0x25(%ebp) <== NOT EXECUTED
flow_rcv = true;
}
}
if (flow_rcv) {
/* restart output according to FL_ORCVXOF flag */
if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {
109b33: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109b39: 83 e0 30 and $0x30,%eax <== NOT EXECUTED
109b3c: 83 f8 20 cmp $0x20,%eax <== NOT EXECUTED
109b3f: 75 ab jne 109aec <rtems_termios_enqueue_raw_characters+0x1d4><== NOT EXECUTED
/* disable interrupts */
rtems_interrupt_disable(level);
109b41: 9c pushf <== NOT EXECUTED
109b42: fa cli <== NOT EXECUTED
109b43: 5a pop %edx <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
109b44: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109b4a: 83 e0 df and $0xffffffdf,%eax <== NOT EXECUTED
109b4d: 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) {
109b53: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax <== NOT EXECUTED
109b59: 85 c0 test %eax,%eax <== NOT EXECUTED
109b5b: 75 20 jne 109b7d <rtems_termios_enqueue_raw_characters+0x265><== NOT EXECUTED
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
}
/* reenable interrupts */
rtems_interrupt_enable(level);
109b5d: 52 push %edx <== NOT EXECUTED
109b5e: 9d popf <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
109b5f: 46 inc %esi <== NOT EXECUTED
109b60: 4f dec %edi <== NOT EXECUTED
109b61: eb 8b jmp 109aee <rtems_termios_enqueue_raw_characters+0x1d6><== NOT EXECUTED
109b63: 90 nop <== NOT EXECUTED
}
/* reenable interrupts */
rtems_interrupt_enable(level);
if (newTail == tty->rawInBuf.Head) {
dropped++;
109b64: ff 45 e0 incl -0x20(%ebp) <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
109b67: 46 inc %esi <== NOT EXECUTED
109b68: 4f dec %edi <== NOT EXECUTED
109b69: eb 83 jmp 109aee <rtems_termios_enqueue_raw_characters+0x1d6><== NOT EXECUTED
109b6b: 90 nop <== NOT EXECUTED
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
/* VSTART received */
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
109b6c: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109b72: 83 e0 ef and $0xffffffef,%eax <== NOT EXECUTED
109b75: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
109b7b: eb b2 jmp 109b2f <rtems_termios_enqueue_raw_characters+0x217><== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
109b7d: 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,
109b83: 51 push %ecx <== NOT EXECUTED
109b84: 6a 01 push $0x1 <== NOT EXECUTED
109b86: 03 43 7c add 0x7c(%ebx),%eax <== NOT EXECUTED
109b89: 50 push %eax <== NOT EXECUTED
109b8a: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
109b8d: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED
109b90: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
109b96: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109b99: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED
109b9c: eb bf jmp 109b5d <rtems_termios_enqueue_raw_characters+0x245><== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
if (c == tty->termios.c_cc[VSTART]) {
/* received VSTOP and VSTART==VSTOP? */
/* then toggle "stop output" status */
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
109b9e: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109ba4: 83 f0 10 xor $0x10,%eax <== NOT EXECUTED
109ba7: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
109bad: eb 80 jmp 109b2f <rtems_termios_enqueue_raw_characters+0x217><== NOT EXECUTED
!(tty->flow_ctrl & FL_IREQXOF)) {
/* incoming data stream should be stopped */
tty->flow_ctrl |= FL_IREQXOF;
if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))
== (FL_MDXOF ) ){
if ((tty->flow_ctrl & FL_OSTOP) ||
109baf: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109bb5: a8 20 test $0x20,%al <== NOT EXECUTED
109bb7: 75 0e jne 109bc7 <rtems_termios_enqueue_raw_characters+0x2af><== NOT EXECUTED
(tty->rawOutBufState == rob_idle)) {
109bb9: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax <== NOT EXECUTED
109bbf: 85 c0 test %eax,%eax <== NOT EXECUTED
109bc1: 0f 85 d9 fe ff ff jne 109aa0 <rtems_termios_enqueue_raw_characters+0x188><== NOT EXECUTED
/* if tx is stopped due to XOFF or out of data */
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
109bc7: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109bcd: 83 c8 02 or $0x2,%eax <== NOT EXECUTED
109bd0: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
(*tty->device.write)(tty->minor,
109bd6: 52 push %edx <== NOT EXECUTED
109bd7: 6a 01 push $0x1 <== NOT EXECUTED
109bd9: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED
109bdc: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
109bdf: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED
109be2: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
109be8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109beb: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
109bee: e9 ad fe ff ff jmp 109aa0 <rtems_termios_enqueue_raw_characters+0x188><== NOT EXECUTED
1);
}
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
== (FL_MDRTS ) ) {
tty->flow_ctrl |= FL_IRTSOFF;
109bf3: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109bf9: 83 c8 04 or $0x4,%eax <== NOT EXECUTED
109bfc: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
109c02: 8b 83 ac 00 00 00 mov 0xac(%ebx),%eax <== NOT EXECUTED
109c08: 85 c0 test %eax,%eax <== NOT EXECUTED
109c0a: 0f 84 90 fe ff ff je 109aa0 <rtems_termios_enqueue_raw_characters+0x188><== NOT EXECUTED
tty->device.stopRemoteTx(tty->minor);
109c10: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109c13: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
109c16: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED
109c19: ff d0 call *%eax <== NOT EXECUTED
109c1b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
109c1e: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED
109c21: e9 7a fe ff ff jmp 109aa0 <rtems_termios_enqueue_raw_characters+0x188><== NOT EXECUTED
00109618 <rtems_termios_initialize>:
struct rtems_termios_tty *rtems_termios_ttyTail;
rtems_id rtems_termios_ttyMutex;
void
rtems_termios_initialize (void)
{
109618: 55 push %ebp
109619: 89 e5 mov %esp,%ebp
10961b: 83 ec 08 sub $0x8,%esp
rtems_status_code sc;
/*
* Create the mutex semaphore for the tty list
*/
if (!rtems_termios_ttyMutex) {
10961e: a1 2c 72 12 00 mov 0x12722c,%eax
109623: 85 c0 test %eax,%eax
109625: 74 05 je 10962c <rtems_termios_initialize+0x14>
RTEMS_NO_PRIORITY,
&rtems_termios_ttyMutex);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
}
109627: c9 leave
109628: c3 ret
109629: 8d 76 00 lea 0x0(%esi),%esi
/*
* Create the mutex semaphore for the tty list
*/
if (!rtems_termios_ttyMutex) {
sc = rtems_semaphore_create (
10962c: 83 ec 0c sub $0xc,%esp
10962f: 68 2c 72 12 00 push $0x12722c
109634: 6a 00 push $0x0
109636: 6a 54 push $0x54
109638: 6a 01 push $0x1
10963a: 68 69 6d 52 54 push $0x54526d69
10963f: e8 28 24 00 00 call 10ba6c <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)
109644: 83 c4 20 add $0x20,%esp
109647: 85 c0 test %eax,%eax
109649: 74 dc je 109627 <rtems_termios_initialize+0xf><== ALWAYS TAKEN
rtems_fatal_error_occurred (sc);
10964b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10964e: 50 push %eax <== NOT EXECUTED
10964f: e8 a0 2c 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
0010a6d0 <rtems_termios_ioctl>:
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
10a6d0: 55 push %ebp
10a6d1: 89 e5 mov %esp,%ebp
10a6d3: 57 push %edi
10a6d4: 56 push %esi
10a6d5: 53 push %ebx
10a6d6: 83 ec 20 sub $0x20,%esp
10a6d9: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_libio_ioctl_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
10a6dc: 8b 03 mov (%ebx),%eax
10a6de: 8b 40 34 mov 0x34(%eax),%eax
10a6e1: 89 45 e4 mov %eax,-0x1c(%ebp)
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
10a6e4: 8b 73 08 mov 0x8(%ebx),%esi
rtems_status_code sc;
args->ioctl_return = 0;
10a6e7: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
10a6ee: 6a 00 push $0x0
10a6f0: 6a 00 push $0x0
10a6f2: ff 70 18 pushl 0x18(%eax)
10a6f5: e8 ea 15 00 00 call 10bce4 <rtems_semaphore_obtain>
10a6fa: 89 45 e0 mov %eax,-0x20(%ebp)
if (sc != RTEMS_SUCCESSFUL) {
10a6fd: 83 c4 10 add $0x10,%esp
10a700: 85 c0 test %eax,%eax
10a702: 75 24 jne 10a728 <rtems_termios_ioctl+0x58><== NEVER TAKEN
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
10a704: 8b 43 04 mov 0x4(%ebx),%eax
10a707: 83 f8 04 cmp $0x4,%eax
10a70a: 74 74 je 10a780 <rtems_termios_ioctl+0xb0><== NEVER TAKEN
10a70c: 77 2a ja 10a738 <rtems_termios_ioctl+0x68><== NEVER TAKEN
10a70e: 83 f8 02 cmp $0x2,%eax
10a711: 0f 84 a1 00 00 00 je 10a7b8 <rtems_termios_ioctl+0xe8>
10a717: 0f 86 3b 02 00 00 jbe 10a958 <rtems_termios_ioctl+0x288>
if (tty->device.setAttributes)
(*tty->device.setAttributes)(tty->minor, &tty->termios);
break;
case RTEMS_IO_TCDRAIN:
drainOutput (tty);
10a71d: 8b 45 e4 mov -0x1c(%ebp),%eax
10a720: e8 ff fb ff ff call 10a324 <drainOutput>
break;
10a725: eb 6d jmp 10a794 <rtems_termios_ioctl+0xc4>
10a727: 90 nop
rtems_status_code sc;
args->ioctl_return = 0;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL) {
args->ioctl_return = sc;
10a728: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
break;
}
rtems_semaphore_release (tty->osem);
args->ioctl_return = sc;
return sc;
}
10a72b: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10a72e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10a731: 5b pop %ebx <== NOT EXECUTED
10a732: 5e pop %esi <== NOT EXECUTED
10a733: 5f pop %edi <== NOT EXECUTED
10a734: c9 leave <== NOT EXECUTED
10a735: c3 ret <== NOT EXECUTED
10a736: 66 90 xchg %ax,%ax <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL) {
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
10a738: 3d 7f 66 04 40 cmp $0x4004667f,%eax <== NOT EXECUTED
10a73d: 0f 84 ed 01 00 00 je 10a930 <rtems_termios_ioctl+0x260><== NOT EXECUTED
10a743: 0f 87 2f 02 00 00 ja 10a978 <rtems_termios_ioctl+0x2a8><== NOT EXECUTED
10a749: 83 f8 05 cmp $0x5,%eax <== NOT EXECUTED
10a74c: 0f 84 aa 02 00 00 je 10a9fc <rtems_termios_ioctl+0x32c><== NOT EXECUTED
default:
if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {
10a752: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
10a755: 8b 82 cc 00 00 00 mov 0xcc(%edx),%eax <== NOT EXECUTED
10a75b: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
10a75e: 8b 80 b8 6e 12 00 mov 0x126eb8(%eax),%eax <== NOT EXECUTED
10a764: 85 c0 test %eax,%eax <== NOT EXECUTED
10a766: 0f 84 ac 02 00 00 je 10aa18 <rtems_termios_ioctl+0x348><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);
10a76c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10a76f: 53 push %ebx <== NOT EXECUTED
10a770: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
10a773: ff d0 call *%eax <== NOT EXECUTED
10a775: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
10a778: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10a77b: eb 17 jmp 10a794 <rtems_termios_ioctl+0xc4><== NOT EXECUTED
10a77d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
case RTEMS_IO_SNDWAKEUP:
tty->tty_snd = *wakeup;
break;
case RTEMS_IO_RCVWAKEUP:
tty->tty_rcv = *wakeup;
10a780: 8b 06 mov (%esi),%eax <== NOT EXECUTED
10a782: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED
10a785: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
10a788: 89 81 dc 00 00 00 mov %eax,0xdc(%ecx) <== NOT EXECUTED
10a78e: 89 91 e0 00 00 00 mov %edx,0xe0(%ecx) <== NOT EXECUTED
/* Half guess that this is the right operation */
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
}
break;
}
rtems_semaphore_release (tty->osem);
10a794: 83 ec 0c sub $0xc,%esp
10a797: 8b 45 e4 mov -0x1c(%ebp),%eax
10a79a: ff 70 18 pushl 0x18(%eax)
10a79d: e8 3e 16 00 00 call 10bde0 <rtems_semaphore_release>
args->ioctl_return = sc;
10a7a2: 8b 55 e0 mov -0x20(%ebp),%edx
10a7a5: 89 53 0c mov %edx,0xc(%ebx)
return sc;
10a7a8: 83 c4 10 add $0x10,%esp
}
10a7ab: 8b 45 e0 mov -0x20(%ebp),%eax
10a7ae: 8d 65 f4 lea -0xc(%ebp),%esp
10a7b1: 5b pop %ebx
10a7b2: 5e pop %esi
10a7b3: 5f pop %edi
10a7b4: c9 leave
10a7b5: c3 ret
10a7b6: 66 90 xchg %ax,%ax
case RTEMS_IO_GET_ATTRIBUTES:
*(struct termios *)args->buffer = tty->termios;
break;
case RTEMS_IO_SET_ATTRIBUTES:
tty->termios = *(struct termios *)args->buffer;
10a7b8: 8b 73 08 mov 0x8(%ebx),%esi
10a7bb: 8b 4d e4 mov -0x1c(%ebp),%ecx
10a7be: 83 c1 30 add $0x30,%ecx
10a7c1: 89 4d dc mov %ecx,-0x24(%ebp)
10a7c4: b9 09 00 00 00 mov $0x9,%ecx
10a7c9: 8b 7d dc mov -0x24(%ebp),%edi
10a7cc: 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) &&
10a7ce: 8b 55 e4 mov -0x1c(%ebp),%edx
10a7d1: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax
10a7d7: f6 c4 02 test $0x2,%ah
10a7da: 74 44 je 10a820 <rtems_termios_ioctl+0x150>
10a7dc: f6 42 31 04 testb $0x4,0x31(%edx)
10a7e0: 75 3e jne 10a820 <rtems_termios_ioctl+0x150><== ALWAYS TAKEN
!(tty->termios.c_iflag & IXON)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);
10a7e2: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED
10a7e8: 25 ef fd ff ff and $0xfffffdef,%eax <== NOT EXECUTED
10a7ed: 89 82 b8 00 00 00 mov %eax,0xb8(%edx) <== NOT EXECUTED
/* has output been stopped due to received XOFF? */
if (tty->flow_ctrl & FL_OSTOP) {
10a7f3: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED
10a7f9: a8 20 test $0x20,%al <== NOT EXECUTED
10a7fb: 74 23 je 10a820 <rtems_termios_ioctl+0x150><== NOT EXECUTED
/* disable interrupts */
rtems_interrupt_disable(level);
10a7fd: 9c pushf <== NOT EXECUTED
10a7fe: fa cli <== NOT EXECUTED
10a7ff: 5e pop %esi <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
10a800: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED
10a806: 83 e0 df and $0xffffffdf,%eax <== NOT EXECUTED
10a809: 89 82 b8 00 00 00 mov %eax,0xb8(%edx) <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
10a80f: 8b ba 94 00 00 00 mov 0x94(%edx),%edi <== NOT EXECUTED
10a815: 85 ff test %edi,%edi <== NOT EXECUTED
10a817: 0f 85 ab 02 00 00 jne 10aac8 <rtems_termios_ioctl+0x3f8><== NOT EXECUTED
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
}
/* reenable interrupts */
rtems_interrupt_enable(level);
10a81d: 56 push %esi <== NOT EXECUTED
10a81e: 9d popf <== NOT EXECUTED
10a81f: 90 nop <== NOT EXECUTED
}
}
/* check for incoming XON/XOFF flow control switched off */
if (( tty->flow_ctrl & FL_MDXOF) &&
10a820: 8b 4d e4 mov -0x1c(%ebp),%ecx
10a823: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax
10a829: f6 c4 04 test $0x4,%ah
10a82c: 74 24 je 10a852 <rtems_termios_ioctl+0x182><== ALWAYS TAKEN
10a82e: f6 41 31 10 testb $0x10,0x31(%ecx) <== NOT EXECUTED
10a832: 75 1e jne 10a852 <rtems_termios_ioctl+0x182><== NOT EXECUTED
!(tty->termios.c_iflag & IXOFF)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXOF);
10a834: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax <== NOT EXECUTED
10a83a: 80 e4 fb and $0xfb,%ah <== NOT EXECUTED
10a83d: 89 81 b8 00 00 00 mov %eax,0xb8(%ecx) <== NOT EXECUTED
/* FIXME: what happens, if we had sent XOFF but not yet XON? */
tty->flow_ctrl &= ~(FL_ISNTXOF);
10a843: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax <== NOT EXECUTED
10a849: 83 e0 fd and $0xfffffffd,%eax <== NOT EXECUTED
10a84c: 89 81 b8 00 00 00 mov %eax,0xb8(%ecx) <== NOT EXECUTED
}
/* check for incoming RTS/CTS flow control switched off */
if (( tty->flow_ctrl & FL_MDRTS) &&
10a852: 8b 55 e4 mov -0x1c(%ebp),%edx
10a855: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax
10a85b: f6 c4 01 test $0x1,%ah
10a85e: 74 4b je 10a8ab <rtems_termios_ioctl+0x1db><== ALWAYS TAKEN
10a860: 8b 7a 38 mov 0x38(%edx),%edi <== NOT EXECUTED
10a863: 85 ff test %edi,%edi <== NOT EXECUTED
10a865: 0f 88 09 02 00 00 js 10aa74 <rtems_termios_ioctl+0x3a4><== NOT EXECUTED
!(tty->termios.c_cflag & CRTSCTS)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDRTS);
10a86b: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED
10a871: 80 e4 fe and $0xfe,%ah <== NOT EXECUTED
10a874: 89 82 b8 00 00 00 mov %eax,0xb8(%edx) <== NOT EXECUTED
/* restart remote Tx, if it was stopped */
if ((tty->flow_ctrl & FL_IRTSOFF) &&
10a87a: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED
10a880: a8 04 test $0x4,%al <== NOT EXECUTED
10a882: 74 15 je 10a899 <rtems_termios_ioctl+0x1c9><== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
10a884: 8b 82 b0 00 00 00 mov 0xb0(%edx),%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) &&
10a88a: 85 c0 test %eax,%eax <== NOT EXECUTED
10a88c: 74 0b je 10a899 <rtems_termios_ioctl+0x1c9><== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
tty->device.startRemoteTx(tty->minor);
10a88e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10a891: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
10a894: ff d0 call *%eax <== NOT EXECUTED
10a896: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
tty->flow_ctrl &= ~(FL_IRTSOFF);
10a899: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
10a89c: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax <== NOT EXECUTED
10a8a2: 83 e0 fb and $0xfffffffb,%eax <== NOT EXECUTED
10a8a5: 89 81 b8 00 00 00 mov %eax,0xb8(%ecx) <== 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) {
10a8ab: 8b 45 e4 mov -0x1c(%ebp),%eax
10a8ae: 8b 70 38 mov 0x38(%eax),%esi
10a8b1: 85 f6 test %esi,%esi
10a8b3: 0f 88 bb 01 00 00 js 10aa74 <rtems_termios_ioctl+0x3a4><== NEVER TAKEN
tty->flow_ctrl |= FL_MDRTS;
}
/* check for incoming XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXOFF) {
10a8b9: 8b 4d e4 mov -0x1c(%ebp),%ecx
10a8bc: 8b 41 30 mov 0x30(%ecx),%eax
10a8bf: f6 c4 10 test $0x10,%ah
10a8c2: 74 0f je 10a8d3 <rtems_termios_ioctl+0x203><== ALWAYS TAKEN
tty->flow_ctrl |= FL_MDXOF;
10a8c4: 8b 91 b8 00 00 00 mov 0xb8(%ecx),%edx <== NOT EXECUTED
10a8ca: 80 ce 04 or $0x4,%dh <== NOT EXECUTED
10a8cd: 89 91 b8 00 00 00 mov %edx,0xb8(%ecx) <== NOT EXECUTED
}
/* check for outgoing XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXON) {
10a8d3: f6 c4 04 test $0x4,%ah
10a8d6: 74 12 je 10a8ea <rtems_termios_ioctl+0x21a><== NEVER TAKEN
tty->flow_ctrl |= FL_MDXON;
10a8d8: 8b 55 e4 mov -0x1c(%ebp),%edx
10a8db: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax
10a8e1: 80 cc 02 or $0x2,%ah
10a8e4: 89 82 b8 00 00 00 mov %eax,0xb8(%edx)
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) {
10a8ea: 8b 4d e4 mov -0x1c(%ebp),%ecx
10a8ed: f6 41 3c 02 testb $0x2,0x3c(%ecx)
10a8f1: 0f 84 2d 01 00 00 je 10aa24 <rtems_termios_ioctl+0x354>
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
10a8f7: c7 41 6c 00 00 00 00 movl $0x0,0x6c(%ecx)
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
10a8fe: c7 41 70 00 00 00 00 movl $0x0,0x70(%ecx)
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
10a905: c7 41 74 00 00 00 00 movl $0x0,0x74(%ecx)
else {
tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;
}
}
}
if (tty->device.setAttributes)
10a90c: 8b 55 e4 mov -0x1c(%ebp),%edx
10a90f: 8b 82 a8 00 00 00 mov 0xa8(%edx),%eax
10a915: 85 c0 test %eax,%eax
10a917: 0f 84 77 fe ff ff je 10a794 <rtems_termios_ioctl+0xc4><== NEVER TAKEN
(*tty->device.setAttributes)(tty->minor, &tty->termios);
10a91d: 83 ec 08 sub $0x8,%esp
10a920: ff 75 dc pushl -0x24(%ebp)
10a923: ff 72 10 pushl 0x10(%edx)
10a926: ff d0 call *%eax
10a928: 83 c4 10 add $0x10,%esp
10a92b: e9 64 fe ff ff jmp 10a794 <rtems_termios_ioctl+0xc4>
*(int*)(args->buffer)=tty->t_line;
break;
#endif
case FIONREAD:
{
int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
10a930: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
10a933: 8b 42 60 mov 0x60(%edx),%eax <== NOT EXECUTED
10a936: 89 d1 mov %edx,%ecx <== NOT EXECUTED
10a938: 8b 52 5c mov 0x5c(%edx),%edx <== NOT EXECUTED
if ( rawnc < 0 )
10a93b: 29 d0 sub %edx,%eax <== NOT EXECUTED
10a93d: 0f 88 25 01 00 00 js 10aa68 <rtems_termios_ioctl+0x398><== NOT EXECUTED
rawnc += tty->rawInBuf.Size;
/* Half guess that this is the right operation */
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
10a943: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED
10a946: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
10a949: 03 41 20 add 0x20(%ecx),%eax <== NOT EXECUTED
10a94c: 2b 41 24 sub 0x24(%ecx),%eax <== NOT EXECUTED
10a94f: 89 02 mov %eax,(%edx) <== NOT EXECUTED
10a951: e9 3e fe ff ff jmp 10a794 <rtems_termios_ioctl+0xc4><== NOT EXECUTED
10a956: 66 90 xchg %ax,%ax <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL) {
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
10a958: 48 dec %eax
10a959: 0f 85 f3 fd ff ff jne 10a752 <rtems_termios_ioctl+0x82><== NEVER TAKEN
sc = RTEMS_INVALID_NUMBER;
}
break;
case RTEMS_IO_GET_ATTRIBUTES:
*(struct termios *)args->buffer = tty->termios;
10a95f: 8b 43 08 mov 0x8(%ebx),%eax
10a962: 8b 75 e4 mov -0x1c(%ebp),%esi
10a965: 83 c6 30 add $0x30,%esi
10a968: b9 09 00 00 00 mov $0x9,%ecx
10a96d: 89 c7 mov %eax,%edi
10a96f: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
break;
10a971: e9 1e fe ff ff jmp 10a794 <rtems_termios_ioctl+0xc4>
10a976: 66 90 xchg %ax,%ax
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL) {
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
10a978: 3d 1a 74 04 40 cmp $0x4004741a,%eax <== NOT EXECUTED
10a97d: 74 69 je 10a9e8 <rtems_termios_ioctl+0x318><== NOT EXECUTED
10a97f: 3d 1b 74 04 80 cmp $0x8004741b,%eax <== NOT EXECUTED
10a984: 0f 85 c8 fd ff ff jne 10a752 <rtems_termios_ioctl+0x82><== NOT EXECUTED
#if 1 /* FIXME */
case TIOCSETD:
/*
* close old line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
10a98a: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
10a98d: 8b 82 cc 00 00 00 mov 0xcc(%edx),%eax <== NOT EXECUTED
10a993: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
10a996: 8b 80 a4 6e 12 00 mov 0x126ea4(%eax),%eax <== NOT EXECUTED
10a99c: 85 c0 test %eax,%eax <== NOT EXECUTED
10a99e: 74 0c je 10a9ac <rtems_termios_ioctl+0x2dc><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
10a9a0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10a9a3: 52 push %edx <== NOT EXECUTED
10a9a4: ff d0 call *%eax <== NOT EXECUTED
10a9a6: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
10a9a9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
tty->t_line=*(int*)(args->buffer);
10a9ac: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
10a9af: 8b 00 mov (%eax),%eax <== NOT EXECUTED
10a9b1: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
10a9b4: 89 81 cc 00 00 00 mov %eax,0xcc(%ecx) <== NOT EXECUTED
tty->t_sc = NULL; /* ensure that no more valid data */
10a9ba: c7 81 d0 00 00 00 00 movl $0x0,0xd0(%ecx) <== NOT EXECUTED
10a9c1: 00 00 00
/*
* open new line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_open != NULL) {
10a9c4: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
10a9c7: 8b 80 a0 6e 12 00 mov 0x126ea0(%eax),%eax <== NOT EXECUTED
10a9cd: 85 c0 test %eax,%eax <== NOT EXECUTED
10a9cf: 0f 84 bf fd ff ff je 10a794 <rtems_termios_ioctl+0xc4><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_open(tty);
10a9d5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10a9d8: 51 push %ecx <== NOT EXECUTED
10a9d9: ff d0 call *%eax <== NOT EXECUTED
10a9db: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
10a9de: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10a9e1: e9 ae fd ff ff jmp 10a794 <rtems_termios_ioctl+0xc4><== NOT EXECUTED
10a9e6: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
break;
case TIOCGETD:
*(int*)(args->buffer)=tty->t_line;
10a9e8: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED
10a9eb: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
10a9ee: 8b 91 cc 00 00 00 mov 0xcc(%ecx),%edx <== NOT EXECUTED
10a9f4: 89 10 mov %edx,(%eax) <== NOT EXECUTED
break;
10a9f6: e9 99 fd ff ff jmp 10a794 <rtems_termios_ioctl+0xc4><== NOT EXECUTED
10a9fb: 90 nop <== NOT EXECUTED
case RTEMS_IO_TCDRAIN:
drainOutput (tty);
break;
case RTEMS_IO_SNDWAKEUP:
tty->tty_snd = *wakeup;
10a9fc: 8b 06 mov (%esi),%eax <== NOT EXECUTED
10a9fe: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED
10aa01: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
10aa04: 89 81 d4 00 00 00 mov %eax,0xd4(%ecx) <== NOT EXECUTED
10aa0a: 89 91 d8 00 00 00 mov %edx,0xd8(%ecx) <== NOT EXECUTED
break;
10aa10: e9 7f fd ff ff jmp 10a794 <rtems_termios_ioctl+0xc4><== NOT EXECUTED
10aa15: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
default:
if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {
10aa18: c7 45 e0 0a 00 00 00 movl $0xa,-0x20(%ebp) <== NOT EXECUTED
10aa1f: e9 70 fd ff ff jmp 10a794 <rtems_termios_ioctl+0xc4><== NOT EXECUTED
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;
10aa24: 8b 45 e4 mov -0x1c(%ebp),%eax
10aa27: 0f b6 70 46 movzbl 0x46(%eax),%esi
10aa2b: e8 b8 0b 00 00 call 10b5e8 <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] *
10aa30: 0f af c6 imul %esi,%eax
10aa33: ba cd cc cc cc mov $0xcccccccd,%edx
10aa38: f7 e2 mul %edx
10aa3a: c1 ea 03 shr $0x3,%edx
10aa3d: 8b 4d e4 mov -0x1c(%ebp),%ecx
10aa40: 89 51 54 mov %edx,0x54(%ecx)
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
10aa43: 80 79 46 00 cmpb $0x0,0x46(%ecx)
10aa47: 74 42 je 10aa8b <rtems_termios_ioctl+0x3bb><== ALWAYS TAKEN
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
10aa49: c7 41 6c 00 00 00 00 movl $0x0,0x6c(%ecx) <== NOT EXECUTED
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
10aa50: 89 51 70 mov %edx,0x70(%ecx) <== NOT EXECUTED
if (tty->termios.c_cc[VMIN])
10aa53: 80 79 47 00 cmpb $0x0,0x47(%ecx) <== NOT EXECUTED
10aa57: 74 55 je 10aaae <rtems_termios_ioctl+0x3de><== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
10aa59: c7 41 74 00 00 00 00 movl $0x0,0x74(%ecx) <== NOT EXECUTED
10aa60: e9 a7 fe ff ff jmp 10a90c <rtems_termios_ioctl+0x23c><== NOT EXECUTED
10aa65: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
#endif
case FIONREAD:
{
int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
if ( rawnc < 0 )
rawnc += tty->rawInBuf.Size;
10aa68: 8b 51 64 mov 0x64(%ecx),%edx <== NOT EXECUTED
10aa6b: 01 d0 add %edx,%eax <== NOT EXECUTED
10aa6d: e9 d1 fe ff ff jmp 10a943 <rtems_termios_ioctl+0x273><== NOT EXECUTED
10aa72: 66 90 xchg %ax,%ax <== 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) {
tty->flow_ctrl |= FL_MDRTS;
10aa74: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
10aa77: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED
10aa7d: 80 cc 01 or $0x1,%ah <== NOT EXECUTED
10aa80: 89 82 b8 00 00 00 mov %eax,0xb8(%edx) <== NOT EXECUTED
10aa86: e9 2e fe ff ff jmp 10a8b9 <rtems_termios_ioctl+0x1e9><== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
}
else {
if (tty->termios.c_cc[VMIN]) {
10aa8b: 8b 55 e4 mov -0x1c(%ebp),%edx
10aa8e: 80 7a 47 00 cmpb $0x0,0x47(%edx)
10aa92: 74 25 je 10aab9 <rtems_termios_ioctl+0x3e9><== NEVER TAKEN
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
10aa94: c7 42 6c 00 00 00 00 movl $0x0,0x6c(%edx)
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
10aa9b: c7 42 70 00 00 00 00 movl $0x0,0x70(%edx)
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
10aaa2: c7 42 74 00 00 00 00 movl $0x0,0x74(%edx)
10aaa9: e9 5e fe ff ff jmp 10a90c <rtems_termios_ioctl+0x23c>
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
if (tty->termios.c_cc[VMIN])
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
10aaae: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
10aab1: 89 50 74 mov %edx,0x74(%eax) <== NOT EXECUTED
10aab4: e9 53 fe ff ff jmp 10a90c <rtems_termios_ioctl+0x23c><== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;
10aab9: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED
10aabc: c7 41 6c 01 00 00 00 movl $0x1,0x6c(%ecx) <== NOT EXECUTED
10aac3: e9 44 fe ff ff jmp 10a90c <rtems_termios_ioctl+0x23c><== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
10aac8: 8b 82 84 00 00 00 mov 0x84(%edx),%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,
10aace: 51 push %ecx <== NOT EXECUTED
10aacf: 6a 01 push $0x1 <== NOT EXECUTED
10aad1: 03 42 7c add 0x7c(%edx),%eax <== NOT EXECUTED
10aad4: 50 push %eax <== NOT EXECUTED
10aad5: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED
10aad8: ff 92 a4 00 00 00 call *0xa4(%edx) <== NOT EXECUTED
10aade: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10aae1: e9 37 fd ff ff jmp 10a81d <rtems_termios_ioctl+0x14d><== NOT EXECUTED
0010aa34 <rtems_termios_number_to_baud>:
#include <rtems/termiostypes.h>
int rtems_termios_number_to_baud(
int32_t baud
)
{
10aa34: 55 push %ebp
10aa35: 89 e5 mov %esp,%ebp
10aa37: 8b 45 08 mov 0x8(%ebp),%eax
int termios_baud;
switch (baud) {
10aa3a: 3d b0 04 00 00 cmp $0x4b0,%eax
10aa3f: 0f 84 47 01 00 00 je 10ab8c <rtems_termios_number_to_baud+0x158>
10aa45: 7e 3d jle 10aa84 <rtems_termios_number_to_baud+0x50>
10aa47: 3d 00 4b 00 00 cmp $0x4b00,%eax
10aa4c: 0f 84 4a 01 00 00 je 10ab9c <rtems_termios_number_to_baud+0x168>
10aa52: 7e 64 jle 10aab8 <rtems_termios_number_to_baud+0x84>
10aa54: 3d 00 c2 01 00 cmp $0x1c200,%eax
10aa59: 0f 84 15 01 00 00 je 10ab74 <rtems_termios_number_to_baud+0x140>
10aa5f: 0f 8e af 00 00 00 jle 10ab14 <rtems_termios_number_to_baud+0xe0>
10aa65: 3d 00 84 03 00 cmp $0x38400,%eax
10aa6a: 0f 84 fc 00 00 00 je 10ab6c <rtems_termios_number_to_baud+0x138>
10aa70: 3d 00 08 07 00 cmp $0x70800,%eax
10aa75: 0f 85 89 00 00 00 jne 10ab04 <rtems_termios_number_to_baud+0xd0><== NEVER TAKEN
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
case 115200: termios_baud = B115200; break;
case 230400: termios_baud = B230400; break;
10aa7b: b8 04 10 00 00 mov $0x1004,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10aa80: c9 leave
10aa81: c3 ret
10aa82: 66 90 xchg %ax,%ax
int32_t baud
)
{
int termios_baud;
switch (baud) {
10aa84: 3d 86 00 00 00 cmp $0x86,%eax
10aa89: 0f 84 05 01 00 00 je 10ab94 <rtems_termios_number_to_baud+0x160>
10aa8f: 7e 4f jle 10aae0 <rtems_termios_number_to_baud+0xac>
10aa91: 3d c8 00 00 00 cmp $0xc8,%eax
10aa96: 0f 84 b8 00 00 00 je 10ab54 <rtems_termios_number_to_baud+0x120>
10aa9c: 7e 5e jle 10aafc <rtems_termios_number_to_baud+0xc8>
10aa9e: 3d 2c 01 00 00 cmp $0x12c,%eax
10aaa3: 0f 84 9b 00 00 00 je 10ab44 <rtems_termios_number_to_baud+0x110>
10aaa9: 3d 58 02 00 00 cmp $0x258,%eax
10aaae: 75 54 jne 10ab04 <rtems_termios_number_to_baud+0xd0><== NEVER TAKEN
case 75: termios_baud = B75; break;
case 110: termios_baud = B110; break;
case 134: termios_baud = B134; break;
case 150: termios_baud = B150; break;
case 200: termios_baud = B200; break;
case 300: termios_baud = B300; break;
10aab0: b8 08 00 00 00 mov $0x8,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10aab5: c9 leave
10aab6: c3 ret
10aab7: 90 nop
int32_t baud
)
{
int termios_baud;
switch (baud) {
10aab8: 3d 60 09 00 00 cmp $0x960,%eax
10aabd: 0f 84 c1 00 00 00 je 10ab84 <rtems_termios_number_to_baud+0x150>
10aac3: 7e 67 jle 10ab2c <rtems_termios_number_to_baud+0xf8>
10aac5: 3d c0 12 00 00 cmp $0x12c0,%eax
10aaca: 0f 84 8c 00 00 00 je 10ab5c <rtems_termios_number_to_baud+0x128>
10aad0: 3d 80 25 00 00 cmp $0x2580,%eax
10aad5: 75 2d jne 10ab04 <rtems_termios_number_to_baud+0xd0>
case 300: termios_baud = B300; break;
case 600: termios_baud = B600; break;
case 1200: termios_baud = B1200; break;
case 1800: termios_baud = B1800; break;
case 2400: termios_baud = B2400; break;
case 4800: termios_baud = B4800; break;
10aad7: b8 0d 00 00 00 mov $0xd,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10aadc: c9 leave
10aadd: c3 ret
10aade: 66 90 xchg %ax,%ax
int32_t baud
)
{
int termios_baud;
switch (baud) {
10aae0: 83 f8 32 cmp $0x32,%eax
10aae3: 74 7f je 10ab64 <rtems_termios_number_to_baud+0x130>
10aae5: 7e 25 jle 10ab0c <rtems_termios_number_to_baud+0xd8>
10aae7: 83 f8 4b cmp $0x4b,%eax
10aaea: 0f 84 8c 00 00 00 je 10ab7c <rtems_termios_number_to_baud+0x148>
10aaf0: 83 f8 6e cmp $0x6e,%eax
10aaf3: 75 0f jne 10ab04 <rtems_termios_number_to_baud+0xd0><== NEVER TAKEN
case 0: termios_baud = B0; break;
case 50: termios_baud = B50; break;
case 75: termios_baud = B75; break;
10aaf5: b8 03 00 00 00 mov $0x3,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10aafa: c9 leave
10aafb: c3 ret
int32_t baud
)
{
int termios_baud;
switch (baud) {
10aafc: 3d 96 00 00 00 cmp $0x96,%eax
10ab01: 74 39 je 10ab3c <rtems_termios_number_to_baud+0x108><== ALWAYS TAKEN
10ab03: 90 nop
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
case 115200: termios_baud = B115200; break;
case 230400: termios_baud = B230400; break;
case 460800: termios_baud = B460800; break;
10ab04: b8 ff ff ff ff mov $0xffffffff,%eax
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab09: c9 leave
10ab0a: c3 ret
10ab0b: 90 nop
int32_t baud
)
{
int termios_baud;
switch (baud) {
10ab0c: 85 c0 test %eax,%eax
10ab0e: 75 f4 jne 10ab04 <rtems_termios_number_to_baud+0xd0>
10ab10: 31 c0 xor %eax,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab12: c9 leave
10ab13: c3 ret
int32_t baud
)
{
int termios_baud;
switch (baud) {
10ab14: 3d 00 96 00 00 cmp $0x9600,%eax
10ab19: 74 31 je 10ab4c <rtems_termios_number_to_baud+0x118>
10ab1b: 3d 00 e1 00 00 cmp $0xe100,%eax
10ab20: 75 e2 jne 10ab04 <rtems_termios_number_to_baud+0xd0><== NEVER TAKEN
case 1800: termios_baud = B1800; break;
case 2400: termios_baud = B2400; break;
case 4800: termios_baud = B4800; break;
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
10ab22: b8 01 10 00 00 mov $0x1001,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab27: c9 leave
10ab28: c3 ret
10ab29: 8d 76 00 lea 0x0(%esi),%esi
int32_t baud
)
{
int termios_baud;
switch (baud) {
10ab2c: 3d 08 07 00 00 cmp $0x708,%eax
10ab31: 75 d1 jne 10ab04 <rtems_termios_number_to_baud+0xd0><== NEVER TAKEN
case 134: termios_baud = B134; break;
case 150: termios_baud = B150; break;
case 200: termios_baud = B200; break;
case 300: termios_baud = B300; break;
case 600: termios_baud = B600; break;
case 1200: termios_baud = B1200; break;
10ab33: b8 0a 00 00 00 mov $0xa,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab38: c9 leave
10ab39: c3 ret
10ab3a: 66 90 xchg %ax,%ax
switch (baud) {
case 0: termios_baud = B0; break;
case 50: termios_baud = B50; break;
case 75: termios_baud = B75; break;
case 110: termios_baud = B110; break;
case 134: termios_baud = B134; break;
10ab3c: b8 05 00 00 00 mov $0x5,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab41: c9 leave
10ab42: c3 ret
10ab43: 90 nop
case 50: termios_baud = B50; break;
case 75: termios_baud = B75; break;
case 110: termios_baud = B110; break;
case 134: termios_baud = B134; break;
case 150: termios_baud = B150; break;
case 200: termios_baud = B200; break;
10ab44: b8 07 00 00 00 mov $0x7,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab49: c9 leave
10ab4a: c3 ret
10ab4b: 90 nop
case 1200: termios_baud = B1200; break;
case 1800: termios_baud = B1800; break;
case 2400: termios_baud = B2400; break;
case 4800: termios_baud = B4800; break;
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
10ab4c: b8 0f 00 00 00 mov $0xf,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab51: c9 leave
10ab52: c3 ret
10ab53: 90 nop
case 0: termios_baud = B0; break;
case 50: termios_baud = B50; break;
case 75: termios_baud = B75; break;
case 110: termios_baud = B110; break;
case 134: termios_baud = B134; break;
case 150: termios_baud = B150; break;
10ab54: b8 06 00 00 00 mov $0x6,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab59: c9 leave
10ab5a: c3 ret
10ab5b: 90 nop
case 200: termios_baud = B200; break;
case 300: termios_baud = B300; break;
case 600: termios_baud = B600; break;
case 1200: termios_baud = B1200; break;
case 1800: termios_baud = B1800; break;
case 2400: termios_baud = B2400; break;
10ab5c: b8 0c 00 00 00 mov $0xc,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab61: c9 leave
10ab62: c3 ret
10ab63: 90 nop
int32_t baud
)
{
int termios_baud;
switch (baud) {
10ab64: b8 01 00 00 00 mov $0x1,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab69: c9 leave
10ab6a: c3 ret
10ab6b: 90 nop
case 4800: termios_baud = B4800; break;
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
case 115200: termios_baud = B115200; break;
10ab6c: b8 03 10 00 00 mov $0x1003,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab71: c9 leave
10ab72: c3 ret
10ab73: 90 nop
case 2400: termios_baud = B2400; break;
case 4800: termios_baud = B4800; break;
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
10ab74: b8 02 10 00 00 mov $0x1002,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab79: c9 leave
10ab7a: c3 ret
10ab7b: 90 nop
int32_t baud
)
{
int termios_baud;
switch (baud) {
10ab7c: b8 02 00 00 00 mov $0x2,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab81: c9 leave
10ab82: c3 ret
10ab83: 90 nop
case 150: termios_baud = B150; break;
case 200: termios_baud = B200; break;
case 300: termios_baud = B300; break;
case 600: termios_baud = B600; break;
case 1200: termios_baud = B1200; break;
case 1800: termios_baud = B1800; break;
10ab84: b8 0b 00 00 00 mov $0xb,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab89: c9 leave
10ab8a: c3 ret
10ab8b: 90 nop
case 110: termios_baud = B110; break;
case 134: termios_baud = B134; break;
case 150: termios_baud = B150; break;
case 200: termios_baud = B200; break;
case 300: termios_baud = B300; break;
case 600: termios_baud = B600; break;
10ab8c: b8 09 00 00 00 mov $0x9,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab91: c9 leave
10ab92: c3 ret
10ab93: 90 nop
switch (baud) {
case 0: termios_baud = B0; break;
case 50: termios_baud = B50; break;
case 75: termios_baud = B75; break;
case 110: termios_baud = B110; break;
10ab94: b8 04 00 00 00 mov $0x4,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10ab99: c9 leave
10ab9a: c3 ret
10ab9b: 90 nop
case 600: termios_baud = B600; break;
case 1200: termios_baud = B1200; break;
case 1800: termios_baud = B1800; break;
case 2400: termios_baud = B2400; break;
case 4800: termios_baud = B4800; break;
case 9600: termios_baud = B9600; break;
10ab9c: b8 0e 00 00 00 mov $0xe,%eax
case 460800: termios_baud = B460800; break;
default: termios_baud = -1; break;
}
return termios_baud;
}
10aba1: c9 leave
10aba2: c3 ret
0010acbc <rtems_termios_open>:
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
10acbc: 55 push %ebp
10acbd: 89 e5 mov %esp,%ebp
10acbf: 57 push %edi
10acc0: 56 push %esi
10acc1: 53 push %ebx
10acc2: 83 ec 20 sub $0x20,%esp
10acc5: 8b 55 08 mov 0x8(%ebp),%edx
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
10acc8: 6a 00 push $0x0
10acca: 6a 00 push $0x0
10accc: ff 35 2c 72 12 00 pushl 0x12722c
10acd2: 89 55 dc mov %edx,-0x24(%ebp)
10acd5: e8 0a 10 00 00 call 10bce4 <rtems_semaphore_obtain>
10acda: 89 45 e4 mov %eax,-0x1c(%ebp)
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
10acdd: 83 c4 10 add $0x10,%esp
10ace0: 85 c0 test %eax,%eax
10ace2: 8b 55 dc mov -0x24(%ebp),%edx
10ace5: 75 6f jne 10ad56 <rtems_termios_open+0x9a><== NEVER TAKEN
return sc;
for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) {
10ace7: 8b 1d 34 72 12 00 mov 0x127234,%ebx
10aced: 85 db test %ebx,%ebx
10acef: 0f 84 a7 00 00 00 je 10ad9c <rtems_termios_open+0xe0>
10acf5: 8b 45 0c mov 0xc(%ebp),%eax
10acf8: eb 0c jmp 10ad06 <rtems_termios_open+0x4a>
10acfa: 66 90 xchg %ax,%ax
10acfc: 8b 1b mov (%ebx),%ebx
10acfe: 85 db test %ebx,%ebx
10ad00: 0f 84 96 00 00 00 je 10ad9c <rtems_termios_open+0xe0><== ALWAYS TAKEN
if ((tty->major == major) && (tty->minor == minor))
10ad06: 39 53 0c cmp %edx,0xc(%ebx)
10ad09: 75 f1 jne 10acfc <rtems_termios_open+0x40>
10ad0b: 39 43 10 cmp %eax,0x10(%ebx)
10ad0e: 75 ec jne 10acfc <rtems_termios_open+0x40><== NEVER TAKEN
*/
if (c++ == 'z')
c = 'a';
}
args->iop->data1 = tty;
10ad10: 8b 4d 10 mov 0x10(%ebp),%ecx
10ad13: 8b 01 mov (%ecx),%eax
10ad15: 89 58 34 mov %ebx,0x34(%eax)
if (!tty->refcount++) {
10ad18: 8b 43 08 mov 0x8(%ebx),%eax
10ad1b: 8d 48 01 lea 0x1(%eax),%ecx
10ad1e: 89 4b 08 mov %ecx,0x8(%ebx)
10ad21: 85 c0 test %eax,%eax
10ad23: 75 20 jne 10ad45 <rtems_termios_open+0x89>
if (tty->device.firstOpen)
10ad25: 8b 83 98 00 00 00 mov 0x98(%ebx),%eax
10ad2b: 85 c0 test %eax,%eax
10ad2d: 74 0d je 10ad3c <rtems_termios_open+0x80>
(*tty->device.firstOpen)(major, minor, arg);
10ad2f: 56 push %esi
10ad30: ff 75 10 pushl 0x10(%ebp)
10ad33: ff 75 0c pushl 0xc(%ebp)
10ad36: 52 push %edx
10ad37: ff d0 call *%eax
10ad39: 83 c4 10 add $0x10,%esp
/*
* start I/O tasks, if needed
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
10ad3c: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx)
10ad43: 74 1c je 10ad61 <rtems_termios_open+0xa5><== NEVER TAKEN
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
}
rtems_semaphore_release (rtems_termios_ttyMutex);
10ad45: 83 ec 0c sub $0xc,%esp
10ad48: ff 35 2c 72 12 00 pushl 0x12722c
10ad4e: e8 8d 10 00 00 call 10bde0 <rtems_semaphore_release>
return RTEMS_SUCCESSFUL;
10ad53: 83 c4 10 add $0x10,%esp
}
10ad56: 8b 45 e4 mov -0x1c(%ebp),%eax
10ad59: 8d 65 f4 lea -0xc(%ebp),%esp
10ad5c: 5b pop %ebx
10ad5d: 5e pop %esi
10ad5e: 5f pop %edi
10ad5f: c9 leave
10ad60: c3 ret
(*tty->device.firstOpen)(major, minor, arg);
/*
* start I/O tasks, if needed
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
sc = rtems_task_start(tty->rxTaskId,
10ad61: 51 push %ecx <== NOT EXECUTED
10ad62: 53 push %ebx <== NOT EXECUTED
10ad63: 68 d0 b1 10 00 push $0x10b1d0 <== NOT EXECUTED
10ad68: ff b3 c4 00 00 00 pushl 0xc4(%ebx) <== NOT EXECUTED
10ad6e: e8 b1 13 00 00 call 10c124 <rtems_task_start> <== NOT EXECUTED
rtems_termios_rxdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
10ad73: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ad76: 85 c0 test %eax,%eax <== NOT EXECUTED
10ad78: 0f 85 3e 03 00 00 jne 10b0bc <rtems_termios_open+0x400><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_start(tty->txTaskId,
10ad7e: 52 push %edx <== NOT EXECUTED
10ad7f: 53 push %ebx <== NOT EXECUTED
10ad80: 68 64 b1 10 00 push $0x10b164 <== NOT EXECUTED
10ad85: ff b3 c8 00 00 00 pushl 0xc8(%ebx) <== NOT EXECUTED
10ad8b: e8 94 13 00 00 call 10c124 <rtems_task_start> <== NOT EXECUTED
rtems_termios_txdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
10ad90: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ad93: 85 c0 test %eax,%eax <== NOT EXECUTED
10ad95: 74 ae je 10ad45 <rtems_termios_open+0x89><== NOT EXECUTED
10ad97: e9 20 03 00 00 jmp 10b0bc <rtems_termios_open+0x400><== NOT EXECUTED
static char c = 'a';
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
10ad9c: 83 ec 08 sub $0x8,%esp
10ad9f: 68 e8 00 00 00 push $0xe8
10ada4: 6a 01 push $0x1
10ada6: 89 55 dc mov %edx,-0x24(%ebp)
10ada9: e8 1e d6 ff ff call 1083cc <calloc>
10adae: 89 45 e0 mov %eax,-0x20(%ebp)
10adb1: 89 c3 mov %eax,%ebx
if (tty == NULL) {
10adb3: 83 c4 10 add $0x10,%esp
10adb6: 85 c0 test %eax,%eax
10adb8: 8b 55 dc mov -0x24(%ebp),%edx
10adbb: 0f 84 79 02 00 00 je 10b03a <rtems_termios_open+0x37e><== NEVER TAKEN
return RTEMS_NO_MEMORY;
}
/*
* allocate raw input buffer
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
10adc1: a1 18 50 12 00 mov 0x125018,%eax
10adc6: 8b 4d e0 mov -0x20(%ebp),%ecx
10adc9: 89 41 64 mov %eax,0x64(%ecx)
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
10adcc: 8b 41 64 mov 0x64(%ecx),%eax
10adcf: 83 ec 0c sub $0xc,%esp
10add2: 50 push %eax
10add3: 89 55 dc mov %edx,-0x24(%ebp)
10add6: e8 e1 da ff ff call 1088bc <malloc>
10addb: 8b 75 e0 mov -0x20(%ebp),%esi
10adde: 89 46 58 mov %eax,0x58(%esi)
if (tty->rawInBuf.theBuf == NULL) {
10ade1: 83 c4 10 add $0x10,%esp
10ade4: 85 c0 test %eax,%eax
10ade6: 8b 55 dc mov -0x24(%ebp),%edx
10ade9: 0f 84 68 02 00 00 je 10b057 <rtems_termios_open+0x39b><== NEVER TAKEN
return RTEMS_NO_MEMORY;
}
/*
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
10adef: a1 1c 50 12 00 mov 0x12501c,%eax
10adf4: 8b 4d e0 mov -0x20(%ebp),%ecx
10adf7: 89 81 88 00 00 00 mov %eax,0x88(%ecx)
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
10adfd: 8b 81 88 00 00 00 mov 0x88(%ecx),%eax
10ae03: 83 ec 0c sub $0xc,%esp
10ae06: 50 push %eax
10ae07: 89 55 dc mov %edx,-0x24(%ebp)
10ae0a: e8 ad da ff ff call 1088bc <malloc>
10ae0f: 8b 75 e0 mov -0x20(%ebp),%esi
10ae12: 89 46 7c mov %eax,0x7c(%esi)
if (tty->rawOutBuf.theBuf == NULL) {
10ae15: 83 c4 10 add $0x10,%esp
10ae18: 85 c0 test %eax,%eax
10ae1a: 8b 55 dc mov -0x24(%ebp),%edx
10ae1d: 0f 84 58 02 00 00 je 10b07b <rtems_termios_open+0x3bf><== NEVER TAKEN
return RTEMS_NO_MEMORY;
}
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
10ae23: 83 ec 0c sub $0xc,%esp
10ae26: ff 35 14 50 12 00 pushl 0x125014
10ae2c: 89 55 dc mov %edx,-0x24(%ebp)
10ae2f: e8 88 da ff ff call 1088bc <malloc>
10ae34: 8b 4d e0 mov -0x20(%ebp),%ecx
10ae37: 89 41 1c mov %eax,0x1c(%ecx)
if (tty->cbuf == NULL) {
10ae3a: 83 c4 10 add $0x10,%esp
10ae3d: 85 c0 test %eax,%eax
10ae3f: 8b 55 dc mov -0x24(%ebp),%edx
10ae42: 0f 84 7d 02 00 00 je 10b0c5 <rtems_termios_open+0x409><== NEVER TAKEN
return RTEMS_NO_MEMORY;
}
/*
* Initialize wakeup callbacks
*/
tty->tty_snd.sw_pfn = NULL;
10ae48: 8b 45 e0 mov -0x20(%ebp),%eax
10ae4b: c7 80 d4 00 00 00 00 movl $0x0,0xd4(%eax)
10ae52: 00 00 00
tty->tty_snd.sw_arg = NULL;
10ae55: c7 80 d8 00 00 00 00 movl $0x0,0xd8(%eax)
10ae5c: 00 00 00
tty->tty_rcv.sw_pfn = NULL;
10ae5f: c7 80 dc 00 00 00 00 movl $0x0,0xdc(%eax)
10ae66: 00 00 00
tty->tty_rcv.sw_arg = NULL;
10ae69: c7 80 e0 00 00 00 00 movl $0x0,0xe0(%eax)
10ae70: 00 00 00
tty->tty_rcvwakeup = 0;
10ae73: c7 80 e4 00 00 00 00 movl $0x0,0xe4(%eax)
10ae7a: 00 00 00
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
10ae7d: a1 34 72 12 00 mov 0x127234,%eax
10ae82: 8b 4d e0 mov -0x20(%ebp),%ecx
10ae85: 89 01 mov %eax,(%ecx)
tty->back = NULL;
10ae87: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx)
if (rtems_termios_ttyHead != NULL)
10ae8e: 85 c0 test %eax,%eax
10ae90: 74 03 je 10ae95 <rtems_termios_open+0x1d9>
rtems_termios_ttyHead->back = tty;
10ae92: 89 48 04 mov %ecx,0x4(%eax)
rtems_termios_ttyHead = tty;
10ae95: 8b 75 e0 mov -0x20(%ebp),%esi
10ae98: 89 35 34 72 12 00 mov %esi,0x127234
if (rtems_termios_ttyTail == NULL)
10ae9e: 8b 3d 30 72 12 00 mov 0x127230,%edi
10aea4: 85 ff test %edi,%edi
10aea6: 0f 84 ac 02 00 00 je 10b158 <rtems_termios_open+0x49c>
rtems_termios_ttyTail = tty;
tty->minor = minor;
10aeac: 8b 4d 0c mov 0xc(%ebp),%ecx
10aeaf: 8b 45 e0 mov -0x20(%ebp),%eax
10aeb2: 89 48 10 mov %ecx,0x10(%eax)
tty->major = major;
10aeb5: 89 50 0c mov %edx,0xc(%eax)
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
10aeb8: 83 ec 0c sub $0xc,%esp
10aebb: 83 c0 14 add $0x14,%eax
10aebe: 50 push %eax
10aebf: 6a 00 push $0x0
10aec1: 6a 54 push $0x54
10aec3: 6a 01 push $0x1
10aec5: 0f be 05 20 50 12 00 movsbl 0x125020,%eax
10aecc: 0d 00 69 52 54 or $0x54526900,%eax
10aed1: 50 push %eax
10aed2: 89 55 dc mov %edx,-0x24(%ebp)
10aed5: e8 92 0b 00 00 call 10ba6c <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)
10aeda: 83 c4 20 add $0x20,%esp
10aedd: 85 c0 test %eax,%eax
10aedf: 8b 55 dc mov -0x24(%ebp),%edx
10aee2: 0f 85 d4 01 00 00 jne 10b0bc <rtems_termios_open+0x400><== NEVER TAKEN
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
10aee8: 83 ec 0c sub $0xc,%esp
10aeeb: 8b 45 e0 mov -0x20(%ebp),%eax
10aeee: 83 c0 18 add $0x18,%eax
10aef1: 50 push %eax
10aef2: 6a 00 push $0x0
10aef4: 6a 54 push $0x54
10aef6: 6a 01 push $0x1
10aef8: 0f be 05 20 50 12 00 movsbl 0x125020,%eax
10aeff: 0d 00 6f 52 54 or $0x54526f00,%eax
10af04: 50 push %eax
10af05: 89 55 dc mov %edx,-0x24(%ebp)
10af08: e8 5f 0b 00 00 call 10ba6c <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)
10af0d: 83 c4 20 add $0x20,%esp
10af10: 85 c0 test %eax,%eax
10af12: 8b 55 dc mov -0x24(%ebp),%edx
10af15: 0f 85 a1 01 00 00 jne 10b0bc <rtems_termios_open+0x400><== NEVER TAKEN
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
10af1b: 83 ec 0c sub $0xc,%esp
10af1e: 8b 45 e0 mov -0x20(%ebp),%eax
10af21: 05 8c 00 00 00 add $0x8c,%eax
10af26: 50 push %eax
10af27: 6a 00 push $0x0
10af29: 6a 20 push $0x20
10af2b: 6a 00 push $0x0
10af2d: 0f be 05 20 50 12 00 movsbl 0x125020,%eax
10af34: 0d 00 78 52 54 or $0x54527800,%eax
10af39: 50 push %eax
10af3a: 89 55 dc mov %edx,-0x24(%ebp)
10af3d: e8 2a 0b 00 00 call 10ba6c <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)
10af42: 83 c4 20 add $0x20,%esp
10af45: 85 c0 test %eax,%eax
10af47: 8b 55 dc mov -0x24(%ebp),%edx
10af4a: 0f 85 6c 01 00 00 jne 10b0bc <rtems_termios_open+0x400><== NEVER TAKEN
rtems_fatal_error_occurred (sc);
tty->rawOutBufState = rob_idle;
10af50: 8b 75 e0 mov -0x20(%ebp),%esi
10af53: c7 86 94 00 00 00 00 movl $0x0,0x94(%esi)
10af5a: 00 00 00
/*
* Set callbacks
*/
tty->device = *callbacks;
10af5d: 89 f7 mov %esi,%edi
10af5f: 81 c7 98 00 00 00 add $0x98,%edi
10af65: b9 08 00 00 00 mov $0x8,%ecx
10af6a: 8b 75 14 mov 0x14(%ebp),%esi
10af6d: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
10af6f: 8b 45 e0 mov -0x20(%ebp),%eax
10af72: 83 b8 b4 00 00 00 02 cmpl $0x2,0xb4(%eax)
10af79: 0f 84 63 01 00 00 je 10b0e2 <rtems_termios_open+0x426><== NEVER TAKEN
&tty->rxTaskId);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
if ((tty->device.pollRead == NULL) ||
10af7f: 8b 4d e0 mov -0x20(%ebp),%ecx
10af82: 8b b9 a0 00 00 00 mov 0xa0(%ecx),%edi
10af88: 85 ff test %edi,%edi
10af8a: 0f 84 f9 00 00 00 je 10b089 <rtems_termios_open+0x3cd>
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
10af90: 83 b9 b4 00 00 00 02 cmpl $0x2,0xb4(%ecx)
10af97: 0f 84 ec 00 00 00 je 10b089 <rtems_termios_open+0x3cd><== NEVER TAKEN
}
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
10af9d: 8b 75 e0 mov -0x20(%ebp),%esi
10afa0: c7 46 30 02 25 00 00 movl $0x2502,0x30(%esi)
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
10afa7: c7 46 34 05 18 00 00 movl $0x1805,0x34(%esi)
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
10afae: c7 46 38 bd 08 00 00 movl $0x8bd,0x38(%esi)
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
10afb5: c7 46 3c 3b 82 00 00 movl $0x823b,0x3c(%esi)
tty->termios.c_cc[VINTR] = '\003';
10afbc: c6 46 41 03 movb $0x3,0x41(%esi)
tty->termios.c_cc[VQUIT] = '\034';
10afc0: c6 46 42 1c movb $0x1c,0x42(%esi)
tty->termios.c_cc[VERASE] = '\177';
10afc4: c6 46 43 7f movb $0x7f,0x43(%esi)
tty->termios.c_cc[VKILL] = '\025';
10afc8: c6 46 44 15 movb $0x15,0x44(%esi)
tty->termios.c_cc[VEOF] = '\004';
10afcc: c6 46 45 04 movb $0x4,0x45(%esi)
tty->termios.c_cc[VEOL] = '\000';
10afd0: c6 46 4c 00 movb $0x0,0x4c(%esi)
tty->termios.c_cc[VEOL2] = '\000';
10afd4: c6 46 51 00 movb $0x0,0x51(%esi)
tty->termios.c_cc[VSTART] = '\021';
10afd8: c6 46 49 11 movb $0x11,0x49(%esi)
tty->termios.c_cc[VSTOP] = '\023';
10afdc: c6 46 4a 13 movb $0x13,0x4a(%esi)
tty->termios.c_cc[VSUSP] = '\032';
10afe0: c6 46 4b 1a movb $0x1a,0x4b(%esi)
tty->termios.c_cc[VREPRINT] = '\022';
10afe4: c6 46 4d 12 movb $0x12,0x4d(%esi)
tty->termios.c_cc[VDISCARD] = '\017';
10afe8: c6 46 4e 0f movb $0xf,0x4e(%esi)
tty->termios.c_cc[VWERASE] = '\027';
10afec: c6 46 4f 17 movb $0x17,0x4f(%esi)
tty->termios.c_cc[VLNEXT] = '\026';
10aff0: c6 46 50 16 movb $0x16,0x50(%esi)
/* start with no flow control, clear flow control flags */
tty->flow_ctrl = 0;
10aff4: c7 86 b8 00 00 00 00 movl $0x0,0xb8(%esi)
10affb: 00 00 00
/*
* set low/highwater mark for XON/XOFF support
*/
tty->lowwater = tty->rawInBuf.Size * 1/2;
10affe: 8b 46 64 mov 0x64(%esi),%eax
10b001: d1 e8 shr %eax
10b003: 89 86 bc 00 00 00 mov %eax,0xbc(%esi)
tty->highwater = tty->rawInBuf.Size * 3/4;
10b009: 8b 46 64 mov 0x64(%esi),%eax
10b00c: 8d 04 40 lea (%eax,%eax,2),%eax
10b00f: c1 e8 02 shr $0x2,%eax
10b012: 89 86 c0 00 00 00 mov %eax,0xc0(%esi)
/*
* Bump name characer
*/
if (c++ == 'z')
10b018: a0 20 50 12 00 mov 0x125020,%al
10b01d: 8d 48 01 lea 0x1(%eax),%ecx
10b020: 88 0d 20 50 12 00 mov %cl,0x125020
10b026: 3c 7a cmp $0x7a,%al
10b028: 0f 85 e2 fc ff ff jne 10ad10 <rtems_termios_open+0x54><== ALWAYS TAKEN
c = 'a';
10b02e: c6 05 20 50 12 00 61 movb $0x61,0x125020 <== NOT EXECUTED
10b035: e9 d6 fc ff ff jmp 10ad10 <rtems_termios_open+0x54><== NOT EXECUTED
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
if (tty == NULL) {
rtems_semaphore_release (rtems_termios_ttyMutex);
10b03a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b03d: ff 35 2c 72 12 00 pushl 0x12722c <== NOT EXECUTED
10b043: e8 98 0d 00 00 call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
10b048: c7 45 e4 1a 00 00 00 movl $0x1a,-0x1c(%ebp) <== NOT EXECUTED
return RTEMS_NO_MEMORY;
10b04f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b052: e9 ff fc ff ff jmp 10ad56 <rtems_termios_open+0x9a><== NOT EXECUTED
* allocate raw input buffer
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
if (tty->rawInBuf.theBuf == NULL) {
free(tty);
10b057: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
if (tty->rawOutBuf.theBuf == NULL) {
free((void *)(tty->rawInBuf.theBuf));
free(tty);
10b05a: 56 push %esi <== NOT EXECUTED
10b05b: e8 84 d5 ff ff call 1085e4 <free> <== NOT EXECUTED
rtems_semaphore_release (rtems_termios_ttyMutex);
10b060: 59 pop %ecx <== NOT EXECUTED
10b061: ff 35 2c 72 12 00 pushl 0x12722c <== NOT EXECUTED
10b067: e8 74 0d 00 00 call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
10b06c: c7 45 e4 1a 00 00 00 movl $0x1a,-0x1c(%ebp) <== NOT EXECUTED
return RTEMS_NO_MEMORY;
10b073: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b076: e9 db fc ff ff jmp 10ad56 <rtems_termios_open+0x9a><== NOT EXECUTED
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
if (tty->rawOutBuf.theBuf == NULL) {
free((void *)(tty->rawInBuf.theBuf));
10b07b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b07e: ff 76 58 pushl 0x58(%esi) <== NOT EXECUTED
10b081: e8 5e d5 ff ff call 1085e4 <free> <== NOT EXECUTED
free(tty);
10b086: 5b pop %ebx <== NOT EXECUTED
10b087: eb d1 jmp 10b05a <rtems_termios_open+0x39e><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
if ((tty->device.pollRead == NULL) ||
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
sc = rtems_semaphore_create (
10b089: 83 ec 0c sub $0xc,%esp
10b08c: 8b 45 e0 mov -0x20(%ebp),%eax
10b08f: 83 c0 68 add $0x68,%eax
10b092: 50 push %eax
10b093: 6a 00 push $0x0
10b095: 6a 24 push $0x24
10b097: 6a 00 push $0x0
10b099: 0f be 05 20 50 12 00 movsbl 0x125020,%eax
10b0a0: 0d 00 72 52 54 or $0x54527200,%eax
10b0a5: 50 push %eax
10b0a6: 89 55 dc mov %edx,-0x24(%ebp)
10b0a9: e8 be 09 00 00 call 10ba6c <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)
10b0ae: 83 c4 20 add $0x20,%esp
10b0b1: 85 c0 test %eax,%eax
10b0b3: 8b 55 dc mov -0x24(%ebp),%edx
10b0b6: 0f 84 e1 fe ff ff je 10af9d <rtems_termios_open+0x2e1><== ALWAYS TAKEN
sc = rtems_task_start(tty->txTaskId,
rtems_termios_txdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
10b0bc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b0bf: 50 push %eax <== NOT EXECUTED
10b0c0: e8 2f 12 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
if (tty->cbuf == NULL) {
free((void *)(tty->rawOutBuf.theBuf));
10b0c5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b0c8: ff 71 7c pushl 0x7c(%ecx) <== NOT EXECUTED
10b0cb: e8 14 d5 ff ff call 1085e4 <free> <== NOT EXECUTED
free((void *)(tty->rawInBuf.theBuf));
10b0d0: 5a pop %edx <== NOT EXECUTED
10b0d1: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED
10b0d4: ff 76 58 pushl 0x58(%esi) <== NOT EXECUTED
10b0d7: e8 08 d5 ff ff call 1085e4 <free> <== NOT EXECUTED
free(tty);
10b0dc: 58 pop %eax <== NOT EXECUTED
10b0dd: e9 78 ff ff ff jmp 10b05a <rtems_termios_open+0x39e><== NOT EXECUTED
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
sc = rtems_task_create (
10b0e2: 51 push %ecx <== NOT EXECUTED
10b0e3: 51 push %ecx <== NOT EXECUTED
10b0e4: 05 c8 00 00 00 add $0xc8,%eax <== NOT EXECUTED
10b0e9: 50 push %eax <== NOT EXECUTED
10b0ea: 6a 00 push $0x0 <== NOT EXECUTED
10b0ec: 68 00 05 00 00 push $0x500 <== NOT EXECUTED
10b0f1: 68 00 04 00 00 push $0x400 <== NOT EXECUTED
10b0f6: 6a 0a push $0xa <== NOT EXECUTED
10b0f8: 0f be 05 20 50 12 00 movsbl 0x125020,%eax <== NOT EXECUTED
10b0ff: 0d 00 54 78 54 or $0x54785400,%eax <== NOT EXECUTED
10b104: 50 push %eax <== NOT EXECUTED
10b105: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
10b108: e8 73 0d 00 00 call 10be80 <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)
10b10d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10b110: 85 c0 test %eax,%eax <== NOT EXECUTED
10b112: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
10b115: 75 a5 jne 10b0bc <rtems_termios_open+0x400><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_create (
10b117: 50 push %eax <== NOT EXECUTED
10b118: 50 push %eax <== NOT EXECUTED
10b119: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10b11c: 05 c4 00 00 00 add $0xc4,%eax <== NOT EXECUTED
10b121: 50 push %eax <== NOT EXECUTED
10b122: 6a 00 push $0x0 <== NOT EXECUTED
10b124: 68 00 05 00 00 push $0x500 <== NOT EXECUTED
10b129: 68 00 04 00 00 push $0x400 <== NOT EXECUTED
10b12e: 6a 09 push $0x9 <== NOT EXECUTED
10b130: 0f be 05 20 50 12 00 movsbl 0x125020,%eax <== NOT EXECUTED
10b137: 0d 00 54 78 52 or $0x52785400,%eax <== NOT EXECUTED
10b13c: 50 push %eax <== NOT EXECUTED
10b13d: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED
10b140: e8 3b 0d 00 00 call 10be80 <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)
10b145: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
10b148: 85 c0 test %eax,%eax <== NOT EXECUTED
10b14a: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED
10b14d: 0f 84 2c fe ff ff je 10af7f <rtems_termios_open+0x2c3><== NOT EXECUTED
10b153: e9 64 ff ff ff jmp 10b0bc <rtems_termios_open+0x400><== NOT EXECUTED
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
rtems_termios_ttyTail = tty;
10b158: 89 35 30 72 12 00 mov %esi,0x127230
10b15e: e9 49 fd ff ff jmp 10aeac <rtems_termios_open+0x1f0>
00109c28 <rtems_termios_puts>:
* Send characters to device-specific code
*/
void
rtems_termios_puts (
const void *_buf, int len, struct rtems_termios_tty *tty)
{
109c28: 55 push %ebp
109c29: 89 e5 mov %esp,%ebp
109c2b: 57 push %edi
109c2c: 56 push %esi
109c2d: 53 push %ebx
109c2e: 83 ec 1c sub $0x1c,%esp
109c31: 8b 45 08 mov 0x8(%ebp),%eax
109c34: 8b 55 0c mov 0xc(%ebp),%edx
109c37: 89 55 e4 mov %edx,-0x1c(%ebp)
109c3a: 8b 5d 10 mov 0x10(%ebp),%ebx
const unsigned char *buf = _buf;
109c3d: 89 c6 mov %eax,%esi
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
109c3f: 8b bb b4 00 00 00 mov 0xb4(%ebx),%edi
109c45: 85 ff test %edi,%edi
109c47: 0f 84 eb 00 00 00 je 109d38 <rtems_termios_puts+0x110><== NEVER TAKEN
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
109c4d: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax
109c53: 89 45 e0 mov %eax,-0x20(%ebp)
while (len) {
109c56: 8b 4d e4 mov -0x1c(%ebp),%ecx
109c59: 85 c9 test %ecx,%ecx
109c5b: 0f 84 cf 00 00 00 je 109d30 <rtems_termios_puts+0x108><== NEVER TAKEN
109c61: 8d 76 00 lea 0x0(%esi),%esi
* len -= ncopy
*
* To minimize latency, the memcpy should be done
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
109c64: 8b 45 e0 mov -0x20(%ebp),%eax
109c67: 40 inc %eax
109c68: 8b 8b 88 00 00 00 mov 0x88(%ebx),%ecx
109c6e: 31 d2 xor %edx,%edx
109c70: f7 f1 div %ecx
109c72: 89 55 dc mov %edx,-0x24(%ebp)
109c75: 89 55 e0 mov %edx,-0x20(%ebp)
rtems_interrupt_disable (level);
109c78: 9c pushf
109c79: fa cli
109c7a: 5f pop %edi
while (newHead == tty->rawOutBuf.Tail) {
109c7b: 8b 93 84 00 00 00 mov 0x84(%ebx),%edx
109c81: 3b 55 e0 cmp -0x20(%ebp),%edx
109c84: 75 3e jne 109cc4 <rtems_termios_puts+0x9c>
109c86: 89 f8 mov %edi,%eax
109c88: 89 f7 mov %esi,%edi
109c8a: 89 d6 mov %edx,%esi
tty->rawOutBufState = rob_wait;
109c8c: c7 83 94 00 00 00 02 movl $0x2,0x94(%ebx)
109c93: 00 00 00
rtems_interrupt_enable (level);
109c96: 50 push %eax
109c97: 9d popf
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
109c98: 52 push %edx
109c99: 6a 00 push $0x0
109c9b: 6a 00 push $0x0
109c9d: ff b3 8c 00 00 00 pushl 0x8c(%ebx)
109ca3: e8 3c 20 00 00 call 10bce4 <rtems_semaphore_obtain>
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
109ca8: 83 c4 10 add $0x10,%esp
109cab: 85 c0 test %eax,%eax
109cad: 0f 85 a0 00 00 00 jne 109d53 <rtems_termios_puts+0x12b><== NEVER TAKEN
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
109cb3: 9c pushf
109cb4: fa cli
109cb5: 58 pop %eax
* 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) {
109cb6: 8b 93 84 00 00 00 mov 0x84(%ebx),%edx
109cbc: 39 f2 cmp %esi,%edx
109cbe: 74 cc je 109c8c <rtems_termios_puts+0x64><== NEVER TAKEN
109cc0: 89 fe mov %edi,%esi
109cc2: 89 c7 mov %eax,%edi
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;
109cc4: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax
109cca: 8b 4b 7c mov 0x7c(%ebx),%ecx
109ccd: 8a 16 mov (%esi),%dl
109ccf: 88 14 01 mov %dl,(%ecx,%eax,1)
tty->rawOutBuf.Head = newHead;
109cd2: 8b 45 dc mov -0x24(%ebp),%eax
109cd5: 89 83 80 00 00 00 mov %eax,0x80(%ebx)
if (tty->rawOutBufState == rob_idle) {
109cdb: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax
109ce1: 85 c0 test %eax,%eax
109ce3: 75 23 jne 109d08 <rtems_termios_puts+0xe0>
/* check, whether XOFF has been received */
if (!(tty->flow_ctrl & FL_ORCVXOF)) {
109ce5: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
109ceb: a8 10 test $0x10,%al
109ced: 74 26 je 109d15 <rtems_termios_puts+0xed><== ALWAYS TAKEN
(*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
}
else {
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
109cef: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109cf5: 83 c8 20 or $0x20,%eax <== NOT EXECUTED
109cf8: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
}
tty->rawOutBufState = rob_busy;
109cfe: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx)
109d05: 00 00 00
}
rtems_interrupt_enable (level);
109d08: 57 push %edi
109d09: 9d popf
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
while (len) {
109d0a: ff 4d e4 decl -0x1c(%ebp)
109d0d: 74 21 je 109d30 <rtems_termios_puts+0x108>
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;
109d0f: 46 inc %esi
109d10: e9 4f ff ff ff jmp 109c64 <rtems_termios_puts+0x3c>
tty->rawOutBuf.Head = newHead;
if (tty->rawOutBufState == rob_idle) {
/* check, whether XOFF has been received */
if (!(tty->flow_ctrl & FL_ORCVXOF)) {
(*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
109d15: 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,
109d1b: 51 push %ecx
109d1c: 6a 01 push $0x1
109d1e: 03 43 7c add 0x7c(%ebx),%eax
109d21: 50 push %eax
109d22: ff 73 10 pushl 0x10(%ebx)
109d25: ff 93 a4 00 00 00 call *0xa4(%ebx)
109d2b: 83 c4 10 add $0x10,%esp
109d2e: eb ce jmp 109cfe <rtems_termios_puts+0xd6>
tty->rawOutBufState = rob_busy;
}
rtems_interrupt_enable (level);
len--;
}
}
109d30: 8d 65 f4 lea -0xc(%ebp),%esp
109d33: 5b pop %ebx
109d34: 5e pop %esi
109d35: 5f pop %edi
109d36: c9 leave
109d37: c3 ret
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);
109d38: 89 55 10 mov %edx,0x10(%ebp) <== NOT EXECUTED
109d3b: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED
109d3e: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED
109d41: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
109d44: 8b 83 a4 00 00 00 mov 0xa4(%ebx),%eax <== NOT EXECUTED
tty->rawOutBufState = rob_busy;
}
rtems_interrupt_enable (level);
len--;
}
}
109d4a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
109d4d: 5b pop %ebx <== NOT EXECUTED
109d4e: 5e pop %esi <== NOT EXECUTED
109d4f: 5f pop %edi <== NOT EXECUTED
109d50: 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);
109d51: ff e0 jmp *%eax <== NOT EXECUTED
rtems_interrupt_enable (level);
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
109d53: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
109d56: 50 push %eax <== NOT EXECUTED
109d57: e8 98 25 00 00 call 10c2f4 <rtems_fatal_error_occurred><== NOT EXECUTED
0010a384 <rtems_termios_read>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
10a384: 55 push %ebp
10a385: 89 e5 mov %esp,%ebp
10a387: 57 push %edi
10a388: 56 push %esi
10a389: 53 push %ebx
10a38a: 83 ec 30 sub $0x30,%esp
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
10a38d: 8b 55 08 mov 0x8(%ebp),%edx
10a390: 8b 02 mov (%edx),%eax
10a392: 8b 58 34 mov 0x34(%eax),%ebx
uint32_t count = args->count;
10a395: 8b 4a 10 mov 0x10(%edx),%ecx
10a398: 89 4d dc mov %ecx,-0x24(%ebp)
char *buffer = args->buffer;
10a39b: 8b 42 0c mov 0xc(%edx),%eax
10a39e: 89 45 d8 mov %eax,-0x28(%ebp)
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
10a3a1: 6a 00 push $0x0
10a3a3: 6a 00 push $0x0
10a3a5: ff 73 14 pushl 0x14(%ebx)
10a3a8: e8 37 19 00 00 call 10bce4 <rtems_semaphore_obtain>
10a3ad: 89 45 e0 mov %eax,-0x20(%ebp)
if (sc != RTEMS_SUCCESSFUL)
10a3b0: 83 c4 10 add $0x10,%esp
10a3b3: 85 c0 test %eax,%eax
10a3b5: 75 35 jne 10a3ec <rtems_termios_read+0x68><== NEVER TAKEN
return sc;
if (rtems_termios_linesw[tty->t_line].l_read != NULL) {
10a3b7: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax
10a3bd: c1 e0 05 shl $0x5,%eax
10a3c0: 8b 80 a8 6e 12 00 mov 0x126ea8(%eax),%eax
10a3c6: 85 c0 test %eax,%eax
10a3c8: 74 2e je 10a3f8 <rtems_termios_read+0x74><== ALWAYS TAKEN
sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);
10a3ca: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10a3cd: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED
10a3d0: 53 push %ebx <== NOT EXECUTED
10a3d1: ff d0 call *%eax <== NOT EXECUTED
10a3d3: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
10a3d6: c7 83 e4 00 00 00 00 movl $0x0,0xe4(%ebx) <== NOT EXECUTED
10a3dd: 00 00 00
rtems_semaphore_release (tty->isem);
10a3e0: 59 pop %ecx <== NOT EXECUTED
10a3e1: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED
10a3e4: e8 f7 19 00 00 call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
return sc;
10a3e9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
args->bytes_moved = args->count - count;
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
return sc;
}
10a3ec: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10a3ef: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10a3f2: 5b pop %ebx <== NOT EXECUTED
10a3f3: 5e pop %esi <== NOT EXECUTED
10a3f4: 5f pop %edi <== NOT EXECUTED
10a3f5: c9 leave <== NOT EXECUTED
10a3f6: c3 ret <== NOT EXECUTED
10a3f7: 90 nop <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
return sc;
}
if (tty->cindex == tty->ccount) {
10a3f8: 8b 43 24 mov 0x24(%ebx),%eax
10a3fb: 3b 43 20 cmp 0x20(%ebx),%eax
10a3fe: 74 5f je 10a45f <rtems_termios_read+0xdb><== ALWAYS TAKEN
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
10a400: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
10a403: 85 c9 test %ecx,%ecx <== NOT EXECUTED
10a405: 74 29 je 10a430 <rtems_termios_read+0xac><== NOT EXECUTED
10a407: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED
10a40a: 3b 43 20 cmp 0x20(%ebx),%eax <== NOT EXECUTED
10a40d: 7d 21 jge 10a430 <rtems_termios_read+0xac><== NOT EXECUTED
10a40f: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED
10a412: 8b 7d dc mov -0x24(%ebp),%edi <== NOT EXECUTED
10a415: eb 06 jmp 10a41d <rtems_termios_read+0x99><== NOT EXECUTED
10a417: 90 nop <== NOT EXECUTED
10a418: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED
10a41b: 7e 10 jle 10a42d <rtems_termios_read+0xa9><== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
10a41d: 8b 73 1c mov 0x1c(%ebx),%esi <== NOT EXECUTED
10a420: 8a 0c 06 mov (%esi,%eax,1),%cl <== NOT EXECUTED
10a423: 88 0a mov %cl,(%edx) <== NOT EXECUTED
10a425: 42 inc %edx <== NOT EXECUTED
10a426: 40 inc %eax <== NOT EXECUTED
10a427: 89 43 24 mov %eax,0x24(%ebx) <== NOT EXECUTED
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
10a42a: 4f dec %edi <== NOT EXECUTED
10a42b: 75 eb jne 10a418 <rtems_termios_read+0x94><== NOT EXECUTED
10a42d: 89 7d dc mov %edi,-0x24(%ebp) <== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
count--;
}
args->bytes_moved = args->count - count;
10a430: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
10a433: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED
10a436: 2b 45 dc sub -0x24(%ebp),%eax <== NOT EXECUTED
10a439: 89 42 18 mov %eax,0x18(%edx) <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
10a43c: c7 83 e4 00 00 00 00 movl $0x0,0xe4(%ebx) <== NOT EXECUTED
10a443: 00 00 00
rtems_semaphore_release (tty->isem);
10a446: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10a449: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED
10a44c: e8 8f 19 00 00 call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
return sc;
10a451: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10a454: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10a457: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10a45a: 5b pop %ebx <== NOT EXECUTED
10a45b: 5e pop %esi <== NOT EXECUTED
10a45c: 5f pop %edi <== NOT EXECUTED
10a45d: c9 leave <== NOT EXECUTED
10a45e: c3 ret <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
return sc;
}
if (tty->cindex == tty->ccount) {
tty->cindex = tty->ccount = 0;
10a45f: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx)
10a466: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
tty->read_start_column = tty->column;
10a46d: 8b 43 28 mov 0x28(%ebx),%eax
10a470: 89 43 2c mov %eax,0x2c(%ebx)
if (tty->device.pollRead != NULL
&& tty->device.outputUsesInterrupts == TERMIOS_POLLED)
10a473: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax
return sc;
}
if (tty->cindex == tty->ccount) {
tty->cindex = tty->ccount = 0;
tty->read_start_column = tty->column;
if (tty->device.pollRead != NULL
10a479: 85 c0 test %eax,%eax
10a47b: 74 0e je 10a48b <rtems_termios_read+0x107><== ALWAYS TAKEN
&& tty->device.outputUsesInterrupts == TERMIOS_POLLED)
10a47d: 8b 93 b4 00 00 00 mov 0xb4(%ebx),%edx <== NOT EXECUTED
10a483: 85 d2 test %edx,%edx <== NOT EXECUTED
10a485: 0f 84 82 01 00 00 je 10a60d <rtems_termios_read+0x289><== 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;
10a48b: 8b 73 74 mov 0x74(%ebx),%esi
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,
10a48e: 8d 53 49 lea 0x49(%ebx),%edx
10a491: 89 55 d4 mov %edx,-0x2c(%ebp)
10a494: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp)
10a49b: 90 nop
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
10a49c: 8b 53 5c mov 0x5c(%ebx),%edx
10a49f: 8b 43 60 mov 0x60(%ebx),%eax
10a4a2: 39 c2 cmp %eax,%edx
10a4a4: 0f 84 06 01 00 00 je 10a5b0 <rtems_termios_read+0x22c><== ALWAYS TAKEN
10a4aa: a1 14 50 12 00 mov 0x125014,%eax <== NOT EXECUTED
10a4af: 48 dec %eax <== NOT EXECUTED
10a4b0: 3b 43 20 cmp 0x20(%ebx),%eax <== NOT EXECUTED
10a4b3: 7f 3c jg 10a4f1 <rtems_termios_read+0x16d><== NOT EXECUTED
10a4b5: e9 f6 00 00 00 jmp 10a5b0 <rtems_termios_read+0x22c><== NOT EXECUTED
10a4ba: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
}
/* continue processing new character */
if (tty->termios.c_lflag & ICANON) {
if (siproc (c, tty))
10a4bc: 0f b6 c1 movzbl %cl,%eax <== NOT EXECUTED
10a4bf: 89 da mov %ebx,%edx <== NOT EXECUTED
10a4c1: e8 3e fd ff ff call 10a204 <siproc> <== NOT EXECUTED
10a4c6: 85 c0 test %eax,%eax <== NOT EXECUTED
10a4c8: 74 07 je 10a4d1 <rtems_termios_read+0x14d><== NOT EXECUTED
wait = 0;
}
else {
siproc (c, tty);
if (tty->ccount >= tty->termios.c_cc[VMIN])
10a4ca: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
wait = 0;
}
timeout = tty->rawInBufSemaphoreTimeout;
10a4d1: 8b 73 70 mov 0x70(%ebx),%esi <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
10a4d4: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED
10a4d7: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED
10a4da: 39 c2 cmp %eax,%edx <== NOT EXECUTED
10a4dc: 0f 84 ce 00 00 00 je 10a5b0 <rtems_termios_read+0x22c><== NOT EXECUTED
10a4e2: a1 14 50 12 00 mov 0x125014,%eax <== NOT EXECUTED
10a4e7: 48 dec %eax <== NOT EXECUTED
10a4e8: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED
10a4eb: 0f 8d bf 00 00 00 jge 10a5b0 <rtems_termios_read+0x22c><== NOT EXECUTED
(tty->ccount < (CBUFSIZE-1))) {
unsigned char c;
unsigned int newHead;
newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;
10a4f1: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED
10a4f4: 8b 4b 64 mov 0x64(%ebx),%ecx <== NOT EXECUTED
10a4f7: 40 inc %eax <== NOT EXECUTED
10a4f8: 31 d2 xor %edx,%edx <== NOT EXECUTED
10a4fa: f7 f1 div %ecx <== NOT EXECUTED
c = tty->rawInBuf.theBuf[newHead];
10a4fc: 8b 43 58 mov 0x58(%ebx),%eax <== NOT EXECUTED
10a4ff: 8a 0c 10 mov (%eax,%edx,1),%cl <== NOT EXECUTED
tty->rawInBuf.Head = newHead;
10a502: 89 53 5c mov %edx,0x5c(%ebx) <== NOT EXECUTED
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
10a505: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED
10a508: 8b 7b 64 mov 0x64(%ebx),%edi <== NOT EXECUTED
10a50b: 8b 73 64 mov 0x64(%ebx),%esi <== NOT EXECUTED
10a50e: 8d 04 07 lea (%edi,%eax,1),%eax <== NOT EXECUTED
10a511: 29 d0 sub %edx,%eax <== NOT EXECUTED
10a513: 31 d2 xor %edx,%edx <== NOT EXECUTED
10a515: f7 f6 div %esi <== NOT EXECUTED
10a517: 3b 93 bc 00 00 00 cmp 0xbc(%ebx),%edx <== NOT EXECUTED
10a51d: 73 5d jae 10a57c <rtems_termios_read+0x1f8><== NOT EXECUTED
% tty->rawInBuf.Size)
< tty->lowwater) {
tty->flow_ctrl &= ~FL_IREQXOF;
10a51f: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
10a525: 83 e0 fe and $0xfffffffe,%eax <== NOT EXECUTED
10a528: 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))
10a52e: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
10a534: 25 02 02 00 00 and $0x202,%eax <== NOT EXECUTED
10a539: 3d 02 02 00 00 cmp $0x202,%eax <== NOT EXECUTED
10a53e: 0f 84 94 00 00 00 je 10a5d8 <rtems_termios_read+0x254><== NOT EXECUTED
/* XON should be sent now... */
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTART]),
1);
}
else if (tty->flow_ctrl & FL_MDRTS) {
10a544: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
10a54a: f6 c4 01 test $0x1,%ah <== NOT EXECUTED
10a54d: 74 2d je 10a57c <rtems_termios_read+0x1f8><== NOT EXECUTED
tty->flow_ctrl &= ~FL_IRTSOFF;
10a54f: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
10a555: 83 e0 fb and $0xfffffffb,%eax <== NOT EXECUTED
10a558: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
10a55e: 8b 83 b0 00 00 00 mov 0xb0(%ebx),%eax <== NOT EXECUTED
10a564: 85 c0 test %eax,%eax <== NOT EXECUTED
10a566: 74 14 je 10a57c <rtems_termios_read+0x1f8><== NOT EXECUTED
tty->device.startRemoteTx(tty->minor);
10a568: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10a56b: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
10a56e: 88 4d d0 mov %cl,-0x30(%ebp) <== NOT EXECUTED
10a571: ff d0 call *%eax <== NOT EXECUTED
10a573: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10a576: 8a 4d d0 mov -0x30(%ebp),%cl <== NOT EXECUTED
10a579: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
}
}
/* continue processing new character */
if (tty->termios.c_lflag & ICANON) {
10a57c: f6 43 3c 02 testb $0x2,0x3c(%ebx) <== NOT EXECUTED
10a580: 0f 85 36 ff ff ff jne 10a4bc <rtems_termios_read+0x138><== NOT EXECUTED
if (siproc (c, tty))
wait = 0;
}
else {
siproc (c, tty);
10a586: 0f b6 c1 movzbl %cl,%eax <== NOT EXECUTED
10a589: 89 da mov %ebx,%edx <== NOT EXECUTED
10a58b: e8 74 fc ff ff call 10a204 <siproc> <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
10a590: 0f b6 43 47 movzbl 0x47(%ebx),%eax <== NOT EXECUTED
10a594: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED
10a597: 0f 8d 2d ff ff ff jge 10a4ca <rtems_termios_read+0x146><== NOT EXECUTED
wait = 0;
}
timeout = tty->rawInBufSemaphoreTimeout;
10a59d: 8b 73 70 mov 0x70(%ebx),%esi <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
10a5a0: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED
10a5a3: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED
10a5a6: 39 c2 cmp %eax,%edx <== NOT EXECUTED
10a5a8: 0f 85 34 ff ff ff jne 10a4e2 <rtems_termios_read+0x15e><== NOT EXECUTED
10a5ae: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
/*
* Wait for characters
*/
if ( wait ) {
10a5b0: 8b 45 e4 mov -0x1c(%ebp),%eax
10a5b3: 85 c0 test %eax,%eax
10a5b5: 0f 84 45 fe ff ff je 10a400 <rtems_termios_read+0x7c><== NEVER TAKEN
sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore,
10a5bb: 57 push %edi
10a5bc: 56 push %esi
10a5bd: ff 73 6c pushl 0x6c(%ebx)
10a5c0: ff 73 68 pushl 0x68(%ebx)
10a5c3: e8 1c 17 00 00 call 10bce4 <rtems_semaphore_obtain>
tty->rawInBufSemaphoreOptions,
timeout);
if (sc != RTEMS_SUCCESSFUL)
10a5c8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10a5cb: 85 c0 test %eax,%eax <== NOT EXECUTED
10a5cd: 0f 84 c9 fe ff ff je 10a49c <rtems_termios_read+0x118><== NOT EXECUTED
10a5d3: e9 28 fe ff ff jmp 10a400 <rtems_termios_read+0x7c><== 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))
10a5d8: 8b b3 94 00 00 00 mov 0x94(%ebx),%esi <== NOT EXECUTED
10a5de: 85 f6 test %esi,%esi <== NOT EXECUTED
10a5e0: 74 0e je 10a5f0 <rtems_termios_read+0x26c><== NOT EXECUTED
== (FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
|| (tty->flow_ctrl & FL_OSTOP))) {
10a5e2: 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))
10a5e8: a8 20 test $0x20,%al <== NOT EXECUTED
10a5ea: 0f 84 54 ff ff ff je 10a544 <rtems_termios_read+0x1c0><== 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,
10a5f0: 52 push %edx <== NOT EXECUTED
10a5f1: 6a 01 push $0x1 <== NOT EXECUTED
10a5f3: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED
10a5f6: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
10a5f9: 88 4d d0 mov %cl,-0x30(%ebp) <== NOT EXECUTED
10a5fc: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
10a602: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10a605: 8a 4d d0 mov -0x30(%ebp),%cl <== NOT EXECUTED
10a608: e9 6f ff ff ff jmp 10a57c <rtems_termios_read+0x1f8><== NOT EXECUTED
static rtems_status_code
fillBufferPoll (struct rtems_termios_tty *tty)
{
int n;
if (tty->termios.c_lflag & ICANON) {
10a60d: f6 43 3c 02 testb $0x2,0x3c(%ebx) <== NOT EXECUTED
10a611: 75 1d jne 10a630 <rtems_termios_read+0x2ac><== NOT EXECUTED
10a613: eb 39 jmp 10a64e <rtems_termios_read+0x2ca><== NOT EXECUTED
10a615: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
n = (*tty->device.pollRead)(tty->minor);
if (n < 0) {
rtems_task_wake_after (1);
}
else {
if (siproc (n, tty))
10a618: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
10a61b: 89 da mov %ebx,%edx <== NOT EXECUTED
10a61d: e8 e2 fb ff ff call 10a204 <siproc> <== NOT EXECUTED
10a622: 85 c0 test %eax,%eax <== NOT EXECUTED
10a624: 0f 85 d6 fd ff ff jne 10a400 <rtems_termios_read+0x7c><== NOT EXECUTED
static rtems_status_code
fillBufferPoll (struct rtems_termios_tty *tty)
{
int n;
if (tty->termios.c_lflag & ICANON) {
10a62a: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax <== NOT EXECUTED
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
10a630: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10a633: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
10a636: ff d0 call *%eax <== NOT EXECUTED
if (n < 0) {
10a638: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10a63b: 85 c0 test %eax,%eax <== NOT EXECUTED
10a63d: 79 d9 jns 10a618 <rtems_termios_read+0x294><== NOT EXECUTED
rtems_task_wake_after (1);
10a63f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10a642: 6a 01 push $0x1 <== NOT EXECUTED
10a644: e8 4f 1b 00 00 call 10c198 <rtems_task_wake_after> <== NOT EXECUTED
10a649: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10a64c: eb dc jmp 10a62a <rtems_termios_read+0x2a6><== NOT EXECUTED
}
}
}
else {
rtems_interval then, now;
then = rtems_clock_get_ticks_since_boot();
10a64e: e8 a9 0f 00 00 call 10b5fc <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
10a653: 89 c6 mov %eax,%esi <== NOT EXECUTED
10a655: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
10a658: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10a65b: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
10a65e: ff 93 a0 00 00 00 call *0xa0(%ebx) <== NOT EXECUTED
if (n < 0) {
10a664: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10a667: 85 c0 test %eax,%eax <== NOT EXECUTED
10a669: 78 25 js 10a690 <rtems_termios_read+0x30c><== NOT EXECUTED
}
}
rtems_task_wake_after (1);
}
else {
siproc (n, tty);
10a66b: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
10a66e: 89 da mov %ebx,%edx <== NOT EXECUTED
10a670: e8 8f fb ff ff call 10a204 <siproc> <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
10a675: 8a 43 47 mov 0x47(%ebx),%al <== NOT EXECUTED
10a678: 0f b6 d0 movzbl %al,%edx <== NOT EXECUTED
10a67b: 39 53 20 cmp %edx,0x20(%ebx) <== NOT EXECUTED
10a67e: 0f 8d 7c fd ff ff jge 10a400 <rtems_termios_read+0x7c><== NOT EXECUTED
break;
if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])
10a684: 84 c0 test %al,%al <== NOT EXECUTED
10a686: 74 d0 je 10a658 <rtems_termios_read+0x2d4><== NOT EXECUTED
10a688: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED
10a68c: 74 ca je 10a658 <rtems_termios_read+0x2d4><== NOT EXECUTED
10a68e: eb be jmp 10a64e <rtems_termios_read+0x2ca><== NOT EXECUTED
rtems_interval then, now;
then = rtems_clock_get_ticks_since_boot();
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
if (n < 0) {
if (tty->termios.c_cc[VMIN]) {
10a690: 80 7b 47 00 cmpb $0x0,0x47(%ebx) <== NOT EXECUTED
10a694: 74 1d je 10a6b3 <rtems_termios_read+0x32f><== NOT EXECUTED
if (tty->termios.c_cc[VTIME] && tty->ccount) {
10a696: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED
10a69a: 74 08 je 10a6a4 <rtems_termios_read+0x320><== NOT EXECUTED
10a69c: 8b 7b 20 mov 0x20(%ebx),%edi <== NOT EXECUTED
10a69f: 85 ff test %edi,%edi <== NOT EXECUTED
10a6a1: 75 1a jne 10a6bd <rtems_termios_read+0x339><== NOT EXECUTED
10a6a3: 90 nop <== NOT EXECUTED
now = rtems_clock_get_ticks_since_boot();
if ((now - then) > tty->vtimeTicks) {
break;
}
}
rtems_task_wake_after (1);
10a6a4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10a6a7: 6a 01 push $0x1 <== NOT EXECUTED
10a6a9: e8 ea 1a 00 00 call 10c198 <rtems_task_wake_after> <== NOT EXECUTED
10a6ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10a6b1: eb a5 jmp 10a658 <rtems_termios_read+0x2d4><== NOT EXECUTED
break;
}
}
}
else {
if (!tty->termios.c_cc[VTIME])
10a6b3: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED
10a6b7: 0f 84 43 fd ff ff je 10a400 <rtems_termios_read+0x7c><== NOT EXECUTED
break;
now = rtems_clock_get_ticks_since_boot();
10a6bd: e8 3a 0f 00 00 call 10b5fc <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
if ((now - then) > tty->vtimeTicks) {
10a6c2: 29 f0 sub %esi,%eax <== NOT EXECUTED
10a6c4: 3b 43 54 cmp 0x54(%ebx),%eax <== NOT EXECUTED
10a6c7: 76 db jbe 10a6a4 <rtems_termios_read+0x320><== NOT EXECUTED
10a6c9: e9 32 fd ff ff jmp 10a400 <rtems_termios_read+0x7c><== NOT EXECUTED
00109690 <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)
{
109690: 55 push %ebp
109691: 89 e5 mov %esp,%ebp
109693: 57 push %edi
109694: 56 push %esi
109695: 53 push %ebx
109696: 83 ec 0c sub $0xc,%esp
109699: 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))
10969c: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
1096a2: 25 03 04 00 00 and $0x403,%eax
1096a7: 3d 01 04 00 00 cmp $0x401,%eax
1096ac: 0f 84 86 01 00 00 je 109838 <rtems_termios_refill_transmitter+0x1a8><== NEVER TAKEN
tty->flow_ctrl |= FL_ISNTXOF;
rtems_interrupt_enable(level);
nToSend = 1;
}
else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF))
1096b2: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
1096b8: 83 e0 03 and $0x3,%eax
1096bb: 83 f8 02 cmp $0x2,%eax
1096be: 0f 84 b0 01 00 00 je 109874 <rtems_termios_refill_transmitter+0x1e4><== NEVER TAKEN
rtems_interrupt_enable(level);
nToSend = 1;
}
else {
if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
1096c4: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx
1096ca: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax
1096d0: 39 c2 cmp %eax,%edx
1096d2: 0f 84 b0 00 00 00 je 109788 <rtems_termios_refill_transmitter+0xf8><== NEVER TAKEN
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
}
return 0;
}
rtems_interrupt_disable(level);
1096d8: 9c pushf
1096d9: fa cli
1096da: 58 pop %eax
len = tty->t_dqlen;
1096db: 8b 8b 90 00 00 00 mov 0x90(%ebx),%ecx
tty->t_dqlen = 0;
1096e1: c7 83 90 00 00 00 00 movl $0x0,0x90(%ebx)
1096e8: 00 00 00
rtems_interrupt_enable(level);
1096eb: 50 push %eax
1096ec: 9d popf
newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;
1096ed: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax
1096f3: 8b bb 88 00 00 00 mov 0x88(%ebx),%edi
1096f9: 8d 04 01 lea (%ecx,%eax,1),%eax
1096fc: 31 d2 xor %edx,%edx
1096fe: f7 f7 div %edi
109700: 89 d6 mov %edx,%esi
tty->rawOutBuf.Tail = newTail;
109702: 89 93 84 00 00 00 mov %edx,0x84(%ebx)
if (tty->rawOutBufState == rob_wait) {
109708: 83 bb 94 00 00 00 02 cmpl $0x2,0x94(%ebx)
10970f: 0f 84 e7 00 00 00 je 1097fc <rtems_termios_refill_transmitter+0x16c>
/*
* wake up any pending writer task
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
}
if (newTail == tty->rawOutBuf.Head) {
109715: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax
10971b: 39 f0 cmp %esi,%eax
10971d: 0f 84 81 00 00 00 je 1097a4 <rtems_termios_refill_transmitter+0x114>
if ( tty->tty_snd.sw_pfn != NULL) {
(*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);
}
}
/* check, whether output should stop due to received XOFF */
else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))
109723: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
109729: 25 10 02 00 00 and $0x210,%eax
10972e: 3d 10 02 00 00 cmp $0x210,%eax
109733: 0f 84 db 00 00 00 je 109814 <rtems_termios_refill_transmitter+0x184><== NEVER TAKEN
}
else {
/*
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
109739: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax
10973f: 39 c6 cmp %eax,%esi
109741: 0f 87 95 00 00 00 ja 1097dc <rtems_termios_refill_transmitter+0x14c>
nToSend = tty->rawOutBuf.Size - newTail;
else
nToSend = tty->rawOutBuf.Head - newTail;
109747: 8b bb 80 00 00 00 mov 0x80(%ebx),%edi
10974d: 29 f7 sub %esi,%edi
/* 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)) {
10974f: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
109755: f6 c4 06 test $0x6,%ah
109758: 0f 84 95 00 00 00 je 1097f3 <rtems_termios_refill_transmitter+0x163><== ALWAYS TAKEN
10975e: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
109763: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
nToSend = 1;
}
tty->rawOutBufState = rob_busy; /*apm*/
109768: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx)
10976f: 00 00 00
(*tty->device.write)(tty->minor,
109772: 52 push %edx
109773: 50 push %eax
109774: 8b 43 7c mov 0x7c(%ebx),%eax
109777: 01 f0 add %esi,%eax
109779: 50 push %eax
10977a: ff 73 10 pushl 0x10(%ebx)
10977d: ff 93 a4 00 00 00 call *0xa4(%ebx)
109783: 83 c4 10 add $0x10,%esp
109786: eb 44 jmp 1097cc <rtems_termios_refill_transmitter+0x13c>
else {
if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
/*
* buffer was empty
*/
if (tty->rawOutBufState == rob_wait) {
109788: 83 bb 94 00 00 00 02 cmpl $0x2,0x94(%ebx) <== NOT EXECUTED
10978f: 0f 84 03 01 00 00 je 109898 <rtems_termios_refill_transmitter+0x208><== NOT EXECUTED
109795: 31 ff xor %edi,%edi <== NOT EXECUTED
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
}
return nToSend;
}
109797: 89 f8 mov %edi,%eax <== NOT EXECUTED
109799: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10979c: 5b pop %ebx <== NOT EXECUTED
10979d: 5e pop %esi <== NOT EXECUTED
10979e: 5f pop %edi <== NOT EXECUTED
10979f: c9 leave <== NOT EXECUTED
1097a0: c3 ret <== NOT EXECUTED
1097a1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
if (newTail == tty->rawOutBuf.Head) {
/*
* Buffer has become empty
*/
tty->rawOutBufState = rob_idle;
1097a4: c7 83 94 00 00 00 00 movl $0x0,0x94(%ebx)
1097ab: 00 00 00
nToSend = 0;
/*
* check to see if snd wakeup callback was set
*/
if ( tty->tty_snd.sw_pfn != NULL) {
1097ae: 8b 83 d4 00 00 00 mov 0xd4(%ebx),%eax
1097b4: 85 c0 test %eax,%eax
1097b6: 74 7a je 109832 <rtems_termios_refill_transmitter+0x1a2><== ALWAYS TAKEN
(*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);
1097b8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
1097bb: ff b3 d8 00 00 00 pushl 0xd8(%ebx) <== NOT EXECUTED
1097c1: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED
1097c4: 52 push %edx <== NOT EXECUTED
1097c5: ff d0 call *%eax <== NOT EXECUTED
1097c7: 31 ff xor %edi,%edi <== NOT EXECUTED
1097c9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[newTail],
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
1097cc: 89 b3 84 00 00 00 mov %esi,0x84(%ebx)
}
return nToSend;
}
1097d2: 89 f8 mov %edi,%eax
1097d4: 8d 65 f4 lea -0xc(%ebp),%esp
1097d7: 5b pop %ebx
1097d8: 5e pop %esi
1097d9: 5f pop %edi
1097da: c9 leave
1097db: c3 ret
else {
/*
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
nToSend = tty->rawOutBuf.Size - newTail;
1097dc: 8b bb 88 00 00 00 mov 0x88(%ebx),%edi
1097e2: 29 f7 sub %esi,%edi
else
nToSend = tty->rawOutBuf.Head - newTail;
/* when flow control XON or XOF, don't send blocks of data */
/* to allow fast reaction on incoming flow ctrl and low latency*/
/* for outgoing flow control */
if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {
1097e4: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
1097ea: f6 c4 06 test $0x6,%ah
1097ed: 0f 85 6b ff ff ff jne 10975e <rtems_termios_refill_transmitter+0xce><== NEVER TAKEN
1097f3: 89 f8 mov %edi,%eax
1097f5: e9 6e ff ff ff jmp 109768 <rtems_termios_refill_transmitter+0xd8>
1097fa: 66 90 xchg %ax,%ax
tty->rawOutBuf.Tail = newTail;
if (tty->rawOutBufState == rob_wait) {
/*
* wake up any pending writer task
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
1097fc: 83 ec 0c sub $0xc,%esp
1097ff: ff b3 8c 00 00 00 pushl 0x8c(%ebx)
109805: e8 d6 25 00 00 call 10bde0 <rtems_semaphore_release>
10980a: 83 c4 10 add $0x10,%esp
10980d: e9 03 ff ff ff jmp 109715 <rtems_termios_refill_transmitter+0x85>
109812: 66 90 xchg %ax,%ax
/* check, whether output should stop due to received XOFF */
else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))
== (FL_MDXON | FL_ORCVXOF)) {
/* Buffer not empty, but output stops due to XOFF */
/* set flag, that output has been stopped */
rtems_interrupt_disable(level);
109814: 9c pushf <== NOT EXECUTED
109815: fa cli <== NOT EXECUTED
109816: 5a pop %edx <== NOT EXECUTED
tty->flow_ctrl |= FL_OSTOP;
109817: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
10981d: 83 c8 20 or $0x20,%eax <== NOT EXECUTED
109820: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
109826: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx) <== NOT EXECUTED
10982d: 00 00 00
rtems_interrupt_enable(level);
109830: 52 push %edx <== NOT EXECUTED
109831: 9d popf <== NOT EXECUTED
109832: 31 ff xor %edi,%edi
109834: eb 96 jmp 1097cc <rtems_termios_refill_transmitter+0x13c>
109836: 66 90 xchg %ax,%ax
/* check for XOF/XON to send */
if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))
== (FL_MDXOF | FL_IREQXOF)) {
/* XOFF should be sent now... */
(*tty->device.write)(tty->minor,
109838: 56 push %esi <== NOT EXECUTED
109839: 6a 01 push $0x1 <== NOT EXECUTED
10983b: 8d 43 4a lea 0x4a(%ebx),%eax <== NOT EXECUTED
10983e: 50 push %eax <== NOT EXECUTED
10983f: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
109842: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTOP]), 1);
rtems_interrupt_disable(level);
109848: 9c pushf <== NOT EXECUTED
109849: fa cli <== NOT EXECUTED
10984a: 5a pop %edx <== NOT EXECUTED
tty->t_dqlen--;
10984b: ff 8b 90 00 00 00 decl 0x90(%ebx) <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
109851: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109857: 83 c8 02 or $0x2,%eax <== NOT EXECUTED
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTART]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;
tty->flow_ctrl &= ~FL_ISNTXOF;
10985a: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
rtems_interrupt_enable(level);
109860: 52 push %edx <== NOT EXECUTED
109861: 9d popf <== NOT EXECUTED
109862: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
109867: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
}
return nToSend;
}
10986a: 89 f8 mov %edi,%eax <== NOT EXECUTED
10986c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10986f: 5b pop %ebx <== NOT EXECUTED
109870: 5e pop %esi <== NOT EXECUTED
109871: 5f pop %edi <== NOT EXECUTED
109872: c9 leave <== NOT EXECUTED
109873: c3 ret <== NOT EXECUTED
* FIXME: this .write call will generate another
* dequeue callback. This will advance the "Tail" in the data
* buffer, although the corresponding data is not yet out!
* Therefore the dequeue "length" should be reduced by 1
*/
(*tty->device.write)(tty->minor,
109874: 51 push %ecx <== NOT EXECUTED
109875: 6a 01 push $0x1 <== NOT EXECUTED
109877: 8d 43 49 lea 0x49(%ebx),%eax <== NOT EXECUTED
10987a: 50 push %eax <== NOT EXECUTED
10987b: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
10987e: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTART]), 1);
rtems_interrupt_disable(level);
109884: 9c pushf <== NOT EXECUTED
109885: fa cli <== NOT EXECUTED
109886: 5a pop %edx <== NOT EXECUTED
tty->t_dqlen--;
109887: ff 8b 90 00 00 00 decl 0x90(%ebx) <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
10988d: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED
109893: 83 e0 fd and $0xfffffffd,%eax <== NOT EXECUTED
109896: eb c2 jmp 10985a <rtems_termios_refill_transmitter+0x1ca><== NOT EXECUTED
*/
if (tty->rawOutBufState == rob_wait) {
/*
* this should never happen...
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
109898: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10989b: ff b3 8c 00 00 00 pushl 0x8c(%ebx) <== NOT EXECUTED
1098a1: e8 3a 25 00 00 call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
1098a6: 31 ff xor %edi,%edi <== NOT EXECUTED
1098a8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
1098ab: e9 e7 fe ff ff jmp 109797 <rtems_termios_refill_transmitter+0x107><== NOT EXECUTED
0010b1d0 <rtems_termios_rxdaemon>:
/*
* this task actually processes any receive events
*/
static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument)
{
10b1d0: 55 push %ebp <== NOT EXECUTED
10b1d1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b1d3: 57 push %edi <== NOT EXECUTED
10b1d4: 56 push %esi <== NOT EXECUTED
10b1d5: 53 push %ebx <== NOT EXECUTED
10b1d6: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
10b1d9: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
10b1dc: 8d 75 e0 lea -0x20(%ebp),%esi <== NOT EXECUTED
10b1df: 8d 7d e7 lea -0x19(%ebp),%edi <== NOT EXECUTED
10b1e2: 66 90 xchg %ax,%ax <== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
10b1e4: 56 push %esi <== NOT EXECUTED
10b1e5: 6a 00 push $0x0 <== NOT EXECUTED
10b1e7: 6a 02 push $0x2 <== NOT EXECUTED
10b1e9: 6a 03 push $0x3 <== NOT EXECUTED
10b1eb: e8 74 04 00 00 call 10b664 <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) {
10b1f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b1f3: f6 45 e0 01 testb $0x1,-0x20(%ebp) <== NOT EXECUTED
10b1f7: 75 27 jne 10b220 <rtems_termios_rxdaemon+0x50><== NOT EXECUTED
}
else {
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
10b1f9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b1fc: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED
10b1ff: ff 93 a0 00 00 00 call *0xa0(%ebx) <== NOT EXECUTED
if (c != EOF) {
10b205: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b208: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED
10b20b: 74 d7 je 10b1e4 <rtems_termios_rxdaemon+0x14><== NOT EXECUTED
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
10b20d: 88 45 e7 mov %al,-0x19(%ebp) <== NOT EXECUTED
rtems_termios_enqueue_raw_characters (
10b210: 50 push %eax <== NOT EXECUTED
10b211: 6a 01 push $0x1 <== NOT EXECUTED
10b213: 57 push %edi <== NOT EXECUTED
10b214: 53 push %ebx <== NOT EXECUTED
10b215: e8 fe e6 ff ff call 109918 <rtems_termios_enqueue_raw_characters><== NOT EXECUTED
10b21a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b21d: eb c5 jmp 10b1e4 <rtems_termios_rxdaemon+0x14><== NOT EXECUTED
10b21f: 90 nop <== NOT EXECUTED
TERMIOS_RX_TERMINATE_EVENT),
RTEMS_EVENT_ANY | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&the_event);
if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) {
tty->rxTaskId = 0;
10b220: c7 83 c4 00 00 00 00 movl $0x0,0xc4(%ebx) <== NOT EXECUTED
10b227: 00 00 00
rtems_task_delete(RTEMS_SELF);
10b22a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b22d: 6a 00 push $0x0 <== NOT EXECUTED
10b22f: e8 ac 0d 00 00 call 10bfe0 <rtems_task_delete> <== NOT EXECUTED
10b234: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b237: eb ab jmp 10b1e4 <rtems_termios_rxdaemon+0x14><== NOT EXECUTED
00109674 <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)
{
109674: 55 push %ebp <== NOT EXECUTED
109675: 89 e5 mov %esp,%ebp <== NOT EXECUTED
109677: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
/*
* send event to rx daemon task
*/
rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT);
10967a: 6a 02 push $0x2 <== NOT EXECUTED
10967c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
10967f: ff b0 c4 00 00 00 pushl 0xc4(%eax) <== NOT EXECUTED
109685: e8 5e 21 00 00 call 10b7e8 <rtems_event_send> <== NOT EXECUTED
10968a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10968d: c9 leave <== NOT EXECUTED
10968e: c3 ret <== NOT EXECUTED
0010b164 <rtems_termios_txdaemon>:
/*
* this task actually processes any transmit events
*/
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{
10b164: 55 push %ebp <== NOT EXECUTED
10b165: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10b167: 56 push %esi <== NOT EXECUTED
10b168: 53 push %ebx <== NOT EXECUTED
10b169: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
10b16c: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
10b16f: 8d 75 f4 lea -0xc(%ebp),%esi <== NOT EXECUTED
10b172: 66 90 xchg %ax,%ax <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
10b174: 56 push %esi <== NOT EXECUTED
10b175: 6a 00 push $0x0 <== NOT EXECUTED
10b177: 6a 02 push $0x2 <== NOT EXECUTED
10b179: 6a 03 push $0x3 <== NOT EXECUTED
10b17b: e8 e4 04 00 00 call 10b664 <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) {
10b180: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b183: f6 45 f4 01 testb $0x1,-0xc(%ebp) <== NOT EXECUTED
10b187: 75 2b jne 10b1b4 <rtems_termios_txdaemon+0x50><== NOT EXECUTED
}
else {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
10b189: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED
10b18f: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED
10b192: 8b 80 b4 6e 12 00 mov 0x126eb4(%eax),%eax <== NOT EXECUTED
10b198: 85 c0 test %eax,%eax <== NOT EXECUTED
10b19a: 74 09 je 10b1a5 <rtems_termios_txdaemon+0x41><== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
10b19c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b19f: 53 push %ebx <== NOT EXECUTED
10b1a0: ff d0 call *%eax <== NOT EXECUTED
10b1a2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
/*
* try to push further characters to device
*/
rtems_termios_refill_transmitter(tty);
10b1a5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b1a8: 53 push %ebx <== NOT EXECUTED
10b1a9: e8 e2 e4 ff ff call 109690 <rtems_termios_refill_transmitter><== NOT EXECUTED
10b1ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b1b1: eb c1 jmp 10b174 <rtems_termios_txdaemon+0x10><== NOT EXECUTED
10b1b3: 90 nop <== NOT EXECUTED
TERMIOS_TX_TERMINATE_EVENT),
RTEMS_EVENT_ANY | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&the_event);
if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) {
tty->txTaskId = 0;
10b1b4: c7 83 c8 00 00 00 00 movl $0x0,0xc8(%ebx) <== NOT EXECUTED
10b1bb: 00 00 00
rtems_task_delete(RTEMS_SELF);
10b1be: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10b1c1: 6a 00 push $0x0 <== NOT EXECUTED
10b1c3: e8 18 0e 00 00 call 10bfe0 <rtems_task_delete> <== NOT EXECUTED
10b1c8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10b1cb: eb a7 jmp 10b174 <rtems_termios_txdaemon+0x10><== NOT EXECUTED
0010a258 <rtems_termios_write>:
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
10a258: 55 push %ebp
10a259: 89 e5 mov %esp,%ebp
10a25b: 57 push %edi
10a25c: 56 push %esi
10a25d: 53 push %ebx
10a25e: 83 ec 20 sub $0x20,%esp
10a261: 8b 7d 08 mov 0x8(%ebp),%edi
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
10a264: 8b 07 mov (%edi),%eax
10a266: 8b 70 34 mov 0x34(%eax),%esi
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
10a269: 6a 00 push $0x0
10a26b: 6a 00 push $0x0
10a26d: ff 76 18 pushl 0x18(%esi)
10a270: e8 6f 1a 00 00 call 10bce4 <rtems_semaphore_obtain>
10a275: 89 45 e4 mov %eax,-0x1c(%ebp)
if (sc != RTEMS_SUCCESSFUL)
10a278: 83 c4 10 add $0x10,%esp
10a27b: 85 c0 test %eax,%eax
10a27d: 75 29 jne 10a2a8 <rtems_termios_write+0x50><== NEVER TAKEN
return sc;
if (rtems_termios_linesw[tty->t_line].l_write != NULL) {
10a27f: 8b 86 cc 00 00 00 mov 0xcc(%esi),%eax
10a285: c1 e0 05 shl $0x5,%eax
10a288: 8b 80 ac 6e 12 00 mov 0x126eac(%eax),%eax
10a28e: 85 c0 test %eax,%eax
10a290: 74 22 je 10a2b4 <rtems_termios_write+0x5c><== ALWAYS TAKEN
sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);
10a292: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10a295: 57 push %edi <== NOT EXECUTED
10a296: 56 push %esi <== NOT EXECUTED
10a297: ff d0 call *%eax <== NOT EXECUTED
10a299: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
10a29c: 5f pop %edi <== NOT EXECUTED
10a29d: ff 76 18 pushl 0x18(%esi) <== NOT EXECUTED
10a2a0: e8 3b 1b 00 00 call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
return sc;
10a2a5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_termios_puts (args->buffer, args->count, tty);
args->bytes_moved = args->count;
}
rtems_semaphore_release (tty->osem);
return sc;
}
10a2a8: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
10a2ab: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10a2ae: 5b pop %ebx <== NOT EXECUTED
10a2af: 5e pop %esi <== NOT EXECUTED
10a2b0: 5f pop %edi <== NOT EXECUTED
10a2b1: c9 leave <== NOT EXECUTED
10a2b2: c3 ret <== NOT EXECUTED
10a2b3: 90 nop <== NOT EXECUTED
if (rtems_termios_linesw[tty->t_line].l_write != NULL) {
sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);
rtems_semaphore_release (tty->osem);
return sc;
}
if (tty->termios.c_oflag & OPOST) {
10a2b4: f6 46 34 01 testb $0x1,0x34(%esi)
10a2b8: 74 4e je 10a308 <rtems_termios_write+0xb0><== NEVER TAKEN
uint32_t count = args->count;
10a2ba: 8b 47 10 mov 0x10(%edi),%eax
10a2bd: 89 45 e0 mov %eax,-0x20(%ebp)
char *buffer = args->buffer;
10a2c0: 8b 47 0c mov 0xc(%edi),%eax
while (count--)
10a2c3: 8b 5d e0 mov -0x20(%ebp),%ebx
10a2c6: 85 db test %ebx,%ebx
10a2c8: 74 56 je 10a320 <rtems_termios_write+0xc8><== NEVER TAKEN
10a2ca: 31 db xor %ebx,%ebx
10a2cc: 89 7d dc mov %edi,-0x24(%ebp)
10a2cf: 89 c7 mov %eax,%edi
10a2d1: 8d 76 00 lea 0x0(%esi),%esi
oproc (*buffer++, tty);
10a2d4: 0f b6 04 1f movzbl (%edi,%ebx,1),%eax
10a2d8: 89 f2 mov %esi,%edx
10a2da: e8 7d fa ff ff call 109d5c <oproc>
10a2df: 43 inc %ebx
return sc;
}
if (tty->termios.c_oflag & OPOST) {
uint32_t count = args->count;
char *buffer = args->buffer;
while (count--)
10a2e0: 3b 5d e0 cmp -0x20(%ebp),%ebx
10a2e3: 75 ef jne 10a2d4 <rtems_termios_write+0x7c>
10a2e5: 8b 7d dc mov -0x24(%ebp),%edi
10a2e8: 8b 47 10 mov 0x10(%edi),%eax
oproc (*buffer++, tty);
args->bytes_moved = args->count;
10a2eb: 89 47 18 mov %eax,0x18(%edi)
}
else {
rtems_termios_puts (args->buffer, args->count, tty);
args->bytes_moved = args->count;
}
rtems_semaphore_release (tty->osem);
10a2ee: 83 ec 0c sub $0xc,%esp
10a2f1: ff 76 18 pushl 0x18(%esi)
10a2f4: e8 e7 1a 00 00 call 10bde0 <rtems_semaphore_release>
return sc;
10a2f9: 83 c4 10 add $0x10,%esp
}
10a2fc: 8b 45 e4 mov -0x1c(%ebp),%eax
10a2ff: 8d 65 f4 lea -0xc(%ebp),%esp
10a302: 5b pop %ebx
10a303: 5e pop %esi
10a304: 5f pop %edi
10a305: c9 leave
10a306: c3 ret
10a307: 90 nop
while (count--)
oproc (*buffer++, tty);
args->bytes_moved = args->count;
}
else {
rtems_termios_puts (args->buffer, args->count, tty);
10a308: 51 push %ecx <== NOT EXECUTED
10a309: 56 push %esi <== NOT EXECUTED
10a30a: ff 77 10 pushl 0x10(%edi) <== NOT EXECUTED
10a30d: ff 77 0c pushl 0xc(%edi) <== NOT EXECUTED
10a310: e8 13 f9 ff ff call 109c28 <rtems_termios_puts> <== NOT EXECUTED
args->bytes_moved = args->count;
10a315: 8b 47 10 mov 0x10(%edi),%eax <== NOT EXECUTED
10a318: 89 47 18 mov %eax,0x18(%edi) <== NOT EXECUTED
10a31b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10a31e: eb ce jmp 10a2ee <rtems_termios_write+0x96><== NOT EXECUTED
return sc;
}
if (tty->termios.c_oflag & OPOST) {
uint32_t count = args->count;
char *buffer = args->buffer;
while (count--)
10a320: 31 c0 xor %eax,%eax <== NOT EXECUTED
10a322: eb c7 jmp 10a2eb <rtems_termios_write+0x93><== NOT EXECUTED
00118fbc <rtems_timer_cancel>:
*/
rtems_status_code rtems_timer_cancel(
rtems_id id
)
{
118fbc: 55 push %ebp
118fbd: 89 e5 mov %esp,%ebp
118fbf: 83 ec 1c sub $0x1c,%esp
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
118fc2: 8d 45 f4 lea -0xc(%ebp),%eax
118fc5: 50 push %eax
118fc6: ff 75 08 pushl 0x8(%ebp)
118fc9: 68 e0 2a 14 00 push $0x142ae0
118fce: e8 ad 28 00 00 call 11b880 <_Objects_Get>
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
118fd3: 83 c4 10 add $0x10,%esp
118fd6: 8b 55 f4 mov -0xc(%ebp),%edx
118fd9: 85 d2 test %edx,%edx
118fdb: 74 07 je 118fe4 <rtems_timer_cancel+0x28>
118fdd: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
118fe2: c9 leave
118fe3: c3 ret
the_timer = _Timer_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Timer_Is_dormant_class( the_timer->the_class ) )
118fe4: 83 78 38 04 cmpl $0x4,0x38(%eax)
118fe8: 74 0f je 118ff9 <rtems_timer_cancel+0x3d><== NEVER TAKEN
(void) _Watchdog_Remove( &the_timer->Ticker );
118fea: 83 ec 0c sub $0xc,%esp
118fed: 83 c0 10 add $0x10,%eax
118ff0: 50 push %eax
118ff1: e8 22 45 00 00 call 11d518 <_Watchdog_Remove>
118ff6: 83 c4 10 add $0x10,%esp
_Thread_Enable_dispatch();
118ff9: e8 32 31 00 00 call 11c130 <_Thread_Enable_dispatch>
118ffe: 31 c0 xor %eax,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
119000: c9 leave
119001: c3 ret
00119004 <rtems_timer_create>:
rtems_status_code rtems_timer_create(
rtems_name name,
rtems_id *id
)
{
119004: 55 push %ebp
119005: 89 e5 mov %esp,%ebp
119007: 57 push %edi
119008: 56 push %esi
119009: 53 push %ebx
11900a: 83 ec 0c sub $0xc,%esp
11900d: 8b 5d 08 mov 0x8(%ebp),%ebx
119010: 8b 75 0c mov 0xc(%ebp),%esi
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
119013: 85 db test %ebx,%ebx
119015: 74 6d je 119084 <rtems_timer_create+0x80>
return RTEMS_INVALID_NAME;
if ( !id )
119017: 85 f6 test %esi,%esi
119019: 0f 84 89 00 00 00 je 1190a8 <rtems_timer_create+0xa4>
11901f: a1 78 27 14 00 mov 0x142778,%eax
119024: 40 inc %eax
119025: a3 78 27 14 00 mov %eax,0x142778
* This function allocates a timer control block from
* the inactive chain of free timer control blocks.
*/
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Allocate( void )
{
return (Timer_Control *) _Objects_Allocate( &_Timer_Information );
11902a: 83 ec 0c sub $0xc,%esp
11902d: 68 e0 2a 14 00 push $0x142ae0
119032: e8 5d 23 00 00 call 11b394 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* to prevent deletion */
the_timer = _Timer_Allocate();
if ( !the_timer ) {
119037: 83 c4 10 add $0x10,%esp
11903a: 85 c0 test %eax,%eax
11903c: 74 56 je 119094 <rtems_timer_create+0x90>
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_timer->the_class = TIMER_DORMANT;
11903e: c7 40 38 04 00 00 00 movl $0x4,0x38(%eax)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
119045: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax)
the_watchdog->routine = routine;
11904c: c7 40 2c 00 00 00 00 movl $0x0,0x2c(%eax)
the_watchdog->id = id;
119053: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax)
the_watchdog->user_data = user_data;
11905a: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax)
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
119061: 8b 50 08 mov 0x8(%eax),%edx
119064: 0f b7 fa movzwl %dx,%edi
119067: 8b 0d fc 2a 14 00 mov 0x142afc,%ecx
11906d: 89 04 b9 mov %eax,(%ecx,%edi,4)
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
119070: 89 58 0c mov %ebx,0xc(%eax)
&_Timer_Information,
&the_timer->Object,
(Objects_Name) name
);
*id = the_timer->Object.id;
119073: 89 16 mov %edx,(%esi)
_Thread_Enable_dispatch();
119075: e8 b6 30 00 00 call 11c130 <_Thread_Enable_dispatch>
11907a: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
}
11907c: 8d 65 f4 lea -0xc(%ebp),%esp
11907f: 5b pop %ebx
119080: 5e pop %esi
119081: 5f pop %edi
119082: c9 leave
119083: c3 ret
rtems_id *id
)
{
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
119084: b8 03 00 00 00 mov $0x3,%eax
);
*id = the_timer->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
119089: 8d 65 f4 lea -0xc(%ebp),%esp
11908c: 5b pop %ebx
11908d: 5e pop %esi
11908e: 5f pop %edi
11908f: c9 leave
119090: c3 ret
119091: 8d 76 00 lea 0x0(%esi),%esi
_Thread_Disable_dispatch(); /* to prevent deletion */
the_timer = _Timer_Allocate();
if ( !the_timer ) {
_Thread_Enable_dispatch();
119094: e8 97 30 00 00 call 11c130 <_Thread_Enable_dispatch>
119099: b8 05 00 00 00 mov $0x5,%eax
);
*id = the_timer->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
11909e: 8d 65 f4 lea -0xc(%ebp),%esp
1190a1: 5b pop %ebx
1190a2: 5e pop %esi
1190a3: 5f pop %edi
1190a4: c9 leave
1190a5: c3 ret
1190a6: 66 90 xchg %ax,%ax
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
1190a8: b8 09 00 00 00 mov $0x9,%eax
);
*id = the_timer->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
1190ad: 8d 65 f4 lea -0xc(%ebp),%esp
1190b0: 5b pop %ebx
1190b1: 5e pop %esi
1190b2: 5f pop %edi
1190b3: c9 leave
1190b4: c3 ret
001190b8 <rtems_timer_delete>:
*/
rtems_status_code rtems_timer_delete(
rtems_id id
)
{
1190b8: 55 push %ebp
1190b9: 89 e5 mov %esp,%ebp
1190bb: 53 push %ebx
1190bc: 83 ec 18 sub $0x18,%esp
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
1190bf: 8d 45 f4 lea -0xc(%ebp),%eax
1190c2: 50 push %eax
1190c3: ff 75 08 pushl 0x8(%ebp)
1190c6: 68 e0 2a 14 00 push $0x142ae0
1190cb: e8 b0 27 00 00 call 11b880 <_Objects_Get>
1190d0: 89 c3 mov %eax,%ebx
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
1190d2: 83 c4 10 add $0x10,%esp
1190d5: 8b 4d f4 mov -0xc(%ebp),%ecx
1190d8: 85 c9 test %ecx,%ecx
1190da: 75 38 jne 119114 <rtems_timer_delete+0x5c>
case OBJECTS_LOCAL:
_Objects_Close( &_Timer_Information, &the_timer->Object );
1190dc: 83 ec 08 sub $0x8,%esp
1190df: 50 push %eax
1190e0: 68 e0 2a 14 00 push $0x142ae0
1190e5: e8 26 23 00 00 call 11b410 <_Objects_Close>
(void) _Watchdog_Remove( &the_timer->Ticker );
1190ea: 8d 43 10 lea 0x10(%ebx),%eax
1190ed: 89 04 24 mov %eax,(%esp)
1190f0: e8 23 44 00 00 call 11d518 <_Watchdog_Remove>
*/
RTEMS_INLINE_ROUTINE void _Timer_Free (
Timer_Control *the_timer
)
{
_Objects_Free( &_Timer_Information, &the_timer->Object );
1190f5: 58 pop %eax
1190f6: 5a pop %edx
1190f7: 53 push %ebx
1190f8: 68 e0 2a 14 00 push $0x142ae0
1190fd: e8 12 26 00 00 call 11b714 <_Objects_Free>
_Timer_Free( the_timer );
_Thread_Enable_dispatch();
119102: e8 29 30 00 00 call 11c130 <_Thread_Enable_dispatch>
119107: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
119109: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
11910c: 8b 5d fc mov -0x4(%ebp),%ebx
11910f: c9 leave
119110: c3 ret
119111: 8d 76 00 lea 0x0(%esi),%esi
{
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
119114: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
119119: 8b 5d fc mov -0x4(%ebp),%ebx
11911c: c9 leave
11911d: c3 ret
00119120 <rtems_timer_fire_after>:
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
119120: 55 push %ebp
119121: 89 e5 mov %esp,%ebp
119123: 57 push %edi
119124: 56 push %esi
119125: 53 push %ebx
119126: 83 ec 2c sub $0x2c,%esp
119129: 8b 5d 0c mov 0xc(%ebp),%ebx
11912c: 8b 75 10 mov 0x10(%ebp),%esi
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
if ( ticks == 0 )
11912f: 85 db test %ebx,%ebx
119131: 0f 84 99 00 00 00 je 1191d0 <rtems_timer_fire_after+0xb0>
return RTEMS_INVALID_NUMBER;
if ( !routine )
119137: 85 f6 test %esi,%esi
119139: 0f 84 b1 00 00 00 je 1191f0 <rtems_timer_fire_after+0xd0>
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
11913f: 57 push %edi
119140: 8d 45 e4 lea -0x1c(%ebp),%eax
119143: 50 push %eax
119144: ff 75 08 pushl 0x8(%ebp)
119147: 68 e0 2a 14 00 push $0x142ae0
11914c: e8 2f 27 00 00 call 11b880 <_Objects_Get>
119151: 89 c7 mov %eax,%edi
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
119153: 83 c4 10 add $0x10,%esp
119156: 8b 4d e4 mov -0x1c(%ebp),%ecx
119159: 85 c9 test %ecx,%ecx
11915b: 74 0f je 11916c <rtems_timer_fire_after+0x4c>
11915d: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
119162: 8d 65 f4 lea -0xc(%ebp),%esp
119165: 5b pop %ebx
119166: 5e pop %esi
119167: 5f pop %edi
119168: c9 leave
119169: c3 ret
11916a: 66 90 xchg %ax,%ax
the_timer = _Timer_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
11916c: 8d 50 10 lea 0x10(%eax),%edx
11916f: 83 ec 0c sub $0xc,%esp
119172: 52 push %edx
119173: 89 55 d4 mov %edx,-0x2c(%ebp)
119176: e8 9d 43 00 00 call 11d518 <_Watchdog_Remove>
_ISR_Disable( level );
11917b: 9c pushf
11917c: fa cli
11917d: 58 pop %eax
/*
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {
11917e: 83 c4 10 add $0x10,%esp
119181: 8b 57 18 mov 0x18(%edi),%edx
119184: 85 d2 test %edx,%edx
119186: 8b 55 d4 mov -0x2c(%ebp),%edx
119189: 75 55 jne 1191e0 <rtems_timer_fire_after+0xc0>
/*
* OK. Now we now the timer was not rescheduled by an interrupt
* so we can atomically initialize it as in use.
*/
the_timer->the_class = TIMER_INTERVAL;
11918b: c7 47 38 00 00 00 00 movl $0x0,0x38(%edi)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
119192: c7 47 18 00 00 00 00 movl $0x0,0x18(%edi)
the_watchdog->routine = routine;
119199: 89 77 2c mov %esi,0x2c(%edi)
the_watchdog->id = id;
11919c: 8b 4d 08 mov 0x8(%ebp),%ecx
11919f: 89 4f 30 mov %ecx,0x30(%edi)
the_watchdog->user_data = user_data;
1191a2: 8b 4d 14 mov 0x14(%ebp),%ecx
1191a5: 89 4f 34 mov %ecx,0x34(%edi)
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
_ISR_Enable( level );
1191a8: 50 push %eax
1191a9: 9d popf
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
1191aa: 89 5f 1c mov %ebx,0x1c(%edi)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
1191ad: 83 ec 08 sub $0x8,%esp
1191b0: 52 push %edx
1191b1: 68 58 28 14 00 push $0x142858
1191b6: e8 35 42 00 00 call 11d3f0 <_Watchdog_Insert>
_Watchdog_Insert_ticks( &the_timer->Ticker, ticks );
_Thread_Enable_dispatch();
1191bb: e8 70 2f 00 00 call 11c130 <_Thread_Enable_dispatch>
1191c0: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
1191c2: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1191c5: 8d 65 f4 lea -0xc(%ebp),%esp
1191c8: 5b pop %ebx
1191c9: 5e pop %esi
1191ca: 5f pop %edi
1191cb: c9 leave
1191cc: c3 ret
1191cd: 8d 76 00 lea 0x0(%esi),%esi
{
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
if ( ticks == 0 )
1191d0: b8 0a 00 00 00 mov $0xa,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1191d5: 8d 65 f4 lea -0xc(%ebp),%esp
1191d8: 5b pop %ebx
1191d9: 5e pop %esi
1191da: 5f pop %edi
1191db: c9 leave
1191dc: c3 ret
1191dd: 8d 76 00 lea 0x0(%esi),%esi
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {
_ISR_Enable( level );
1191e0: 50 push %eax
1191e1: 9d popf
_Thread_Enable_dispatch();
1191e2: e8 49 2f 00 00 call 11c130 <_Thread_Enable_dispatch>
1191e7: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
1191e9: e9 74 ff ff ff jmp 119162 <rtems_timer_fire_after+0x42>
1191ee: 66 90 xchg %ax,%ax
ISR_Level level;
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
if ( !routine )
1191f0: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1191f5: 8d 65 f4 lea -0xc(%ebp),%esp
1191f8: 5b pop %ebx
1191f9: 5e pop %esi
1191fa: 5f pop %edi
1191fb: c9 leave
1191fc: c3 ret
00119200 <rtems_timer_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
119200: 55 push %ebp
119201: 89 e5 mov %esp,%ebp
119203: 57 push %edi
119204: 56 push %esi
119205: 53 push %ebx
119206: 83 ec 2c sub $0x2c,%esp
119209: 8b 75 08 mov 0x8(%ebp),%esi
11920c: 8b 7d 0c mov 0xc(%ebp),%edi
11920f: 8b 5d 10 mov 0x10(%ebp),%ebx
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD_Is_set )
119212: 80 3d 8c 27 14 00 00 cmpb $0x0,0x14278c
119219: 75 0d jne 119228 <rtems_timer_fire_when+0x28>
11921b: b8 0b 00 00 00 mov $0xb,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
119220: 8d 65 f4 lea -0xc(%ebp),%esp
119223: 5b pop %ebx
119224: 5e pop %esi
119225: 5f pop %edi
119226: c9 leave
119227: c3 ret
rtems_interval seconds;
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
if ( !_TOD_Validate( wall_time ) )
119228: 83 ec 0c sub $0xc,%esp
11922b: 57 push %edi
11922c: e8 7b d4 ff ff call 1166ac <_TOD_Validate>
119231: 83 c4 10 add $0x10,%esp
119234: 84 c0 test %al,%al
119236: 74 1e je 119256 <rtems_timer_fire_when+0x56>
return RTEMS_INVALID_CLOCK;
if ( !routine )
119238: 85 db test %ebx,%ebx
11923a: 0f 84 a4 00 00 00 je 1192e4 <rtems_timer_fire_when+0xe4>
return RTEMS_INVALID_ADDRESS;
seconds = _TOD_To_seconds( wall_time );
119240: 83 ec 0c sub $0xc,%esp
119243: 57 push %edi
119244: e8 d7 d3 ff ff call 116620 <_TOD_To_seconds>
119249: 89 c7 mov %eax,%edi
if ( seconds <= _TOD_Seconds_since_epoch() )
11924b: 83 c4 10 add $0x10,%esp
11924e: 3b 05 0c 28 14 00 cmp 0x14280c,%eax
119254: 77 0e ja 119264 <rtems_timer_fire_when+0x64>
_Watchdog_Insert_seconds(
&the_timer->Ticker,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
119256: b8 14 00 00 00 mov $0x14,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
11925b: 8d 65 f4 lea -0xc(%ebp),%esp
11925e: 5b pop %ebx
11925f: 5e pop %esi
119260: 5f pop %edi
119261: c9 leave
119262: c3 ret
119263: 90 nop
119264: 50 push %eax
119265: 8d 45 e4 lea -0x1c(%ebp),%eax
119268: 50 push %eax
119269: 56 push %esi
11926a: 68 e0 2a 14 00 push $0x142ae0
11926f: e8 0c 26 00 00 call 11b880 <_Objects_Get>
seconds = _TOD_To_seconds( wall_time );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
119274: 83 c4 10 add $0x10,%esp
119277: 8b 4d e4 mov -0x1c(%ebp),%ecx
11927a: 85 c9 test %ecx,%ecx
11927c: 75 5a jne 1192d8 <rtems_timer_fire_when+0xd8>
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
11927e: 8d 48 10 lea 0x10(%eax),%ecx
119281: 83 ec 0c sub $0xc,%esp
119284: 51 push %ecx
119285: 89 45 d4 mov %eax,-0x2c(%ebp)
119288: 89 4d d0 mov %ecx,-0x30(%ebp)
11928b: e8 88 42 00 00 call 11d518 <_Watchdog_Remove>
the_timer->the_class = TIMER_TIME_OF_DAY;
119290: 8b 55 d4 mov -0x2c(%ebp),%edx
119293: c7 42 38 02 00 00 00 movl $0x2,0x38(%edx)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
11929a: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx)
the_watchdog->routine = routine;
1192a1: 89 5a 2c mov %ebx,0x2c(%edx)
the_watchdog->id = id;
1192a4: 89 72 30 mov %esi,0x30(%edx)
the_watchdog->user_data = user_data;
1192a7: 8b 45 14 mov 0x14(%ebp),%eax
1192aa: 89 42 34 mov %eax,0x34(%edx)
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
1192ad: 2b 3d 0c 28 14 00 sub 0x14280c,%edi
1192b3: 89 7a 1c mov %edi,0x1c(%edx)
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
1192b6: 58 pop %eax
1192b7: 5a pop %edx
1192b8: 8b 4d d0 mov -0x30(%ebp),%ecx
1192bb: 51 push %ecx
1192bc: 68 4c 28 14 00 push $0x14284c
1192c1: e8 2a 41 00 00 call 11d3f0 <_Watchdog_Insert>
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
_Watchdog_Insert_seconds(
&the_timer->Ticker,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
1192c6: e8 65 2e 00 00 call 11c130 <_Thread_Enable_dispatch>
1192cb: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
1192cd: 83 c4 10 add $0x10,%esp
1192d0: e9 4b ff ff ff jmp 119220 <rtems_timer_fire_when+0x20>
1192d5: 8d 76 00 lea 0x0(%esi),%esi
seconds = _TOD_To_seconds( wall_time );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
1192d8: b8 04 00 00 00 mov $0x4,%eax
1192dd: e9 3e ff ff ff jmp 119220 <rtems_timer_fire_when+0x20>
1192e2: 66 90 xchg %ax,%ax
return RTEMS_NOT_DEFINED;
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
if ( !routine )
1192e4: b8 09 00 00 00 mov $0x9,%eax
1192e9: e9 32 ff ff ff jmp 119220 <rtems_timer_fire_when+0x20>
00119600 <rtems_timer_initiate_server>:
rtems_status_code rtems_timer_initiate_server(
uint32_t priority,
uint32_t stack_size,
rtems_attribute attribute_set
)
{
119600: 55 push %ebp
119601: 89 e5 mov %esp,%ebp
119603: 56 push %esi
119604: 53 push %ebx
119605: 83 ec 10 sub $0x10,%esp
119608: 8b 45 08 mov 0x8(%ebp),%eax
11960b: 85 c0 test %eax,%eax
11960d: 75 0d jne 11961c <rtems_timer_initiate_server+0x1c>
if (status) {
initialized = false;
}
#endif
return status;
11960f: b8 13 00 00 00 mov $0x13,%eax
}
119614: 8d 65 f8 lea -0x8(%ebp),%esp
119617: 5b pop %ebx
119618: 5e pop %esi
119619: c9 leave
11961a: c3 ret
11961b: 90 nop
11961c: 0f b6 15 14 a2 13 00 movzbl 0x13a214,%edx
119623: 39 d0 cmp %edx,%eax
119625: 76 35 jbe 11965c <rtems_timer_initiate_server+0x5c>
* structured so we check it is invalid before looking for
* a specific invalid value as the default.
*/
_priority = priority;
if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) {
if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY )
119627: 40 inc %eax
119628: 75 e5 jne 11960f <rtems_timer_initiate_server+0xf>
11962a: 31 f6 xor %esi,%esi
11962c: 8b 15 78 27 14 00 mov 0x142778,%edx
119632: 42 inc %edx
119633: 89 15 78 27 14 00 mov %edx,0x142778
/*
* Just to make sure this is only called once.
*/
_Thread_Disable_dispatch();
tmpInitialized = initialized;
119639: 8a 1d 00 e0 13 00 mov 0x13e000,%bl
initialized = true;
11963f: c6 05 00 e0 13 00 01 movb $0x1,0x13e000
_Thread_Enable_dispatch();
119646: e8 e5 2a 00 00 call 11c130 <_Thread_Enable_dispatch>
if ( tmpInitialized )
11964b: 84 db test %bl,%bl
11964d: 74 11 je 119660 <rtems_timer_initiate_server+0x60>
11964f: b8 0e 00 00 00 mov $0xe,%eax
initialized = false;
}
#endif
return status;
}
119654: 8d 65 f8 lea -0x8(%ebp),%esp
119657: 5b pop %ebx
119658: 5e pop %esi
119659: c9 leave
11965a: c3 ret
11965b: 90 nop
11965c: 89 c6 mov %eax,%esi
11965e: eb cc jmp 11962c <rtems_timer_initiate_server+0x2c>
* other library rules. For example, if using a TSR written in Ada the
* Server should run at the same priority as the priority Ada task.
* Otherwise, the priority ceiling for the mutex used to protect the
* GNAT run-time is violated.
*/
status = rtems_task_create(
119660: 83 ec 08 sub $0x8,%esp
119663: 8d 45 f4 lea -0xc(%ebp),%eax
119666: 50 push %eax
119667: 8b 45 10 mov 0x10(%ebp),%eax
11966a: 80 cc 80 or $0x80,%ah
11966d: 50 push %eax
11966e: 68 00 01 00 00 push $0x100
119673: ff 75 0c pushl 0xc(%ebp)
119676: 56 push %esi
119677: 68 45 4d 49 54 push $0x54494d45
11967c: e8 87 f0 ff ff call 118708 <rtems_task_create>
/* user may want floating point but we need */
/* system task specified for 0 priority */
attribute_set | RTEMS_SYSTEM_TASK,
&id /* get the id back */
);
if (status) {
119681: 83 c4 20 add $0x20,%esp
119684: 85 c0 test %eax,%eax
119686: 74 10 je 119698 <rtems_timer_initiate_server+0x98>
initialized = false;
119688: c6 05 00 e0 13 00 00 movb $0x0,0x13e000
initialized = false;
}
#endif
return status;
}
11968f: 8d 65 f8 lea -0x8(%ebp),%esp
119692: 5b pop %ebx
119693: 5e pop %esi
119694: c9 leave
119695: c3 ret
119696: 66 90 xchg %ax,%ax
* We work with the TCB pointer, not the ID, so we need to convert
* to a TCB pointer from here out.
*/
ts->thread = (Thread_Control *)_Objects_Get_local_object(
&_RTEMS_tasks_Information,
_Objects_Get_index(id)
119698: 8b 45 f4 mov -0xc(%ebp),%eax
/*
* We work with the TCB pointer, not the ID, so we need to convert
* to a TCB pointer from here out.
*/
ts->thread = (Thread_Control *)_Objects_Get_local_object(
11969b: 0f b7 c8 movzwl %ax,%ecx
11969e: 8b 15 1c 27 14 00 mov 0x14271c,%edx
1196a4: 8b 14 8a mov (%edx,%ecx,4),%edx
1196a7: 89 15 20 e0 13 00 mov %edx,0x13e020
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
1196ad: c7 05 50 e0 13 00 54 movl $0x13e054,0x13e050
1196b4: e0 13 00
the_chain->permanent_null = NULL;
1196b7: c7 05 54 e0 13 00 00 movl $0x0,0x13e054
1196be: 00 00 00
the_chain->last = _Chain_Head(the_chain);
1196c1: c7 05 58 e0 13 00 50 movl $0x13e050,0x13e058
1196c8: e0 13 00
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
1196cb: c7 05 88 e0 13 00 8c movl $0x13e08c,0x13e088
1196d2: e0 13 00
the_chain->permanent_null = NULL;
1196d5: c7 05 8c e0 13 00 00 movl $0x0,0x13e08c
1196dc: 00 00 00
the_chain->last = _Chain_Head(the_chain);
1196df: c7 05 90 e0 13 00 88 movl $0x13e088,0x13e090
1196e6: e0 13 00
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
1196e9: c7 05 30 e0 13 00 00 movl $0x0,0x13e030
1196f0: 00 00 00
the_watchdog->routine = routine;
1196f3: c7 05 44 e0 13 00 98 movl $0x11bf98,0x13e044
1196fa: bf 11 00
the_watchdog->id = id;
1196fd: a3 48 e0 13 00 mov %eax,0x13e048
the_watchdog->user_data = user_data;
119702: c7 05 4c e0 13 00 00 movl $0x0,0x13e04c
119709: 00 00 00
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
11970c: c7 05 68 e0 13 00 00 movl $0x0,0x13e068
119713: 00 00 00
the_watchdog->routine = routine;
119716: c7 05 7c e0 13 00 98 movl $0x11bf98,0x13e07c
11971d: bf 11 00
the_watchdog->id = id;
119720: a3 80 e0 13 00 mov %eax,0x13e080
the_watchdog->user_data = user_data;
119725: c7 05 84 e0 13 00 00 movl $0x0,0x13e084
11972c: 00 00 00
/*
* Initialize the pointer to the timer schedule method so applications that
* do not use the Timer Server do not have to pull it in.
*/
ts->schedule_operation = _Timer_server_Schedule_operation_method;
11972f: c7 05 24 e0 13 00 d4 movl $0x1199d4,0x13e024
119736: 99 11 00
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
119739: 8b 15 e4 28 14 00 mov 0x1428e4,%edx
11973f: 89 15 5c e0 13 00 mov %edx,0x13e05c
ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
119745: 8b 15 0c 28 14 00 mov 0x14280c,%edx
11974b: 89 15 94 e0 13 00 mov %edx,0x13e094
ts->insert_chain = NULL;
119751: c7 05 98 e0 13 00 00 movl $0x0,0x13e098
119758: 00 00 00
ts->active = false;
11975b: c6 05 9c e0 13 00 00 movb $0x0,0x13e09c
/*
* The default timer server is now available.
*/
_Timer_server = ts;
119762: c7 05 20 2b 14 00 20 movl $0x13e020,0x142b20
119769: e0 13 00
/*
* Start the timer server
*/
status = rtems_task_start(
11976c: 52 push %edx
11976d: 68 20 e0 13 00 push $0x13e020
119772: 68 28 98 11 00 push $0x119828
119777: 50 push %eax
119778: e8 23 f6 ff ff call 118da0 <rtems_task_start>
if (status) {
initialized = false;
}
#endif
return status;
11977d: 83 c4 10 add $0x10,%esp
119780: e9 8f fe ff ff jmp 119614 <rtems_timer_initiate_server+0x14>
00119378 <rtems_timer_reset>:
*/
rtems_status_code rtems_timer_reset(
rtems_id id
)
{
119378: 55 push %ebp
119379: 89 e5 mov %esp,%ebp
11937b: 56 push %esi
11937c: 53 push %ebx
11937d: 83 ec 24 sub $0x24,%esp
119380: 8d 45 f4 lea -0xc(%ebp),%eax
119383: 50 push %eax
119384: ff 75 08 pushl 0x8(%ebp)
119387: 68 e0 2a 14 00 push $0x142ae0
11938c: e8 ef 24 00 00 call 11b880 <_Objects_Get>
119391: 89 c3 mov %eax,%ebx
Timer_Control *the_timer;
Objects_Locations location;
rtems_status_code status = RTEMS_SUCCESSFUL;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
119393: 83 c4 10 add $0x10,%esp
119396: 8b 45 f4 mov -0xc(%ebp),%eax
119399: 85 c0 test %eax,%eax
11939b: 74 0f je 1193ac <rtems_timer_reset+0x34>
11939d: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1193a2: 8d 65 f8 lea -0x8(%ebp),%esp
1193a5: 5b pop %ebx
1193a6: 5e pop %esi
1193a7: c9 leave
1193a8: c3 ret
1193a9: 8d 76 00 lea 0x0(%esi),%esi
the_timer = _Timer_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( the_timer->the_class == TIMER_INTERVAL ) {
1193ac: 8b 43 38 mov 0x38(%ebx),%eax
1193af: 85 c0 test %eax,%eax
1193b1: 74 1d je 1193d0 <rtems_timer_reset+0x58>
_Watchdog_Remove( &the_timer->Ticker );
_Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
} else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) {
1193b3: 48 dec %eax
1193b4: 74 3a je 1193f0 <rtems_timer_reset+0x78>
1193b6: b8 0b 00 00 00 mov $0xb,%eax
* TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK). We
* can only reset active interval timers.
*/
status = RTEMS_NOT_DEFINED;
}
_Thread_Enable_dispatch();
1193bb: 89 45 e4 mov %eax,-0x1c(%ebp)
1193be: e8 6d 2d 00 00 call 11c130 <_Thread_Enable_dispatch>
1193c3: 8b 45 e4 mov -0x1c(%ebp),%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1193c6: 8d 65 f8 lea -0x8(%ebp),%esp
1193c9: 5b pop %ebx
1193ca: 5e pop %esi
1193cb: c9 leave
1193cc: c3 ret
1193cd: 8d 76 00 lea 0x0(%esi),%esi
the_timer = _Timer_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( the_timer->the_class == TIMER_INTERVAL ) {
_Watchdog_Remove( &the_timer->Ticker );
1193d0: 83 c3 10 add $0x10,%ebx
1193d3: 83 ec 0c sub $0xc,%esp
1193d6: 53 push %ebx
1193d7: e8 3c 41 00 00 call 11d518 <_Watchdog_Remove>
_Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
1193dc: 59 pop %ecx
1193dd: 5e pop %esi
1193de: 53 push %ebx
1193df: 68 58 28 14 00 push $0x142858
1193e4: e8 07 40 00 00 call 11d3f0 <_Watchdog_Insert>
1193e9: 31 c0 xor %eax,%eax
1193eb: 83 c4 10 add $0x10,%esp
1193ee: eb cb jmp 1193bb <rtems_timer_reset+0x43>
} else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) {
Timer_server_Control *timer_server = _Timer_server;
1193f0: 8b 35 20 2b 14 00 mov 0x142b20,%esi
if ( !timer_server ) {
_Thread_Enable_dispatch();
return RTEMS_INCORRECT_STATE;
}
#endif
_Watchdog_Remove( &the_timer->Ticker );
1193f6: 83 ec 0c sub $0xc,%esp
1193f9: 8d 43 10 lea 0x10(%ebx),%eax
1193fc: 50 push %eax
1193fd: e8 16 41 00 00 call 11d518 <_Watchdog_Remove>
(*timer_server->schedule_operation)( timer_server, the_timer );
119402: 58 pop %eax
119403: 5a pop %edx
119404: 53 push %ebx
119405: 56 push %esi
119406: ff 56 04 call *0x4(%esi)
119409: 31 c0 xor %eax,%eax
11940b: 83 c4 10 add $0x10,%esp
11940e: eb ab jmp 1193bb <rtems_timer_reset+0x43>
00119410 <rtems_timer_server_fire_after>:
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
119410: 55 push %ebp
119411: 89 e5 mov %esp,%ebp
119413: 57 push %edi
119414: 56 push %esi
119415: 53 push %ebx
119416: 83 ec 2c sub $0x2c,%esp
119419: 8b 7d 0c mov 0xc(%ebp),%edi
11941c: 8b 75 10 mov 0x10(%ebp),%esi
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
Timer_server_Control *timer_server = _Timer_server;
11941f: 8b 1d 20 2b 14 00 mov 0x142b20,%ebx
if ( !timer_server )
119425: 85 db test %ebx,%ebx
119427: 0f 84 9f 00 00 00 je 1194cc <rtems_timer_server_fire_after+0xbc>
return RTEMS_INCORRECT_STATE;
if ( !routine )
11942d: 85 f6 test %esi,%esi
11942f: 0f 84 a3 00 00 00 je 1194d8 <rtems_timer_server_fire_after+0xc8>
return RTEMS_INVALID_ADDRESS;
if ( ticks == 0 )
119435: 85 ff test %edi,%edi
119437: 75 0f jne 119448 <rtems_timer_server_fire_after+0x38>
119439: b8 0a 00 00 00 mov $0xa,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
11943e: 8d 65 f4 lea -0xc(%ebp),%esp
119441: 5b pop %ebx
119442: 5e pop %esi
119443: 5f pop %edi
119444: c9 leave
119445: c3 ret
119446: 66 90 xchg %ax,%ax
119448: 52 push %edx
119449: 8d 45 e4 lea -0x1c(%ebp),%eax
11944c: 50 push %eax
11944d: ff 75 08 pushl 0x8(%ebp)
119450: 68 e0 2a 14 00 push $0x142ae0
119455: e8 26 24 00 00 call 11b880 <_Objects_Get>
11945a: 89 c2 mov %eax,%edx
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
11945c: 83 c4 10 add $0x10,%esp
11945f: 8b 45 e4 mov -0x1c(%ebp),%eax
119462: 85 c0 test %eax,%eax
119464: 75 56 jne 1194bc <rtems_timer_server_fire_after+0xac>
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
119466: 83 ec 0c sub $0xc,%esp
119469: 8d 42 10 lea 0x10(%edx),%eax
11946c: 50 push %eax
11946d: 89 55 d4 mov %edx,-0x2c(%ebp)
119470: e8 a3 40 00 00 call 11d518 <_Watchdog_Remove>
_ISR_Disable( level );
119475: 9c pushf
119476: fa cli
119477: 58 pop %eax
/*
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {
119478: 83 c4 10 add $0x10,%esp
11947b: 8b 55 d4 mov -0x2c(%ebp),%edx
11947e: 8b 4a 18 mov 0x18(%edx),%ecx
119481: 85 c9 test %ecx,%ecx
119483: 75 5f jne 1194e4 <rtems_timer_server_fire_after+0xd4>
/*
* OK. Now we now the timer was not rescheduled by an interrupt
* so we can atomically initialize it as in use.
*/
the_timer->the_class = TIMER_INTERVAL_ON_TASK;
119485: c7 42 38 01 00 00 00 movl $0x1,0x38(%edx)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
11948c: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx)
the_watchdog->routine = routine;
119493: 89 72 2c mov %esi,0x2c(%edx)
the_watchdog->id = id;
119496: 8b 4d 08 mov 0x8(%ebp),%ecx
119499: 89 4a 30 mov %ecx,0x30(%edx)
the_watchdog->user_data = user_data;
11949c: 8b 4d 14 mov 0x14(%ebp),%ecx
11949f: 89 4a 34 mov %ecx,0x34(%edx)
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = ticks;
1194a2: 89 7a 1c mov %edi,0x1c(%edx)
_ISR_Enable( level );
1194a5: 50 push %eax
1194a6: 9d popf
(*timer_server->schedule_operation)( timer_server, the_timer );
1194a7: 83 ec 08 sub $0x8,%esp
1194aa: 52 push %edx
1194ab: 53 push %ebx
1194ac: ff 53 04 call *0x4(%ebx)
_Thread_Enable_dispatch();
1194af: e8 7c 2c 00 00 call 11c130 <_Thread_Enable_dispatch>
1194b4: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
1194b6: 83 c4 10 add $0x10,%esp
1194b9: eb 83 jmp 11943e <rtems_timer_server_fire_after+0x2e>
1194bb: 90 nop
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
1194bc: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1194c1: 8d 65 f4 lea -0xc(%ebp),%esp
1194c4: 5b pop %ebx
1194c5: 5e pop %esi
1194c6: 5f pop %edi
1194c7: c9 leave
1194c8: c3 ret
1194c9: 8d 76 00 lea 0x0(%esi),%esi
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
1194cc: b8 0e 00 00 00 mov $0xe,%eax
1194d1: e9 68 ff ff ff jmp 11943e <rtems_timer_server_fire_after+0x2e>
1194d6: 66 90 xchg %ax,%ax
return RTEMS_INCORRECT_STATE;
if ( !routine )
1194d8: b8 09 00 00 00 mov $0x9,%eax
1194dd: e9 5c ff ff ff jmp 11943e <rtems_timer_server_fire_after+0x2e>
1194e2: 66 90 xchg %ax,%ax
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {
_ISR_Enable( level );
1194e4: 50 push %eax
1194e5: 9d popf
_Thread_Enable_dispatch();
1194e6: e8 45 2c 00 00 call 11c130 <_Thread_Enable_dispatch>
1194eb: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
1194ed: e9 4c ff ff ff jmp 11943e <rtems_timer_server_fire_after+0x2e>
001194f4 <rtems_timer_server_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
1194f4: 55 push %ebp
1194f5: 89 e5 mov %esp,%ebp
1194f7: 57 push %edi
1194f8: 56 push %esi
1194f9: 53 push %ebx
1194fa: 83 ec 2c sub $0x2c,%esp
1194fd: 8b 7d 0c mov 0xc(%ebp),%edi
119500: 8b 75 10 mov 0x10(%ebp),%esi
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
119503: 8b 1d 20 2b 14 00 mov 0x142b20,%ebx
if ( !timer_server )
119509: 85 db test %ebx,%ebx
11950b: 0f 84 d7 00 00 00 je 1195e8 <rtems_timer_server_fire_when+0xf4>
return RTEMS_INCORRECT_STATE;
if ( !_TOD_Is_set )
119511: 80 3d 8c 27 14 00 00 cmpb $0x0,0x14278c
119518: 0f 84 aa 00 00 00 je 1195c8 <rtems_timer_server_fire_when+0xd4><== NEVER TAKEN
return RTEMS_NOT_DEFINED;
if ( !routine )
11951e: 85 f6 test %esi,%esi
119520: 0f 84 b2 00 00 00 je 1195d8 <rtems_timer_server_fire_when+0xe4>
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
119526: 83 ec 0c sub $0xc,%esp
119529: 57 push %edi
11952a: e8 7d d1 ff ff call 1166ac <_TOD_Validate>
11952f: 83 c4 10 add $0x10,%esp
119532: 84 c0 test %al,%al
119534: 75 0e jne 119544 <rtems_timer_server_fire_when+0x50>
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
(*timer_server->schedule_operation)( timer_server, the_timer );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
119536: b8 14 00 00 00 mov $0x14,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
11953b: 8d 65 f4 lea -0xc(%ebp),%esp
11953e: 5b pop %ebx
11953f: 5e pop %esi
119540: 5f pop %edi
119541: c9 leave
119542: c3 ret
119543: 90 nop
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
119544: 83 ec 0c sub $0xc,%esp
119547: 57 push %edi
119548: e8 d3 d0 ff ff call 116620 <_TOD_To_seconds>
11954d: 89 c7 mov %eax,%edi
if ( seconds <= _TOD_Seconds_since_epoch() )
11954f: 83 c4 10 add $0x10,%esp
119552: 3b 05 0c 28 14 00 cmp 0x14280c,%eax
119558: 76 dc jbe 119536 <rtems_timer_server_fire_when+0x42>
11955a: 52 push %edx
11955b: 8d 45 e4 lea -0x1c(%ebp),%eax
11955e: 50 push %eax
11955f: ff 75 08 pushl 0x8(%ebp)
119562: 68 e0 2a 14 00 push $0x142ae0
119567: e8 14 23 00 00 call 11b880 <_Objects_Get>
11956c: 89 c2 mov %eax,%edx
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
11956e: 83 c4 10 add $0x10,%esp
119571: 8b 45 e4 mov -0x1c(%ebp),%eax
119574: 85 c0 test %eax,%eax
119576: 75 7c jne 1195f4 <rtems_timer_server_fire_when+0x100>
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
119578: 83 ec 0c sub $0xc,%esp
11957b: 8d 42 10 lea 0x10(%edx),%eax
11957e: 50 push %eax
11957f: 89 55 d4 mov %edx,-0x2c(%ebp)
119582: e8 91 3f 00 00 call 11d518 <_Watchdog_Remove>
the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;
119587: 8b 55 d4 mov -0x2c(%ebp),%edx
11958a: c7 42 38 03 00 00 00 movl $0x3,0x38(%edx)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
119591: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx)
the_watchdog->routine = routine;
119598: 89 72 2c mov %esi,0x2c(%edx)
the_watchdog->id = id;
11959b: 8b 45 08 mov 0x8(%ebp),%eax
11959e: 89 42 30 mov %eax,0x30(%edx)
the_watchdog->user_data = user_data;
1195a1: 8b 45 14 mov 0x14(%ebp),%eax
1195a4: 89 42 34 mov %eax,0x34(%edx)
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
1195a7: 2b 3d 0c 28 14 00 sub 0x14280c,%edi
1195ad: 89 7a 1c mov %edi,0x1c(%edx)
(*timer_server->schedule_operation)( timer_server, the_timer );
1195b0: 58 pop %eax
1195b1: 59 pop %ecx
1195b2: 52 push %edx
1195b3: 53 push %ebx
1195b4: ff 53 04 call *0x4(%ebx)
_Thread_Enable_dispatch();
1195b7: e8 74 2b 00 00 call 11c130 <_Thread_Enable_dispatch>
1195bc: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
1195be: 83 c4 10 add $0x10,%esp
1195c1: e9 75 ff ff ff jmp 11953b <rtems_timer_server_fire_when+0x47>
1195c6: 66 90 xchg %ax,%ax
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
return RTEMS_INCORRECT_STATE;
if ( !_TOD_Is_set )
1195c8: b8 0b 00 00 00 mov $0xb,%eax <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1195cd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
1195d0: 5b pop %ebx <== NOT EXECUTED
1195d1: 5e pop %esi <== NOT EXECUTED
1195d2: 5f pop %edi <== NOT EXECUTED
1195d3: c9 leave <== NOT EXECUTED
1195d4: c3 ret <== NOT EXECUTED
1195d5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
if ( !routine )
1195d8: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
1195dd: 8d 65 f4 lea -0xc(%ebp),%esp
1195e0: 5b pop %ebx
1195e1: 5e pop %esi
1195e2: 5f pop %edi
1195e3: c9 leave
1195e4: c3 ret
1195e5: 8d 76 00 lea 0x0(%esi),%esi
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
1195e8: b8 0e 00 00 00 mov $0xe,%eax
1195ed: e9 49 ff ff ff jmp 11953b <rtems_timer_server_fire_when+0x47>
1195f2: 66 90 xchg %ax,%ax
seconds = _TOD_To_seconds( wall_time );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
1195f4: b8 04 00 00 00 mov $0x4,%eax
1195f9: e9 3d ff ff ff jmp 11953b <rtems_timer_server_fire_when+0x47>
0010cc7c <rtems_verror>:
static int rtems_verror(
rtems_error_code_t error_flag,
const char *printf_format,
va_list arglist
)
{
10cc7c: 55 push %ebp <== NOT EXECUTED
10cc7d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10cc7f: 57 push %edi <== NOT EXECUTED
10cc80: 56 push %esi <== NOT EXECUTED
10cc81: 53 push %ebx <== NOT EXECUTED
10cc82: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
10cc85: 89 c3 mov %eax,%ebx <== NOT EXECUTED
10cc87: 89 d6 mov %edx,%esi <== NOT EXECUTED
int local_errno = 0;
int chars_written = 0;
rtems_status_code status;
if (error_flag & RTEMS_ERROR_PANIC)
10cc89: 25 00 00 00 20 and $0x20000000,%eax <== NOT EXECUTED
10cc8e: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
10cc91: 74 2b je 10ccbe <rtems_verror+0x42> <== NOT EXECUTED
{
if (rtems_panic_in_progress++)
10cc93: 8b 15 a0 e7 12 00 mov 0x12e7a0,%edx <== NOT EXECUTED
10cc99: 8d 42 01 lea 0x1(%edx),%eax <== NOT EXECUTED
10cc9c: a3 a0 e7 12 00 mov %eax,0x12e7a0 <== NOT EXECUTED
10cca1: 85 d2 test %edx,%edx <== NOT EXECUTED
10cca3: 74 10 je 10ccb5 <rtems_verror+0x39> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
10cca5: a1 18 e9 12 00 mov 0x12e918,%eax <== NOT EXECUTED
10ccaa: 40 inc %eax <== NOT EXECUTED
10ccab: a3 18 e9 12 00 mov %eax,0x12e918 <== NOT EXECUTED
RTEMS_COMPILER_MEMORY_BARRIER();
10ccb0: a1 a0 e7 12 00 mov 0x12e7a0,%eax <== NOT EXECUTED
_Thread_Disable_dispatch(); /* disable task switches */
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
10ccb5: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED
10ccb8: 0f 8f e6 00 00 00 jg 10cda4 <rtems_verror+0x128> <== NOT EXECUTED
return 0;
}
(void) fflush(stdout); /* in case stdout/stderr same */
10ccbe: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ccc1: a1 80 c5 12 00 mov 0x12c580,%eax <== NOT EXECUTED
10ccc6: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED
10ccc9: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
10cccc: e8 af c5 00 00 call 119280 <fflush> <== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
10ccd1: 89 d8 mov %ebx,%eax <== NOT EXECUTED
10ccd3: 25 ff ff ff 8f and $0x8fffffff,%eax <== NOT EXECUTED
10ccd8: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
10ccdb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10ccde: f7 c3 00 00 00 40 test $0x40000000,%ebx <== NOT EXECUTED
10cce4: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
10cce7: 0f 85 d7 00 00 00 jne 10cdc4 <rtems_verror+0x148> <== NOT EXECUTED
10cced: 31 ff xor %edi,%edi <== 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);
10ccef: 52 push %edx <== NOT EXECUTED
10ccf0: 51 push %ecx <== NOT EXECUTED
10ccf1: 56 push %esi <== NOT EXECUTED
10ccf2: a1 80 c5 12 00 mov 0x12c580,%eax <== NOT EXECUTED
10ccf7: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10ccfa: e8 65 20 01 00 call 11ed64 <vfprintf> <== NOT EXECUTED
10ccff: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (status)
10cd01: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10cd04: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
10cd07: 85 c0 test %eax,%eax <== NOT EXECUTED
10cd09: 0f 85 c9 00 00 00 jne 10cdd8 <rtems_verror+0x15c> <== NOT EXECUTED
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
if (local_errno)
10cd0f: 83 ff 00 cmp $0x0,%edi <== NOT EXECUTED
10cd12: 74 30 je 10cd44 <rtems_verror+0xc8> <== NOT EXECUTED
{
if ((local_errno > 0) && *strerror(local_errno))
10cd14: 7e 15 jle 10cd2b <rtems_verror+0xaf> <== NOT EXECUTED
10cd16: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10cd19: 57 push %edi <== NOT EXECUTED
10cd1a: e8 25 d0 00 00 call 119d44 <strerror> <== NOT EXECUTED
10cd1f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10cd22: 80 38 00 cmpb $0x0,(%eax) <== NOT EXECUTED
10cd25: 0f 85 d9 00 00 00 jne 10ce04 <rtems_verror+0x188> <== NOT EXECUTED
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
else
chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
10cd2b: 51 push %ecx <== NOT EXECUTED
10cd2c: 57 push %edi <== NOT EXECUTED
10cd2d: 68 89 71 12 00 push $0x127189 <== NOT EXECUTED
10cd32: a1 80 c5 12 00 mov 0x12c580,%eax <== NOT EXECUTED
10cd37: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10cd3a: e8 89 c8 00 00 call 1195c8 <fprintf> <== NOT EXECUTED
10cd3f: 01 c6 add %eax,%esi <== NOT EXECUTED
10cd41: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
chars_written += fprintf(stderr, "\n");
10cd44: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10cd47: 68 0b 64 12 00 push $0x12640b <== NOT EXECUTED
10cd4c: a1 80 c5 12 00 mov 0x12c580,%eax <== NOT EXECUTED
10cd51: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10cd54: e8 6f c8 00 00 call 1195c8 <fprintf> <== NOT EXECUTED
10cd59: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
(void) fflush(stderr);
10cd5c: 5a pop %edx <== NOT EXECUTED
10cd5d: a1 80 c5 12 00 mov 0x12c580,%eax <== NOT EXECUTED
10cd62: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10cd65: e8 16 c5 00 00 call 119280 <fflush> <== NOT EXECUTED
if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT))
10cd6a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10cd6d: 81 e3 00 00 00 30 and $0x30000000,%ebx <== NOT EXECUTED
10cd73: 74 1f je 10cd94 <rtems_verror+0x118> <== NOT EXECUTED
{
if (error_flag & RTEMS_ERROR_PANIC)
10cd75: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10cd78: 85 c0 test %eax,%eax <== NOT EXECUTED
10cd7a: 74 34 je 10cdb0 <rtems_verror+0x134> <== NOT EXECUTED
{
rtems_error(0, "fatal error, exiting");
10cd7c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10cd7f: 68 9d 71 12 00 push $0x12719d <== NOT EXECUTED
10cd84: 6a 00 push $0x0 <== NOT EXECUTED
10cd86: e8 a9 00 00 00 call 10ce34 <rtems_error> <== NOT EXECUTED
_exit(local_errno);
10cd8b: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED
10cd8e: e8 35 0b 00 00 call 10d8c8 <_exit> <== NOT EXECUTED
10cd93: 90 nop <== 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");
10cd94: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED
10cd97: 01 f0 add %esi,%eax <== NOT EXECUTED
rtems_error(0, "fatal error, aborting");
abort();
}
}
return chars_written;
}
10cd99: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10cd9c: 5b pop %ebx <== NOT EXECUTED
10cd9d: 5e pop %esi <== NOT EXECUTED
10cd9e: 5f pop %edi <== NOT EXECUTED
10cd9f: c9 leave <== NOT EXECUTED
10cda0: c3 ret <== NOT EXECUTED
10cda1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_exit(local_errno);
}
else
{
rtems_error(0, "fatal error, aborting");
abort();
10cda4: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
}
return chars_written;
}
10cda6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
10cda9: 5b pop %ebx <== NOT EXECUTED
10cdaa: 5e pop %esi <== NOT EXECUTED
10cdab: 5f pop %edi <== NOT EXECUTED
10cdac: c9 leave <== NOT EXECUTED
10cdad: c3 ret <== NOT EXECUTED
10cdae: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_error(0, "fatal error, exiting");
_exit(local_errno);
}
else
{
rtems_error(0, "fatal error, aborting");
10cdb0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
10cdb3: 68 b2 71 12 00 push $0x1271b2 <== NOT EXECUTED
10cdb8: 6a 00 push $0x0 <== NOT EXECUTED
10cdba: e8 75 00 00 00 call 10ce34 <rtems_error> <== NOT EXECUTED
abort();
10cdbf: e8 0c c1 00 00 call 118ed0 <abort> <== NOT EXECUTED
(void) fflush(stdout); /* in case stdout/stderr same */
status = error_flag & ~RTEMS_ERROR_MASK;
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
local_errno = errno;
10cdc4: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
10cdc7: e8 38 c1 00 00 call 118f04 <__errno> <== NOT EXECUTED
10cdcc: 8b 38 mov (%eax),%edi <== NOT EXECUTED
10cdce: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED
10cdd1: e9 19 ff ff ff jmp 10ccef <rtems_verror+0x73> <== NOT EXECUTED
10cdd6: 66 90 xchg %ax,%ax <== NOT EXECUTED
#endif
chars_written += vfprintf(stderr, printf_format, arglist);
if (status)
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
10cdd8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10cddb: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED
10cdde: e8 81 fe ff ff call 10cc64 <rtems_status_text> <== NOT EXECUTED
10cde3: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10cde6: 50 push %eax <== NOT EXECUTED
10cde7: 68 6e 71 12 00 push $0x12716e <== NOT EXECUTED
10cdec: a1 80 c5 12 00 mov 0x12c580,%eax <== NOT EXECUTED
10cdf1: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED
10cdf4: e8 cf c7 00 00 call 1195c8 <fprintf> <== NOT EXECUTED
10cdf9: 01 c6 add %eax,%esi <== NOT EXECUTED
10cdfb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
10cdfe: e9 0c ff ff ff jmp 10cd0f <rtems_verror+0x93> <== NOT EXECUTED
10ce03: 90 nop <== NOT EXECUTED
if (local_errno)
{
if ((local_errno > 0) && *strerror(local_errno))
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
10ce04: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ce07: 57 push %edi <== NOT EXECUTED
10ce08: e8 37 cf 00 00 call 119d44 <strerror> <== NOT EXECUTED
10ce0d: 83 c4 0c add $0xc,%esp <== NOT EXECUTED
10ce10: 50 push %eax <== NOT EXECUTED
10ce11: 68 7c 71 12 00 push $0x12717c <== NOT EXECUTED
10ce16: e9 17 ff ff ff jmp 10cd32 <rtems_verror+0xb6> <== NOT EXECUTED
0012e4d0 <scanInt>:
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
12e4d0: 55 push %ebp
12e4d1: 89 e5 mov %esp,%ebp
12e4d3: 57 push %edi
12e4d4: 56 push %esi
12e4d5: 53 push %ebx
12e4d6: 83 ec 1c sub $0x1c,%esp
12e4d9: 89 c6 mov %eax,%esi
12e4db: 89 55 e0 mov %edx,-0x20(%ebp)
12e4de: 31 ff xor %edi,%edi
12e4e0: c7 45 e4 ff ff ff 7f movl $0x7fffffff,-0x1c(%ebp)
12e4e7: 31 db xor %ebx,%ebx
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
12e4e9: 8b 46 04 mov 0x4(%esi),%eax
12e4ec: 48 dec %eax
12e4ed: 89 46 04 mov %eax,0x4(%esi)
12e4f0: 85 c0 test %eax,%eax
12e4f2: 78 52 js 12e546 <scanInt+0x76> <== NEVER TAKEN
12e4f4: 8b 06 mov (%esi),%eax
12e4f6: 0f b6 08 movzbl (%eax),%ecx
12e4f9: 40 inc %eax
12e4fa: 89 06 mov %eax,(%esi)
if (c == ':')
12e4fc: 83 f9 3a cmp $0x3a,%ecx
12e4ff: 74 5f je 12e560 <scanInt+0x90>
break;
if (sign == 0) {
12e501: 85 ff test %edi,%edi
12e503: 75 0e jne 12e513 <scanInt+0x43> <== NEVER TAKEN
if (c == '-') {
12e505: 83 f9 2d cmp $0x2d,%ecx
12e508: 0f 84 8a 00 00 00 je 12e598 <scanInt+0xc8> <== NEVER TAKEN
sign = -1;
limit++;
continue;
12e50e: bf 01 00 00 00 mov $0x1,%edi
}
sign = 1;
}
if (!isdigit(c))
12e513: a1 e8 da 16 00 mov 0x16dae8,%eax
12e518: f6 44 08 01 04 testb $0x4,0x1(%eax,%ecx,1)
12e51d: 74 6d je 12e58c <scanInt+0xbc> <== NEVER TAKEN
return 0;
d = c - '0';
if ((i > (limit / 10))
12e51f: b8 cd cc cc cc mov $0xcccccccd,%eax
12e524: f7 65 e4 mull -0x1c(%ebp)
12e527: c1 ea 03 shr $0x3,%edx
12e52a: 39 d3 cmp %edx,%ebx
12e52c: 77 5e ja 12e58c <scanInt+0xbc> <== NEVER TAKEN
}
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
12e52e: 83 e9 30 sub $0x30,%ecx
if ((i > (limit / 10))
12e531: 39 d3 cmp %edx,%ebx
12e533: 74 47 je 12e57c <scanInt+0xac> <== NEVER TAKEN
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
i = i * 10 + d;
12e535: 8d 04 9b lea (%ebx,%ebx,4),%eax
12e538: 8d 1c 41 lea (%ecx,%eax,2),%ebx
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
12e53b: 8b 46 04 mov 0x4(%esi),%eax
12e53e: 48 dec %eax
12e53f: 89 46 04 mov %eax,0x4(%esi)
12e542: 85 c0 test %eax,%eax
12e544: 79 ae jns 12e4f4 <scanInt+0x24> <== ALWAYS TAKEN
12e546: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12e549: 56 push %esi <== NOT EXECUTED
12e54a: ff 35 00 db 16 00 pushl 0x16db00 <== NOT EXECUTED
12e550: e8 3b d0 01 00 call 14b590 <__srget_r> <== NOT EXECUTED
12e555: 89 c1 mov %eax,%ecx <== NOT EXECUTED
12e557: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (c == ':')
12e55a: 83 f9 3a cmp $0x3a,%ecx <== NOT EXECUTED
12e55d: 75 a2 jne 12e501 <scanInt+0x31> <== NOT EXECUTED
12e55f: 90 nop <== NOT EXECUTED
if ((i > (limit / 10))
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
i = i * 10 + d;
}
if (sign == 0)
12e560: 85 ff test %edi,%edi
12e562: 74 28 je 12e58c <scanInt+0xbc> <== NEVER TAKEN
return 0;
*val = i * sign;
12e564: 0f af df imul %edi,%ebx
12e567: 8b 45 e0 mov -0x20(%ebp),%eax
12e56a: 89 18 mov %ebx,(%eax)
12e56c: b8 01 00 00 00 mov $0x1,%eax
return 1;
}
12e571: 8d 65 f4 lea -0xc(%ebp),%esp
12e574: 5b pop %ebx
12e575: 5e pop %esi
12e576: 5f pop %edi
12e577: c9 leave
12e578: c3 ret
12e579: 8d 76 00 lea 0x0(%esi),%esi
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
if ((i > (limit / 10))
12e57c: 8d 04 9b lea (%ebx,%ebx,4),%eax <== NOT EXECUTED
12e57f: d1 e0 shl %eax <== NOT EXECUTED
12e581: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
12e584: 29 c2 sub %eax,%edx <== NOT EXECUTED
12e586: 39 d1 cmp %edx,%ecx <== NOT EXECUTED
12e588: 76 ab jbe 12e535 <scanInt+0x65> <== NOT EXECUTED
12e58a: 66 90 xchg %ax,%ax <== NOT EXECUTED
i = i * 10 + d;
}
if (sign == 0)
return 0;
*val = i * sign;
return 1;
12e58c: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
12e58e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12e591: 5b pop %ebx <== NOT EXECUTED
12e592: 5e pop %esi <== NOT EXECUTED
12e593: 5f pop %edi <== NOT EXECUTED
12e594: c9 leave <== NOT EXECUTED
12e595: c3 ret <== NOT EXECUTED
12e596: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (c == ':')
break;
if (sign == 0) {
if (c == '-') {
sign = -1;
limit++;
12e598: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED
12e59b: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
continue;
12e5a0: e9 44 ff ff ff jmp 12e4e9 <scanInt+0x19> <== NOT EXECUTED
0012e5a8 <scanString>:
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
12e5a8: 55 push %ebp
12e5a9: 89 e5 mov %esp,%ebp
12e5ab: 57 push %edi
12e5ac: 56 push %esi
12e5ad: 53 push %ebx
12e5ae: 83 ec 0c sub $0xc,%esp
12e5b1: 89 c3 mov %eax,%ebx
12e5b3: 89 ce mov %ecx,%esi
12e5b5: 8b 7d 08 mov 0x8(%ebp),%edi
int c;
*name = *bufp;
12e5b8: 8b 01 mov (%ecx),%eax
12e5ba: 89 02 mov %eax,(%edx)
12e5bc: eb 26 jmp 12e5e4 <scanString+0x3c>
12e5be: 66 90 xchg %ax,%ax
for (;;) {
c = getc(fp);
12e5c0: 8b 13 mov (%ebx),%edx
12e5c2: 0f b6 02 movzbl (%edx),%eax
12e5c5: 42 inc %edx
12e5c6: 89 13 mov %edx,(%ebx)
if (c == ':') {
12e5c8: 83 f8 3a cmp $0x3a,%eax
12e5cb: 74 3b je 12e608 <scanString+0x60>
if (nlFlag)
return 0;
break;
}
if (c == '\n') {
12e5cd: 83 f8 0a cmp $0xa,%eax
12e5d0: 74 56 je 12e628 <scanString+0x80>
if (!nlFlag)
return 0;
break;
}
if (c == EOF)
12e5d2: 83 f8 ff cmp $0xffffffff,%eax
12e5d5: 74 59 je 12e630 <scanString+0x88> <== NEVER TAKEN
return 0;
if (*nleft < 2)
12e5d7: 83 3f 01 cmpl $0x1,(%edi)
12e5da: 76 54 jbe 12e630 <scanString+0x88> <== NEVER TAKEN
return 0;
**bufp = c;
12e5dc: 8b 16 mov (%esi),%edx
12e5de: 88 02 mov %al,(%edx)
++(*bufp);
12e5e0: ff 06 incl (%esi)
--(*nleft);
12e5e2: ff 0f decl (%edi)
{
int c;
*name = *bufp;
for (;;) {
c = getc(fp);
12e5e4: 8b 43 04 mov 0x4(%ebx),%eax
12e5e7: 48 dec %eax
12e5e8: 89 43 04 mov %eax,0x4(%ebx)
12e5eb: 85 c0 test %eax,%eax
12e5ed: 79 d1 jns 12e5c0 <scanString+0x18>
12e5ef: 83 ec 08 sub $0x8,%esp
12e5f2: 53 push %ebx
12e5f3: ff 35 00 db 16 00 pushl 0x16db00
12e5f9: e8 92 cf 01 00 call 14b590 <__srget_r>
12e5fe: 83 c4 10 add $0x10,%esp
if (c == ':') {
12e601: 83 f8 3a cmp $0x3a,%eax
12e604: 75 c7 jne 12e5cd <scanString+0x25> <== ALWAYS TAKEN
12e606: 66 90 xchg %ax,%ax
if (nlFlag)
12e608: 8b 55 0c mov 0xc(%ebp),%edx
12e60b: 85 d2 test %edx,%edx
12e60d: 75 21 jne 12e630 <scanString+0x88> <== NEVER TAKEN
return 0;
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
12e60f: 8b 06 mov (%esi),%eax
12e611: c6 00 00 movb $0x0,(%eax)
++(*bufp);
12e614: ff 06 incl (%esi)
--(*nleft);
12e616: ff 0f decl (%edi)
12e618: b8 01 00 00 00 mov $0x1,%eax
return 1;
}
12e61d: 8d 65 f4 lea -0xc(%ebp),%esp
12e620: 5b pop %ebx
12e621: 5e pop %esi
12e622: 5f pop %edi
12e623: c9 leave
12e624: c3 ret
12e625: 8d 76 00 lea 0x0(%esi),%esi
if (nlFlag)
return 0;
break;
}
if (c == '\n') {
if (!nlFlag)
12e628: 8b 45 0c mov 0xc(%ebp),%eax
12e62b: 85 c0 test %eax,%eax
12e62d: 75 e0 jne 12e60f <scanString+0x67> <== ALWAYS TAKEN
12e62f: 90 nop
--(*nleft);
}
**bufp = '\0';
++(*bufp);
--(*nleft);
return 1;
12e630: 31 c0 xor %eax,%eax
}
12e632: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12e635: 5b pop %ebx <== NOT EXECUTED
12e636: 5e pop %esi <== NOT EXECUTED
12e637: 5f pop %edi <== NOT EXECUTED
12e638: c9 leave <== NOT EXECUTED
12e639: c3 ret <== NOT EXECUTED
0012e63c <scangr>:
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
12e63c: 55 push %ebp
12e63d: 89 e5 mov %esp,%ebp
12e63f: 57 push %edi
12e640: 56 push %esi
12e641: 53 push %ebx
12e642: 83 ec 34 sub $0x34,%esp
12e645: 89 c6 mov %eax,%esi
12e647: 89 d3 mov %edx,%ebx
12e649: 89 4d d4 mov %ecx,-0x2c(%ebp)
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
12e64c: 8d 7d d4 lea -0x2c(%ebp),%edi
12e64f: 6a 00 push $0x0
12e651: 8d 45 08 lea 0x8(%ebp),%eax
12e654: 50 push %eax
12e655: 89 f9 mov %edi,%ecx
12e657: 89 f0 mov %esi,%eax
12e659: e8 4a ff ff ff call 12e5a8 <scanString>
12e65e: 83 c4 10 add $0x10,%esp
12e661: 85 c0 test %eax,%eax
12e663: 75 0b jne 12e670 <scangr+0x34> <== ALWAYS TAKEN
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
return 1;
12e665: 31 c0 xor %eax,%eax
}
12e667: 8d 65 f4 lea -0xc(%ebp),%esp
12e66a: 5b pop %ebx
12e66b: 5e pop %esi
12e66c: 5f pop %edi
12e66d: c9 leave
12e66e: c3 ret
12e66f: 90 nop
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
12e670: 83 ec 08 sub $0x8,%esp
12e673: 8d 53 04 lea 0x4(%ebx),%edx
12e676: 6a 00 push $0x0
12e678: 8d 45 08 lea 0x8(%ebp),%eax
12e67b: 50 push %eax
12e67c: 89 f9 mov %edi,%ecx
12e67e: 89 f0 mov %esi,%eax
12e680: e8 23 ff ff ff call 12e5a8 <scanString>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
12e685: 83 c4 10 add $0x10,%esp
12e688: 85 c0 test %eax,%eax
12e68a: 74 d9 je 12e665 <scangr+0x29> <== NEVER TAKEN
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
12e68c: 8d 55 e4 lea -0x1c(%ebp),%edx
12e68f: 89 f0 mov %esi,%eax
12e691: e8 3a fe ff ff call 12e4d0 <scanInt>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
12e696: 85 c0 test %eax,%eax
12e698: 74 cb je 12e665 <scangr+0x29> <== NEVER TAKEN
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
12e69a: 83 ec 08 sub $0x8,%esp
12e69d: 8d 55 e0 lea -0x20(%ebp),%edx
12e6a0: 6a 01 push $0x1
12e6a2: 8d 45 08 lea 0x8(%ebp),%eax
12e6a5: 50 push %eax
12e6a6: 89 f9 mov %edi,%ecx
12e6a8: 89 f0 mov %esi,%eax
12e6aa: e8 f9 fe ff ff call 12e5a8 <scanString>
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
12e6af: 83 c4 10 add $0x10,%esp
12e6b2: 85 c0 test %eax,%eax
12e6b4: 74 af je 12e665 <scangr+0x29> <== 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;
12e6b6: 8b 45 e4 mov -0x1c(%ebp),%eax
12e6b9: 66 89 43 08 mov %ax,0x8(%ebx)
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
12e6bd: 8b 75 e0 mov -0x20(%ebp),%esi
12e6c0: 8a 06 mov (%esi),%al
12e6c2: 84 c0 test %al,%al
12e6c4: 74 7d je 12e743 <scangr+0x107> <== NEVER TAKEN
12e6c6: 89 f2 mov %esi,%edx
12e6c8: b9 01 00 00 00 mov $0x1,%ecx
12e6cd: eb 08 jmp 12e6d7 <scangr+0x9b>
12e6cf: 90 nop
12e6d0: 42 inc %edx
12e6d1: 8a 02 mov (%edx),%al
12e6d3: 84 c0 test %al,%al
12e6d5: 74 09 je 12e6e0 <scangr+0xa4>
if(*cp == ',')
12e6d7: 3c 2c cmp $0x2c,%al
12e6d9: 75 f5 jne 12e6d0 <scangr+0x94> <== ALWAYS TAKEN
memcount++;
12e6db: 41 inc %ecx <== NOT EXECUTED
12e6dc: eb f2 jmp 12e6d0 <scangr+0x94> <== NOT EXECUTED
12e6de: 66 90 xchg %ax,%ax <== NOT EXECUTED
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
12e6e0: 8d 04 8d 13 00 00 00 lea 0x13(,%ecx,4),%eax
}
/*
* Hack to produce (hopefully) a suitably-aligned array of pointers
*/
if (bufsize < (((memcount+1)*sizeof(char *)) + 15))
12e6e7: 39 45 08 cmp %eax,0x8(%ebp)
12e6ea: 0f 82 75 ff ff ff jb 12e665 <scangr+0x29> <== NEVER TAKEN
return 0;
grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);
12e6f0: 8b 45 d4 mov -0x2c(%ebp),%eax
12e6f3: 83 c0 0f add $0xf,%eax
12e6f6: 83 e0 f0 and $0xfffffff0,%eax
12e6f9: 89 43 0c mov %eax,0xc(%ebx)
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
12e6fc: 89 30 mov %esi,(%eax)
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
12e6fe: 8b 45 e0 mov -0x20(%ebp),%eax
12e701: 8a 10 mov (%eax),%dl
12e703: 84 d2 test %dl,%dl
12e705: 74 43 je 12e74a <scangr+0x10e> <== NEVER TAKEN
12e707: 40 inc %eax
12e708: b9 01 00 00 00 mov $0x1,%ecx
12e70d: eb 08 jmp 12e717 <scangr+0xdb>
12e70f: 90 nop
12e710: 8a 10 mov (%eax),%dl
12e712: 40 inc %eax
12e713: 84 d2 test %dl,%dl
12e715: 74 15 je 12e72c <scangr+0xf0>
if(*cp == ',') {
12e717: 80 fa 2c cmp $0x2c,%dl
12e71a: 75 f4 jne 12e710 <scangr+0xd4> <== ALWAYS TAKEN
*cp = '\0';
12e71c: c6 40 ff 00 movb $0x0,-0x1(%eax) <== NOT EXECUTED
grp->gr_mem[memcount++] = cp + 1;
12e720: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED
12e723: 89 04 8a mov %eax,(%edx,%ecx,4) <== NOT EXECUTED
12e726: 41 inc %ecx <== NOT EXECUTED
12e727: eb e7 jmp 12e710 <scangr+0xd4> <== NOT EXECUTED
12e729: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
12e72c: c1 e1 02 shl $0x2,%ecx
if(*cp == ',') {
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
12e72f: 8b 43 0c mov 0xc(%ebx),%eax
12e732: c7 04 08 00 00 00 00 movl $0x0,(%eax,%ecx,1)
12e739: b8 01 00 00 00 mov $0x1,%eax
return 1;
12e73e: e9 24 ff ff ff jmp 12e667 <scangr+0x2b>
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
12e743: b8 17 00 00 00 mov $0x17,%eax <== NOT EXECUTED
12e748: eb 9d jmp 12e6e7 <scangr+0xab> <== NOT EXECUTED
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
12e74a: b9 04 00 00 00 mov $0x4,%ecx <== NOT EXECUTED
12e74f: eb de jmp 12e72f <scangr+0xf3> <== NOT EXECUTED
0012e790 <scanpw>:
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
12e790: 55 push %ebp
12e791: 89 e5 mov %esp,%ebp
12e793: 57 push %edi
12e794: 56 push %esi
12e795: 53 push %ebx
12e796: 83 ec 34 sub $0x34,%esp
12e799: 89 c6 mov %eax,%esi
12e79b: 89 d3 mov %edx,%ebx
12e79d: 89 4d d4 mov %ecx,-0x2c(%ebp)
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12e7a0: 8d 7d d4 lea -0x2c(%ebp),%edi
12e7a3: 6a 00 push $0x0
12e7a5: 8d 45 08 lea 0x8(%ebp),%eax
12e7a8: 50 push %eax
12e7a9: 89 f9 mov %edi,%ecx
12e7ab: 89 f0 mov %esi,%eax
12e7ad: e8 f6 fd ff ff call 12e5a8 <scanString>
12e7b2: 83 c4 10 add $0x10,%esp
12e7b5: 85 c0 test %eax,%eax
12e7b7: 75 0b jne 12e7c4 <scanpw+0x34> <== ALWAYS TAKEN
|| !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))
return 0;
pwd->pw_uid = pwuid;
pwd->pw_gid = pwgid;
return 1;
12e7b9: 31 c0 xor %eax,%eax
}
12e7bb: 8d 65 f4 lea -0xc(%ebp),%esp
12e7be: 5b pop %ebx
12e7bf: 5e pop %esi
12e7c0: 5f pop %edi
12e7c1: c9 leave
12e7c2: c3 ret
12e7c3: 90 nop
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
12e7c4: 83 ec 08 sub $0x8,%esp
12e7c7: 8d 53 04 lea 0x4(%ebx),%edx
12e7ca: 6a 00 push $0x0
12e7cc: 8d 45 08 lea 0x8(%ebp),%eax
12e7cf: 50 push %eax
12e7d0: 89 f9 mov %edi,%ecx
12e7d2: 89 f0 mov %esi,%eax
12e7d4: e8 cf fd ff ff call 12e5a8 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12e7d9: 83 c4 10 add $0x10,%esp
12e7dc: 85 c0 test %eax,%eax
12e7de: 74 d9 je 12e7b9 <scanpw+0x29> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
12e7e0: 8d 55 e4 lea -0x1c(%ebp),%edx
12e7e3: 89 f0 mov %esi,%eax
12e7e5: e8 e6 fc ff ff call 12e4d0 <scanInt>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12e7ea: 85 c0 test %eax,%eax
12e7ec: 74 cb je 12e7b9 <scanpw+0x29> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
12e7ee: 8d 55 e0 lea -0x20(%ebp),%edx
12e7f1: 89 f0 mov %esi,%eax
12e7f3: e8 d8 fc ff ff call 12e4d0 <scanInt>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12e7f8: 85 c0 test %eax,%eax
12e7fa: 74 bd je 12e7b9 <scanpw+0x29> <== NEVER TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
12e7fc: 83 ec 08 sub $0x8,%esp
12e7ff: 8d 53 0c lea 0xc(%ebx),%edx
12e802: 6a 00 push $0x0
12e804: 8d 45 08 lea 0x8(%ebp),%eax
12e807: 50 push %eax
12e808: 89 f9 mov %edi,%ecx
12e80a: 89 f0 mov %esi,%eax
12e80c: e8 97 fd ff ff call 12e5a8 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12e811: 83 c4 10 add $0x10,%esp
12e814: 85 c0 test %eax,%eax
12e816: 74 a1 je 12e7b9 <scanpw+0x29> <== 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)
12e818: 83 ec 08 sub $0x8,%esp
12e81b: 8d 53 10 lea 0x10(%ebx),%edx
12e81e: 6a 00 push $0x0
12e820: 8d 45 08 lea 0x8(%ebp),%eax
12e823: 50 push %eax
12e824: 89 f9 mov %edi,%ecx
12e826: 89 f0 mov %esi,%eax
12e828: e8 7b fd ff ff call 12e5a8 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12e82d: 83 c4 10 add $0x10,%esp
12e830: 85 c0 test %eax,%eax
12e832: 74 85 je 12e7b9 <scanpw+0x29> <== 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)
12e834: 83 ec 08 sub $0x8,%esp
12e837: 8d 53 14 lea 0x14(%ebx),%edx
12e83a: 6a 00 push $0x0
12e83c: 8d 45 08 lea 0x8(%ebp),%eax
12e83f: 50 push %eax
12e840: 89 f9 mov %edi,%ecx
12e842: 89 f0 mov %esi,%eax
12e844: e8 5f fd ff ff call 12e5a8 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12e849: 83 c4 10 add $0x10,%esp
12e84c: 85 c0 test %eax,%eax
12e84e: 0f 84 65 ff ff ff je 12e7b9 <scanpw+0x29> <== 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))
12e854: 83 ec 08 sub $0x8,%esp
12e857: 8d 53 18 lea 0x18(%ebx),%edx
12e85a: 6a 01 push $0x1
12e85c: 8d 45 08 lea 0x8(%ebp),%eax
12e85f: 50 push %eax
12e860: 89 f9 mov %edi,%ecx
12e862: 89 f0 mov %esi,%eax
12e864: e8 3f fd ff ff call 12e5a8 <scanString>
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12e869: 83 c4 10 add $0x10,%esp
12e86c: 85 c0 test %eax,%eax
12e86e: 0f 84 45 ff ff ff je 12e7b9 <scanpw+0x29> <== 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;
12e874: 8b 45 e4 mov -0x1c(%ebp),%eax
12e877: 66 89 43 08 mov %ax,0x8(%ebx)
pwd->pw_gid = pwgid;
12e87b: 8b 45 e0 mov -0x20(%ebp),%eax
12e87e: 66 89 43 0a mov %ax,0xa(%ebx)
12e882: b8 01 00 00 00 mov $0x1,%eax
return 1;
12e887: e9 2f ff ff ff jmp 12e7bb <scanpw+0x2b>
0012e47c <setgid>:
*/
int setgid(
gid_t gid
)
{
12e47c: 55 push %ebp <== NOT EXECUTED
12e47d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
_POSIX_types_Gid = gid;
12e47f: a1 20 d3 16 00 mov 0x16d320,%eax <== NOT EXECUTED
12e484: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
12e487: 66 89 50 34 mov %dx,0x34(%eax) <== NOT EXECUTED
return 0;
}
12e48b: 31 c0 xor %eax,%eax <== NOT EXECUTED
12e48d: c9 leave <== NOT EXECUTED
12e48e: c3 ret <== NOT EXECUTED
0012e9c8 <setgrent>:
return NULL;
return &grent;
}
void setgrent(void)
{
12e9c8: 55 push %ebp <== NOT EXECUTED
12e9c9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12e9cb: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
init_etc_passwd_group();
12e9ce: e8 f5 fe ff ff call 12e8c8 <init_etc_passwd_group> <== NOT EXECUTED
if (group_fp != NULL)
12e9d3: a1 24 29 17 00 mov 0x172924,%eax <== NOT EXECUTED
12e9d8: 85 c0 test %eax,%eax <== NOT EXECUTED
12e9da: 74 0c je 12e9e8 <setgrent+0x20> <== NOT EXECUTED
fclose(group_fp);
12e9dc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12e9df: 50 push %eax <== NOT EXECUTED
12e9e0: e8 f3 7e 01 00 call 1468d8 <fclose> <== NOT EXECUTED
12e9e5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
group_fp = fopen("/etc/group", "r");
12e9e8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12e9eb: 68 c9 09 16 00 push $0x1609c9 <== NOT EXECUTED
12e9f0: 68 bc cd 15 00 push $0x15cdbc <== NOT EXECUTED
12e9f5: e8 f6 86 01 00 call 1470f0 <fopen> <== NOT EXECUTED
12e9fa: a3 24 29 17 00 mov %eax,0x172924 <== NOT EXECUTED
12e9ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12ea02: c9 leave <== NOT EXECUTED
12ea03: c3 ret <== NOT EXECUTED
0012eb94 <setpwent>:
return NULL;
return &pwent;
}
void setpwent(void)
{
12eb94: 55 push %ebp <== NOT EXECUTED
12eb95: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12eb97: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
init_etc_passwd_group();
12eb9a: e8 29 fd ff ff call 12e8c8 <init_etc_passwd_group> <== NOT EXECUTED
if (passwd_fp != NULL)
12eb9f: a1 24 28 17 00 mov 0x172824,%eax <== NOT EXECUTED
12eba4: 85 c0 test %eax,%eax <== NOT EXECUTED
12eba6: 74 0c je 12ebb4 <setpwent+0x20> <== NOT EXECUTED
fclose(passwd_fp);
12eba8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12ebab: 50 push %eax <== NOT EXECUTED
12ebac: e8 27 7d 01 00 call 1468d8 <fclose> <== NOT EXECUTED
12ebb1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
passwd_fp = fopen("/etc/passwd", "r");
12ebb4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12ebb7: 68 c9 09 16 00 push $0x1609c9 <== NOT EXECUTED
12ebbc: 68 b0 cd 15 00 push $0x15cdb0 <== NOT EXECUTED
12ebc1: e8 2a 85 01 00 call 1470f0 <fopen> <== NOT EXECUTED
12ebc6: a3 24 28 17 00 mov %eax,0x172824 <== NOT EXECUTED
12ebcb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12ebce: c9 leave <== NOT EXECUTED
12ebcf: c3 ret <== NOT EXECUTED
0010e97c <setuid>:
*/
int setuid(
uid_t uid
)
{
10e97c: 55 push %ebp <== NOT EXECUTED
10e97d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
_POSIX_types_Uid = uid;
10e97f: a1 20 d3 16 00 mov 0x16d320,%eax <== NOT EXECUTED
10e984: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
10e987: 66 89 50 32 mov %dx,0x32(%eax) <== NOT EXECUTED
return 0;
}
10e98b: 31 c0 xor %eax,%eax <== NOT EXECUTED
10e98d: c9 leave <== NOT EXECUTED
10e98e: c3 ret <== NOT EXECUTED
0010a204 <siproc>:
/*
* Process input character, with semaphore.
*/
static int
siproc (unsigned char c, struct rtems_termios_tty *tty)
{
10a204: 55 push %ebp <== NOT EXECUTED
10a205: 89 e5 mov %esp,%ebp <== NOT EXECUTED
10a207: 56 push %esi <== NOT EXECUTED
10a208: 53 push %ebx <== NOT EXECUTED
10a209: 89 d3 mov %edx,%ebx <== NOT EXECUTED
10a20b: 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)) {
10a20d: f7 42 3c 78 0e 00 00 testl $0xe78,0x3c(%edx) <== NOT EXECUTED
10a214: 75 12 jne 10a228 <siproc+0x24> <== 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);
10a216: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
10a219: 89 da mov %ebx,%edx <== NOT EXECUTED
}
return i;
}
10a21b: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10a21e: 5b pop %ebx <== NOT EXECUTED
10a21f: 5e pop %esi <== NOT EXECUTED
10a220: 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);
10a221: e9 a2 fe ff ff jmp 10a0c8 <iproc> <== NOT EXECUTED
10a226: 66 90 xchg %ax,%ax <== NOT EXECUTED
/*
* Obtain output semaphore if character will be echoed
*/
if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
10a228: 52 push %edx <== NOT EXECUTED
10a229: 6a 00 push $0x0 <== NOT EXECUTED
10a22b: 6a 00 push $0x0 <== NOT EXECUTED
10a22d: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED
10a230: e8 af 1a 00 00 call 10bce4 <rtems_semaphore_obtain><== NOT EXECUTED
i = iproc (c, tty);
10a235: 89 f2 mov %esi,%edx <== NOT EXECUTED
10a237: 0f b6 c2 movzbl %dl,%eax <== NOT EXECUTED
10a23a: 89 da mov %ebx,%edx <== NOT EXECUTED
10a23c: e8 87 fe ff ff call 10a0c8 <iproc> <== NOT EXECUTED
10a241: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
10a243: 58 pop %eax <== NOT EXECUTED
10a244: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED
10a247: e8 94 1b 00 00 call 10bde0 <rtems_semaphore_release><== NOT EXECUTED
10a24c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
else {
i = iproc (c, tty);
}
return i;
}
10a24f: 89 f0 mov %esi,%eax <== NOT EXECUTED
10a251: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
10a254: 5b pop %ebx <== NOT EXECUTED
10a255: 5e pop %esi <== NOT EXECUTED
10a256: c9 leave <== NOT EXECUTED
10a257: c3 ret <== NOT EXECUTED
0010fe80 <stat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
10fe80: 55 push %ebp
10fe81: 89 e5 mov %esp,%ebp
10fe83: 57 push %edi
10fe84: 56 push %esi
10fe85: 53 push %ebx
10fe86: 83 ec 2c sub $0x2c,%esp
10fe89: 8b 55 08 mov 0x8(%ebp),%edx
10fe8c: 8b 75 0c mov 0xc(%ebp),%esi
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
10fe8f: 85 f6 test %esi,%esi
10fe91: 0f 84 9d 00 00 00 je 10ff34 <stat+0xb4>
rtems_set_errno_and_return_minus_one( EFAULT );
status = rtems_filesystem_evaluate_path( path, strlen( path ),
10fe97: b9 ff ff ff ff mov $0xffffffff,%ecx
10fe9c: 89 d7 mov %edx,%edi
10fe9e: 31 c0 xor %eax,%eax
10fea0: f2 ae repnz scas %es:(%edi),%al
10fea2: f7 d1 not %ecx
10fea4: 49 dec %ecx
10fea5: 83 ec 0c sub $0xc,%esp
10fea8: 6a 01 push $0x1
10feaa: 8d 5d d4 lea -0x2c(%ebp),%ebx
10fead: 53 push %ebx
10feae: 6a 00 push $0x0
10feb0: 51 push %ecx
10feb1: 52 push %edx
10feb2: e8 41 e9 ff ff call 10e7f8 <rtems_filesystem_evaluate_path>
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
10feb7: 83 c4 20 add $0x20,%esp
10feba: 85 c0 test %eax,%eax
10febc: 75 66 jne 10ff24 <stat+0xa4>
return -1;
if ( !loc.handlers->fstat_h ){
10febe: 8b 55 dc mov -0x24(%ebp),%edx
10fec1: 8b 42 18 mov 0x18(%edx),%eax
10fec4: 85 c0 test %eax,%eax
10fec6: 74 39 je 10ff01 <stat+0x81> <== NEVER TAKEN
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
10fec8: b9 48 00 00 00 mov $0x48,%ecx
10fecd: 89 f7 mov %esi,%edi
10fecf: 31 c0 xor %eax,%eax
10fed1: f3 aa rep stos %al,%es:(%edi)
status = (*loc.handlers->fstat_h)( &loc, buf );
10fed3: 83 ec 08 sub $0x8,%esp
10fed6: 56 push %esi
10fed7: 53 push %ebx
10fed8: ff 52 18 call *0x18(%edx)
10fedb: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
10fedd: 8b 45 e0 mov -0x20(%ebp),%eax
10fee0: 83 c4 10 add $0x10,%esp
10fee3: 85 c0 test %eax,%eax
10fee5: 74 10 je 10fef7 <stat+0x77> <== NEVER TAKEN
10fee7: 8b 40 1c mov 0x1c(%eax),%eax
10feea: 85 c0 test %eax,%eax
10feec: 74 09 je 10fef7 <stat+0x77> <== NEVER TAKEN
10feee: 83 ec 0c sub $0xc,%esp
10fef1: 53 push %ebx
10fef2: ff d0 call *%eax
10fef4: 83 c4 10 add $0x10,%esp
return status;
}
10fef7: 89 f0 mov %esi,%eax
10fef9: 8d 65 f4 lea -0xc(%ebp),%esp
10fefc: 5b pop %ebx
10fefd: 5e pop %esi
10fefe: 5f pop %edi
10feff: c9 leave
10ff00: c3 ret
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
return -1;
if ( !loc.handlers->fstat_h ){
rtems_filesystem_freenode( &loc );
10ff01: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
10ff04: 85 c0 test %eax,%eax <== NOT EXECUTED
10ff06: 74 10 je 10ff18 <stat+0x98> <== NOT EXECUTED
10ff08: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
10ff0b: 85 c0 test %eax,%eax <== NOT EXECUTED
10ff0d: 74 09 je 10ff18 <stat+0x98> <== NOT EXECUTED
10ff0f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
10ff12: 53 push %ebx <== NOT EXECUTED
10ff13: ff d0 call *%eax <== NOT EXECUTED
10ff15: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
10ff18: e8 6f 68 03 00 call 14678c <__errno> <== NOT EXECUTED
10ff1d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10ff23: 90 nop <== NOT EXECUTED
10ff24: be ff ff ff ff mov $0xffffffff,%esi
status = (*loc.handlers->fstat_h)( &loc, buf );
rtems_filesystem_freenode( &loc );
return status;
}
10ff29: 89 f0 mov %esi,%eax
10ff2b: 8d 65 f4 lea -0xc(%ebp),%esp
10ff2e: 5b pop %ebx
10ff2f: 5e pop %esi
10ff30: 5f pop %edi
10ff31: c9 leave
10ff32: c3 ret
10ff33: 90 nop
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
rtems_set_errno_and_return_minus_one( EFAULT );
10ff34: e8 53 68 03 00 call 14678c <__errno>
10ff39: c7 00 0e 00 00 00 movl $0xe,(%eax)
10ff3f: be ff ff ff ff mov $0xffffffff,%esi
status = (*loc.handlers->fstat_h)( &loc, buf );
rtems_filesystem_freenode( &loc );
return status;
}
10ff44: 89 f0 mov %esi,%eax
10ff46: 8d 65 f4 lea -0xc(%ebp),%esp
10ff49: 5b pop %ebx
10ff4a: 5e pop %esi
10ff4b: 5f pop %edi
10ff4c: c9 leave
10ff4d: c3 ret
0012fa34 <statvfs>:
#include <sys/statvfs.h>
int
statvfs (const char *path, struct statvfs *sb)
{
12fa34: 55 push %ebp <== NOT EXECUTED
12fa35: 89 e5 mov %esp,%ebp <== NOT EXECUTED
12fa37: 57 push %edi <== NOT EXECUTED
12fa38: 56 push %esi <== NOT EXECUTED
12fa39: 53 push %ebx <== NOT EXECUTED
12fa3a: 83 ec 38 sub $0x38,%esp <== NOT EXECUTED
12fa3d: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED
12fa40: 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 ) )
12fa43: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED
12fa48: 89 d7 mov %edx,%edi <== NOT EXECUTED
12fa4a: 31 c0 xor %eax,%eax <== NOT EXECUTED
12fa4c: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED
12fa4e: f7 d1 not %ecx <== NOT EXECUTED
12fa50: 49 dec %ecx <== NOT EXECUTED
12fa51: 6a 01 push $0x1 <== NOT EXECUTED
12fa53: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED
12fa56: 53 push %ebx <== NOT EXECUTED
12fa57: 6a 00 push $0x0 <== NOT EXECUTED
12fa59: 51 push %ecx <== NOT EXECUTED
12fa5a: 52 push %edx <== NOT EXECUTED
12fa5b: e8 98 ed fd ff call 10e7f8 <rtems_filesystem_evaluate_path><== NOT EXECUTED
12fa60: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
12fa63: 85 c0 test %eax,%eax <== NOT EXECUTED
12fa65: 75 59 jne 12fac0 <statvfs+0x8c> <== NOT EXECUTED
return -1;
mt_entry = loc.mt_entry;
12fa67: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
fs_mount_root = &mt_entry->mt_fs_root;
12fa6a: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED
12fa6d: 8b 40 44 mov 0x44(%eax),%eax <== NOT EXECUTED
12fa70: 85 c0 test %eax,%eax <== NOT EXECUTED
12fa72: 74 3f je 12fab3 <statvfs+0x7f> <== NOT EXECUTED
if ( !fs_mount_root->ops->statvfs_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
memset (sb, 0, sizeof (struct statvfs));
12fa74: b9 38 00 00 00 mov $0x38,%ecx <== NOT EXECUTED
12fa79: 89 f7 mov %esi,%edi <== NOT EXECUTED
12fa7b: 31 c0 xor %eax,%eax <== NOT EXECUTED
12fa7d: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );
12fa7f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
12fa82: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED
12fa85: 56 push %esi <== NOT EXECUTED
12fa86: 83 c2 1c add $0x1c,%edx <== NOT EXECUTED
12fa89: 52 push %edx <== NOT EXECUTED
12fa8a: ff 50 44 call *0x44(%eax) <== NOT EXECUTED
12fa8d: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
12fa8f: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED
12fa92: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12fa95: 85 c0 test %eax,%eax <== NOT EXECUTED
12fa97: 74 10 je 12faa9 <statvfs+0x75> <== NOT EXECUTED
12fa99: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
12fa9c: 85 c0 test %eax,%eax <== NOT EXECUTED
12fa9e: 74 09 je 12faa9 <statvfs+0x75> <== NOT EXECUTED
12faa0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12faa3: 53 push %ebx <== NOT EXECUTED
12faa4: ff d0 call *%eax <== NOT EXECUTED
12faa6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return result;
}
12faa9: 89 f0 mov %esi,%eax <== NOT EXECUTED
12faab: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12faae: 5b pop %ebx <== NOT EXECUTED
12faaf: 5e pop %esi <== NOT EXECUTED
12fab0: 5f pop %edi <== NOT EXECUTED
12fab1: c9 leave <== NOT EXECUTED
12fab2: c3 ret <== NOT EXECUTED
mt_entry = loc.mt_entry;
fs_mount_root = &mt_entry->mt_fs_root;
if ( !fs_mount_root->ops->statvfs_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
12fab3: e8 d4 6c 01 00 call 14678c <__errno> <== NOT EXECUTED
12fab8: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12fabe: 66 90 xchg %ax,%ax <== NOT EXECUTED
12fac0: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );
rtems_filesystem_freenode( &loc );
return result;
}
12fac5: 89 f0 mov %esi,%eax <== NOT EXECUTED
12fac7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED
12faca: 5b pop %ebx <== NOT EXECUTED
12facb: 5e pop %esi <== NOT EXECUTED
12facc: 5f pop %edi <== NOT EXECUTED
12facd: c9 leave <== NOT EXECUTED
12face: c3 ret <== NOT EXECUTED
0012fb24 <symlink>:
int symlink(
const char *actualpath,
const char *sympath
)
{
12fb24: 55 push %ebp
12fb25: 89 e5 mov %esp,%ebp
12fb27: 56 push %esi
12fb28: 53 push %ebx
12fb29: 83 ec 24 sub $0x24,%esp
12fb2c: 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 );
12fb2f: 8d 5d dc lea -0x24(%ebp),%ebx
12fb32: 53 push %ebx
12fb33: 8d 45 f4 lea -0xc(%ebp),%eax
12fb36: 50 push %eax
12fb37: 56 push %esi
12fb38: e8 2b 04 fe ff call 10ff68 <rtems_filesystem_get_start_loc>
if ( !loc.ops->evalformake_h ) {
12fb3d: 8b 45 e8 mov -0x18(%ebp),%eax
12fb40: 8b 40 04 mov 0x4(%eax),%eax
12fb43: 83 c4 10 add $0x10,%esp
12fb46: 85 c0 test %eax,%eax
12fb48: 74 5e je 12fba8 <symlink+0x84> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
12fb4a: 51 push %ecx
12fb4b: 8d 55 f0 lea -0x10(%ebp),%edx
12fb4e: 52 push %edx
12fb4f: 53 push %ebx
12fb50: 03 75 f4 add -0xc(%ebp),%esi
12fb53: 56 push %esi
12fb54: ff d0 call *%eax
if ( result != 0 )
12fb56: 83 c4 10 add $0x10,%esp
12fb59: 85 c0 test %eax,%eax
12fb5b: 75 56 jne 12fbb3 <symlink+0x8f>
return -1;
if ( !loc.ops->symlink_h ) {
12fb5d: 8b 55 e8 mov -0x18(%ebp),%edx
12fb60: 8b 42 38 mov 0x38(%edx),%eax
12fb63: 85 c0 test %eax,%eax
12fb65: 74 2f je 12fb96 <symlink+0x72> <== NEVER TAKEN
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
12fb67: 52 push %edx
12fb68: ff 75 f0 pushl -0x10(%ebp)
12fb6b: ff 75 08 pushl 0x8(%ebp)
12fb6e: 53 push %ebx
12fb6f: ff d0 call *%eax
12fb71: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
12fb73: 8b 45 e8 mov -0x18(%ebp),%eax
12fb76: 83 c4 10 add $0x10,%esp
12fb79: 85 c0 test %eax,%eax
12fb7b: 74 10 je 12fb8d <symlink+0x69> <== NEVER TAKEN
12fb7d: 8b 40 1c mov 0x1c(%eax),%eax
12fb80: 85 c0 test %eax,%eax
12fb82: 74 09 je 12fb8d <symlink+0x69> <== NEVER TAKEN
12fb84: 83 ec 0c sub $0xc,%esp
12fb87: 53 push %ebx
12fb88: ff d0 call *%eax
12fb8a: 83 c4 10 add $0x10,%esp
return result;
}
12fb8d: 89 f0 mov %esi,%eax
12fb8f: 8d 65 f8 lea -0x8(%ebp),%esp
12fb92: 5b pop %ebx
12fb93: 5e pop %esi
12fb94: c9 leave
12fb95: c3 ret
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
if ( result != 0 )
return -1;
if ( !loc.ops->symlink_h ) {
rtems_filesystem_freenode( &loc );
12fb96: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
12fb99: 85 c0 test %eax,%eax <== NOT EXECUTED
12fb9b: 74 0b je 12fba8 <symlink+0x84> <== NOT EXECUTED
12fb9d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12fba0: 53 push %ebx <== NOT EXECUTED
12fba1: ff d0 call *%eax <== NOT EXECUTED
12fba3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12fba6: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12fba8: e8 df 6b 01 00 call 14678c <__errno> <== NOT EXECUTED
12fbad: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12fbb3: be ff ff ff ff mov $0xffffffff,%esi
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
rtems_filesystem_freenode( &loc );
return result;
}
12fbb8: 89 f0 mov %esi,%eax
12fbba: 8d 65 f8 lea -0x8(%ebp),%esp
12fbbd: 5b pop %ebx
12fbbe: 5e pop %esi
12fbbf: c9 leave
12fbc0: c3 ret
0010a708 <sync_per_thread>:
fdatasync(fn);
}
/* iterate over all FILE *'s for this thread */
static void sync_per_thread(Thread_Control *t)
{
10a708: 55 push %ebp
10a709: 89 e5 mov %esp,%ebp
10a70b: 53 push %ebx
10a70c: 83 ec 04 sub $0x4,%esp
10a70f: 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;
10a712: 8b 90 ec 00 00 00 mov 0xec(%eax),%edx
if ( this_reent ) {
10a718: 85 d2 test %edx,%edx
10a71a: 74 33 je 10a74f <sync_per_thread+0x47> <== NEVER TAKEN
current_reent = _Thread_Executing->libc_reent;
10a71c: 8b 0d 18 94 12 00 mov 0x129418,%ecx
10a722: 8b 99 ec 00 00 00 mov 0xec(%ecx),%ebx
_Thread_Executing->libc_reent = this_reent;
10a728: 89 91 ec 00 00 00 mov %edx,0xec(%ecx)
_fwalk (t->libc_reent, sync_wrapper);
10a72e: 83 ec 08 sub $0x8,%esp
10a731: 68 7c a7 10 00 push $0x10a77c
10a736: ff b0 ec 00 00 00 pushl 0xec(%eax)
10a73c: e8 67 b8 00 00 call 115fa8 <_fwalk>
_Thread_Executing->libc_reent = current_reent;
10a741: a1 18 94 12 00 mov 0x129418,%eax
10a746: 89 98 ec 00 00 00 mov %ebx,0xec(%eax)
10a74c: 83 c4 10 add $0x10,%esp
}
}
10a74f: 8b 5d fc mov -0x4(%ebp),%ebx
10a752: c9 leave
10a753: c3 ret
001185e0 <tcsetattr>:
int tcsetattr(
int fd,
int opt,
struct termios *tp
)
{
1185e0: 55 push %ebp
1185e1: 89 e5 mov %esp,%ebp
1185e3: 56 push %esi
1185e4: 53 push %ebx
1185e5: 8b 5d 08 mov 0x8(%ebp),%ebx
1185e8: 8b 45 0c mov 0xc(%ebp),%eax
1185eb: 8b 75 10 mov 0x10(%ebp),%esi
switch (opt) {
1185ee: 85 c0 test %eax,%eax
1185f0: 74 2c je 11861e <tcsetattr+0x3e> <== ALWAYS TAKEN
1185f2: 48 dec %eax <== NOT EXECUTED
1185f3: 74 17 je 11860c <tcsetattr+0x2c> <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
1185f5: e8 0a 3f 00 00 call 11c504 <__errno> <== NOT EXECUTED
1185fa: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
}
}
118600: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
118605: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED
118608: 5b pop %ebx <== NOT EXECUTED
118609: 5e pop %esi <== NOT EXECUTED
11860a: c9 leave <== NOT EXECUTED
11860b: c3 ret <== NOT EXECUTED
switch (opt) {
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
case TCSADRAIN:
if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)
11860c: 50 push %eax <== NOT EXECUTED
11860d: 6a 00 push $0x0 <== NOT EXECUTED
11860f: 6a 03 push $0x3 <== NOT EXECUTED
118611: 53 push %ebx <== NOT EXECUTED
118612: e8 61 37 00 00 call 11bd78 <ioctl> <== NOT EXECUTED
118617: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
11861a: 85 c0 test %eax,%eax <== NOT EXECUTED
11861c: 78 e2 js 118600 <tcsetattr+0x20> <== NOT EXECUTED
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
11861e: 89 75 10 mov %esi,0x10(%ebp)
118621: c7 45 0c 02 00 00 00 movl $0x2,0xc(%ebp)
118628: 89 5d 08 mov %ebx,0x8(%ebp)
}
}
11862b: 8d 65 f8 lea -0x8(%ebp),%esp
11862e: 5b pop %ebx
11862f: 5e pop %esi
118630: c9 leave
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
118631: e9 42 37 00 00 jmp 11bd78 <ioctl>
0011375c <unlink>:
#include <rtems/seterr.h>
int unlink(
const char *path
)
{
11375c: 55 push %ebp
11375d: 89 e5 mov %esp,%ebp
11375f: 57 push %edi
113760: 56 push %esi
113761: 53 push %ebx
113762: 83 ec 58 sub $0x58,%esp
113765: 8b 5d 08 mov 0x8(%ebp),%ebx
/*
* Get the node to be unlinked. Find the parent path first.
*/
parentpathlen = rtems_filesystem_dirname ( path );
113768: 53 push %ebx
113769: e8 ea 4c ff ff call 108458 <rtems_filesystem_dirname>
if ( parentpathlen == 0 )
11376e: 83 c4 10 add $0x10,%esp
113771: 85 c0 test %eax,%eax
113773: 0f 85 eb 00 00 00 jne 113864 <unlink+0x108>
rtems_filesystem_get_start_loc( path, &i, &parentloc );
113779: 50 push %eax
11377a: 8d 45 d0 lea -0x30(%ebp),%eax
11377d: 89 45 b4 mov %eax,-0x4c(%ebp)
113780: 50 push %eax
113781: 8d 45 e4 lea -0x1c(%ebp),%eax
113784: 50 push %eax
113785: 53 push %ebx
113786: e8 bd 5c ff ff call 109448 <rtems_filesystem_get_start_loc>
11378b: 31 d2 xor %edx,%edx
11378d: c6 45 b3 00 movb $0x0,-0x4d(%ebp)
113791: 83 c4 10 add $0x10,%esp
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
113794: 8d 7d bc lea -0x44(%ebp),%edi
113797: b9 05 00 00 00 mov $0x5,%ecx
11379c: 8b 75 b4 mov -0x4c(%ebp),%esi
11379f: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
name = path + parentpathlen;
1137a1: 01 d3 add %edx,%ebx
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
1137a3: be ff ff ff ff mov $0xffffffff,%esi
1137a8: 89 f1 mov %esi,%ecx
1137aa: 89 df mov %ebx,%edi
1137ac: 31 c0 xor %eax,%eax
1137ae: f2 ae repnz scas %es:(%edi),%al
1137b0: f7 d1 not %ecx
1137b2: 49 dec %ecx
1137b3: 83 ec 08 sub $0x8,%esp
1137b6: 51 push %ecx
1137b7: 53 push %ebx
1137b8: e8 4b 4c ff ff call 108408 <rtems_filesystem_prefix_separators>
1137bd: 01 c3 add %eax,%ebx
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
1137bf: 89 f1 mov %esi,%ecx
1137c1: 89 df mov %ebx,%edi
1137c3: 31 c0 xor %eax,%eax
1137c5: f2 ae repnz scas %es:(%edi),%al
1137c7: f7 d1 not %ecx
1137c9: 49 dec %ecx
1137ca: c7 04 24 00 00 00 00 movl $0x0,(%esp)
1137d1: 8d 75 bc lea -0x44(%ebp),%esi
1137d4: 56 push %esi
1137d5: 6a 00 push $0x0
1137d7: 51 push %ecx
1137d8: 53 push %ebx
1137d9: e8 c2 4c ff ff call 1084a0 <rtems_filesystem_evaluate_relative_path>
0, &loc, false );
if ( result != 0 ) {
1137de: 83 c4 20 add $0x20,%esp
1137e1: 85 c0 test %eax,%eax
1137e3: 0f 85 b3 00 00 00 jne 11389c <unlink+0x140>
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
return -1;
}
if ( !loc.ops->node_type_h ) {
1137e9: 8b 55 c8 mov -0x38(%ebp),%edx
1137ec: 8b 42 10 mov 0x10(%edx),%eax
1137ef: 85 c0 test %eax,%eax
1137f1: 0f 84 c9 00 00 00 je 1138c0 <unlink+0x164> <== NEVER TAKEN
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 ) {
1137f7: 83 ec 0c sub $0xc,%esp
1137fa: 56 push %esi
1137fb: ff d0 call *%eax
1137fd: 83 c4 10 add $0x10,%esp
113800: 48 dec %eax
113801: 0f 84 fd 00 00 00 je 113904 <unlink+0x1a8>
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( EISDIR );
}
if ( !loc.ops->unlink_h ) {
113807: 8b 55 c8 mov -0x38(%ebp),%edx
11380a: 8b 42 0c mov 0xc(%edx),%eax
11380d: 85 c0 test %eax,%eax
11380f: 0f 84 ab 00 00 00 je 1138c0 <unlink+0x164> <== NEVER TAKEN
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->unlink_h)( &parentloc, &loc );
113815: 83 ec 08 sub $0x8,%esp
113818: 56 push %esi
113819: ff 75 b4 pushl -0x4c(%ebp)
11381c: ff d0 call *%eax
11381e: 89 c3 mov %eax,%ebx
rtems_filesystem_freenode( &loc );
113820: 8b 45 c8 mov -0x38(%ebp),%eax
113823: 83 c4 10 add $0x10,%esp
113826: 85 c0 test %eax,%eax
113828: 74 10 je 11383a <unlink+0xde> <== NEVER TAKEN
11382a: 8b 40 1c mov 0x1c(%eax),%eax
11382d: 85 c0 test %eax,%eax
11382f: 74 09 je 11383a <unlink+0xde> <== NEVER TAKEN
113831: 83 ec 0c sub $0xc,%esp
113834: 56 push %esi
113835: ff d0 call *%eax
113837: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
11383a: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
11383e: 74 19 je 113859 <unlink+0xfd>
rtems_filesystem_freenode( &parentloc );
113840: 8b 45 dc mov -0x24(%ebp),%eax
113843: 85 c0 test %eax,%eax
113845: 74 12 je 113859 <unlink+0xfd> <== NEVER TAKEN
113847: 8b 40 1c mov 0x1c(%eax),%eax
11384a: 85 c0 test %eax,%eax
11384c: 74 0b je 113859 <unlink+0xfd> <== NEVER TAKEN
11384e: 83 ec 0c sub $0xc,%esp
113851: ff 75 b4 pushl -0x4c(%ebp)
113854: ff d0 call *%eax
113856: 83 c4 10 add $0x10,%esp
return result;
}
113859: 89 d8 mov %ebx,%eax
11385b: 8d 65 f4 lea -0xc(%ebp),%esp
11385e: 5b pop %ebx
11385f: 5e pop %esi
113860: 5f pop %edi
113861: c9 leave
113862: c3 ret
113863: 90 nop
parentpathlen = rtems_filesystem_dirname ( path );
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( path, &i, &parentloc );
else {
result = rtems_filesystem_evaluate_path( path, parentpathlen,
113864: 89 c2 mov %eax,%edx
113866: 83 ec 0c sub $0xc,%esp
113869: 6a 00 push $0x0
11386b: 8d 45 d0 lea -0x30(%ebp),%eax
11386e: 89 45 b4 mov %eax,-0x4c(%ebp)
113871: 50 push %eax
113872: 6a 02 push $0x2
113874: 52 push %edx
113875: 53 push %ebx
113876: 89 55 ac mov %edx,-0x54(%ebp)
113879: e8 f6 4c ff ff call 108574 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
11387e: 83 c4 20 add $0x20,%esp
113881: 85 c0 test %eax,%eax
113883: 8b 55 ac mov -0x54(%ebp),%edx
113886: 75 0c jne 113894 <unlink+0x138> <== NEVER TAKEN
113888: c6 45 b3 01 movb $0x1,-0x4d(%ebp)
11388c: e9 03 ff ff ff jmp 113794 <unlink+0x38>
113891: 8d 76 00 lea 0x0(%esi),%esi
result = (*loc.ops->unlink_h)( &parentloc, &loc );
rtems_filesystem_freenode( &loc );
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
113894: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
113899: eb be jmp 113859 <unlink+0xfd> <== NOT EXECUTED
11389b: 90 nop <== NOT EXECUTED
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &loc, false );
if ( result != 0 ) {
if ( free_parentloc )
11389c: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
1138a0: 74 f2 je 113894 <unlink+0x138> <== NEVER TAKEN
rtems_filesystem_freenode( &parentloc );
1138a2: 8b 45 dc mov -0x24(%ebp),%eax
1138a5: 85 c0 test %eax,%eax
1138a7: 74 eb je 113894 <unlink+0x138> <== NEVER TAKEN
1138a9: 8b 40 1c mov 0x1c(%eax),%eax
1138ac: 85 c0 test %eax,%eax
1138ae: 74 e4 je 113894 <unlink+0x138> <== NEVER TAKEN
1138b0: 83 ec 0c sub $0xc,%esp
1138b3: ff 75 b4 pushl -0x4c(%ebp)
1138b6: ff d0 call *%eax
1138b8: 83 cb ff or $0xffffffff,%ebx
1138bb: 83 c4 10 add $0x10,%esp
1138be: eb 99 jmp 113859 <unlink+0xfd>
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( EISDIR );
}
if ( !loc.ops->unlink_h ) {
rtems_filesystem_freenode( &loc );
1138c0: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
1138c3: 85 c0 test %eax,%eax <== NOT EXECUTED
1138c5: 74 09 je 1138d0 <unlink+0x174> <== NOT EXECUTED
1138c7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1138ca: 56 push %esi <== NOT EXECUTED
1138cb: ff d0 call *%eax <== NOT EXECUTED
1138cd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( free_parentloc )
1138d0: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) <== NOT EXECUTED
1138d4: 74 19 je 1138ef <unlink+0x193> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
1138d6: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
1138d9: 85 c0 test %eax,%eax <== NOT EXECUTED
1138db: 74 12 je 1138ef <unlink+0x193> <== NOT EXECUTED
1138dd: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
1138e0: 85 c0 test %eax,%eax <== NOT EXECUTED
1138e2: 74 0b je 1138ef <unlink+0x193> <== NOT EXECUTED
1138e4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
1138e7: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
1138ea: ff d0 call *%eax <== NOT EXECUTED
1138ec: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
1138ef: e8 4c 05 00 00 call 113e40 <__errno> <== NOT EXECUTED
1138f4: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
1138fa: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
1138ff: e9 55 ff ff ff jmp 113859 <unlink+0xfd> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_filesystem_freenode( &loc );
113904: 8b 45 c8 mov -0x38(%ebp),%eax
113907: 85 c0 test %eax,%eax
113909: 74 10 je 11391b <unlink+0x1bf> <== NEVER TAKEN
11390b: 8b 40 1c mov 0x1c(%eax),%eax
11390e: 85 c0 test %eax,%eax
113910: 74 09 je 11391b <unlink+0x1bf> <== NEVER TAKEN
113912: 83 ec 0c sub $0xc,%esp
113915: 56 push %esi
113916: ff d0 call *%eax
113918: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
11391b: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
11391f: 74 19 je 11393a <unlink+0x1de> <== ALWAYS TAKEN
rtems_filesystem_freenode( &parentloc );
113921: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED
113924: 85 c0 test %eax,%eax <== NOT EXECUTED
113926: 74 12 je 11393a <unlink+0x1de> <== NOT EXECUTED
113928: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED
11392b: 85 c0 test %eax,%eax <== NOT EXECUTED
11392d: 74 0b je 11393a <unlink+0x1de> <== NOT EXECUTED
11392f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
113932: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED
113935: ff d0 call *%eax <== NOT EXECUTED
113937: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EISDIR );
11393a: e8 01 05 00 00 call 113e40 <__errno>
11393f: c7 00 15 00 00 00 movl $0x15,(%eax)
113945: bb ff ff ff ff mov $0xffffffff,%ebx
11394a: e9 0a ff ff ff jmp 113859 <unlink+0xfd>
0012fc5c <unmount>:
*/
int unmount(
const char *path
)
{
12fc5c: 55 push %ebp
12fc5d: 89 e5 mov %esp,%ebp
12fc5f: 57 push %edi
12fc60: 56 push %esi
12fc61: 53 push %ebx
12fc62: 83 ec 38 sub $0x38,%esp
12fc65: 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 ) )
12fc68: 31 c0 xor %eax,%eax
12fc6a: b9 ff ff ff ff mov $0xffffffff,%ecx
12fc6f: 89 d7 mov %edx,%edi
12fc71: f2 ae repnz scas %es:(%edi),%al
12fc73: f7 d1 not %ecx
12fc75: 49 dec %ecx
12fc76: 6a 01 push $0x1
12fc78: 8d 75 d4 lea -0x2c(%ebp),%esi
12fc7b: 56 push %esi
12fc7c: 6a 00 push $0x0
12fc7e: 51 push %ecx
12fc7f: 52 push %edx
12fc80: e8 73 eb fd ff call 10e7f8 <rtems_filesystem_evaluate_path>
12fc85: 83 c4 20 add $0x20,%esp
12fc88: 85 c0 test %eax,%eax
12fc8a: 0f 85 8f 00 00 00 jne 12fd1f <unmount+0xc3>
return -1;
mt_entry = loc.mt_entry;
12fc90: 8b 5d e4 mov -0x1c(%ebp),%ebx
fs_mount_loc = &mt_entry->mt_point_node;
fs_root_loc = &mt_entry->mt_fs_root;
12fc93: 8b 43 1c mov 0x1c(%ebx),%eax
12fc96: 3b 45 d4 cmp -0x2c(%ebp),%eax
12fc99: 0f 85 f9 00 00 00 jne 12fd98 <unmount+0x13c>
/*
* Free the loc node and just use the nodes from the mt_entry .
*/
rtems_filesystem_freenode( &loc );
12fc9f: 8b 45 e0 mov -0x20(%ebp),%eax
12fca2: 85 c0 test %eax,%eax
12fca4: 74 10 je 12fcb6 <unmount+0x5a> <== NEVER TAKEN
12fca6: 8b 40 1c mov 0x1c(%eax),%eax
12fca9: 85 c0 test %eax,%eax
12fcab: 74 09 je 12fcb6 <unmount+0x5a> <== NEVER TAKEN
12fcad: 83 ec 0c sub $0xc,%esp
12fcb0: 56 push %esi
12fcb1: ff d0 call *%eax
12fcb3: 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;
12fcb6: 8b 43 14 mov 0x14(%ebx),%eax
12fcb9: 8b 70 28 mov 0x28(%eax),%esi
12fcbc: 85 f6 test %esi,%esi
12fcbe: 0f 84 3c 01 00 00 je 12fe00 <unmount+0x1a4> <== NEVER TAKEN
fs_root_loc = &mt_entry->mt_fs_root;
12fcc4: 8b 43 28 mov 0x28(%ebx),%eax
12fcc7: 8b 48 2c mov 0x2c(%eax),%ecx
12fcca: 85 c9 test %ecx,%ecx
12fccc: 0f 84 2e 01 00 00 je 12fe00 <unmount+0x1a4> <== NEVER TAKEN
* 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 )
12fcd2: a1 20 d3 16 00 mov 0x16d320,%eax
12fcd7: 39 58 14 cmp %ebx,0x14(%eax)
12fcda: 0f 84 e8 00 00 00 je 12fdc8 <unmount+0x16c>
/*
* Verify there are no file systems below the path specified
*/
if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,
12fce0: 83 ec 08 sub $0x8,%esp
12fce3: ff 73 2c pushl 0x2c(%ebx)
12fce6: 68 48 fc 12 00 push $0x12fc48
12fceb: e8 a0 f3 fd ff call 10f090 <rtems_filesystem_mount_iterate>
12fcf0: 83 c4 10 add $0x10,%esp
12fcf3: 84 c0 test %al,%al
12fcf5: 0f 85 cd 00 00 00 jne 12fdc8 <unmount+0x16c>
* 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 )
12fcfb: 83 ec 0c sub $0xc,%esp
12fcfe: 53 push %ebx
12fcff: e8 38 ee fd ff call 10eb3c <rtems_libio_is_open_files_in_fs>
12fd04: 83 c4 10 add $0x10,%esp
12fd07: 48 dec %eax
12fd08: 0f 84 ba 00 00 00 je 12fdc8 <unmount+0x16c>
* 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 )
12fd0e: 83 ec 0c sub $0xc,%esp
12fd11: 8b 43 14 mov 0x14(%ebx),%eax
12fd14: 53 push %ebx
12fd15: ff 50 28 call *0x28(%eax)
12fd18: 83 c4 10 add $0x10,%esp
12fd1b: 85 c0 test %eax,%eax
12fd1d: 74 0d je 12fd2c <unmount+0xd0> <== ALWAYS TAKEN
*/
rtems_filesystem_freenode( fs_mount_loc );
free( mt_entry );
return 0;
12fd1f: b8 ff ff ff ff mov $0xffffffff,%eax
}
12fd24: 8d 65 f4 lea -0xc(%ebp),%esp
12fd27: 5b pop %ebx
12fd28: 5e pop %esi
12fd29: 5f pop %edi
12fd2a: c9 leave
12fd2b: c3 ret
* 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){
12fd2c: 83 ec 0c sub $0xc,%esp
12fd2f: 8b 43 28 mov 0x28(%ebx),%eax
12fd32: 53 push %ebx
12fd33: ff 50 2c call *0x2c(%eax)
12fd36: 83 c4 10 add $0x10,%esp
12fd39: 85 c0 test %eax,%eax
12fd3b: 0f 85 9f 00 00 00 jne 12fde0 <unmount+0x184> <== NEVER TAKEN
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 );
12fd41: 52 push %edx
12fd42: 6a 00 push $0x0
12fd44: 6a 00 push $0x0
12fd46: ff 35 44 2d 17 00 pushl 0x172d44
12fd4c: e8 a7 31 fe ff call 112ef8 <rtems_semaphore_obtain>
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
12fd51: 89 1c 24 mov %ebx,(%esp)
12fd54: e8 db 3c fe ff call 113a34 <_Chain_Extract>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
12fd59: 58 pop %eax
12fd5a: ff 35 44 2d 17 00 pushl 0x172d44
12fd60: e8 8f 32 fe ff call 112ff4 <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 );
12fd65: 8b 43 14 mov 0x14(%ebx),%eax
12fd68: 83 c4 10 add $0x10,%esp
12fd6b: 85 c0 test %eax,%eax
12fd6d: 74 13 je 12fd82 <unmount+0x126> <== NEVER TAKEN
12fd6f: 8b 40 1c mov 0x1c(%eax),%eax
12fd72: 85 c0 test %eax,%eax
12fd74: 74 0c je 12fd82 <unmount+0x126> <== NEVER TAKEN
12fd76: 83 ec 0c sub $0xc,%esp
12fd79: 8d 53 08 lea 0x8(%ebx),%edx
12fd7c: 52 push %edx
12fd7d: ff d0 call *%eax
12fd7f: 83 c4 10 add $0x10,%esp
free( mt_entry );
12fd82: 83 ec 0c sub $0xc,%esp
12fd85: 53 push %ebx
12fd86: e8 dd ea fd ff call 10e868 <free>
12fd8b: 31 c0 xor %eax,%eax
return 0;
12fd8d: 83 c4 10 add $0x10,%esp
}
12fd90: 8d 65 f4 lea -0xc(%ebp),%esp
12fd93: 5b pop %ebx
12fd94: 5e pop %esi
12fd95: 5f pop %edi
12fd96: c9 leave
12fd97: c3 ret
/*
* 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 );
12fd98: 8b 45 e0 mov -0x20(%ebp),%eax
12fd9b: 85 c0 test %eax,%eax
12fd9d: 74 10 je 12fdaf <unmount+0x153> <== NEVER TAKEN
12fd9f: 8b 40 1c mov 0x1c(%eax),%eax
12fda2: 85 c0 test %eax,%eax
12fda4: 74 09 je 12fdaf <unmount+0x153> <== NEVER TAKEN
12fda6: 83 ec 0c sub $0xc,%esp
12fda9: 56 push %esi
12fdaa: ff d0 call *%eax
12fdac: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EACCES );
12fdaf: e8 d8 69 01 00 call 14678c <__errno>
12fdb4: c7 00 0d 00 00 00 movl $0xd,(%eax)
12fdba: b8 ff ff ff ff mov $0xffffffff,%eax
rtems_filesystem_freenode( fs_mount_loc );
free( mt_entry );
return 0;
}
12fdbf: 8d 65 f4 lea -0xc(%ebp),%esp
12fdc2: 5b pop %ebx
12fdc3: 5e pop %esi
12fdc4: 5f pop %edi
12fdc5: c9 leave
12fdc6: c3 ret
12fdc7: 90 nop
* descriptors that are currently active and reference nodes in the
* file system that we are trying to unmount
*/
if ( rtems_libio_is_open_files_in_fs( mt_entry ) == 1 )
rtems_set_errno_and_return_minus_one( EBUSY );
12fdc8: e8 bf 69 01 00 call 14678c <__errno>
12fdcd: c7 00 10 00 00 00 movl $0x10,(%eax)
12fdd3: b8 ff ff ff ff mov $0xffffffff,%eax
rtems_filesystem_freenode( fs_mount_loc );
free( mt_entry );
return 0;
}
12fdd8: 8d 65 f4 lea -0xc(%ebp),%esp
12fddb: 5b pop %ebx
12fddc: 5e pop %esi
12fddd: 5f pop %edi
12fdde: c9 leave
12fddf: c3 ret
* This was response was questionable but the best we could
* come up with.
*/
if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){
if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )
12fde0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12fde3: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED
12fde6: 53 push %ebx <== NOT EXECUTED
12fde7: ff 50 20 call *0x20(%eax) <== NOT EXECUTED
12fdea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
12fded: 85 c0 test %eax,%eax <== NOT EXECUTED
12fdef: 0f 84 2a ff ff ff je 12fd1f <unmount+0xc3> <== NOT EXECUTED
rtems_fatal_error_occurred( 0 );
12fdf5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12fdf8: 6a 00 push $0x0 <== NOT EXECUTED
12fdfa: e8 3d 38 fe ff call 11363c <rtems_fatal_error_occurred><== NOT EXECUTED
12fdff: 90 nop <== NOT EXECUTED
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 );
12fe00: e8 87 69 01 00 call 14678c <__errno> <== NOT EXECUTED
12fe05: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12fe0b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
12fe10: e9 0f ff ff ff jmp 12fd24 <unmount+0xc8> <== NOT EXECUTED
0012fe18 <utime>:
int utime(
const char *path,
const struct utimbuf *times
)
{
12fe18: 55 push %ebp
12fe19: 89 e5 mov %esp,%ebp
12fe1b: 57 push %edi
12fe1c: 56 push %esi
12fe1d: 53 push %ebx
12fe1e: 83 ec 38 sub $0x38,%esp
12fe21: 8b 55 08 mov 0x8(%ebp),%edx
12fe24: 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 ) )
12fe27: 31 c0 xor %eax,%eax
12fe29: b9 ff ff ff ff mov $0xffffffff,%ecx
12fe2e: 89 d7 mov %edx,%edi
12fe30: f2 ae repnz scas %es:(%edi),%al
12fe32: f7 d1 not %ecx
12fe34: 49 dec %ecx
12fe35: 6a 01 push $0x1
12fe37: 8d 75 d4 lea -0x2c(%ebp),%esi
12fe3a: 56 push %esi
12fe3b: 6a 00 push $0x0
12fe3d: 51 push %ecx
12fe3e: 52 push %edx
12fe3f: e8 b4 e9 fd ff call 10e7f8 <rtems_filesystem_evaluate_path>
12fe44: 83 c4 20 add $0x20,%esp
12fe47: 85 c0 test %eax,%eax
12fe49: 75 55 jne 12fea0 <utime+0x88>
return -1;
if ( !temp_loc.ops->utime_h ){
12fe4b: 8b 55 e0 mov -0x20(%ebp),%edx
12fe4e: 8b 42 30 mov 0x30(%edx),%eax
12fe51: 85 c0 test %eax,%eax
12fe53: 74 2f je 12fe84 <utime+0x6c> <== NEVER TAKEN
rtems_filesystem_freenode( &temp_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );
12fe55: 52 push %edx
12fe56: ff 73 04 pushl 0x4(%ebx)
12fe59: ff 33 pushl (%ebx)
12fe5b: 56 push %esi
12fe5c: ff d0 call *%eax
12fe5e: 89 c3 mov %eax,%ebx
rtems_filesystem_freenode( &temp_loc );
12fe60: 8b 45 e0 mov -0x20(%ebp),%eax
12fe63: 83 c4 10 add $0x10,%esp
12fe66: 85 c0 test %eax,%eax
12fe68: 74 10 je 12fe7a <utime+0x62> <== NEVER TAKEN
12fe6a: 8b 40 1c mov 0x1c(%eax),%eax
12fe6d: 85 c0 test %eax,%eax
12fe6f: 74 09 je 12fe7a <utime+0x62> <== NEVER TAKEN
12fe71: 83 ec 0c sub $0xc,%esp
12fe74: 56 push %esi
12fe75: ff d0 call *%eax
12fe77: 83 c4 10 add $0x10,%esp
return result;
}
12fe7a: 89 d8 mov %ebx,%eax
12fe7c: 8d 65 f4 lea -0xc(%ebp),%esp
12fe7f: 5b pop %ebx
12fe80: 5e pop %esi
12fe81: 5f pop %edi
12fe82: c9 leave
12fe83: c3 ret
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) )
return -1;
if ( !temp_loc.ops->utime_h ){
rtems_filesystem_freenode( &temp_loc );
12fe84: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
12fe87: 85 c0 test %eax,%eax <== NOT EXECUTED
12fe89: 74 09 je 12fe94 <utime+0x7c> <== NOT EXECUTED
12fe8b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
12fe8e: 56 push %esi <== NOT EXECUTED
12fe8f: ff d0 call *%eax <== NOT EXECUTED
12fe91: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12fe94: e8 f3 68 01 00 call 14678c <__errno> <== NOT EXECUTED
12fe99: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12fe9f: 90 nop <== NOT EXECUTED
12fea0: bb ff ff ff ff mov $0xffffffff,%ebx
result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );
rtems_filesystem_freenode( &temp_loc );
return result;
}
12fea5: 89 d8 mov %ebx,%eax
12fea7: 8d 65 f4 lea -0xc(%ebp),%esp
12feaa: 5b pop %ebx
12feab: 5e pop %esi
12feac: 5f pop %edi
12fead: c9 leave
12feae: c3 ret
0010b23c <vprintk>:
*/
void vprintk(
const char *fmt,
va_list ap
)
{
10b23c: 55 push %ebp
10b23d: 89 e5 mov %esp,%ebp
10b23f: 57 push %edi
10b240: 56 push %esi
10b241: 53 push %ebx
10b242: 83 ec 4c sub $0x4c,%esp
10b245: 8b 75 08 mov 0x8(%ebp),%esi
10b248: 8b 7d 0c mov 0xc(%ebp),%edi
for (; *fmt != '\0'; fmt++) {
10b24b: 8a 06 mov (%esi),%al
10b24d: 84 c0 test %al,%al
10b24f: 75 28 jne 10b279 <vprintk+0x3d> <== ALWAYS TAKEN
10b251: e9 d1 01 00 00 jmp 10b427 <vprintk+0x1eb> <== NOT EXECUTED
10b256: 66 90 xchg %ax,%ax <== NOT EXECUTED
bool sign = false;
char lead = ' ';
char c;
if (*fmt != '%') {
BSP_output_char(*fmt);
10b258: 83 ec 0c sub $0xc,%esp
10b25b: 0f be c0 movsbl %al,%eax
10b25e: 50 push %eax
10b25f: ff 15 84 32 12 00 call *0x123284
10b265: 89 7d bc mov %edi,-0x44(%ebp)
continue;
10b268: 83 c4 10 add $0x10,%esp
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
10b26b: 46 inc %esi
10b26c: 8a 06 mov (%esi),%al
10b26e: 84 c0 test %al,%al
10b270: 0f 84 b1 01 00 00 je 10b427 <vprintk+0x1eb>
10b276: 8b 7d bc mov -0x44(%ebp),%edi
bool minus = false;
bool sign = false;
char lead = ' ';
char c;
if (*fmt != '%') {
10b279: 3c 25 cmp $0x25,%al
10b27b: 75 db jne 10b258 <vprintk+0x1c>
BSP_output_char(*fmt);
continue;
}
fmt++;
10b27d: 46 inc %esi
if (*fmt == '0' ) {
10b27e: 8a 0e mov (%esi),%cl
10b280: 80 f9 30 cmp $0x30,%cl
10b283: 0f 84 b7 01 00 00 je 10b440 <vprintk+0x204>
10b289: b2 20 mov $0x20,%dl
lead = '0';
fmt++;
}
if (*fmt == '-' ) {
10b28b: 80 f9 2d cmp $0x2d,%cl
10b28e: 0f 84 ba 01 00 00 je 10b44e <vprintk+0x212>
10b294: c6 45 c4 00 movb $0x0,-0x3c(%ebp)
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
10b298: 8d 41 d0 lea -0x30(%ecx),%eax
10b29b: 3c 09 cmp $0x9,%al
10b29d: 0f 87 bd 01 00 00 ja 10b460 <vprintk+0x224>
10b2a3: 31 db xor %ebx,%ebx
10b2a5: 8d 76 00 lea 0x0(%esi),%esi
width *= 10;
width += ((unsigned) *fmt - '0');
10b2a8: 8d 04 9b lea (%ebx,%ebx,4),%eax
10b2ab: 0f be c9 movsbl %cl,%ecx
10b2ae: 8d 5c 41 d0 lea -0x30(%ecx,%eax,2),%ebx
fmt++;
10b2b2: 46 inc %esi
}
if (*fmt == '-' ) {
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
10b2b3: 8a 0e mov (%esi),%cl
10b2b5: 8d 41 d0 lea -0x30(%ecx),%eax
10b2b8: 3c 09 cmp $0x9,%al
10b2ba: 76 ec jbe 10b2a8 <vprintk+0x6c>
width *= 10;
width += ((unsigned) *fmt - '0');
fmt++;
}
if ((c = *fmt) == 'l') {
10b2bc: 80 f9 6c cmp $0x6c,%cl
10b2bf: 0f 84 a7 01 00 00 je 10b46c <vprintk+0x230>
lflag = true;
c = *++fmt;
}
if ( c == 'c' ) {
10b2c5: 80 f9 63 cmp $0x63,%cl
10b2c8: 0f 84 aa 01 00 00 je 10b478 <vprintk+0x23c>
/* need a cast here since va_arg() only takes fully promoted types */
char chr = (char) va_arg(ap, int);
BSP_output_char(chr);
continue;
}
if ( c == 's' ) {
10b2ce: 80 f9 73 cmp $0x73,%cl
10b2d1: 0f 84 bd 01 00 00 je 10b494 <vprintk+0x258>
continue;
}
/* must be a numeric format or something unsupported */
if ( c == 'o' || c == 'O' ) {
10b2d7: 80 f9 6f cmp $0x6f,%cl
10b2da: 0f 84 50 01 00 00 je 10b430 <vprintk+0x1f4> <== NEVER TAKEN
10b2e0: 80 f9 4f cmp $0x4f,%cl
10b2e3: 0f 84 47 01 00 00 je 10b430 <vprintk+0x1f4>
base = 8; sign = false;
} else if ( c == 'i' || c == 'I' ||
10b2e9: 80 f9 69 cmp $0x69,%cl
10b2ec: 74 56 je 10b344 <vprintk+0x108>
10b2ee: 80 f9 49 cmp $0x49,%cl
10b2f1: 74 51 je 10b344 <vprintk+0x108>
10b2f3: 80 f9 64 cmp $0x64,%cl
10b2f6: 74 4c je 10b344 <vprintk+0x108>
10b2f8: 80 f9 44 cmp $0x44,%cl
10b2fb: 74 47 je 10b344 <vprintk+0x108>
c == 'd' || c == 'D' ) {
base = 10; sign = true;
} else if ( c == 'u' || c == 'U' ) {
10b2fd: 80 f9 75 cmp $0x75,%cl
10b300: 0f 84 62 02 00 00 je 10b568 <vprintk+0x32c>
10b306: 80 f9 55 cmp $0x55,%cl
10b309: 0f 84 59 02 00 00 je 10b568 <vprintk+0x32c>
base = 10; sign = false;
} else if ( c == 'x' || c == 'X' ) {
10b30f: 80 f9 78 cmp $0x78,%cl
10b312: 0f 84 97 02 00 00 je 10b5af <vprintk+0x373>
10b318: 80 f9 58 cmp $0x58,%cl
10b31b: 0f 84 8e 02 00 00 je 10b5af <vprintk+0x373>
base = 16; sign = false;
} else if ( c == 'p' ) {
10b321: 80 f9 70 cmp $0x70,%cl
10b324: 0f 84 a8 02 00 00 je 10b5d2 <vprintk+0x396>
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
10b32a: 83 ec 0c sub $0xc,%esp
10b32d: 0f be c9 movsbl %cl,%ecx
10b330: 51 push %ecx
10b331: ff 15 84 32 12 00 call *0x123284
10b337: 89 7d bc mov %edi,-0x44(%ebp)
continue;
10b33a: 83 c4 10 add $0x10,%esp
10b33d: e9 29 ff ff ff jmp 10b26b <vprintk+0x2f>
10b342: 66 90 xchg %ax,%ax
10b344: b1 01 mov $0x1,%cl
10b346: c7 45 b8 0a 00 00 00 movl $0xa,-0x48(%ebp)
}
printNum(
10b34d: 0f be d2 movsbl %dl,%edx
10b350: 89 55 b4 mov %edx,-0x4c(%ebp)
lflag ? va_arg(ap, long) : (long) va_arg(ap, int),
10b353: 8d 47 04 lea 0x4(%edi),%eax
10b356: 89 45 bc mov %eax,-0x44(%ebp)
} else {
BSP_output_char(c);
continue;
}
printNum(
10b359: 8b 3f mov (%edi),%edi
unsigned long unsigned_num;
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
10b35b: 84 c9 test %cl,%cl
10b35d: 74 08 je 10b367 <vprintk+0x12b>
10b35f: 85 ff test %edi,%edi
10b361: 0f 88 0f 02 00 00 js 10b576 <vprintk+0x33a>
BSP_output_char('-');
unsigned_num = (unsigned long) -num;
if (maxwidth) maxwidth--;
} else {
unsigned_num = (unsigned long) num;
10b367: 89 7d c0 mov %edi,-0x40(%ebp)
}
count = 0;
while ((n = unsigned_num / base) > 0) {
10b36a: 8b 45 c0 mov -0x40(%ebp),%eax
10b36d: 31 d2 xor %edx,%edx
10b36f: f7 75 b8 divl -0x48(%ebp)
10b372: 89 c1 mov %eax,%ecx
10b374: 85 c0 test %eax,%eax
10b376: 0f 84 25 02 00 00 je 10b5a1 <vprintk+0x365>
10b37c: 8a 45 b8 mov -0x48(%ebp),%al
10b37f: 88 45 c4 mov %al,-0x3c(%ebp)
10b382: 31 ff xor %edi,%edi
10b384: 89 5d b0 mov %ebx,-0x50(%ebp)
10b387: 8b 55 c0 mov -0x40(%ebp),%edx
10b38a: 8b 5d b8 mov -0x48(%ebp),%ebx
10b38d: eb 05 jmp 10b394 <vprintk+0x158>
10b38f: 90 nop
10b390: 89 ca mov %ecx,%edx
10b392: 89 c1 mov %eax,%ecx
toPrint[count++] = (char) (unsigned_num - (n * base));
10b394: 8a 45 c4 mov -0x3c(%ebp),%al
10b397: f6 e1 mul %cl
10b399: 28 c2 sub %al,%dl
10b39b: 88 54 3d d4 mov %dl,-0x2c(%ebp,%edi,1)
10b39f: 47 inc %edi
} else {
unsigned_num = (unsigned long) num;
}
count = 0;
while ((n = unsigned_num / base) > 0) {
10b3a0: 89 c8 mov %ecx,%eax
10b3a2: 31 d2 xor %edx,%edx
10b3a4: f7 f3 div %ebx
10b3a6: 85 c0 test %eax,%eax
10b3a8: 75 e6 jne 10b390 <vprintk+0x154>
10b3aa: 8b 5d b0 mov -0x50(%ebp),%ebx
10b3ad: 8d 47 01 lea 0x1(%edi),%eax
10b3b0: 89 45 c4 mov %eax,-0x3c(%ebp)
10b3b3: 89 4d c0 mov %ecx,-0x40(%ebp)
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
10b3b6: 8a 45 c0 mov -0x40(%ebp),%al
10b3b9: 88 44 3d d4 mov %al,-0x2c(%ebp,%edi,1)
for (n=maxwidth ; n > count; n-- )
10b3bd: 3b 5d c4 cmp -0x3c(%ebp),%ebx
10b3c0: 76 1f jbe 10b3e1 <vprintk+0x1a5>
10b3c2: 8b 7d c4 mov -0x3c(%ebp),%edi
10b3c5: 89 75 c0 mov %esi,-0x40(%ebp)
10b3c8: 8b 75 b4 mov -0x4c(%ebp),%esi
10b3cb: 90 nop
BSP_output_char(lead);
10b3cc: 83 ec 0c sub $0xc,%esp
10b3cf: 56 push %esi
10b3d0: ff 15 84 32 12 00 call *0x123284
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
10b3d6: 4b dec %ebx
10b3d7: 83 c4 10 add $0x10,%esp
10b3da: 39 fb cmp %edi,%ebx
10b3dc: 77 ee ja 10b3cc <vprintk+0x190>
10b3de: 8b 75 c0 mov -0x40(%ebp),%esi
BSP_output_char(lead);
for (n = 0; n < count; n++) {
10b3e1: 8b 45 c4 mov -0x3c(%ebp),%eax
10b3e4: 85 c0 test %eax,%eax
10b3e6: 0f 84 7f fe ff ff je 10b26b <vprintk+0x2f> <== NEVER TAKEN
10b3ec: 8b 45 c4 mov -0x3c(%ebp),%eax
10b3ef: 8d 7c 05 d3 lea -0x2d(%ebp,%eax,1),%edi
10b3f3: 31 db xor %ebx,%ebx
10b3f5: 89 75 c0 mov %esi,-0x40(%ebp)
10b3f8: 89 c6 mov %eax,%esi
10b3fa: 66 90 xchg %ax,%ax
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
10b3fc: 83 ec 0c sub $0xc,%esp
10b3ff: 0f be 07 movsbl (%edi),%eax
10b402: 0f be 80 76 18 12 00 movsbl 0x121876(%eax),%eax
10b409: 50 push %eax
10b40a: ff 15 84 32 12 00 call *0x123284
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
for (n = 0; n < count; n++) {
10b410: 43 inc %ebx
10b411: 4f dec %edi
10b412: 83 c4 10 add $0x10,%esp
10b415: 39 f3 cmp %esi,%ebx
10b417: 72 e3 jb 10b3fc <vprintk+0x1c0>
10b419: 8b 75 c0 mov -0x40(%ebp),%esi
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
10b41c: 46 inc %esi
10b41d: 8a 06 mov (%esi),%al
10b41f: 84 c0 test %al,%al
10b421: 0f 85 4f fe ff ff jne 10b276 <vprintk+0x3a> <== ALWAYS TAKEN
sign,
width,
lead
);
}
}
10b427: 8d 65 f4 lea -0xc(%ebp),%esp
10b42a: 5b pop %ebx
10b42b: 5e pop %esi
10b42c: 5f pop %edi
10b42d: c9 leave
10b42e: c3 ret
10b42f: 90 nop
base = 16; sign = false;
} else if ( c == 'p' ) {
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
continue;
10b430: 31 c9 xor %ecx,%ecx
10b432: c7 45 b8 08 00 00 00 movl $0x8,-0x48(%ebp)
10b439: e9 0f ff ff ff jmp 10b34d <vprintk+0x111>
10b43e: 66 90 xchg %ax,%ax
continue;
}
fmt++;
if (*fmt == '0' ) {
lead = '0';
fmt++;
10b440: 46 inc %esi
10b441: 8a 0e mov (%esi),%cl
10b443: b2 30 mov $0x30,%dl
}
if (*fmt == '-' ) {
10b445: 80 f9 2d cmp $0x2d,%cl
10b448: 0f 85 46 fe ff ff jne 10b294 <vprintk+0x58> <== ALWAYS TAKEN
minus = true;
fmt++;
10b44e: 46 inc %esi
10b44f: 8a 0e mov (%esi),%cl
10b451: c6 45 c4 01 movb $0x1,-0x3c(%ebp)
}
while (*fmt >= '0' && *fmt <= '9' ) {
10b455: 8d 41 d0 lea -0x30(%ecx),%eax
10b458: 3c 09 cmp $0x9,%al
10b45a: 0f 86 43 fe ff ff jbe 10b2a3 <vprintk+0x67> <== ALWAYS TAKEN
10b460: 31 db xor %ebx,%ebx
width *= 10;
width += ((unsigned) *fmt - '0');
fmt++;
}
if ((c = *fmt) == 'l') {
10b462: 80 f9 6c cmp $0x6c,%cl
10b465: 0f 85 5a fe ff ff jne 10b2c5 <vprintk+0x89>
10b46b: 90 nop
lflag = true;
c = *++fmt;
10b46c: 46 inc %esi
10b46d: 8a 0e mov (%esi),%cl
}
if ( c == 'c' ) {
10b46f: 80 f9 63 cmp $0x63,%cl
10b472: 0f 85 56 fe ff ff jne 10b2ce <vprintk+0x92> <== ALWAYS TAKEN
/* need a cast here since va_arg() only takes fully promoted types */
char chr = (char) va_arg(ap, int);
10b478: 8d 47 04 lea 0x4(%edi),%eax
10b47b: 89 45 bc mov %eax,-0x44(%ebp)
BSP_output_char(chr);
10b47e: 83 ec 0c sub $0xc,%esp
10b481: 0f be 07 movsbl (%edi),%eax
10b484: 50 push %eax
10b485: ff 15 84 32 12 00 call *0x123284
continue;
10b48b: 83 c4 10 add $0x10,%esp
10b48e: e9 d8 fd ff ff jmp 10b26b <vprintk+0x2f>
10b493: 90 nop
}
if ( c == 's' ) {
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
10b494: 8d 47 04 lea 0x4(%edi),%eax
10b497: 89 45 bc mov %eax,-0x44(%ebp)
10b49a: 8b 07 mov (%edi),%eax
if ( str == NULL ) {
10b49c: 85 c0 test %eax,%eax
10b49e: 0f 84 19 01 00 00 je 10b5bd <vprintk+0x381>
str = "";
}
/* calculate length of string */
for ( len=0, s=str ; *s ; len++, s++ )
10b4a4: 80 38 00 cmpb $0x0,(%eax)
10b4a7: 0f 84 1e 01 00 00 je 10b5cb <vprintk+0x38f>
10b4ad: 31 ff xor %edi,%edi
10b4af: 90 nop
10b4b0: 47 inc %edi
10b4b1: 80 3c 38 00 cmpb $0x0,(%eax,%edi,1)
10b4b5: 75 f9 jne 10b4b0 <vprintk+0x274>
;
/* leading spaces */
if ( !minus )
10b4b7: 80 7d c4 00 cmpb $0x0,-0x3c(%ebp)
10b4bb: 75 30 jne 10b4ed <vprintk+0x2b1>
for ( i=len ; i<width ; i++ )
10b4bd: 39 fb cmp %edi,%ebx
10b4bf: 76 2c jbe 10b4ed <vprintk+0x2b1>
10b4c1: 89 fa mov %edi,%edx
10b4c3: 89 7d c0 mov %edi,-0x40(%ebp)
10b4c6: 89 c7 mov %eax,%edi
10b4c8: 89 75 b8 mov %esi,-0x48(%ebp)
10b4cb: 89 de mov %ebx,%esi
10b4cd: 89 d3 mov %edx,%ebx
10b4cf: 90 nop
BSP_output_char(' ');
10b4d0: 83 ec 0c sub $0xc,%esp
10b4d3: 6a 20 push $0x20
10b4d5: ff 15 84 32 12 00 call *0x123284
for ( len=0, s=str ; *s ; len++, s++ )
;
/* leading spaces */
if ( !minus )
for ( i=len ; i<width ; i++ )
10b4db: 43 inc %ebx
10b4dc: 83 c4 10 add $0x10,%esp
10b4df: 39 f3 cmp %esi,%ebx
10b4e1: 72 ed jb 10b4d0 <vprintk+0x294>
10b4e3: 89 f3 mov %esi,%ebx
10b4e5: 89 f8 mov %edi,%eax
10b4e7: 8b 7d c0 mov -0x40(%ebp),%edi
10b4ea: 8b 75 b8 mov -0x48(%ebp),%esi
BSP_output_char(' ');
/* no width option */
if (width == 0) {
10b4ed: 85 db test %ebx,%ebx
10b4ef: 75 06 jne 10b4f7 <vprintk+0x2bb>
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
10b4f1: 85 ff test %edi,%edi
10b4f3: 74 47 je 10b53c <vprintk+0x300>
10b4f5: 89 fb mov %edi,%ebx
10b4f7: 8a 10 mov (%eax),%dl
10b4f9: 84 d2 test %dl,%dl
10b4fb: 74 3f je 10b53c <vprintk+0x300> <== NEVER TAKEN
BSP_output_char(*str);
10b4fd: 83 ec 0c sub $0xc,%esp
10b500: 0f be d2 movsbl %dl,%edx
10b503: 52 push %edx
10b504: 89 45 ac mov %eax,-0x54(%ebp)
10b507: ff 15 84 32 12 00 call *0x123284
if (width == 0) {
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
10b50d: 8b 45 ac mov -0x54(%ebp),%eax
10b510: 40 inc %eax
10b511: 83 c4 10 add $0x10,%esp
10b514: 89 75 c0 mov %esi,-0x40(%ebp)
10b517: 89 de mov %ebx,%esi
10b519: 89 c3 mov %eax,%ebx
10b51b: eb 14 jmp 10b531 <vprintk+0x2f5>
10b51d: 8d 76 00 lea 0x0(%esi),%esi
BSP_output_char(*str);
10b520: 83 ec 0c sub $0xc,%esp
10b523: 0f be d2 movsbl %dl,%edx
10b526: 52 push %edx
10b527: ff 15 84 32 12 00 call *0x123284
if (width == 0) {
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
10b52d: 43 inc %ebx
10b52e: 83 c4 10 add $0x10,%esp
10b531: 8a 13 mov (%ebx),%dl
10b533: 84 d2 test %dl,%dl
10b535: 75 e9 jne 10b520 <vprintk+0x2e4>
10b537: 89 f3 mov %esi,%ebx
10b539: 8b 75 c0 mov -0x40(%ebp),%esi
BSP_output_char(*str);
/* trailing spaces */
if ( minus )
10b53c: 80 7d c4 00 cmpb $0x0,-0x3c(%ebp)
10b540: 0f 84 25 fd ff ff je 10b26b <vprintk+0x2f>
for ( i=len ; i<width ; i++ )
10b546: 39 df cmp %ebx,%edi
10b548: 0f 83 1d fd ff ff jae 10b26b <vprintk+0x2f>
10b54e: 66 90 xchg %ax,%ax
BSP_output_char(' ');
10b550: 83 ec 0c sub $0xc,%esp
10b553: 6a 20 push $0x20
10b555: ff 15 84 32 12 00 call *0x123284
for ( i=0 ; i<width && *str ; str++ )
BSP_output_char(*str);
/* trailing spaces */
if ( minus )
for ( i=len ; i<width ; i++ )
10b55b: 47 inc %edi
10b55c: 83 c4 10 add $0x10,%esp
10b55f: 39 df cmp %ebx,%edi
10b561: 72 ed jb 10b550 <vprintk+0x314>
10b563: e9 03 fd ff ff jmp 10b26b <vprintk+0x2f>
base = 16; sign = false;
} else if ( c == 'p' ) {
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
continue;
10b568: 31 c9 xor %ecx,%ecx
10b56a: c7 45 b8 0a 00 00 00 movl $0xa,-0x48(%ebp)
10b571: e9 d7 fd ff ff jmp 10b34d <vprintk+0x111>
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
BSP_output_char('-');
10b576: 83 ec 0c sub $0xc,%esp
10b579: 6a 2d push $0x2d
10b57b: ff 15 84 32 12 00 call *0x123284
unsigned_num = (unsigned long) -num;
10b581: f7 df neg %edi
10b583: 89 7d c0 mov %edi,-0x40(%ebp)
if (maxwidth) maxwidth--;
10b586: 83 c4 10 add $0x10,%esp
10b589: 83 fb 01 cmp $0x1,%ebx
10b58c: 83 d3 ff adc $0xffffffff,%ebx
} else {
unsigned_num = (unsigned long) num;
}
count = 0;
while ((n = unsigned_num / base) > 0) {
10b58f: 8b 45 c0 mov -0x40(%ebp),%eax
10b592: 31 d2 xor %edx,%edx
10b594: f7 75 b8 divl -0x48(%ebp)
10b597: 89 c1 mov %eax,%ecx
10b599: 85 c0 test %eax,%eax
10b59b: 0f 85 db fd ff ff jne 10b37c <vprintk+0x140> <== ALWAYS TAKEN
10b5a1: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp)
10b5a8: 31 ff xor %edi,%edi
10b5aa: e9 07 fe ff ff jmp 10b3b6 <vprintk+0x17a>
base = 16; sign = false;
} else if ( c == 'p' ) {
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
continue;
10b5af: 31 c9 xor %ecx,%ecx
10b5b1: c7 45 b8 10 00 00 00 movl $0x10,-0x48(%ebp)
10b5b8: e9 90 fd ff ff jmp 10b34d <vprintk+0x111>
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
if ( str == NULL ) {
10b5bd: b8 75 18 12 00 mov $0x121875,%eax
str = "";
}
/* calculate length of string */
for ( len=0, s=str ; *s ; len++, s++ )
10b5c2: 80 38 00 cmpb $0x0,(%eax)
10b5c5: 0f 85 e2 fe ff ff jne 10b4ad <vprintk+0x271> <== NEVER TAKEN
10b5cb: 31 ff xor %edi,%edi
10b5cd: e9 e5 fe ff ff jmp 10b4b7 <vprintk+0x27b>
} else {
BSP_output_char(c);
continue;
}
printNum(
10b5d2: 0f be d2 movsbl %dl,%edx
10b5d5: 89 55 b4 mov %edx,-0x4c(%ebp)
10b5d8: 31 c9 xor %ecx,%ecx
10b5da: c7 45 b8 10 00 00 00 movl $0x10,-0x48(%ebp)
10b5e1: e9 6d fd ff ff jmp 10b353 <vprintk+0x117>
0011f824 <write>:
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
11f824: 55 push %ebp
11f825: 89 e5 mov %esp,%ebp
11f827: 53 push %ebx
11f828: 83 ec 04 sub $0x4,%esp
11f82b: 8b 5d 08 mov 0x8(%ebp),%ebx
11f82e: 8b 45 0c mov 0xc(%ebp),%eax
11f831: 8b 55 10 mov 0x10(%ebp),%edx
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
11f834: 3b 1d 4c 31 12 00 cmp 0x12314c,%ebx
11f83a: 73 50 jae 11f88c <write+0x68> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
11f83c: c1 e3 06 shl $0x6,%ebx
11f83f: 03 1d e0 71 12 00 add 0x1271e0,%ebx
rtems_libio_check_is_open( iop );
11f845: 8b 4b 14 mov 0x14(%ebx),%ecx
11f848: f6 c5 01 test $0x1,%ch
11f84b: 74 3f je 11f88c <write+0x68> <== NEVER TAKEN
rtems_libio_check_buffer( buffer );
11f84d: 85 c0 test %eax,%eax
11f84f: 74 5f je 11f8b0 <write+0x8c> <== NEVER TAKEN
rtems_libio_check_count( count );
11f851: 85 d2 test %edx,%edx
11f853: 74 2f je 11f884 <write+0x60>
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
11f855: 83 e1 04 and $0x4,%ecx
11f858: 74 32 je 11f88c <write+0x68> <== NEVER TAKEN
/*
* Now process the write() request.
*/
if ( !iop->handlers->write_h )
11f85a: 8b 4b 3c mov 0x3c(%ebx),%ecx
11f85d: 8b 49 0c mov 0xc(%ecx),%ecx
11f860: 85 c9 test %ecx,%ecx
11f862: 74 3a je 11f89e <write+0x7a> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
rc = (*iop->handlers->write_h)( iop, buffer, count );
11f864: 83 ec 04 sub $0x4,%esp
11f867: 52 push %edx
11f868: 50 push %eax
11f869: 53 push %ebx
11f86a: ff d1 call *%ecx
if ( rc > 0 )
11f86c: 83 c4 10 add $0x10,%esp
11f86f: 85 c0 test %eax,%eax
11f871: 7e 0b jle 11f87e <write+0x5a> <== NEVER TAKEN
iop->offset += rc;
11f873: 89 c1 mov %eax,%ecx
11f875: c1 f9 1f sar $0x1f,%ecx
11f878: 01 43 0c add %eax,0xc(%ebx)
11f87b: 11 4b 10 adc %ecx,0x10(%ebx)
return rc;
}
11f87e: 8b 5d fc mov -0x4(%ebp),%ebx
11f881: c9 leave
11f882: c3 ret
11f883: 90 nop
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_buffer( buffer );
rtems_libio_check_count( count );
11f884: 31 c0 xor %eax,%eax
if ( rc > 0 )
iop->offset += rc;
return rc;
}
11f886: 8b 5d fc mov -0x4(%ebp),%ebx
11f889: c9 leave
11f88a: c3 ret
11f88b: 90 nop
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_buffer( buffer );
rtems_libio_check_count( count );
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
11f88c: e8 af 45 ff ff call 113e40 <__errno> <== NOT EXECUTED
11f891: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED
11f897: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
11f89c: eb e0 jmp 11f87e <write+0x5a> <== NOT EXECUTED
/*
* Now process the write() request.
*/
if ( !iop->handlers->write_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
11f89e: e8 9d 45 ff ff call 113e40 <__errno> <== NOT EXECUTED
11f8a3: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
11f8a9: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
11f8ae: eb ce jmp 11f87e <write+0x5a> <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_buffer( buffer );
11f8b0: e8 8b 45 ff ff call 113e40 <__errno> <== NOT EXECUTED
11f8b5: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
11f8bb: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
11f8c0: eb bc jmp 11f87e <write+0x5a> <== NOT EXECUTED
0010c398 <writev>:
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
10c398: 55 push %ebp
10c399: 89 e5 mov %esp,%ebp
10c39b: 57 push %edi
10c39c: 56 push %esi
10c39d: 53 push %ebx
10c39e: 83 ec 3c sub $0x3c,%esp
10c3a1: 8b 45 08 mov 0x8(%ebp),%eax
10c3a4: 8b 5d 0c mov 0xc(%ebp),%ebx
10c3a7: 8b 7d 10 mov 0x10(%ebp),%edi
int bytes;
rtems_libio_t *iop;
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
10c3aa: 3b 05 8c 63 12 00 cmp 0x12638c,%eax
10c3b0: 0f 83 ee 00 00 00 jae 10c4a4 <writev+0x10c> <== NEVER TAKEN
iop = rtems_libio_iop( fd );
10c3b6: c1 e0 06 shl $0x6,%eax
10c3b9: 8b 15 20 ac 12 00 mov 0x12ac20,%edx
10c3bf: 01 d0 add %edx,%eax
10c3c1: 89 45 e4 mov %eax,-0x1c(%ebp)
rtems_libio_check_is_open( iop );
10c3c4: 8b 40 14 mov 0x14(%eax),%eax
10c3c7: f6 c4 01 test $0x1,%ah
10c3ca: 0f 84 d4 00 00 00 je 10c4a4 <writev+0x10c>
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
10c3d0: a8 04 test $0x4,%al
10c3d2: 0f 84 cc 00 00 00 je 10c4a4 <writev+0x10c> <== NEVER TAKEN
/*
* Argument validation on IO vector
*/
if ( !iov )
10c3d8: 85 db test %ebx,%ebx
10c3da: 74 70 je 10c44c <writev+0xb4>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
10c3dc: 85 ff test %edi,%edi
10c3de: 7e 6c jle 10c44c <writev+0xb4>
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
10c3e0: 81 ff 00 04 00 00 cmp $0x400,%edi
10c3e6: 7f 64 jg 10c44c <writev+0xb4> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->write_h )
10c3e8: 8b 55 e4 mov -0x1c(%ebp),%edx
10c3eb: 8b 42 3c mov 0x3c(%edx),%eax
10c3ee: 8b 70 0c mov 0xc(%eax),%esi
10c3f1: 85 f6 test %esi,%esi
10c3f3: 0f 84 bd 00 00 00 je 10c4b6 <writev+0x11e> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
10c3f9: be 01 00 00 00 mov $0x1,%esi
10c3fe: 31 c0 xor %eax,%eax
10c400: 31 d2 xor %edx,%edx
10c402: eb 02 jmp 10c406 <writev+0x6e>
* 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++ ) {
10c404: 89 ca mov %ecx,%edx
if ( !iov[v].iov_base )
10c406: 8b 0c c3 mov (%ebx,%eax,8),%ecx
10c409: 85 c9 test %ecx,%ecx
10c40b: 74 3f je 10c44c <writev+0xb4>
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 )
10c40d: 8b 4c c3 04 mov 0x4(%ebx,%eax,8),%ecx
10c411: 85 c9 test %ecx,%ecx
10c413: 74 02 je 10c417 <writev+0x7f>
10c415: 31 f6 xor %esi,%esi
all_zeros = false;
/* check for wrap */
old = total;
total += iov[v].iov_len;
10c417: 8d 0c 0a lea (%edx,%ecx,1),%ecx
if ( total < old || total > SSIZE_MAX )
10c41a: 39 ca cmp %ecx,%edx
10c41c: 7f 2e jg 10c44c <writev+0xb4>
* 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++ ) {
10c41e: 40 inc %eax
10c41f: 39 c7 cmp %eax,%edi
10c421: 7f e1 jg 10c404 <writev+0x6c>
}
/*
* A writev with all zeros is supposed to have no effect per OpenGroup.
*/
if ( all_zeros == true ) {
10c423: 89 f1 mov %esi,%ecx
10c425: 84 c9 test %cl,%cl
10c427: 75 3d jne 10c466 <writev+0xce>
10c429: 31 f6 xor %esi,%esi
10c42b: 31 d2 xor %edx,%edx
10c42d: 89 55 c0 mov %edx,-0x40(%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 )
10c430: 8b 44 f3 04 mov 0x4(%ebx,%esi,8),%eax
10c434: 85 c0 test %eax,%eax
10c436: 75 32 jne 10c46a <writev+0xd2> <== ALWAYS TAKEN
}
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
10c438: 46 inc %esi
10c439: 39 f7 cmp %esi,%edi
10c43b: 7f f3 jg 10c430 <writev+0x98>
10c43d: 8b 55 c0 mov -0x40(%ebp),%edx
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
10c440: 89 d0 mov %edx,%eax
10c442: 8d 65 f4 lea -0xc(%ebp),%esp
10c445: 5b pop %ebx
10c446: 5e pop %esi
10c447: 5f pop %edi
10c448: c9 leave
10c449: c3 ret
10c44a: 66 90 xchg %ax,%ax
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old || total > SSIZE_MAX )
rtems_set_errno_and_return_minus_one( EINVAL );
10c44c: e8 ef 87 00 00 call 114c40 <__errno>
10c451: c7 00 16 00 00 00 movl $0x16,(%eax)
10c457: ba ff ff ff ff mov $0xffffffff,%edx
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
10c45c: 89 d0 mov %edx,%eax
10c45e: 8d 65 f4 lea -0xc(%ebp),%esp
10c461: 5b pop %ebx
10c462: 5e pop %esi
10c463: 5f pop %edi
10c464: c9 leave
10c465: c3 ret
}
/*
* A writev with all zeros is supposed to have no effect per OpenGroup.
*/
if ( all_zeros == true ) {
10c466: 31 d2 xor %edx,%edx
10c468: eb f2 jmp 10c45c <writev+0xc4>
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
/* all zero lengths has no effect */
if ( iov[v].iov_len == 0 )
continue;
bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len );
10c46a: 52 push %edx
10c46b: 8b 4d e4 mov -0x1c(%ebp),%ecx
10c46e: 8b 51 3c mov 0x3c(%ecx),%edx
10c471: 50 push %eax
10c472: ff 34 f3 pushl (%ebx,%esi,8)
10c475: 51 push %ecx
10c476: ff 52 0c call *0xc(%edx)
10c479: 89 45 c4 mov %eax,-0x3c(%ebp)
if ( bytes < 0 )
10c47c: 83 c4 10 add $0x10,%esp
10c47f: 83 f8 00 cmp $0x0,%eax
10c482: 7c 42 jl 10c4c6 <writev+0x12e> <== NEVER TAKEN
return -1;
if ( bytes > 0 ) {
10c484: 74 13 je 10c499 <writev+0x101> <== NEVER TAKEN
iop->offset += bytes;
10c486: 8b 45 c4 mov -0x3c(%ebp),%eax
10c489: 99 cltd
10c48a: 8b 4d e4 mov -0x1c(%ebp),%ecx
10c48d: 01 41 0c add %eax,0xc(%ecx)
10c490: 11 51 10 adc %edx,0x10(%ecx)
total += bytes;
10c493: 8b 45 c4 mov -0x3c(%ebp),%eax
10c496: 01 45 c0 add %eax,-0x40(%ebp)
}
if (bytes != iov[ v ].iov_len)
10c499: 8b 55 c4 mov -0x3c(%ebp),%edx
10c49c: 3b 54 f3 04 cmp 0x4(%ebx,%esi,8),%edx
10c4a0: 74 96 je 10c438 <writev+0xa0> <== ALWAYS TAKEN
10c4a2: eb 99 jmp 10c43d <writev+0xa5> <== NOT EXECUTED
bool all_zeros;
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
10c4a4: e8 97 87 00 00 call 114c40 <__errno>
10c4a9: c7 00 09 00 00 00 movl $0x9,(%eax)
10c4af: ba ff ff ff ff mov $0xffffffff,%edx
10c4b4: eb a6 jmp 10c45c <writev+0xc4>
if ( iovcnt > IOV_MAX )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->write_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
10c4b6: e8 85 87 00 00 call 114c40 <__errno> <== NOT EXECUTED
10c4bb: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
10c4c1: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
10c4c4: eb 96 jmp 10c45c <writev+0xc4> <== NOT EXECUTED
if ( iov[v].iov_len == 0 )
continue;
bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len );
if ( bytes < 0 )
10c4c6: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED
10c4c9: eb 91 jmp 10c45c <writev+0xc4> <== NOT EXECUTED